News for hackers. Stuff that matters.
Re:Lisp implementation in sed by lengads on Friday June 27, 2014 @06:17PM (#7956533)
Here, for example, is the implementation of `atom` (I think):

  /(atom /{
    /\[\S\+\]/{
      s/.*/[]/
      bpop_context
    }
    s/.*/t/
    bpop_context
  }
Re:Lisp implementation in sed by mtdewcmu on Friday June 27, 2014 @07:36PM (#7956779)
The way you can nest conditions in sed, like /foo/ { /bar/x }, is pretty powerful, and I knew a good bit of sed before I realized you could do that. It's not readily obvious from the manual.
Re:Lisp implementation in sed by hobbyist on Friday June 27, 2014 @09:04PM (#7957049)
The author has won an IOCCC contest. This would have just pricked him a bit.
Re:Lisp implementation in sed by sejje on Friday June 27, 2014 @06:54PM (#7956638)
If this was (the only available) programming, I'd quit.

Kudos, I think, to the author. His pain tolerance exceeds mine by a vast amount.

Re:Lisp implementation in sed by quotemstr on Friday June 27, 2014 @07:26PM (#7956748)
> If this was (the only available) programming, I'd quit.

We started with nothing, remember? Just the bare metal. If this were the only available programming, I'd write an interpreter for a better language.

Never imagine that your current suite of tools is all there is.

Re:Lisp implementation in sed by Someone on Friday June 27, 2014 @08:34PM (#7956944)
It will be a challenge to make an interpreter for a better language faster than dead slow.

I would bet on a compiler for a better language instead. That way, only one person would have to wait ages and ages. I doubt the result would be fast, but it wouldn't be insanely, insanely, insanely slow, either.

Re:Lisp implementation in sed by ibrahima on Saturday June 28, 2014 @03:30PM (#7959058)
I would much rather hand assemble machine code than program in sed. I imagine most people have a better understanding of how computer architecture works than how to do arithmetic and logic with sed.