News for hackers. Stuff that matters.
Re:Napa.js: A multi-threaded JavaScript runtime by k3liutZu on Wednesday October 18, 2017 @09:16AM (#15498853)
To share the same codebase across Windows, macOS, linux, browser
Re:Napa.js: A multi-threaded JavaScript runtime by j_s on Wednesday October 18, 2017 @09:59AM (#15499167)
In-browser is probably a bit of a stretch, but add mobile (also possible with JavaScript) while keeping performance for cross-platform GUIs:

Why I use Object Pascal | https://news.ycombinator.com/item?id=15490345 (Oct 2017,250+points,215+comments)

http://www.lazarus-ide.org/

Re:Napa.js: A multi-threaded JavaScript runtime by seba_dos1 on Wednesday October 18, 2017 @09:39AM (#15499016)
So, instead of writing great multiplatform desktop app in, say, Qt, and writing great Web frontend, you write half-baked desktop-web hybrid that doesn't feel great anywhere. Awesome.
Re:Napa.js: A multi-threaded JavaScript runtime by coldtea on Wednesday October 18, 2017 @10:03AM (#15499204)
QT doesn't feel great anywhere either (except Linux, and there only because the UI standards are "whatever goes").

At least it's fast.

Re:Napa.js: A multi-threaded JavaScript runtime by mirko22 on Wednesday October 18, 2017 @10:21AM (#15499361)
Whats wrong with QT on other platforms? If it is about the looks, it looked pretty good on Windows as far as i remember, as for speed, it is mostly down to the developer not the language.
Re:Napa.js: A multi-threaded JavaScript runtime by coldtea on Wednesday October 18, 2017 @10:27AM (#15499397)
The problem is the "pretty good" uncanny valley.
Re:Napa.js: A multi-threaded JavaScript runtime by and0 on Wednesday October 18, 2017 @10:36AM (#15499480)
I wouldn't write something in QT nowadays, mostly for shallow reasons.. it just feels silly to have that bubbly interface running on anything past Win XP.
Re:Napa.js: A multi-threaded JavaScript runtime by detaro on Wednesday October 18, 2017 @10:48AM (#15499567)
What "bubbly interface"? The Qt apps I'm aware of on my Win10 system look just as flat as everything native.

EDIT: found one that doesn't, but it clearly loads some weird custom stylesheets, since it doesn't look like anything else.

Re:Napa.js: A multi-threaded JavaScript runtime by endless1234 on Wednesday October 18, 2017 @09:53AM (#15499125)
Atom and VS Code don't "feel great"? Yes, there are lots of shitty Electron apps out there, but don't the good ones prove that it's possible to write good ones too?
Re:Napa.js: A multi-threaded JavaScript runtime by seba_dos1 on Wednesday October 18, 2017 @12:56PM (#15500750)
I haven't tried VS Code, but Atom definitely doesn't feel that great. Looks like a lightweight editor, feels like a big, heavy moloch.

Atom's selling point to me was always its easy hackability, and that's where Electron tremendously wins: doing hacks, software meant to be set up quick'n'dirty, personal experiments, stuff done because "why not". I'm glad that Electron (and Atom too) exists because of that. However, that's definitely not a reason to write any serious tools in it. Using any Electron app with my 8GB RAM is a nightmare, and most of them look so out of place that (from the UX perspective) I don't know why they were put outside of the browser in the first place.

[eidt] Oh, and the main thing - VS Code and Atom definitely don't share their code with any Web version running in browser. Doesn't that make the original argument moot?

Re:Napa.js: A multi-threaded JavaScript runtime by contextfree on Monday October 23, 2017 @08:04PM (#15538058)
vscode does share code with the browser-based editor used in MSFT sites like VS Team Services and onedrive. It was actually first released there as a browser-based editor before being adapted for use in a standalone desktop application.
Re:Napa.js: A multi-threaded JavaScript runtime by GordonS on Wednesday October 18, 2017 @10:10AM (#15499269)
I'm with you here. Electron has gotten a bad name thanks to resource hogs like Slack, but it can also be used to create amazing multi-platfotm desktop apps. VS Code is a great example of Electron done right - compared to the full VS it absolutely flies, while still being packed with features and being very extensible.
Re:Napa.js: A multi-threaded JavaScript runtime by brazzledazzle on Thursday October 19, 2017 @02:16AM (#15505807)
Do you run Slack on Windows by chance? I've only seen it being CPU intensive twice on macOS.
Re:Napa.js: A multi-threaded JavaScript runtime by kls on Wednesday October 18, 2017 @10:10AM (#15499265)
I would throw GitKracken in the pot, with apps done well using Electron.
Re:Napa.js: A multi-threaded JavaScript runtime by mirko22 on Wednesday October 18, 2017 @10:24AM (#15499378)
Cos by using JS you don't need low level knowledge of how computers work and you don't have to plan too far in advance. People are not big fans of learning, specially the things they deem arcane.
Re:Napa.js: A multi-threaded JavaScript runtime by seba_dos1 on Wednesday October 18, 2017 @12:48PM (#15500676)
That's a great reason for Electron to exist and I'm all for it. If you want to mess around, do silly stuff just because you can, it's amazing that such technologies exist and you can do magic with pretty low learning curve. Heck, I've been doing stuff in the past like complete smartphone UI with Node and Chromium, just because I could and wanted to experiment.

However, that's a really bad argument when it comes to software development of proper tools that need to be developed and maintained and actually used by people.

Re:Napa.js: A multi-threaded JavaScript runtime by mirko22 on Wednesday October 18, 2017 @01:44PM (#15501208)
Yeah, it was more tongue in cheek argument, but sadly i feel like it is truth.