News for hackers. Stuff that matters.
Re:Do you have a problem? Write a compiler by tom_mellior on Thursday October 03, 2019 @10:52AM (#21147671)
> It's not an accident that the talk/article is about Clojure

On the other hand, I'm surprised that the optimizations in question don't happen automatically for Clojure programs. Surely the underlying JVM is capable of constant propagation and folding? Maybe it's the let-from-let optimization that actually gets the 10% speedup.

Re:Do you have a problem? Write a compiler by phadej on Thursday October 03, 2019 @08:03PM (#21153577)
I probably don't say it in the talk very explicitly (or do I?): the target architecture is web = JavaScript.
Re:Do you have a problem? Write a compiler by tom_mellior on Friday October 04, 2019 @04:14AM (#21155773)
Oh, you do say it in the article: "However, for the maximum reach, we want our game to run in the web browsers." I missed that, thanks.

But even so, JavaScript compilers aren't stupid. No need to do this for me of course, but if you got around to measuring the performance impact of the two optimizations separately, I'd be interested in that. (And the ClojureScript developers might be interested too.)