4 ms·
It'd be interesting to make a "less ambitious" JS in the same way that embedded chips have these less ambitious "dialects" of c and c++. Like a js-mini that do
by kristopolous 3y ago
It'd be interesting to make a "less ambitious" JS in the same way that embedded chips have these less ambitious "dialects" of c and c++.
Like a js-mini that doesn't have the bells and whistles like opengl, bluetooth and midi support
- cxr 3y agoThat's a category error. JS is a programming language. All the bells and whistles you mention are part of Web platform machinery with APIs through JS-level bindings accessible to programs written by website authors. The language/dialect has little to do with it; you're envisioning a different stack that would require a new browser engine, not a language.
- anthk 3y agoIt exists, Duktape and Quickjs, but even on bigger browsers the support it's subpar. Shockingly, edbrowse parses JS pages well enough to login and post in some sites.
- baq 3y agoDitch js altogether and just provide a minimal WASM interpreter. A dillo-compatible page could then ship with a js runtime as a shim.