Comment

Comment by gobdovan

Have you considered exposing these optimisations through a library so programmers can request optimisation passes and have the compiler check the preconditions?

Asking cuz I'm preparing an article on how fast JS can get and found the same thing, you can get in 10% of optimised C-code with basically any code if you torture V8 enough (excepting SIMD where there seems to be a bug in V8 where it doesn't optimise to SIMD even when beyond obvious). Figured out I could extract it in a lib and do it more streamlined but not sure how well manual transforms generalise.

Also, when working on the roc-deflate, did you find recurring transformations that could fit that model or were most improvements specific to compression?

parent gobdovan 7 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton