Live data from Hacker News

QuickJS JavaScript Engine

bellard.org

121–130 of 279 posts

Re: QuickJS JavaScript Engine

#121
post #118
post #69

Note that Bellard already wrote a (small) HTML/CSS engine for his Emacs clone. So we're only a small step away from Bellard-Browser.

Wait, QEmacs was written by Bellard, too? I stumbled across it a while ago but I didn't pay attention to the author. Damn.

If it's the same QEmacs as the one on Amiga, I think I'm going to faint.

Re: QuickJS JavaScript Engine

#122
post #25

Is there anything that Fabrice can't do? I mean, FFMpeg is almost a PhD thesis in and of itself, and he still manages to find time to make TinyC, QEMU, and now this. To say I'm jealous of his skills would be an understatement.

Yeah this is just crazy. I think he and ludde together are responsible for like 90% of software I like and use very frequently. ;-)

ludde who?

Re: QuickJS JavaScript Engine

#124

I'm curious - what is/was the intended application of this?

A very small and fast javascript interpreter. It will create a small library file for the programs who depends on this and according to the benchmarks it runs faster than the other javascript interpreters.

If you want a very fast javascript engine and dont have problems with binary size, memory constraints and executable memory pages, you can pick a JIT like V8, Chakra or Spidermonkey. As those JITs are pretty advanced optimizing JIT compilers and will run javascript code very fast, much faster than the fastest interpreted VM implementation can.

People who tend to choose this instead of V8 for instance need to run this in a microcontroler for instance, or a OS without executable memory pages (and therefore where JIT´s are forbidden).

Re: QuickJS JavaScript Engine

#125

Undefined symbols for architecture i386 I get this error when attempting to make on macOS. I don't have very much experience with C, but is there a good resource to learn how to better deal with compiler issues and such other than googling specific issues?

Yeah, I got the same error, along with a bunch of warnings earlier in the build about how 32-bit builds are deprecated on recent macOS versions. And then when it goes to link, it can't find the 32-bit symbols for functions like sqrt() and `printf()`.

Hacky workaround: comment out the "CONFIG_M32=y" line in the makefile. This will disable building the 32-bit versions of some tools. ("Edit the makefile" is, according to the docs, the canonical way to customize your build settings.)

And I don't think there's any real shortcut for dealing with compiler error messages. You've just got to learn what they mean and what sort of thing tends to cause them.

Re: QuickJS JavaScript Engine

#126
post #73

Worth noting: the demo is a WASM-compiled instance of this engine. I'm not sure, but I think this might be the first example of a fully featured, potentially production-ready, JS VM sandbox running in the browser. (We're looking into safe ways to enable third party scripting of our own application, and such a sandbox would be a very nice tool to have in hand.)

Have you looked at https://github.com/Agoric/SES ? (Not production yet.)

Re: QuickJS JavaScript Engine

#127
post #73

Worth noting: the demo is a WASM-compiled instance of this engine. I'm not sure, but I think this might be the first example of a fully featured, potentially production-ready, JS VM sandbox running in the browser. (We're looking into safe ways to enable third party scripting of our own application, and such a sandbox would be a very nice tool to have in hand.)

2019+ will Atwood's law compiled to WASM. My co-worker Jason wrote a JS engine in Rust, Boa ( https://github.com/jasonwilliams/boa ) and demoed it via WASM in the browser at the recent JSConf.EU 2019: https://www.youtube.com/watch?v=_uD2pijcSi4

Could these be able to do SSR for Vue from a Rust web server?

Re: QuickJS JavaScript Engine

#128
post #74
post #62

Earlier quoted context omitted.

He has his own company now with another partner ( https://www.amarisoft.com/ ) where they work on and distribute the LTE software he wrote.

Well, the scrolljacking is evidence no one is infallible. ;)

Well, not all lazy HN commentary, like criticisms of 'scrolljacking' should be taken seriously. ;)

Re: QuickJS JavaScript Engine

#129

Earlier quoted context omitted.

Yeah this is just crazy. I think he and ludde together are responsible for like 90% of software I like and use very frequently. ;-)

ludde who?

Probably Ludvig Strigeus [0].

[0] https://en.wikipedia.org/wiki/Ludvig_Strigeus

Post reply on HN