News for hackers. Stuff that matters.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by azangru on Thursday November 10, 2022 @08:40AM (#33546212)
It is one thing to port software, initially created in a different language, to webassembly. The benefit is obvious, because it can now be distributed over web.

For VSCode, the first question to ask would be, why is it built with web technologies in the first place.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by 3836293648 on Thursday November 10, 2022 @08:58AM (#33546466)
VSC is web because it was created for the web. It was turned into a desktop program later
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mcluck on Thursday November 10, 2022 @09:02AM (#33546529)
That's not true. It was essentially forked from Atom which was built as a desktop application first. It just so happens that Electron makes it easy to run just about anywhere and web tech is arguably the easiest to use for building UIs
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by lost_tourist on Thursday November 10, 2022 @09:39AM (#33547081)
If not easy then certainly most widespread and "common" amongst the current developer population
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by magnio on Thursday November 10, 2022 @10:11AM (#33547609)
The work on VSCode began before Atom appeared. This talk by Erich Gamma about the history of VSCode is very interesting: https://learn.microsoft.com/en-us/events/visual-studio-code-...

When Erich Gamma joined the Visual Studio team in 2011, he set on creating a coding platform for the web, starting with the Monaco editor. This was followed by efforts to bring an IDE to the browser such as Monaco Workbench and Visual Studio Online IDE. However, those didn't attract many users, so the team decided to pivot to the desktop with Project Ticino using Electron by GitHub, and thus born VSCode as we know today. Arguably, this pivot has been wildly successful, from which blossomed many nice technology such as LSP, RDP, and remote coding. It is only natural that they now work on bringing VSCode back to the browser, completing the most transformative revolution in code editor for the past 10 years.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mcluck on Thursday November 10, 2022 @11:57AM (#33549459)
Huh, my mistake. I guess I misremembered it
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by int_19h on Thursday November 10, 2022 @12:37PM (#33550154)
RDP is the Windows Remote Desktop Protocol that was in use for decades before VSCode; VSCode's own remoting doesn't use it.

I'd say that, in addition to LSP, the other big thing that came out of VSCode is DAP: https://microsoft.github.io/debug-adapter-protocol.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by magnio on Thursday November 10, 2022 @12:51PM (#33550354)
My bad, you're right. I confused myself thinking RDP means Remote Debugging Protocol.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by fizfaz on Thursday November 10, 2022 @10:12AM (#33547625)
IIRC It was "web first": See the presentation from Erich Gamma: https://learn.microsoft.com/en-us/events/visual-studio-code-... approx. minute 6.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by pjmlp on Thursday November 10, 2022 @10:22AM (#33547754)
Sorry but Atom lovers have an habit to distorce facts.

"VS Code an overnight success...10 years in the making with Erich Gamma"

https://learn.microsoft.com/en-us/events/visual-studio-code-...

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mcluck on Thursday November 10, 2022 @11:55AM (#33549408)
Bold of you to assume that I am an Atom fan. My understanding was the Atom happened then Electron was extracted as the core then VS Code was built on top of that to fill the gap. Given that VS Code only moved in to the browser very recently, it didn't make sense to me to claim it was built for the web.

Edit: faulty memory at it's finest. I was wrong

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by pjmlp on Thursday November 10, 2022 @12:38PM (#33550170)
Sorry about that, it just so happens it is common meme in Atom community to bring this up.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mhd on Thursday November 10, 2022 @11:31AM (#33548957)
> web tech is arguably the easiest to use for building UIs

...for an ecosystem full of web developers.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mcluck on Thursday November 10, 2022 @11:53AM (#33549359)
I really want native apps to be as simple to work with for UIs but it's just not. Qt is great but still more cumbersome and I'm not aware of anything better that gets you close to the development speed and flexibility given by HTML and CSS.

Very honestly: please let me know if there is anything. I really would love to build more native apps without fighting the UI system

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mhd on Thursday November 10, 2022 @12:35PM (#33550118)
What do you mean, fighting the UI system? Non-native looking UI elements? If that's the case, I have to agree with you, actually. For web-like desktop GUIs, web technologies seem to be the fastest vehicles, unless someone releases an updated Display PostScript…

Other than that, I've had way faster dev experiences in Delphi, Cocoa, SmallTalk and Tk. Mostly because you don't have to reinvent the wheel.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by mcluck on Thursday November 10, 2022 @02:08PM (#33551478)
That is exactly what I mean. There's benefits to using native UI elements but they really limit your creativity. It's also difficult if you're building something for multiple platforms but you want to make sure that you have a consistent experience.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by odo1242 on Thursday November 10, 2022 @09:21AM (#33546801)
VSCode was build with web technologies because this allows the “Remote” feature to work – by using a client and server internally, you can put the server on a different device and transparently develop on that device as long as there is a suitable method of forwarding internet traffic. (This was the intent for the IDE from the beginning.)
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by gmfawcett on Thursday November 10, 2022 @10:10AM (#33547591)
That doesn't follow. Client/server architectures existed long before the Web did.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by whatwherewhy on Thursday November 10, 2022 @12:32PM (#33550074)
It starts to follow as soon as one of the participants are using VSCode in their browser.

It's perfect for example for programming lesson. A way to provide the students with a fully working environment available immediately via 1 click on a link, guaranteed to work on any platform - even iPads.

Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by gmfawcett on Thursday November 10, 2022 @12:35PM (#33550111)
No, I mean that remoting doesn't depend on Web technologies. (Not even the VSCode remoting implementation does, AFAIK.) So it doesn't follow from "VSCode does remoting" that VSCode is built on that stack.
Re:Try TeXmacs in your Browser via WebAssembly (Mogan Fork o... by whatwherewhy on Thursday November 10, 2022 @12:38PM (#33550164)
I get what you mean. I am saying remoting becomes much more useful if the client automatically works on every platform including tablets and even mobile phones.