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.
I can't stand using VSCode so I wrote my own
31–40 of 186 posts
Re: I can't stand using VSCode so I wrote my own
#32I 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.
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
#33I 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.
Re: I can't stand using VSCode so I wrote my own
#34No 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...
Re: I can't stand using VSCode so I wrote my own
#35To 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?
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
#36To 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.
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
#37VSCode 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…
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
#38Re: I can't stand using VSCode so I wrote my own
#39I 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…
Re: I can't stand using VSCode so I wrote my own
#40Earlier 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'