SuperIlu / DOjS

A MS-DOS Creative Coding IDE/platform based on JavaScript
Other
871 stars 34 forks source link

QuickJS #11

Closed zettelmuseum closed 4 years ago

zettelmuseum commented 4 years ago

Are you familiar with QuickJS?

https://bellard.org/quickjs/ https://bellard.org/quickjs/bench.html

Looks like is much faster and much more standards compliant than mujs/duktape. No idea how well it would work in DJGPP, though. Will have a closer look some time..

SuperIlu commented 4 years ago

I did a quick test with QuickJS and if I remember right it didn't compile with DJGPP. I'm planing to migrate to Duktape (for now). But before doing this I have some more testing on my list. This still includes QuickJS.

See here for some benchmarks: https://twitter.com/dec_hl/status/1203440011678552067

SuperIlu commented 4 years ago

Oh, and when I tried QuickJS (not on DOS though) it was slower than Duktape: https://twitter.com/dec_hl/status/1202292770834137096

zettelmuseum commented 4 years ago

I tried some more scripts, some were much faster in quickjs, but quite a few were faster in duktape. So I think I was too enthusiastic (maybe because Fabrice Bellard is a legend. I'm using his tiny c compiler in dosbox and it's incredibly fast.)

SuperIlu commented 4 years ago

For now Duktape is my favorite because I already ported my other project (jSH) successfully to it.

SuperIlu commented 4 years ago

I benchmarked Duktape again (Linux and DOS) and (after some speed improvements over MUjS) I did a full port of DOjS to Duktape. Sadly this port turned out slower than the current. See my Twitter for a very short summary... https://twitter.com/dec_hl/status/1260943621030887428