News: 0001601346

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Micro QuickJS Engine Compiles & Runs JavaScript With As Little As 10kB Of RAM

([Free Software] 5 Hours Ago Micro QuickJS)


Very talented open-source developer Fabrice Bellard who already is well known for his work on QEMU, the Tiny C Compiler, and FFmpeg, has another accomplishment: Micro QuickJS. The Micro QuickJS JavaScript engine can compile and run JavaScript programs with as little as 10 kB of RAM.

Fabrice Bellard yesterday provided an early Christmas gift to JavaScript enthusiasts with Micro QuickJS. This JavaScript engine is designed for embedded systems with minimal memory use. This entire JavaScript engine requires just around 100 kB of ROM, including the C library. The performance of this engine is comparable to that of QuickJS.

Micro QuickJS supports a subset of JavaScript similar in scope to ES5. Micro QuickJS is stricter than ES5. This JavaScript engine is open-source under the MIT license.

Those wishing to checkout the Micro QuickJS project can find the now-public code for it on [1]GitHub .

This isn't Fabrice Bellard's first foray into JavaScript but a decade ago he had written a PC emulator in pure JavaScript and previously developed QuickJS as a small and embeddable JavaScript engine. With Micro QuickJS, he's taking things much further -- or rather, smaller.



[1] https://github.com/bellard/mquickjs



Watch Rincewind.

Look at him. Scrawny, like most wizards, and clad in a dark red robe on
which a few mystic sigils were embroidered in tarnished sequins. Some might
have taken him for a mere apprentice enchanter who had run away from his
master out of defiance, boredom, fear and a lingering taste for
heterosexuality. Yet around his neck was a chain bearing the bronze octagon
that marked him as an alumnus of Unseen University, the high school of magic
whose time-and-space transcendent campus is never precisely Here or There.
Graduates were usually destined for mageship at least, but Rincewind--after
an unfortunate event--had left knowing only one spell and made a living of
sorts around the town by capitalizing on an innate gift for languages. He
avoided work as a rule, but had a quickness of wit that put his
acquaintances in mind of a bright rodent.
-- Terry Pratchett, "The Colour of Magic"