Lurker News

Comments (139) 24 threads

Show all comments

Showing thread 22 of 24

IloveHN842 replies#
Why JavaScript instead of something more performant?
oblio1 reply#
What for? It's just glue code, it doesn't actually run the micro-VMs.
mfatica5 replies#
Because I don't want to have to install the massive nodejs runtime just to glue things together.
oblio1 reply#
Then you're going to have a hard time in the post Node.js era. You also probably want to avoid looking at what many popular desktop apps use behind the scenes :)
mfatica1 reply#
I avoid any desktop app that uses electron or similar. Electron is still a hog, and most things written in electron have alternatives. I don't use the slack desktop app for this reason, as an example.
ramses01 reply#
So you use the browser app which uses approximately the same amount of memory / resources?
pushpop#
Minus the browser. Each Electron app isn’t just the running web app but also the browser instance too. Where as a web app running in a browser wouldn’t consume its own browser instance.

That browser instance alone can make quite a noticeable difference.

pas#
Run this in a docker env then?

docker run -it --entrypoint /bin/sh -v $PWD:/bla -v /run/docker.sock:/run/docker.sock node:12
apk add git docker cdrkit libvirt-daemon qemu-system-x86_64
npm install https://github.com/ottomatica/slim
cd /bla && /node_modules/.bin/slim

teilo#
This is not even remotely a concern for any enterprise that would use this. Fretting over this is like fretting over the gas left in the nozzle when you fill your car.
tracker12 replies#
I'm just curious what you feel about Java, .Net, Python and Ruby? Ruby is a hair smaller, but the others are actually bigger than the NodeJS runtime, with .Net and Java being significantly bigger.

Or, do you only run software hand crafted in assembly?

Continue this thread — 2 replies

ricardobeat#
Nothing stops the tool from being published as a single binary in Homebrew using pkg or nexe. That will probably happen once it gets enough traction, it's actually a lot better for maintainers to support a single version of Node.
pjc501 reply#
Normally the language for doing this kind of system building would be .. Bourne shell. Or Perl/Python.
GordonS#
I was actually expecting Bash scripts before I looked at the GitHub repo.

TBH, I think the code would be a lot simpler if it was just Bash.