r/programming • • Dec 05 '15

Microsoft Edge’s JavaScript engine to go open-source

https://blogs.windows.com/msedgedev/2015/12/05/open-source-chakra-core/
1.6k Upvotes

504 comments sorted by

View all comments

Show parent comments

22

u/Himrin Dec 05 '15

I definitely do not think that there is a comparison for everything that VS does for all of its supported languages vs VSCode.

No support, other than intellisense and completion for C#. No debugging nor compiling for C# either. Not to mention the lack of UI creation and rendering.

12

u/Eirenarch Dec 05 '15

Has it ever occurred to you that maybe VS Full is so good because they didn't have to bother porting to different platforms and could focus on building the best experience with the best technologies even if they were Windows specific?

14

u/[deleted] Dec 05 '15

Or that VS full is so good because they had years to work on it while VS Code has been released in April and only reached v0.10 recently?

→ More replies (4)

16

u/berkut Dec 05 '15

Yep. Doing cross-platform development well is hard - especially for large GUI applications.

Even if you end up using Qt or something, there's always issues with event loops working differently on different platforms, and you having to write custom filter code to deal with that (mostly OS X in that particular case).

Then for reading files you've got differences between Windows and OS X/ Linux for character encoding and the way files get flushed to disk / cached at OS level...

You've got different default stack sizes between platforms so bugs crop up in different ways on different platforms.

If you're doing 3D stuff (so OpenGL / D3D) you've got to deal with fairly crappy OS X drivers in general for graphics (it's got better recently, but it's still a mess), the open source drivers on Linux generally are weird, and only the proprietary NVidia stuff is actually any good for high end (we're talking VFX level here) stuff.

And then when you've got three different builds of an app for the three different platforms, you've got to QA/Test it three times, and automating tests of GUI stuff is really hard so it's mostly manual work.

The alternative is a core C++ library, which on each platform is wrapped in the platform's natively-written specifically-built GUI. And that involves at least two different languages (maybe 3 if you use C# for Windows), with completely different GUI toolkits.

5

u/Eirenarch Dec 05 '15

And you didn't even mention performance.

26

u/[deleted] Dec 05 '15

I doubt that's why. I think the reason is just that an impressive amount of engineering by skilled programmers and designers went into it. It's not like microsoft doesn't hypothetically have the resources to make a product just as good that's cross platform, they simply lack a reason to do so. Office didn't get any worse when they started coming out with that for mac

16

u/installation_warlock Dec 05 '15

"Office for Mac" is not a build of "Office for Windows". It's a separate product and it doesn't have feature parity with the Windows version.

3

u/Throwaway_Kiwi Dec 06 '15

It's also a bit shit. I have to deny it access to my keychain five times before it will start (allowing it access just becomes an infinite loop of keychain access dialogs), and I've had Excel 2016 crash on me twice so far, losing my work since last save, and I only installed it two weeks ago.

3

u/cc81 Dec 05 '15

It would be a huge amount of work and up to now most of the things you produce with it would not even compile on other platforms.

2

u/MachinTrucChose Dec 06 '15

C'mon, you're a developer (presumably). You know we work in layers. 99% of the code will be platform-agnostic, and the entire thing would work fine if the platform-specific layer(s) underneath is (are) updated.

Most of VS is written in C#. And now .NET is crossplatform. WPF still isn't, but that could be fixed as well. If Qt can do it, so can M$ (I don't use this name in a negative way, but as an indicator that they have the financial resources to achieve it).

4

u/cc81 Dec 06 '15

.NET is not cross platform. A subset is. Their c++ compiler is not.

Have you ever ported a non trivial c++ application to another operating system?

1

u/MachinTrucChose Dec 06 '15

C++ is a native language, closely tied to architecture/memory/etc. .NET OTOH was designed to be a portable VM runtime. That's how they got .NET Core working crossplatform within less than a year, with only 10 people working on it. Suddenly hundreds of millions of .NET LOC can run on OSX and Linux.

Your application code is (should be) platform-agnostic. Especially for something high-level like an IDE, we're not talking about drivers here, look at how all of Jetbrains' Java-based IDEs are fully crossplatform. It's up to the layers beneath you to fix their platform-specific code to let your application work on other platforms. For Visual Studio, now that .NET Core (including filesystem, network, etc.) is crossplatform, the only thing left to port is the WPF layer.

2

u/cc81 Dec 06 '15
  1. Visual Studio itself is written in C++.

  2. Visual Studio is not only supporting .NET but also their C++ compiler.

  3. .NET Core is FAR from the whole .NET framework. You have no support for winforms either nor things like Entity Framework (only the new rewritten version that is not released yet)

1

u/MachinTrucChose Dec 06 '15

I don't know about VSC++, but it's my understanding almost everything .NET-related is written in a .NET language nowadays. Because that's what makes sense. https://github.com/dotnet/roslyn/tree/master/src https://github.com/dotnet/roslyn/blob/master/src/EditorFeatures/CSharp/Formatting/CSharpEditorFormattingService.cs

I know UI (WPF/WinForms) isn't multiplatform yet, I said so, but if Qt and Java-whatever can do it, so can MS. WPF is already an abstraction layer with very little Windows-specific code (ie taskbar, jumplists, which in Qt are optional Windows-only classes), they just need that abstraction layer to be implemented on other platforms. It would only be the outer-most layer that needs fixing.

6

u/Eirenarch Dec 05 '15

You realize Office for Mac is a separate product. Certainly MS could make another Visual Studio for Mac that is just as good but if they have to share the same codebase it would be hard.

0

u/[deleted] Dec 05 '15

[deleted]

→ More replies (8)

1

u/Throwaway_Kiwi Dec 06 '15

Has it ever occurred to you that maybe VS Full is so good because they didn't have to bother porting to different platforms

As a happy user of Intellij IDEA, which runs on OS X, Windows and Linux, that's a pretty weak excuse.

1

u/Eirenarch Dec 06 '15

IDEA is great but still worse than Visual Studio especially in terms of performance and feature discoverability.

1

u/Throwaway_Kiwi Dec 07 '15

ctrl + shift + A in IDEA searches all possible actions in the IDE. In terms of performance? You'd have to expand. Indexing your project can be slow, yep, because it's indexing everything, all your dependencies and the dependencies of your dependencies - it does so to provide (IMO) superior code intelligence.

1

u/Eirenarch Dec 07 '15

But to search for an action you have to know that the action exists and probably how it is called.

1

u/Throwaway_Kiwi Dec 07 '15

you have to know that the action exist

No, you just have to want to know if it exists.

probably how it is called.

IDEA uses reasonable naming for things, it's fairly straightforward. None of this "Team" means "Version Control" crap. Search for "git", you find the Git stuff. Want to change a font? Search for "font" and you'll see all the preferences, menu items etc. that contain the word font.

1

u/Eirenarch Dec 07 '15

Even "want to know if it exists" is inferior to Visual Studio's "it helps without user action or is in the context menus". For example in Visual Studio when I want to change an overload or am just exploring overloads while writing code I can delete an argument and VS will pop the intellisense for argument. In Java IDEs it is super frustrating I have to delete the whole call. I've been told ctrl+shft+space or something similar will display the autocomplete but I cannot test it now. But for a couple of years casual programming (coursera algorithm courses for example) I thought you just can't do that.

1

u/Throwaway_Kiwi Dec 08 '15

For example in Visual Studio when I want to change an overload or am just exploring overloads while writing code I can delete an argument and VS will pop the intellisense for argument. In Java IDEs it is super frustrating I have to delete the whole call

Check the refactor menu in IDEA. Safe Delete, ctrl + delete, which is the same command for everything you might delete, classes, packages, fields, variables, parameters, methods. For your use case, it will propagate the change up your overload chain and then ask you approve the refactors - it will also advise you of anything it can't refactor.

1

u/Eirenarch Dec 08 '15

Great but this is not what I am talking about. I am talking about calling a method with multiple overloads and deciding I want another overload then deleting an argument in order to replace it with another. In this case the autocomplete is numb (at least was when I last tried). Now again IDEA is great IDE but I am just pointing out to little things that make VS feel more painless. If I was working full time with IDEA I would certainly learn the tricks and there are tricks to learn with VS but the main workflow with VS comes more naturally because the main features (we agree that argument intellisense is a core feature?) just do work for you even if you didn't know they existed let alone the shortcut.

1

u/theonlylawislove Dec 05 '15

You can debug ASPNET 5 projects. You can debug node as well. Expect it to get even better. It will be VS, but cross platform.

→ More replies (2)