4 ms·
Well, you'd get single binary deployment with no other requirements on the server using deno compile [1]. I understand there is an alternative for that with Gra
by andrenth 5y ago
Well, you'd get single binary deployment with no other requirements on the server using deno compile [1]. I understand there is an alternative for that with GraalVM, but Deno feels more lightweight.
[1] https://deno.land/manual/tools/compiler https://deno.land/manual/tools/compiler
- diggan 5y ago> no other requirements on the server Seems not quite right, the binary does have some dependencies at least. It's no Java, I give you that. $ deno compile https://deno.land/std/examples/welcome.ts Check https://deno.land/std/examples/welcome.ts Bundle https://deno.land/std/examples/welcome.ts Compile https://deno.land/std/examples/welcome.ts Emit welcome $ ldd welcome linux-vdso.so.1 (0x00007ffefc6de000) libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fc154c63000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fc154c48000) librt.so.1 => /usr/lib/librt.so.1 (0x00007fc154c3d000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fc154c1c000) libm.so.6 => /usr/lib/libm.so.6 (0x00007fc154ad8000) libc.so.6 => /usr/lib/libc.so.6 (0x00007fc15490c000) /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fc1586b2000) The question is, is it worth using Deno just because it can produce binaries? For me, it's not. If I want that I'd go for Golang or Rust, but in general I just want it to be simple to program and maintain, so I always go for Clojure and ClojureScript as both are miles ahead any other programming language I've tried. TypeScript would probably be in the bottom of languages to use :)