logoalt Hacker News

pizlonatortoday at 3:12 AM4 repliesview on HN

Yeah

- using quickjs at all in a thing that needs perf. Quickjs is hilariously slow. Midwits use it because it has “quick” in the name.

- using floats for numbers and deferring int optimizations for later. Inferring ints is like half the problem of fast JS.

- rejecting inadequately annotated or too dynamic code without a whole heck of a lot of self-reflection about how unlikely that is to work out.

The observation that languages that are even slightly dynamic need dynamic JIT opts is very old; folks figured that out in the 80s.

This project reeks of weapons grade AI psychosis


Replies

simonwtoday at 3:20 AM

As far as I can tell they pull in QuickJS (actually quickjs-ng) only in the case where the program has untyped dependencies that still need to be run by an interpreter - and they chose that library because it's pretty small (620KB). Did I miss something, are they using it outside of that purpose?

show 2 replies
anematodetoday at 3:45 AM

> deferring int optimizations for later

This part made me laugh out loud

drunkenmagiciantoday at 7:14 AM

"This project reeks of weapons grade AI psychosis" - fantastic quote: I will shamelessly steal & use. Apologies to pizlonator

Tadpole9181today at 3:29 AM

So you don't actually have real criticisms of the architecture at all...?