Live data from Hacker News

I can't stand using VSCode so I wrote my own

bold-edit.com

31–40 of 186 posts

Re: I can't stand using VSCode so I wrote my own

#31
post #8

Earlier quoted context omitted.

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?

Typically by reading docs and writing compliant code.

Were it only that easy

Re: I can't stand using VSCode so I wrote my own

#32

I use vscode for doing devops-y things (Terraform, OpenTofu, JSON, python, yaml, txt, dockerfiles, etc.) and sometimes the way it bogs down my system drives me bananas. I'll punt to Sublime Text on occasion and use it for a few days, but then start running into papercuts in various places and have to go back to vscode. I so, so wish there was a better way to do this without fucking electron.

Why do you think your issue has anything to do with electron? That sounds like a meme.

It is your drives, no? Does the browser make your system drives work a bunch? Much more likely, it is VSCode running ripgrep (rg in htop/activity monitor) in the background to find symbols in your codebase.

That would be exactly the same regardless of GUI toolkit.

edit: misread "system drives me bananas" as pertaining to "system drives" nvm

Re: I can't stand using VSCode so I wrote my own

#33

I use vscode for doing devops-y things (Terraform, OpenTofu, JSON, python, yaml, txt, dockerfiles, etc.) and sometimes the way it bogs down my system drives me bananas. I'll punt to Sublime Text on occasion and use it for a few days, but then start running into papercuts in various places and have to go back to vscode. I so, so wish there was a better way to do this without fucking electron.

Paper cuts like what? Deficiencies in the syntax plugins?

Re: I can't stand using VSCode so I wrote my own

#34
post #6

No offense, but who made this? How did the submitter find this? The Download page has a name but a Google search doesn’t return much. Not that anyone would run a binary just like that, but I do find it interesting.

Hey, I'm OP. I did not write this blog post. It was an interesting one from r/programmers that I felt worth cross-posting to HN. Not sure if there's a clear way to indicate that in the title... Here's the original reddit post: https://www.reddit.com/r/programming/comments/1c8yhll/i_cant...

ok, thanks

Re: I can't stand using VSCode so I wrote my own

#35
post #8

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!

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?

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

#36

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!

Opening a 1GB JSON file and scrolling, editing, and keeping syntax highlighting correct is something that even native text editors struggle with.

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

#37
post #14

VSCode is slow? I mean, for 7 years? Somewhere around early 2017 things started to get out of hand and VSCode was super hyped. To the point 99% on HN was saying it was very fast. Initially ( Pre 2017 ) it was compared to Atom which means the bar was low. And then somehow people start claiming it was as fast as Sublime or they see no difference. As someone mentioned down below, both Lapce and Zed is designed with spee…

It's fast enough for me to not notice any slowness. I switched to it from JetBrains IDEA because it was literally causing seconds of delays when scrolling / entering code during heavy indexing in large projects. I never noticed anything of the sort in vscode, even if extensions are doing a lot of background work I don't notice any significant impact in the UI, I can always scroll and type without interruption.

I tried out zed, I don't really find it noticeably faster, although I'm sure it is! I guess there are people who are more sensitive to this sort of thing but for me it's really completely fine.

Re: I can't stand using VSCode so I wrote my own

#39

I use vscode for doing devops-y things (Terraform, OpenTofu, JSON, python, yaml, txt, dockerfiles, etc.) and sometimes the way it bogs down my system drives me bananas. I'll punt to Sublime Text on occasion and use it for a few days, but then start running into papercuts in various places and have to go back to vscode. I so, so wish there was a better way to do this without fucking electron.

Why do you think your issue has anything to do with electron? That sounds like a meme. It is your drives, no? Does the browser make your system drives work a bunch? Much more likely, it is VSCode running ripgrep (rg in htop/activity monitor) in the background to find symbols in your codebase. That would be exactly the same regardless of GUI toolkit. edit: misread "system drives me bananas" as pertaining to "system dr…

Its not electron, but abusing the webview rendering for realtime software'

Re: I can't stand using VSCode so I wrote my own

#40

Earlier quoted context omitted.

Why do you think your issue has anything to do with electron? That sounds like a meme. It is your drives, no? Does the browser make your system drives work a bunch? Much more likely, it is VSCode running ripgrep (rg in htop/activity monitor) in the background to find symbols in your codebase. That would be exactly the same regardless of GUI toolkit. edit: misread "system drives me bananas" as pertaining to "system dr…

Its not electron, but abusing the webview rendering for realtime software'

[deleted]
Post reply on HN