News for hackers. Stuff that matters.
Re:Ask HN: What technical decisions make VS Code a better El... by akmittal on Friday July 28, 2017 @12:20AM (#14871935)
1. They are doing things lazily. Like only render(and check for errors) the part which is inside viewport first.

2. They are not creating layers of JavaScript. They are using native code wherever necessary.

3. VS code has more control over what extensions can do so that they don't adversely affect the performance.

Re:Ask HN: What technical decisions make VS Code a better El... by pitaj on Friday July 28, 2017 @12:19PM (#14875375)
I'm not sure where you're looking, but as far as I can tell, VS Code uses practically zero native code. When looking to the git repository, all I see is TS, JS, CSS, and some misc stuff.
Re:Ask HN: What technical decisions make VS Code a better El... by jplatte on Friday July 28, 2017 @01:09PM (#14875763)
I know they use ripgrep¹ for their project-wide search feature. I'd imagine that the other native code would also be separate processes whose output is parsed, or in C / C++ / Rust libraries that live in their own repos and that they use via bindings which would themselves only be JS / TS code (and might live in separate repos as well).

¹: https://github.com/BurntSushi/ripgrep

Re:Ask HN: What technical decisions make VS Code a better El... by nimish on Friday July 28, 2017 @08:00AM (#14873576)
They used good engineers and a major part of the spec was that speed matters and is the ultimate feature. So when they used the Monaco component the engineers behind it made sure to prioritize speed and efficiency (it didn't hurt that they could rely on microsofts years of dev tool experience)

Technically they didn't do anything insane, the real trick is to measure test and improve metrics they care about and not let it become slow.

Re:Ask HN: What technical decisions make VS Code a better El... by type0 on Friday July 28, 2017 @06:48PM (#14878190)
It's based on https://github.com/Microsoft/monaco-editor

But there's also another promising project that uses monaco https://github.com/theia-ide/theia

Re:Ask HN: What technical decisions make VS Code a better El... by samblr on Saturday July 29, 2017 @02:14AM (#14879806)
Vs code had its share of performance problem. A while ago there was a hog caused by blinking cursor in editor.
Re:Ask HN: What technical decisions make VS Code a better El... by roryisok on Saturday July 29, 2017 @08:42AM (#14880928)
I got downvoted for saying this last time but I think that was only on mac
Re:Ask HN: What technical decisions make VS Code a better El... by wodenokoto on Friday July 28, 2017 @02:00PM (#14876183)
While we are at it, can we compare those approaches to native web app with that of R-studio?

I was quite surprised to see the right-click menu item "inspect element" open up a DOM-inspector of the entire app! I had not suspected it to be like that.

Re:Ask HN: What technical decisions make VS Code a better El... by dsschnau on Friday July 28, 2017 @03:12PM (#14876715)
On that note, I haven't heard much about Atom in a long time. Is anyone still using it?
Re:Ask HN: What technical decisions make VS Code a better El... by ezekg on Friday July 28, 2017 @04:11PM (#14877152)
A couple weeks ago I switched from Atom to VS Code due to the abysmal performance of Atom. I wish I had switched earlier.
Re:Ask HN: What technical decisions make VS Code a better El... by w4tson on Saturday July 29, 2017 @06:09AM (#14880463)
I find both sluggish compared to sublime text. I flipping love that tool.
Re:Ask HN: What technical decisions make VS Code a better El... by roryisok on Saturday July 29, 2017 @08:44AM (#14880937)
Sublime is definitely the king of start times. Vscode feels like more like a full IDE though
Re:Ask HN: What technical decisions make VS Code a better El... by seattle_spring on Saturday July 29, 2017 @11:44AM (#14881720)
Everyone at my company uses it with Nuclide, which still seems to be the best IDE combo for codebases that use Flow.
Re:Ask HN: What technical decisions make VS Code a better El... by samueldavid on Thursday July 27, 2017 @10:57PM (#14871594)
I think it all comes down to the developers abd how they optimize their codebase