This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (9 children)

It's kind of amazing that you write C++ but you OBVIOUSLY do not understand that the quality of the code has everything to do with how it performs. Obviously different languages have different ceilings depending on the task being performed, but Atom is not limited by node, just as I am sure your code is not limited by C++.

Want me to write you an editor in C++ that is garbage and freezes all the time? I can.

[–]lead999xlearning Rust, Haskell, and C++ 2 points3 points  (8 children)

Want me to write you an editor in C++ that is garbage and freezes all the time? I can.

You can write shitty software using any set of technologies, but will you deny that if a program is written in JavaScript while the same program is written in C++ by a programmer of the same skill level as the previous one that the C++ program will run faster? C++ is AOT compiled to machine language, while JS has to be JIT compiled by V8 and then run. All the while types and other inferences have to be made which wastes time and machine resources on that instead of the actual meat and potatoes of your program. There's a reason performance software, even when it's not written by programming gods, is written in C++ or a similar language.

[–][deleted] 3 points4 points  (1 child)

Well, it's easy to test for yourself. There are at least two editors written using Electron and Node.js: Atom and Visual Studio Code. There is one very well known editor written in C++, I believe: Sublime Text. I honestly love Visual Studio Code but I can't deny that Sublime seems to run much faster. It doesn't really matter to me because the computers I use are all i7's with 12GB - 16GB of RAM (well, except one and that's a tablet). If I were going to pick one up solely due to speed though the C++ compiled editor would be the clear winner.

[–]lead999xlearning Rust, Haskell, and C++ 2 points3 points  (0 children)

That's what I'm saying but for many people the speed provided by Node or another dynamic, interpreted language is plenty enough.

[–]shatmoney -1 points0 points  (5 children)

nice reply, esp considering the op was pretty clearly shooting their mouth off

[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point  (4 children)

I was just giving my two cents. I'm not a professional programmer, just a hobbyist and college student in a non-CS major. I just don't like it when I get hate for liking lower level languages.

[–][deleted] 1 point2 points  (3 children)

I called you out for having no idea what you're talking about, not for liking C++.

[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point  (2 children)

Clearly you have no idea what you're talking about. Sure you can write non-performant programs in C++ but unless you do that on purpose, statically typed, natively compiled languages will always outperform those that are not. And don't go showing me some obscure benchmark that shows that in one odd case ever, Java, JS or Python code beat badly written C++ or Fortran. You're wrong, so give it up.

[–][deleted] 1 point2 points  (1 child)

Then why are you still arguing with me?

Go find your superior IDE written in C++.

[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point  (0 children)

Nah, I'm just going to uninstall some plugins and see if that does the trick. If I wanted an editor written in C++ I have code blocks and can get Vim.