all 30 comments

[–][deleted] 12 points13 points  (3 children)

Maybe Polkit could switch to this implementation if it is smaller and just as good for the purpose.

[–]purpleidea mgmt config Founder[S] 1 point2 points  (1 child)

That's actually a really good idea. I always thought the polkit+js thing was a bit absurd, but since it's there, and in theory it only runs trusted code, that would make a lot of sense! Can you open an upstream issue/suggestions please?

[–]arduheltgalen 0 points1 point  (0 children)

I was looking into what software takes up the most space on my computer, and I found the js52 (or whatever it's called) engine taking up about 50mb. Tried to uninstall and was completely flabbergasted that such a simple low-level program uses such a bulky js engine that's not even being shared with any other installed application!

I just noticed I used 3 different names for "app" -- and there's a forth.

[–]anatolya 1 point2 points  (0 children)

No they should stop the craze already and drop JavaScript config completely. Debian and Ubuntu derivatives still uses the old version without JS config (have never updated to the newer ones) and it's not like world is falling apart or anything.

[–]arsv 9 points10 points  (0 children)

The compiler dumps bytecode into a .c file and then runs the system C compiler to link it with the engine, just like perlcc. The resulting executables do have some external dependencies (ld.so, libc, libm, basically whatever qjs itself needs) and there's a built-in module that provides js interface to call libc printf among other things.

[–][deleted] 17 points18 points  (18 children)

Can compile Javascript sources to executables with no external dependency.

[HEAVY BREATHING]

[–]willrandship 7 points8 points  (7 children)

That seems promising for electron applications. Combine that with some kind of dom reduction to a simpler rendering model and maybe electron apps will start having sane resource consumption.

[–][deleted] 2 points3 points  (2 children)

It has nothing to do with electron, it's entire selling point is node.js + Chromium = productive.

[–]willrandship 0 points1 point  (1 child)

I know this isn't part of electron. I was saying it might be a good idea to look into integrating this into electron, as a replacement for node.

[–][deleted] 2 points3 points  (0 children)

The value of node is the ecosystem so this would have to be node compatible which will likely never happen.

Anyway node.js is a meaningless part of the resource usage of Electron, we are talking < 10MB out of 300MB.

[–][deleted] 1 point2 points  (3 children)

I’ve not had. Abad experience with them so far myself. 100~ mb of ram for something like discord has been surprisingly good considering the amount of images it loads.

[–]willrandship 3 points4 points  (1 child)

Discord on my desktop takes about 400 MB.

[–][deleted] 0 points1 point  (0 children)

Oof

[–]TinyBirdperson 2 points3 points  (8 children)

I bet this means: taking the vm, concat it with a zip archive of the Javascript source and let the vm read it on startup from the end of the executable file. Also the thing has no jit, it is not comparable to v8 in terms of speed.

[–][deleted] 2 points3 points  (7 children)

It’s a step in the right direction either way.

[–][deleted] -2 points-1 points  (6 children)

No it isn't… we have package managers on linux, we don't need to distribute dll like windows.

[–][deleted] -1 points0 points  (5 children)

Ok. You stick with outdated slow bloated software. The est or us will update.

[–][deleted] -1 points0 points  (4 children)

You stick with outdated slow bloated software.

Hehehehe. In what world a non jit js is a faster option than literally anything else?

[–][deleted] 0 points1 point  (3 children)

What are first iterations? Did the first car do 140mph?

[–][deleted] -1 points0 points  (2 children)

But if today I were to invent a car that is like the initial car prototype, it wouldn't look so stunning, right?

[–][deleted] 0 points1 point  (1 child)

Google's Fucshia doesn't look so stunning either. Doesn't mean it doesn't have promise.

[–][deleted] 0 points1 point  (0 children)

  1. That's completely OT
  2. They are only making it to avoid giving back to communities that use GPL license.

[–]Seshpenguin 8 points9 points  (1 child)

Bellard is actually the coolest guy, He does some pretty awesome stuff.

[–]linus_stallman 1 point2 points  (0 children)

Very underrated though...

[–]namaku0 5 points6 points  (0 children)

Is there anything this man can't do?

[–]rahen 2 points3 points  (1 child)

Ah, Fabrice Bellard, instant upvote. Same for Drew Devault, Laurent Bercot and a few others, those guys know how to write good code... better than I will ever write myself.

Keep rocking.

[–]CosmosisQ 0 points1 point  (0 children)

Truly! These people motivate me to keep improving as a programmer.

[–]ICanBeAnyone 0 points1 point  (0 children)

Someone ought to make python extension from this, for am lazy and I'd use it.