dyoo / whalesong

Whalesong: Racket to JavaScript compiler
http://hashcollision.org/whalesong
250 stars 30 forks source link

code improvement: bring primitives back into play #58

Closed dyoo closed 12 years ago

dyoo commented 12 years ago

Every call to a "primitive" in Whalesong's kernel language gets translated into a somewhat-more-expensive closure call. Most of the primitives in kernel don't need this complex machinery. This has implications with the amount of code being generated. We can do a lot better by treating many of the bindings in lang/kernel as special cases.

dyoo commented 12 years ago

Fixed.