News for hackers. Stuff that matters.
Re:Insider Build of VSCode for Windows/ARM64 by mehrdadn on Friday May 29, 2020 @10:56AM (#23350649)
I feel like a dinosaur because a "native" app to me means pretty much the exact opposite of an electron app.
Re:Insider Build of VSCode for Windows/ARM64 by soapdog on Friday May 29, 2020 @11:00AM (#23350689)
I totally agree with you there, buuut, before this release VSCode on a Surface Pro X would be Electron running as a ia32 emulated app, which is not only web technologies but also the wrong ISA.

I'd love to have sublime text, textadept, or any other real native editor running under ARM64 on Windows but so far they are not available. This VSCode is the first editor shipping ARM64 binaries, even if Electron stuff.

Also it is important to notice that many developers using that machine are using the ia32 version of VSCode and this version will benefit them (and it more native to the platform).

Re:Insider Build of VSCode for Windows/ARM64 by patagurbon on Friday May 29, 2020 @06:07PM (#23356110)
Is it not possible to compile editors like emacs or Sublime Text for ARM64? I know very little about native programming but surely GCC/Clang/Visual C++ have ARM64 compilation targets?
Re:Insider Build of VSCode for Windows/ARM64 by soapdog on Saturday May 30, 2020 @04:21AM (#23359461)
It is a chicken and egg problem. Many languages do not yet support Windows on ARM, so you can't rely on them to build stuff for the new platform. For example there is no official release of NodeJS, Python, Ruby, Perl, on the platform.

Lots of FOSS rely on gnu stuff which is usually compiled on windows using mingw/msys2/cygwin, all of which are not available for Windows on ARM. So you can't easily port stuff.

You can run Visual Studio and cross-compile from ia32 to arm64 on a Surface Pro X but that is unsupported by Microsoft who wants you to have two machines, one running x64 and compiling stuff and another running arm64 and testing stuff. That is unreasonable for small independent developers.

So until the development ecosystem is a bit better, porting stuff will still have a lot of friction and that is why for now, IMHO, every port needs to be cherished.

Re:Insider Build of VSCode for Windows/ARM64 by ryukafalz on Friday May 29, 2020 @10:58PM (#23358087)
It certainly is! Not sure what the situation is on Windows but Linux distros that have ARM versions typically have nearly all the same software that you’d expect on x86 in their repos. (I’m thinking of Debian in particular here, but I suspect others are similar.)
Re:Insider Build of VSCode for Windows/ARM64 by dmortin on Friday May 29, 2020 @11:20AM (#23350966)
True, but remember when many apps were not made for Linux, because it was not worth it? With Electron at least we have apps like VSCode for Linux too. Not ideal, but better than nothing.
Re:Insider Build of VSCode for Windows/ARM64 by jfkebwjsbx on Friday May 29, 2020 @12:19PM (#23351916)
Blender, Photoshop, Premiere, Maya, ZBrush, CATIA, AutoCAD, and hundreds of other specialized tools are not moving to Electron anytime soon...

My point is that we shouldn’t embrace for Electron just because we want applications in Linux.

In addition, Election is not a guarantee of a Linux port either.

Re:Insider Build of VSCode for Windows/ARM64 by seph-reed on Friday May 29, 2020 @02:20PM (#23353594)
Eventually we're going to just have a means of saying: Save this webpage as an app.

I mean, we do already. It's called PWAs, and I have many of my favorite sites saved as an app. But it's featureless and lame.

Point being, Electron is just a stopgap while PWAs are figured out. And with the advent of WASM, we'll be able to run some pretty heavy stuff.

https://wasm.continuation-labs.com/d3demo/

My long term strategy: Learn rust for WASM, keep an eye on PWAs

Re:Insider Build of VSCode for Windows/ARM64 by jfkebwjsbx on Friday May 29, 2020 @10:04PM (#23357826)
Wasm is still very early and lacks a lot of features. It is also not as fast as a native application.

The browsers also lack many APIs to compete with native applications, and those are not coming soon either.

Web apps are just fine, even nowadays, for many things. But for heavy lifting, no, they are still way, way behind.

(By the way, you can compile to Wasm with almost any popular language, not just Rust).

Re:Insider Build of VSCode for Windows/ARM64 by a_wild_dandan on Friday May 29, 2020 @01:13PM (#23352638)
AutoCAD has a web version. I wouldn't be surprised to see an Electron version sometime. (One wonders how feature complete it would be though.)

In any case, I personally embrace Electron due to its development value. I can use the same codebase on all platforms, using technologies that my colleagues and I are already very familiar with (TypeScript/React/etc), with a supporting cast of a mind-shatteringly large ecosystem of FOSS packages. The speed at which I can turn out features in Electron just vastly outpaces anything else we've worked with. And that seems to be worth more to users than the 200MB footprint.

Re:Insider Build of VSCode for Windows/ARM64 by jfkebwjsbx on Friday May 29, 2020 @10:10PM (#23357852)
> AutoCAD has a web version

A shitty version, you mean. Same as Office 365 vs. the native Office.

The web versions of most native apps are very, very bad at the moment.

> I can use the same codebase on all platforms, using technologies that my colleagues and I are already very familiar with (TypeScript/React/etc), with a supporting cast of a mind-shatteringly large ecosystem of FOSS packages.

Everything you wrote here applies to most languages, including .NET, Java, C++, Rust and others.

The fact that you and your colleagues know other technologies does not mean they are the right approach.

> The speed at which I can turn out features in Electron

I think that is exactly what users don’t want. Users want stability and quality, not feature churn.

Re:Insider Build of VSCode for Windows/ARM64 by a_wild_dandan on Sunday May 31, 2020 @10:43PM (#23375060)
> A shitty version, you mean.

Indeed, hence the parenthetical.

> Everything you wrote here applies to most languages, including .NET, Java, C++, Rust and others.

Superb! Direct me to a rich Rust GUI application which targets the web, Linux, and iOS. Speaking to team tech familiarity, our front-end web engineers will be thrilled to get cracking with Rust. That'll be a sight!

> I think that is exactly what users don’t want. Users want stability and quality, not feature churn.

I'm glad you know what users want. I generally prefer them to tell us, and incidentally, "feature churn" never comes up in such discussions. What user stories do come up can be completed remarkably quickly in our Electron stack with stability and quality too.

Re:Insider Build of VSCode for Windows/ARM64 by jcelerier on Friday May 29, 2020 @12:04PM (#23351646)
> True, but remember when many apps were not made for Linux, because it was not worth it? With Electron at least we have apps like VSCode for Linux too. Not ideal, but better than nothing.

and yet on Linux you had already the entirety of debian already available in native ARM64 years ago, which is a lot more than what you have on windows ARM64.

Re:Insider Build of VSCode for Windows/ARM64 by danieldk on Friday May 29, 2020 @11:29AM (#23351115)
But then unfortunately, even then some companies do not provide their Electron app on Linux e.g. Notion.

Though, it is usually easy to rewrap the version from another platform using Electron on Linux. E.g. writing a Nix derivation for Notion on Linux isn't much more work than for any other Electron application:

https://github.com/danieldk/nix-packages/blob/master/pkgs/no...

(Not tested more recently though, I don't use Notion a lot.)

Re:Insider Build of VSCode for Windows/ARM64 by smhmd on Friday May 29, 2020 @11:49AM (#23351407)
> But then unfortunately, even then some companies do not provide their Electron app on Linux e.g. Notion.

Add Figma to the mix. Since I moved to Linux exclusively, I've abandoned plugin authoring. Granted, there is a Linux-Figma[0] app, but every time I try it, it doesn't take long before something essential (e.g. fonts) breaks.

[0]: https://github.com/Figma-Linux/figma-linux

Re:Insider Build of VSCode for Windows/ARM64 by paxys on Friday May 29, 2020 @07:02PM (#23356617)
I feel like even more of a dinosaur then because "native" to me means compiled for the target processor architecture vs being emulated (which is exactly what this is about).
Re:Insider Build of VSCode for Windows/ARM64 by SahAssar on Saturday May 30, 2020 @06:25AM (#23360035)
Electron is running natively. What is running in electron is not.