Replies: 5 comments 3 replies
-
You can compile djot.js to a self-contained binary using $ deno compile -o djot --allow-read npm:@djot/djot
$ ./djot
Hello *world*
<p>Hello <strong>world</strong></p>
$ eza -l ./djot
.rwxrwxrwx 108M matklad 30 Dec 12:17 ./djot
$ ldd ./djot
linux-vdso.so.1 (0x00007fffd0984000)
libgcc_s.so.1 => /nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libgcc_s.so.1 (0x00007f7be99af000)
libm.so.6 => /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libm.so.6 (0x00007f7be4320000)
libc.so.6 => /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 (0x00007f7be4138000)
/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/ld-linux-x86-64.so.2 => /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib64/ld-linux-x86-64.so.2 (0x00007f7be99d2000) |
Beta Was this translation helpful? Give feedback.
-
There's rust implementation. They don't have releases so you'll have to compile it but it should give you a nice small fast executable |
Beta Was this translation helpful? Give feedback.
-
I'm working on a Haskell implementation which will produce a binary (not tiny, but smaller, 24M). It is also considerably faster than the typescript implementation. It will be done...eventually. |
Beta Was this translation helpful? Give feedback.
-
I have got a working version of the Haskell implementation now. It's 16M stripped. I was excited by its performance -- it's roughly 5x faster than my Haskell commonmark parser, for example, with a comparable set of extensions enabled. Then I tried jotdown, which is 2-3 times faster than my djoths! By the way, we need a list of implementations somewhere. I'll open a new thread on Discussions for that. |
Beta Was this translation helpful? Give feedback.
-
I have added binary releases to jotdown now so you can do e.g. $ curl -L "https://github.com/hellux/jotdown/releases/download/0.3.2/jotdown-0.3.2-x86_64-unknown-linux-gnu.tar.gz" \
| tar -Oxz jotdown-0.3.2-x86_64-unknown-linux-gnu/jotdown \
> jotdown && chmod +x jotdown
$ ./jotdown
test
<p>test</p> |
Beta Was this translation helpful? Give feedback.
-
Is there an implementation of djot I can install as a single download that I can drop into my ~/bin,
chmod +x
, and use?I don't have npm installed, and I'd rather not have to install a language ecosystem (like npm or luarocks) if I can avoid it.
However, I can apt install any version of lua easily enough.
Beta Was this translation helpful? Give feedback.
All reactions