svaarala/duktape
View on GitHub ↗ ★ 6,217 JavaScript
Duktape - embeddable Javascript engine with a focus on portability and compact footprint
19 mentions on Hacker News by 14 people: 3 stories, 16 comments · first 2014-12-04 · latest 2026-03-28
20082026
-
…the original source being multi-file, with the single-file variant being generated. E.g. duktape ( https://github.com/svaarala/duktape ) generates src-custom/duktape.c from src-input/*/*.c ( https://github.com/svaarala/duktape/tree/master/s…
comment by MaulingMonkey · 2026-03-28 · in A single-file C allocator with explicit heaps and tuning knobs -
…or 512 instances of splitmix64 [2]. [1] = https://prng.di.unimi.it/xoshiro256plus.c [2] = https://github.com/svaarala/duktape/blob/master/misc/splitmi...
comment by kbolino · 2024-04-19 · in Randar: A Minecraft exploit that uses LLL lattice reduction to crack server RNG -
You might find this interesting: https://github.com/svaarala/duktape/blob/master/doc/compiler...
comment by userbinator · 2023-05-05 · in Roll your own JavaScript runtime, pt. 3 -
…libutf8proc or libutf. [1] https://github.com/bellard/quickjs/blob/master/libunicode.c [2] https://github.com/svaarala/duktape/blob/master/src-input/du...
comment by mananaysiempre · 2022-11-15 · in Libgrapheme: A simple freestanding C99 library for Unicode -
…to be sufficiently portable, you need an opt out for when it breaks. Let's review duktape's scars: https://github.com/svaarala/duktape/blob/123d9426d5e5b36d5da... https://github.com/svaarala/duktape/blob/5252b7a50611a3cb8bf...…
comment by MaulingMonkey · 2022-09-17 · in NaN Boxing (2020) -
I was expecting this to be about Duktape < https://github.com/svaarala/duktape >, but heh, for sure no. I'd bet $1 there's no way youtube-dl would switch, but I wonder if yt-dlp would?
comment by mdaniel · 2022-09-10 · in YouTube-dl has an interpreter for a subset of JavaScript in 870 lines of Python -
…[2] https://devlog.hexops.com/2021/unicode-data-file-compression... [3] https://github.com/svaarala/duktape/issues/1718
comment by mananaysiempre · 2022-07-08 · in Duktape is an embeddable JavaScript engine -
…handles as NaN values - this isn't an uncommon trick for dynamically typed scripting stuff: https://github.com/svaarala/duktape/blob/c3722054ea4a4e50f48... Naturally, the -ffast-math equivalent broke isNaN checks, which caused random…
comment by MaulingMonkey · 2021-10-20 · in Optimizations Enabled by -ffast-Math -
…to have a slightly cleaner API for bindings, for example writing to the serial port from JS land. https://github.com/svaarala/duktape https://github.com/jerryscript-project/jerryscript
comment by dazhbog · 2020-10-15 · in Espruino: JavaScript for Microcontrollers -
? It's MIT https://github.com/svaarala/duktape/blob/master/LICENSE.txt
comment by paulddraper · 2020-01-02 · in Duktape is an embeddable JavaScript engine, with a focus on portability -
…have been my choice.) --- [0] https://mujs.com/examples.html [1] https://duktape.org/api.html [2] https://github.com/svaarala/duktape/blob/master/LICENSE.txt [3] https://mujs.com/license.html
comment by shakna · 2019-11-17 · in An embeddable JavaScript interpreter in C -
I thought the word "duktape" was typo+snark. It's not. 100% legit, thanks! https://github.com/svaarala/duktape
comment by edoceo · 2019-09-13 · in A lighter V8 -
…objects which reduces memory usage quite a bit; the lowest startup RAM usage is around 1,5kB, see https://github.com/svaarala/duktape/blob/master/doc/low-memo... .
comment by svaarala · 2018-04-22 · in XS7 – A compact JavaScript engine for embedded applications -
This sounds like something that would benefit mainstream browsers, for cold spots: https://github.com/svaarala/duktape/blob/master/doc/low-memo... "Notes on pointer compression Pointer compression can be applied throughout (where it…
comment by zurn · 2015-10-20 · in Duktape – embeddable JavaScript engine with a focus on portability and compact footprint -
Pretty sure. The instruction layout is also inspired by Lua: https://github.com/svaarala/duktape/blob/master/src/duk_js_b... Here's Lua: https://github.com/lua/lua/blob/master/src/lopcodes.h#L13-L2...
comment by macournoyer · 2014-12-04 · in Duktape: an embeddable JavaScript engine