source-academy / source-programs

Notable Source programs, developed for SICP JS and other educational projects
GNU General Public License v3.0
7 stars 18 forks source link

upgrade SECD based VM to source 2 #7

Closed moziliar closed 4 years ago

martin-henz commented 4 years ago

Still quite a round-about way of generating the primitive functions for the math library. I suggest that we directly write the primitive functions to the code array, using a for_each on primitives.

Another issue: math_max and math_min also have variable arity.

...and math_hypot.