Earlier quoted context omitted.
With difficulty. I started playing with the idea of making a programming language out of sed at one point, but then I decided that, even if I succeeded, it would be a waste of time. I didn't take into account Hacker News.
woah woah woah. we don't just throw around "waste of time" like that :)
Lisp implementation in sed
21–30 of 64 posts
Re: Lisp implementation in sed
#22Now you have three problems.
Oh come on. They took an unreadable language and implemented a slightly less unreadable language in it. That's at least two problems and one solution. To what, I don't know.
Re: Lisp implementation in sed
#23Earlier quoted context omitted.
did I misinterpret or did you just call lisp "[nearly] unreadable"? all languages are unreadable for the uninitiated.
You didn't misinterpret.
Re: Lisp implementation in sed
#24Earlier quoted context omitted.
Oh come on. They took an unreadable language and implemented a slightly less unreadable language in it. That's at least two problems and one solution. To what, I don't know.
Having a Lisp will make it a little easier to write the Javascript interpreter. Baby steps.
Re: Lisp implementation in sed
#25Earlier quoted context omitted.
Indeed. There are few wide-spread programming languages around any more that lack such things as, say, any form of arithmetic whatsoever.
sed has regular expressions. I think you could do some binary arithmetic fairly easily with regular expressions and find and replace...
Re: Lisp implementation in sed
#26Earlier quoted context omitted.
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.
> 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.
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
#27Earlier quoted context omitted.
Oh come on. They took an unreadable language and implemented a slightly less unreadable language in it. That's at least two problems and one solution. To what, I don't know.
did I misinterpret or did you just call lisp "[nearly] unreadable"? all languages are unreadable for the uninitiated.
Compared to python or coffeescript, it feels like there's a lot less noise
Re: Lisp implementation in sed
#28Earlier quoted context omitted.
You didn't misinterpret.
i am not particularly gifted at computer science and especially not programming languages. by necessity, the only languages i know are JavaScript and lisp. so I am always surprised to hear lisp is "unreadable" as opposed to "unfamiliar".
Re: Lisp implementation in sed
#29Earlier quoted context omitted.
sed has regular expressions. I think you could do some binary arithmetic fairly easily with regular expressions and find and replace...
Yep, that's pretty much how you have to do it. (If all you need is increment/decrement, though, you can actually do it pretty concisely with decimal-digit strings. Skipping the binary-to-decimal conversion greatly simplifies displaying numerical values.)
Re: Lisp implementation in sed
#30Earlier quoted context omitted.
You didn't misinterpret.
i am not particularly gifted at computer science and especially not programming languages. by necessity, the only languages i know are JavaScript and lisp. so I am always surprised to hear lisp is "unreadable" as opposed to "unfamiliar".
Most Lisp code I've seen is heavy on the reader macros.