News for hackers. Stuff that matters.
Re:Emacs users are like Terry Pratchett’s Igors by FatalBaboon on Thursday December 26, 2013 @06:01AM (#6965922)
Emacs is one of those things everybody knows is good, but few take the time to learn.

Over the years I've learnt quite a few languages, and what strikes me is that they're all so very alike. You find the same features with slight syntactic changes. At the end of the day, what really makes a difference is not which language you chose but what tools you are using. Do you have to memorize every important method or are they helping you find the documentation? What happens when something is a little broken, wait for a fix or patch the code immediately? Give up and live with it?

With Emacs, the languages change but the tool stays the same, you just extend it. In a way akin to how programming enhances my mind to be able to solve tough problems, emacs enhances my capacity to hack by letting me hack the tool itself.

Having a userbase made of people hardcore enough to learn some Lisp so they can hack their tool is just a bonus. Please keep fearing the parens!

Emacs is still being actively developed, v24.4 is in feature freeze: https://github.com/mirrors/emacs/blob/master/etc/NEWS (that's 1200+ lines of changelog for 24.4)

How many pieces of software can you name that have been around for 36 years and are still kicking? Do you think it has something to do with Lisp?

Re:Emacs users are like Terry Pratchett’s Igors by actsasbuffoon on Thursday December 26, 2013 @08:26AM (#6966172)
> Over the years I've learnt quite a few languages, and what strikes me is that they're all so very alike.

I used to think this as well, then I learned some Prolog. For those who aren't familiar with it, Prolog is a logic programming language (as opposed to imperative and functional languages). Instead of telling Prolog how to solve a problem, you give it a set of facts and tell it what you want to know. Prolog takes care of the rest, without writing any conditionals, loops, etc. At least in theory; in my (small amount of) experience most non-trivial Prolog programs usually involve some imperative style code. Still, it's wildly different and a lot of fun.

There's also lambda calculus, which is crazy, and wonderful, and absurdly difficult, and one of the most joyous experiences I've ever had. It's a language with nothing but functions applied to other functions. Even numbers are functions in lambda calculus, which has some fascinating implications. I wouldn't want to build anything non-trivial in LC, but I've learned a lot about programming as a result of studying it.

Discovering how to create singly linked lists in LC using nothing but partially applied functions was a profound and emotional experience. I remember how hard I laughed when I noticed that LC's false function is the same as the Church-encoded numeral for zero. These are things most other developers don't think are funny because they have no idea what I'm talking about. I think a few of my co-workers suspect I should be institutionalized when I start talking about lambda calculus.

Of course, there's also Haskell. A lot of lambda calculus is applicable to Haskell, which makes sense as Haskell descends from the ML family of languages, which in turn come from lambda calculus. Haskell doesn't look or feel like most other languages, and it makes some decisions that seem really strange at first glance. Lazy evaluation, all functions are curried, no mutable state, all functions are pure, there are no variables, no exception handling... the language sounds almost unusable. Then you learn about monads and you realize that it's trivial to add support for something that looks and feels like mutable state, except it's a system of your own design. Imagine what would happen if you could change the way variable assignment works in your language of choice. For instance, software transactional memory was originally implemented in Haskell as a monad. They didn't have to modify the language to add support. I can't think of many other languages where that's the case, and it's a thing of beauty.

That's a long and rambling way to say that lots of languages are really similar, but there are some wonderful languages that are extremely different. I highly recommend experimenting with them, but be aware that your friends and co-workers are unlikely to have any idea what you're talking about. And on the off chance that they do understand, please let me know where you work. I want to work with you people.

Re:Emacs users are like Terry Pratchett’s Igors by wonderzombie on Thursday December 26, 2013 @01:55PM (#6967434)
Agree w/ siblings that this is a great comment. I'd like to amplify it.

A lot of imperative languages end up being really similar once you've learned a few of them. I'm not an expert on PL history but, AIUI, ALGOL was the progenitor for many modern languages, especially imperative ones. So it makes sense as to why, but there are paradigms other than imperative or even functional.

Of course this is not to say that all imperative languages are the same. Rather it is to say that alikeness is relative. Relative to C, Java is quite different. Relative to Prolog or Forth, C and Java are more similar than not.

If anyone really wants to expand their brain to new ways of thinking wrt programming, I think exploring these off-the-beaten-path programming languages is a great idea. I agree that many people around you will think you're nuts. As long as you don't lose your sense of practicality, pragmatism, and/or proportion, you shouldn't listen to them.

Re:Emacs users are like Terry Pratchett’s Igors by jordan0day on Thursday December 26, 2013 @10:59AM (#6966614)
This is a great comment!

> I remember how hard I laughed when I noticed that LC's false function is the same as the Church-encoded numeral for zero.

Those sort-of "eureka" moments when a bit of programming language enlightenment materializes through ones own investigation are a joy.

Re:Emacs users are like Terry Pratchett’s Igors by decasteve on Thursday December 26, 2013 @09:19AM (#6966304)
I agree.

> Over the years I've learnt quite a few languages, and what strikes me is that they're all so very alike.

The Sapir-Whorf hypothesis would seem to be even more applicable to programming languages (and fields of mathematics) than to spoken language itself.

* http://en.wikipedia.org/wiki/Sapir-Whorf

Re:Emacs users are like Terry Pratchett’s Igors by agumonkey on Thursday December 26, 2013 @05:32PM (#6968440)
I second you on LC. It profoundly impacted my brain. Mostly for the reason you mentioned, Closures, Church Encoding[1], Y, Combinators. It's almost vacuous yet it works. I love to rewatch talks about LC in ruby or javascript (well named 'programming with nothing').

[1] I like the fact that CE'd numbers are structural, a CE 2 will apply twice another function, instead of the usual stored symbol to be read/interpreted in most systems. Reminds me of 2.times(<fun>) in ruby IIRC.

Re:Emacs users are like Terry Pratchett’s Igors by al2o3cr on Thursday December 26, 2013 @03:18PM (#6967840)
+1 on the lambda calculus stuff. Here's a related talk about deriving the Y combinator in Ruby by Jim Weirich:

http://www.youtube.com/watch?v=FITJMJjASUs

(skip to about 28:00 if you're impatient)

There are additional versions of this same presentation circulating with the code in Javascript and (I believe) Clojure. Full disclosure: Jim is a co-worker of mine.

Re:Emacs users are like Terry Pratchett’s Igors by actsasbuffoon on Friday December 27, 2013 @12:33AM (#6969511)
I've seen a JavaScript version of that talk. My respect for Jim is one of the reasons I switched to Emacs.
Re:Emacs users are like Terry Pratchett’s Igors by nabla9 on Thursday December 26, 2013 @07:37AM (#6966088)
Learning something that takes time should be seen as investment. If you invest your time and effort, you want to know that your investment pays dividends in the future.

I feel that Emacs is one of those tools where my investment is safe and the code I write to ~/.emacs produces huge value over several decades. It's not going away. Development community is so big that it supports all new stuff that comes along.

Re:Emacs users are like Terry Pratchett’s Igors by SkyMarshal on Thursday December 26, 2013 @07:31AM (#6966079)
With Emacs, the languages change but the tool stays the same, you just extend it. In a way akin to how programming enhances my mind to be able to solve tough problems, emacs enhances my capacity to hack by letting me hack the tool itself.

Oblig reference to classic essay on that topic:

http://www.osteele.com/posts/2004/11/ides

Re:Emacs users are like Terry Pratchett’s Igors by agumonkey on Thursday December 26, 2013 @03:19PM (#6967846)
Two thing that I found lacking for less-than-good hackers like me :

  - idiomatic (minor|major) mode organization (I found a book and a pdf which are old and might not represent the best way to do so)

  - at emacs conf, jwiegley showed some old and tiny extensions (edebug, redshank) part of his workflow. Very interesting to discover dark corners of the large emacs extensions space and how people solve problems their way.