Hacker News new | ask | show | jobs
QuickJS JavaScript Engine (bellard.org)
12 points by _gmkt 234 days ago
1 comments

Nice snug self-contained binary with no dependencies :D

  qjsc -e -o file.c file.js
  cc -static -L /usr/local/lib/quickjs -I /usr/local/include/quickjs -o filejs file.c -lquickjs -lm -lpthread
  errno ~/Downloads $: ldd filejs
  filejs:
        Start            End              Type  Open Ref GrpRef Name
        0000063faca58000 0000063facbaa000 dlib  1    0   0      /home/errno/Downloads/filejs