5 ms·
> The same reason thousands of programmers use Vim or Emacs Vim/emacs give a better experience though: they work in a terminal/over ssh and they are FAST and l
by dkersten 9y ago
> The same reason thousands of programmers use Vim or Emacs
Vim/emacs give a better experience though: they work in a terminal/over ssh and they are FAST and lightweight (memory use). Atom has neither of these properties.
- kornish 9y agoThat's not false – but it ignores the point the grandparent was making, which is that minimizing switch cost is valuable to some.
- dkersten 9y agoSwitch-cost between what? Vim has worked pretty well for me for all programming languages I've used and on all platforms I've used. I reread grandparents comment and I'm a bit unsure what you are referring to exactly.
- kornish 9y agoI'm just saying that you're hijacking the point (that using a single editor, rather than switching between IDEs, is useful) and replacing it with a competition for size and speed. Yes, vim and emacs are lighter. Does that devalue Atom's consistency? No. I say this as an avid Emacs user.
- dkersten 9y agoAh, I understand now. I guess my point was that since vim/emacs already exist and have advantages, that use case for atom seems a bit unnecessary, but of course in reality many people don't use vim/emacs due to the learning curve, so I suppose the point is irrelevant.
- komali2 9y agoI've been wondering if there's a way to use a more graphical editor over SSH, such as vscode or sublime. I get that I could just "learn VIM" but I already know a shitload of hotkeys for vscode/sublime (they're easily transferred), so I'd rather just use them.
- city41 9y agoYou can open the file via SSH but use a local copy of VSCode/Sublime: https://codepen.io/ginfuru/post/remote-editing-files-with-ssh https://codepen.io/ginfuru/post/remote-editing-files-with-ss...
- anderspitman 9y agoYou could do X forwarding
- josteink 9y agoElectron apps are terrible with X forwarding. Even locally, on your own LAN. It's all rendered bitmaps getting sent over, causing much lag and terrible performance. Not recommended.
- fooker 9y agoSurprising, considering it's origin from web tech.
- oneweekwonder 9y ago> Surprising Or not, your forcing rendered html/dom over the x window protocol. What web tech is in this stack? Only your rendered app on a gtk/qt/wtk(not sure what atom is using, etc) window. Nothing on the network side.
- oneweekwonder 9y agommm I wanted to edit my post but it seems to get locked after time. So just adding a comment with some info and corrections on the topic. - Atom on linux uses GTK+[0]. - GTK+ uses XLib[1]. - From the wikipedia link "Xlib makes the client synchronous with respect to replies and events." so much for js being async ;) - Do anybody know how workable chrome or even firefox is over the x window protocol? [0]: https://electron.atom.io/docs/development/build-instructions-linux/ https://electron.atom.io/docs/development/build-instructions... [1]: https://en.wikipedia.org/wiki/X_Window_System_core_protocol#Xlib_and_other_client_libraries https://en.wikipedia.org/wiki/X_Window_System_core_protocol#...
- ambivalence 9y agoWell, I am editing remote code over SSH with Atom and Nuclide right now. It's been possible for a long time. Now you can even run a remote debugger on your Python program.
- dkersten 9y agoOk, I take that back then. Vim/emacs only have a weight/speed advantage then. I do, however, find it useful that I can be ssh'd into a machine, doing stuff in bash, and I can fire up vi. I suppose that's a separate discussion though.
- gkya 9y agoEmacs has Tramp, which lets you edit files, manipulate directories (with dired), and do many other stuff you normally do on files seamlessly on remotes of all kinds, including ssh. If you're using emacs like vi where you start it up for each file and close when you save, you're extracting no value out of it, just use Zile.
- foldr 9y agoThis feature is somewhat less useful with the advent of sshfs.
- gkya 9y agoIt depends on what you do with it, as it does more than ssh. For example there's /sudo:: with which you can edit local files as other users. Also I have links to remote files in my Org files, and if I have ssh-agent running (which I always do), all I have to do to go to that file/directory is to click the link.
- Touche 9y agoMy vim process comes to a crawl if I forget to turn off syntax highlighting before opening large files. So I disagree.
- dkersten 9y agoThat has not been my experience with vim (over the past ~12 years). I don't run a huge amount of plugins, but I do use a few. The only thing I have a noticeable occasional lag with is the parinfer clojure plugin (in neovim, and its more that the plugin lags before applying its changes rather than vim itself lagging - the author does acknowledge that its currently sub-optimal). Syntax highlighting has never caused any issues for me. I wonder why you are having issues... that does sound rather annoying. I was also referring to the typing latency as measured by the benchmarks here: https://pavelfatin.com/typing-with-pleasure/ https://pavelfatin.com/typing-with-pleasure/ As you can see, vim's text input latency is measurably lower than most of the other tested editors on most platforms (zero-latency IDEA seems to beat it in some cases).
- ComputerGuru 9y agoThat’s a broken highlight syntax file. The good ones don’t highlight text until it becomes visible in the buffer. You should bug it if it is reproducible in neovim. The team is highly responsive.
- Touche 9y agoIt happens with large javascript files (bundles). I use this: https://github.com/othree/yajs.vim https://github.com/othree/yajs.vim And my color scheme is: https://github.com/nanotech/jellybeans.vim https://github.com/nanotech/jellybeans.vim Not sure which is at fault (if either).
- ComputerGuru 9y agoYeah, yajs hurts performance. There's actually a disclaimer on that landing page you sent me. Neovim has its own js/json highlighting out of the box and it's pretty crazy fast for me.