News for hackers. Stuff that matters.
Re:I can't stand using VSCode so I wrote my own by Pannoniae on Sunday April 21, 2024 @11:05AM (#40106309)
To be fair, it's not hard to outperform something written in Electron with native code with a factor of ten :) Anyway, this is really impressive, so good job!
Re:I can't stand using VSCode so I wrote my own by newaccount74 on Sunday April 21, 2024 @11:13AM (#40106364)
Opening a 1GB JSON file and scrolling, editing, and keeping syntax highlighting correct is something that even native text editors struggle with.
Re:I can't stand using VSCode so I wrote my own by Pannoniae on Sunday April 21, 2024 @11:40AM (#40106610)
Notepad++ is a champ at doing that, as long as it has line breaks. (It chokes with massive single-line files like any other editor)
Re:I can't stand using VSCode so I wrote my own by zo1 on Sunday April 21, 2024 @01:04PM (#40107310)
Love Notepad++ to bits, but it chokes on just 20MB of nicely-formatted XML if you have syntax highlighting on. Disable that (if you can figure out how), and you're golden.
Re:I can't stand using VSCode so I wrote my own by arghwhat on Sunday April 21, 2024 @11:31AM (#40106526)
Native code does not replace efficient algorithms.

V8 can also JIT JS to something that runs fast, although the extra layers of abstraction between web code and platform interfaces do not help, and V8 can only do so much.

Re:I can't stand using VSCode so I wrote my own by Alifatisk on Sunday April 21, 2024 @11:26AM (#40106485)
Sublime have opened way larger files with no issues for me
Re:I can't stand using VSCode so I wrote my own by eyelidlessness on Sunday April 21, 2024 @11:56AM (#40106729)
I’ll second this. And to emphasize, so it’s not just a useless “+1 comment”: I never cared for Sublime as an editor, despite some effort to appreciate it when it was at its popularity peak. But it instantly became, and remained, my go to editor for working with huge files.
Re:I can't stand using VSCode so I wrote my own by datavirtue on Sunday April 21, 2024 @11:49AM (#40106669)
I had to buy UltraEdit which is capable of handling 10GB files (the size in my case). Nothing else that I tried would work. Of course, this was ten years ago. I havent had to work with very large text files since then.

It was able to perform search and replace at an acceptable and responsive pace, nearly instant.

Re:I can't stand using VSCode so I wrote my own by al_borland on Sunday April 21, 2024 @01:30PM (#40107506)
With a native editor, like Sublime, it may take a while to become functional, but it will eventually do what I want.

With VS Code, loading in a big file usually crashes it.

Thankfully I don’t have to deal with this as much as I used to.

Re:I can't stand using VSCode so I wrote my own by Osiris on Sunday April 21, 2024 @11:11AM (#40106350)
One of the benefits of Electron is being able to build the same app for multiple operating systems. When writing GUI app using native OS calls, how does one make sure the code is compatible with all three major operating systems?
Re:I can't stand using VSCode so I wrote my own by generalk on Sunday April 21, 2024 @11:49AM (#40106668)
Folks did this plenty prior to Electron, either by using cross-platform GUI toolkits (GTK and Qt both run on Windows, Java's been doing this forever with Swing and JavaFX, etc), or by writing GUIs for multiple toolkits/OSes that work with the same/similar core application logic.

Electron makes it easier to build cross-platform apps, and certainly cheaper, but it's not like it's the only way to do it.

Re:I can't stand using VSCode so I wrote my own by titusjohnson on Sunday April 21, 2024 @11:30AM (#40106516)
Typically by reading docs and writing compliant code.
Re:I can't stand using VSCode so I wrote my own by dymk on Sunday April 21, 2024 @11:41AM (#40106614)
Were it only that easy
Re:I can't stand using VSCode so I wrote my own by pineaux on Sunday April 21, 2024 @06:57PM (#40109948)
Tell me how its fundamentally not this easy? Its just not really "easy" to write correct compliant code.
Re:I can't stand using VSCode so I wrote my own by levodelellis on Sunday April 21, 2024 @02:44PM (#40108121)
I'm the author. I had experience with SDL and wrote a test to confirm it still performs well (I never tried it on linux). It did, SDL has been ported to just about every OS. I have some OS specific code for windows but not much. The only OS specific things were executing a binary + stdio + closing it and slight differences in socket code (mostly used for DAP). C++ now has filesystem support so I didn't need any OS specific code for that
Re:I can't stand using VSCode so I wrote my own by Marsymars on Sunday April 21, 2024 @11:40PM (#40111245)
This is an important consideration for the developer/publisher, but less so for the user.

I use all three major operating systems on a daily basis, and typically preferentially prefer single-OS apps, as I can typically expect them to be more performant and to better follow a platform's UI conventions.