Hacker News new | past | comments | ask | show | jobs | submit login

If the code JITs well

What does this mean? Any JIT can make a tight loop of math and arrays run well but that doesn't mean a typical program runs well.






For Ruby, it's code where variables and method input/return types can be inferred to remain static, and variable scope/lifetime is finite. From my understanding, much of the performance gain was from removing the need for a lot of type checking and dynamic lookup/dispatch when types were unknown.

So basically, writing code similarly to a statically typed compiled language.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: