News for hackers. Stuff that matters.
Re:What's the Future of IDEs? by the_gipsy on Wednesday November 24, 2021 @04:28AM (#29328306)
Personally, I have gone from IDEs to vim + language-servers. I get all the benefits of an IDE that I want, and no useless clutter of features I never use or are better solved in CLI.

One reason is that IDEs' vim-plugins never work quite well. Another one is speed and resource usage. Resource-usage may be solved with thin clients, but not speed. Also I don't want to give up control to some platform.

Re:What's the Future of IDEs? by aww_dang on Wednesday November 24, 2021 @04:47AM (#29328416)
Agreed.

Less is more. Tools should do one thing and do it well. I don't want to install a huge package and dependencies just to get one feature. Generally feel pessimistic about the "future" of IDEs. The phrase brings bloat to mind.

If I need the feature, let me add it to emacs. In most cases someone else has already provided a config.

Re:What's the Future of IDEs? by The_Colonel on Wednesday November 24, 2021 @06:14AM (#29328858)
> If I need the feature, let me add it to emacs. In most cases someone else has already provided a config.

That sounds like a good approach when you need 5 features. But for development the number is probably in the hundreds and I have no time to try to manage all that.

Besides many features are simply not available for editors like emacs. As an example, data flow analysis warns you about logical mistakes in your code (e.g. dereferencing nullable variable without a check first). This happens as you type, the closest you can get without an IDE is probably running it on some static analysis tool in your CI => getting feedback an hour later.

Re:What's the Future of IDEs? by suchar on Wednesday November 24, 2021 @10:40AM (#29331026)
I agree. Even more: I saw vim users who manually edited dozens of files which could be done by running inspection by name on the entire project in IntelliJ. Even (questionably) superior text editing capabilities of vim won’t help here.

I think many vim/emacs users are not aware of the functionality of modern IDEs and development speed is mostly defined by text editing speed. Sadly, many users of sophisticated IDEs also are not using these functions, so the experienced vim user will likely be more performant than inexperienced IDE user.

Re:What's the Future of IDEs? by titaniczero on Wednesday November 24, 2021 @11:20AM (#29331583)
As long as your LSP server support it, you can rename it with LSP and it's the same than your rename function in IntelliJ on Neovim. Actually in most languages I use the same LSP server than vscode.

I switched from Vscode/Intellij to Neovim +1 year ago and I couldn't be happier. I get why Neovim/Vim/Emacs is not for everyone tho.

Re:What's the Future of IDEs? by suchar on Wednesday November 24, 2021 @12:20PM (#29332430)
Well, this is exactly what I meant: you need to know your tools. Rename is very basic functionality. What makes real difference is, for example, automatic removal of unused variables/classes (quickly search for all occurrences, review the list, and then apply). Or rewrite some deprecated construct with a new one. Or structural search and replace (works on a code structure, not text).

There is way more to a fantastic language support in an IDE than symbol rename.

Re:What's the Future of IDEs? by titaniczero on Wednesday November 24, 2021 @02:04PM (#29333787)
I mean, all the features you're mentioning here are part of the LSP server, in the future I think this will be even more consistent across editors because the new languages like Go, Rust, etc. provide better integration tools and LSP servers so the IDEs and editors just use this server instead of implementing one for each language by themselves. If you use the same LSP it will be the same more or less but yeah, the average IDE user doesn't even know what is LSP because they don't need to.

This is similar to MacOS/Windows vs Arch Linux. If you love building and tweaking things, custom builds to suit your needs, knowing every tool that is present in your editor and/or extending it, terminal editors and arch linux is for you, if you prefer something pre-configured that just works out of the box then IDEs and MacOS/Windows is way better ofc. But I don't think that we, the vim/emacs/neovim users, stick to our editors because we are not aware of the capabilities of other IDEs. We are very aware, we are very advanced users in most cases.

Re:What's the Future of IDEs? by smitty1e on Wednesday November 24, 2021 @04:31AM (#29328325)
https://www.spacemacs.org/ is the vim+emacs dark side. [resperator sounds]
Re:What's the Future of IDEs? by kolme on Wednesday November 24, 2021 @04:53AM (#29328450)
I've given Emacs a handful of good tries, but it always lets me down. I've tried out "vanilla", Spacemacs and Doom (the last one being my favorite so far), but it's not working for me. I keep going back to good old Vim.

For example, when I was learning Clojure I used Doom Emacs for a few months, but gave up because:

- Emacs is slow. There's no way around that. It's even slower than VSCode or other IDE-ish editors. If you're used to Vim speeds, that's pretty annoying.

- The Vim keybindings are not available everywhere, for example in some plugins you would fall back to pinky-breaker, wrist punishing Emacs standard keybindings.

- There's some uncanny valley where keybindings are mostly like Vim but you have constantly paper cuts from small differences here and there, among the occasional Emacs-mode fallback.

Don't take me wrong, I can see how Emacs is a great editor, but for me, it's way too late it seems. Seems like I'm going to keep on vimming until the end.

Re:What's the Future of IDEs? by krageon on Wednesday November 24, 2021 @05:37AM (#29328675)
> Emacs is slow. There's no way around that.

If you really want to fix it, running the nativecomp version solves that issue.

Re:What's the Future of IDEs? by kolme on Wednesday November 24, 2021 @07:22AM (#29329269)
Thanks, I'll look into it if I ever give Emacs another try.

Which maybe I will, because I hate Vimscript.

Re:What's the Future of IDEs? by ckolkey on Wednesday November 24, 2021 @10:42AM (#29331047)
Neovim has first class Lua support, so you can have vim without the viml
Re:What's the Future of IDEs? by titaniczero on Wednesday November 24, 2021 @11:11AM (#29331439)
I think you would love Neovim
Re:What's the Future of IDEs? by melling on Wednesday November 24, 2021 @06:26AM (#29328907)
Emacs ran on hardware from the 1980’s. How can it be too slow on modern hardware?
Re:What's the Future of IDEs? by krageon on Wednesday November 24, 2021 @12:11PM (#29332332)
> How can it be too slow on modern hardware?

It can be, because it is :) If you want a really technical explanation, you can profile the application. If that is too much work, I'll generalise and say that the tendency for the UI to lock when performing CPU heavy computations makes it feel slow. Because of the things you will be asking it to do (i.e. solve modern problems), sometimes such computations exist and lead to blocks of 1s or more. That will never feel fast.

Re:What's the Future of IDEs? by kolme on Wednesday November 24, 2021 @07:20AM (#29329249)
It takes a few seconds to boot up, even on my Ryzen 7 machine with 8 cores à 4GHz and 16GB RAM.

Booting up is normally not done so often, but also doing other stuff takes way too long for my taste (over the perceivable 300ms threshold).

> Emacs ran on hardware from the 1980’s. How can it be too slow on modern hardware?

Since then they've added millions of lines of ELisp code. The comparison is moot.

Also we are talking here about Emacs "distributions" (Spacemacs, Doom Emacs) which come with a lot of code, and ELisp is not particularly fast.

Re:What's the Future of IDEs? by erikbye on Wednesday November 24, 2021 @09:07AM (#29330067)
Vanilla Emacs startup time is approx. 1 second. Even with a few packages added, Emacs is ready for use in less time than VSCode.
Re:What's the Future of IDEs? by kubanczyk on Wednesday November 24, 2021 @10:54AM (#29331220)
> Also we are talking here about Emacs "distributions" (Spacemacs, Doom Emacs) which come with a lot of code, and ELisp is not particularly fast.

I've just tried Doom Emacs on 27.1, with the default stuff plus some minor additions, and it starts within 900 ms on my laptop (Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz).

Re:What's the Future of IDEs? by earth_walker on Wednesday November 24, 2021 @01:20PM (#29333238)
It isn't. I still use it once in a while on an old netbook with a couple of gigs of memory, and it flies for any editing task. In comparison, no IDE can even hope to run on that unit.

HOWEVER, a heavily and naively reconfigured emacs, possibly with uncompiled elisp code and copy-pasted invocations that wait for network responses could take ages to open.

If you are finding emacs to be slow, try it vanilla first ("--no-init-file") before deciding it's the program and not your configuration.

Re:What's the Future of IDEs? by kryptiskt on Wednesday November 24, 2021 @09:08AM (#29330079)
Too much single-threading, loads of interpreted code and a display model that doesn't fit well (or really at all) with GUIs.
Re:What's the Future of IDEs? by renox on Wednesday November 24, 2021 @08:35AM (#29329818)
Emacs/Vim are fast, SpaceMacs/SpaceVim are slow. And buggy for spaceVim I would add.
Re:What's the Future of IDEs? by Narishma on Wednesday November 24, 2021 @12:01PM (#29332172)
Does the current version run on 80's hardware? That's not a very useful comparison otherwise.
Re:What's the Future of IDEs? by jmkr on Wednesday November 24, 2021 @11:12AM (#29331453)
Wish I started out with Emacs, but after 10 years of curating my vimrc, I don't have time to replace all my custom plugins/bindings by figuring out elisp.

I liked Doom as a vanilla editor, but I went back to vim.

For what it's worth `vim-iced` is pretty cool for Clojure. I didn't like Fireplace at all.

Re:What's the Future of IDEs? by eulers_secret on Wednesday November 24, 2021 @09:57AM (#29330553)
This is the future of IDEs for me. I get my mailing lists, code, git (magit), and irc all in one!

Org-capture, tramp mode, ansi-term. Tight integration with any workflow. Flycheck, flyspell, it’s all so good.

Much love for emacs. I would refuse to work where I can’t use it. Steep learning curve, but the view is beautiful after the climb.

Re:What's the Future of IDEs? by wing-_-nuts on Wednesday November 24, 2021 @11:42AM (#29331897)
>I have gone from IDEs to vim + language-servers.

I have a love hate relationship with vim. It's super fast and efficient to edit huge quantities of text, but as a tool to really understand a code base? IDEs reign supreme. This is coming from someone who steadfastly refused to use an ide until his last year of college, and then switched, being able to see call hierarchies, having smart completion, etc made my life much easier. I still fall back to the term and vim if I need something quick and dirty.

Re:What's the Future of IDEs? by ibraheemdev on Wednesday November 24, 2021 @01:01PM (#29332973)
What does an IDE give you that (Neo)vim + LSP + Vimspector does?
Re:What's the Future of IDEs? by slaymaker1907 on Wednesday November 24, 2021 @04:49PM (#29335572)
I don't think you can easily do this in vim, but search over the entire code base ignoring anything ignored by git. You can obviously do this with git itself, but it is nice having an interactive list of results.
Re:What's the Future of IDEs? by rodamaral on Thursday November 25, 2021 @12:12PM (#29343034)
You can easily do it and much more in neovim with telescope

https://github.com/nvim-telescope/telescope.nvim

Re:What's the Future of IDEs? by ibraheemdev on Wednesday November 24, 2021 @06:15PM (#29336334)
https://github.com/junegunn/fzf.vim + ripgrep is really great for that. There is also the native `:vimgrep` command.
Re:What's the Future of IDEs? by Epitom3 on Wednesday November 24, 2021 @04:47PM (#29335562)
all those things work in neovim aswell
Re:What's the Future of IDEs? by bayesian_horse on Wednesday November 24, 2021 @04:45AM (#29328407)
I'm quite OK with Visual Studio Code and its vim Emulation. I have used it in one form or another for a few years now.
Re:What's the Future of IDEs? by noiwillnot on Wednesday November 24, 2021 @08:16AM (#29329668)
I am planning to try this, basically the real (neo)vim inside VSCode,no emulation.

https://marketplace.visualstudio.com/items?itemName=asvetlia...

Re:What's the Future of IDEs? by renox on Wednesday November 24, 2021 @08:33AM (#29329798)
Lucky you when I enable it often I cannot modify a file anymore..
Re:What's the Future of IDEs? by bayesian_horse on Thursday November 25, 2021 @07:22AM (#29340721)
You need to enter one of the editing modes...
Re:What's the Future of IDEs? by the_gipsy on Thursday November 25, 2021 @08:46AM (#29341313)
I couldn’t get over the editor constantly losing focus and having to click in the editor area. Many code navigation features/plugins assume a mouse.