News for hackers. Stuff that matters.
Re:Buttery Smooth Emacs by smt88 on Sunday October 30, 2016 @12:52PM (#12830780)
I've never understood why anyone uses Emacs over purpose-built IDEs. This article made me even more confused.

Can anyone explain?

Re:Buttery Smooth Emacs by __s on Sunday October 30, 2016 @01:08PM (#12830877)
One editor to rule them all, then you don't have to individually configure every IDE with various idiosyncratic preferences. & learn new sets of commands which you can't take with you elsewhere. Reuse muscle memory between all situations. Reuse over SSH. Low resource requirements. Infinite scriptability
Re:Buttery Smooth Emacs by smt88 on Sunday October 30, 2016 @04:35PM (#12832097)
Multiple editors would have been an issue for me a few years ago, but JetBrains has changed that (for the set of languages I use, anyway). I can use the same IDE for a bunch of different ecosystems.

Reuse over SSH is a compelling reason. Do you still have low resource requirements if using things like linting, hinting, and full graphical debugging?

Re:Buttery Smooth Emacs by wtbob on Sunday October 30, 2016 @08:05PM (#12833343)
> Multiple editors would have been an issue for me a few years ago, but JetBrains has changed that (for the set of languages I use, anyway). I can use the same IDE for a bunch of different ecosystems.

Exactly. Now, imagine being able to use that same IDE for everything JetBrains supports, and to read man pages, and to read info pages, and to read & compose email, and to list the processes running on your computer, and to manage files in directories, and to emulate a terminal, and to browse the web, and to play NetHack, and to use IRC, and to manage git repos, and to do every other thing you want. And all the keybindings remain consistent throughout all of those modes. And you can easily schlep data back & forth between them. And it's extensible in a relatively sane language (sane compared to Java, JavaScript, C, C++ and Python, anyway).

That's why we use emacs. That's why it's very difficult to understand why anyone else doesn't use emacs.

> Do you still have low resource requirements if using things like linting, hinting, and full graphical debugging?

Emacs can be pretty amazingly fast even with all of that running. There are advantages to having first been written back when computers were small.

Re:Buttery Smooth Emacs by rayiner on Sunday October 30, 2016 @08:17PM (#12833396)
On my MBP, I can get about 6-7 hours of low-intensity use out of VS Code or Clion, which is pretty unconscionable because I think slowly and most of that time is just waiting for keystrokes. I get about 8-9 with graphical Emacs (with autocomplete, etc). I get about 11 using Emacs on a remote server over ssh. Auto complete, etc, works fine on the terminal.
Re:Buttery Smooth Emacs by db48x on Sunday October 30, 2016 @07:32PM (#12833176)
Yes, Emacs is very light-weight no matter what you're doing. Although I must admit that my copy is using 3.45GB of memory at the moment; I opened a 1.8GB tar file... that was on a remote machine.
Re:Buttery Smooth Emacs by dom0 on Sunday October 30, 2016 @01:14PM (#12830918)
Emacs is pretty lightweight (sic!) compared to IDEs. I use it as a general-purpose editor (text, C, Python, shell, configuration files, HTML [web-mode is pretty good]). It's "snappy" even on very slow machines. Add-on modes are often pretty good. Has interesting shortcuts (C-x h M-q).

FTR I've been using Emacs for over two years and didn't bother yet to learn "real" navigation commands. I use arrow keys + Shift/C and/or mouse/trackpoint.

For most bigger projects I use the appropriate IDE (normally JetBrains or QtCreator) unless I'm on a laptop.

Re:Buttery Smooth Emacs by qwertyuiop924 on Sunday October 30, 2016 @02:10PM (#12831253)
There are only nine movement commands you need to know for efficient emacs use:

-C-f

-C-b

-C-n

-C-p

-C-v

-M-v

-C-s

-C-r

-And finally, whatever key you bound ace-jump-mode to. Seriously, if you are on Emacs, you really need acejump. It's just that good.

Re:Buttery Smooth Emacs by vinayan3 on Sunday October 30, 2016 @07:35PM (#12833191)
Movement keys in other IDEs like JetBrains is still lacking in my opinion. I haven't seen another IDE which lets you move between buffers(documents) as easily as Emacs. I've tried a bunch of IDEs and will support one style of movement like move split right / left but lack something like move other split etc...

Another thing is that Emacs movement is also very fast relative to some IDEs which sometimes pop up other windows which you have to interact with like in JetBrains Switcher.

That being said if you write IDEs just look at how fast, easy to configure, and complete buffer movement is in Emacs. We want these features!

Re:Buttery Smooth Emacs by pandakar on Sunday October 30, 2016 @11:10PM (#12834068)
You should set your keymap to Emacs then, its pretty close, and very cool.
Re:Buttery Smooth Emacs by mookid11 on Sunday October 30, 2016 @02:43PM (#12831472)
I think that you only need isearch + occur (M-s .), not ace-jump.

I tried ace-jump and have it configured for months, I never use it. neither do I use swiper, because it is too slow to start.

Also, don't forget C-M-{left, right, up, down} commands :)

Re:Buttery Smooth Emacs by taeric on Sunday October 30, 2016 @02:14PM (#12831279)
Exactly, if you want efficient jumping around, ace mode is amazing. Basic flow is: look where you want to place the cursor, press jj, then the character you are looking at. Doesn't matter where the cursor was.
Re:Buttery Smooth Emacs by qwertyuiop924 on Sunday October 30, 2016 @05:18PM (#12832379)
jj? only if you're using evil mode. And why would you do that?
Re:Buttery Smooth Emacs by _asummers on Sunday October 30, 2016 @06:56PM (#12833005)
It lets you directly jump to a specific character without bothering with movement keys. Basically what happens is, suppose you have 5 x's on your screen. You'd bring up ace jump (or its replacement, avy), and then hit x. It'd convert the first x to a, second to b, ... fifth to e. Suppose you wanted to go to the fifth one, you'd then hit e, and your point would move there. It's kind of cool. I have it installed, but truthfully don't use it very often.

Edit: Oh you meant "why would you use evil mode". Disregard.

Re:Buttery Smooth Emacs by taeric on Sunday October 30, 2016 @06:55PM (#12832999)
I enabled chords to trigger some functions. I think I got the habit from early prelude, but typically use my own config now.
Re:Buttery Smooth Emacs by Steeeve on Sunday October 30, 2016 @01:53PM (#12831133)
For certain languages, the IDE of choice is great. For what seems like the majority of languages, it isn't.

In the last week, I've edited javascript, html, python2, python3, sql, json, yaml, graphviz, markdown, and docker files. Looking back a little longer, throw in C, C++, bash, z-shell, R, lisp, LaTex, and perl5.

Having an appropriate and reasonably consistent editing experience works for me. For Java, the eclipse experience has grown on me, so I prefer editing Java outside of emacs for anything but quick edits. I pretty much just do quick edits in C or C++, but if I were to be doing it daily I would probably prefer a dedicated IDE like Visual Studio. I'd probably prefer Viz Studio for python, but that would require working in a windows VM and that's just not going to happen.

The utility of some basic functions like column editing, zap-to-char, hippie-completion, macros, yasnippet, etc. that I've grown used to over the years coupled with syntax highlighting and predictable indentation for pretty much anything I'm editing makes it hard to seriously consider another editor. I'm sure vi/vim users feel the same way about features that seem small but get used very frequently.

Regardless, it all boils down to productivity. I'm productive in emacs, so I like it. I wouldn't force somebody to use it - or even recommend it for someone who didn't have the time to build the muscle memory before needing to be productive.

Re:Buttery Smooth Emacs by smt88 on Sunday October 30, 2016 @04:37PM (#12832102)
I just don't think I write code in any languages where the IDE is not great, nor do I ever write code in constrained-resource environments (old machine, SSH, etc.) I'm on a desktop, laptop, or cloud desktop.
Re:Buttery Smooth Emacs by wtbob on Sunday October 30, 2016 @08:08PM (#12833355)
> I just don't think I write code in any languages where the IDE is not great

Well, neither do we emacs-users: every language we write in has an amazingly great IDE, because emacs is our IDE for every language. And, other than go-mode's wanton breakage of M-., there aren't generally gratuitous inconsistencies when switching between languages.

I don't really think of emacs as being a solution in resource-constrained environments (although it works well there too): it's excellent on its own, not just a way to eke out constrained resources a bit further.

Re:Buttery Smooth Emacs by Steeeve on Sunday October 30, 2016 @05:17PM (#12832373)
What languages do you write in? And what IDEs do you prefer? <genuinely curious, not being snarky>
Re:Buttery Smooth Emacs by iLemming on Monday October 31, 2016 @01:03AM (#12834405)
I've used many proprietary IDEs and editors and at some point I realized - it's a myth and it's a lie. A golden cage. This argument is like iPhone vs Android. "But iPhone just works" they say, "and Android always, just always needs some chiseling". When it comes to the editor though, (the main instrument of my daily work) - I am ok with some chiseling and sandpapering. People often try to compare efficiency metrics, debate over features and smoothness of scrolling. Very often though they overlook one important factor - the joy of use. I find Emacs exceptionally satisfying. Because it gives you complete, almost total control of important aspects of editing and navigating through the code. Over the years I met many people who hated/disliked/misunderstood Visual Studio/Eclipse/IntelliJ/Sublime/Netbeans. I have never met a single person who really tried Emacs for a few months and either hated it or felt like it's limited or "stupid". The only real criticism Emacs gets - "Emacs is hard". "I want something simple". Well then. If you are so lazy to learn how to drive, how could you expect your bicycle to be as convenient as a luxury car and as powerful as a fighter-jet?
Re:Buttery Smooth Emacs by belorn on Sunday October 30, 2016 @04:22PM (#12832017)
Take my use-case: I get random-ish formated data through email and need to often create semi one-time python scripts that do specific jobs with that data. That mean I need to clean the data and separate relevant from irrelevant, format it to be used with python, last take the output and format that as requested.

Macros are invaluable. Search and replace regexp is invaluable. Compare buffer, unique, sort and rectangular insert is invaluable.

There is no purpose-built python IDE that is tailored to my use case. The closest is ipython, and I already run that parallel with emacs when doing more complex python coding.

Re:Buttery Smooth Emacs by taeric on Sunday October 30, 2016 @02:11PM (#12831263)
Many of the things a purpose built environment can do can be built into emacs. I used to go through the effort of setting them up. Like a sibling post, I typically do quick edits nowadays, and don't bother. (Worse, every big company I have ever worked for uses another bloody build system...)

That said, the things that keep me in emacs:. Magit, eshell, tramp, many toy enhancements I have written, I like the themes, erc, and org mode.

Re:Buttery Smooth Emacs by smt88 on Sunday October 30, 2016 @04:29PM (#12832061)
I wasn't implying that Emacs lacks features of other IDEs/editors. I only meant that Emacs requires a huge amount of configuration to reach the functionality of, say, PyCharm for Python.
Re:Buttery Smooth Emacs by wtbob on Sunday October 30, 2016 @08:10PM (#12833372)
> I only meant that Emacs requires a huge amount of configuration to reach the functionality of, say, PyCharm for Python.

Eh, out of the box you're right, but I'd advise most folks to just install prelude (or if they're coming from vi-land, spacemacs), which has already done all the configuration for one.

Re:Buttery Smooth Emacs by taeric on Sunday October 30, 2016 @09:00PM (#12833551)
Depending on the build system you are using, autocomplete and jump to symbol may be something you still have to configure.
Re:Buttery Smooth Emacs by taeric on Sunday October 30, 2016 @06:58PM (#12833022)
The flip side, is that I don't have an editor that has changed on me as much as pycharm and friends have. More, as I use new languages, I get to take advantage of configurations i already know really well.
Re:Buttery Smooth Emacs by kwhitefoot on Sunday October 30, 2016 @01:34PM (#12831030)
Because IDEs are less efficient at many things. Simply writing code in a language I am familiar with using a familiar API is faster and more comfortable in Emacs. Also there are loads of useful tools like Org mode, tables, ediff, etc.
Re:Buttery Smooth Emacs by ArneBab on Sunday October 30, 2016 @02:00PM (#12831187)
I regularly code over SSH, and the machine where I’m most productive at writing is a laptop clocked down to 100MHz with bare Emacs on X11. You simply cannot do that with a current-style IDE.
Re:Buttery Smooth Emacs by jcoffland on Sunday October 30, 2016 @02:25PM (#12831363)
Emacs is a purpose built IDE.
Re:Buttery Smooth Emacs by smt88 on Sunday October 30, 2016 @04:33PM (#12832080)
That isn't how I meant "purpose-built". I meant an IDE tailored to a particular language and ecosystem.

For example, there are IDEs that have excellent code generation for Java (not defending the practice of boilerplate getters/setters, just pointing out a feature that people use). There are IDEs with hinting, linting, and debugging built-in and requiring no configuration.

My question was: at what point is the ultra-flexibility of Emacs no longer worth it?

Re:Buttery Smooth Emacs by jcoffland on Monday October 31, 2016 @03:52AM (#12834910)
Emacs does all those things.