logoalt Hacker News

ch4s3yesterday at 4:20 PM3 repliesview on HN

It’s pretty hard to make things like math faster for real world use cases in a bytecode interpreter.


Replies

dmpk2kyesterday at 4:29 PM

It's a JIT nowadays. Admittedly an extremely simple one, to minimize compile times and maintenance overhead.

You can get substantial performance improvements by using guards though. See what Wings3D does with is_float() everywhere in hot numeric-heavy code.

show 1 reply
dnauticsyesterday at 6:23 PM

i ran a quick experiment where instead of doing boxing the way its done in the beam currently, i used a different boxing (NaN strategy and there was a 10x speedup

show 2 replies
jimbokunyesterday at 4:49 PM

Java and Javascript run times do really well at that.