Live data from Hacker News

Emacs is sexy

emacs.sexy

51–60 of 97 posts

Re: Emacs is sexy

#51
Kyle Machulis sure loves Emacs. He wrote "Deldo - The Sex Toy and Teledildonics Mode for Emacs":

https://www.metafetish.com/2010/08/02/deldo-sex-toy-control-...

It's well worth freeze framing and reading the text in the list of all the different programming languages that Emacs supports.

https://www.youtube.com/watch?v=D1sXuHnf_lo

Re: Emacs is sexy

#54

Earlier quoted context omitted.

What package are you using for your Emacs back end for completion? I've tried several and never really found them stable or even working in some cases. I write a couple thousand lines of C++ every week in emacs and I've actually become very productive without auto completion, so perhaps I'm not missing it anymore at all.

I code in C so can't speak for C++, but I imagine it works well for that too: irony-mode as a backend and company-mode as frontend. It pretty much gives the Xcode auto-complete experience, and I think it works great!

Seconded this, this is my setup on both Windows and Linux and works for me across multi-million-line C and C++ codebases. It's quite finicky to get set up on Windows at first (or at least, it was for me last time I tried), but once you have irony-mode working with libclang, you don't need to think about it ever again, except for changing a couple compiler flags here and there.

My one complaint is that clang's MSVC mode is imperfect, and sometimes suggests some strange things (or produces some false negative/positive in syntax checking). But they've been getting much better lately and it's never caused me much pain.

e: also, second what a sibling said - combo this with flycheck-mode and you have yourself a full-blown C++ IDE in emacs ;)

Re: Emacs is sexy

#55
post #4

I've been using Emacs for over 15 years now and I do almost all my work in it. The two things that I still haven't found good solutions for in emacs are available out of the box in almost every editor today: 1. Autocomplete of methods, classes, variables etc 2. Auto import statement organisation Yes I am aware of JDEE for #2 and I am aware of emacswiki/autocomplete but none of those solutions are as smooth, well inte…

For what it's worth, company mode + ggtags/ctags works reasonably well. I have heard a lot of good things about projectile too

Re: Emacs is sexy

#57
post #44

Yeah right. Elisp was dynamic-scoping-only until version 24.1. That means elisp code written before that (i.e., 99.999% of emacs code that's not in C) as well as most of the code written after that, has essentially the feel of hacky cruft which will drown a modern programmer into an abyss of cognitive pain and headache when (s)he attempts to understand, modify, or debug it. (not unlike GOTO ridden spaghetti) How many…

[deleted]

Re: Emacs is sexy

#58
post #44

Yeah right. Elisp was dynamic-scoping-only until version 24.1. That means elisp code written before that (i.e., 99.999% of emacs code that's not in C) as well as most of the code written after that, has essentially the feel of hacky cruft which will drown a modern programmer into an abyss of cognitive pain and headache when (s)he attempts to understand, modify, or debug it. (not unlike GOTO ridden spaghetti) How many…

Hey at least Elisp wasn't ever as bad as Mock Lisp, the extension language in Gosling (aka UniPress aka Evil Software Hoarder) Emacs.

It had ultra-dynamic lazy scoping: It would defer evaluating the function parameters until they were actually needed by the callee (((or a function it called))), at which time it would evaluate the parameters in the CALLEE's scope.

James Gosling honestly copped to how terrible a language MockLisp was in the 1981 Unix Emacs release notes:

https://archive.org/stream/bitsavers_cmuGosling_4195808/Gosl...

    12.2. MLisp - Mock Lisp 

    Unix Emacs contains an interpreter for a language 
    that in many respects resembles Lisp. The primary 
    (some would say only) resemblance between Mock Lisp
    and any real Lisp is the general syntax of a program, 
    which many feel is Lisp's weakest point. The 
    differences include such things as the lack of a 
    cons function and a rather peculiar method of 
    passing parameters. 
"Rather peculiar" is an understatement. More info, links and code examples:

https://news.ycombinator.com/item?id=8727085

Re: Emacs is sexy

#59
post #9

Emacs itself isn't sexy; the sole reason I use emacs is the power and extensibility offered by emacs lisp. If vim used elisp instead of shudders vimscript, I would use it in a heartbeat.

Alexander Burger, the author of PicoLisp, wrote vip as a proof of concept: http://picolisp.com/wiki/?vip

Regarding extensibility, would it even be possible to embed Guile or ECL (or Lua or John Walker's ATLAST) into an existing editor? Perhaps not Vim, but maybe classic vi or nvi?

Re: Emacs is sexy

#60
Clearly Vim is making inroads :-)

I have used both, from Finseth's 'FINE'[1], to MicroEmacs (ue) to Gosling emacs. But I switched over to vi when I started using PC keyboards all the time because of that damn caps lock key. For a while I would keymap it back to control and spent extra for a keyboard that actually had a control key there, but eventually I gave up not being able to walk up to a vanilla / foreign install and effectively generate a text file from within an editor.

[1] Fine Is Not EMACS

Post reply on HN