Hacker GitHub

← All repos

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

Mentions per year 19 mentions · busiest year 2022 (5)
20082026
  1. …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…
  2. …or 512 instances of splitmix64 [2]. [1] = https://prng.di.unimi.it/xoshiro256plus.c [2] = https://github.com/svaarala/duktape/blob/master/misc/splitmi...
  3. …its own, even slower Unicode library) can’t do it[1], but then it doesn’t try for ES6 either. [1] https://github.com/svaarala/duktape/issues/1718
    comment by mananaysiempre · 2023-05-16 · in Bun 0.6
  4. 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
  5. …libutf8proc or libutf. [1] https://github.com/bellard/quickjs/blob/master/libunicode.c [2] https://github.com/svaarala/duktape/blob/master/src-input/du...
  6. …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)
  7. 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?
  8. …[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
  9. …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
  10. …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
  11. ? It's MIT https://github.com/svaarala/duktape/blob/master/LICENSE.txt
  12. …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
  13. 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
  14. …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... .
  15. 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…
  16. 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