I don't get it. I am a Smug Lisp Weenie. Lisp is not a syntactic sugar - the only reason it looks like it does is for metaprogramming. Those parens are not syntax - they indicate the underlying structure of the code, a tree which may be manipulated by Lisp macros. Why would anyone pretend to program in Lisp without any benefit? Also, Python is the worst imaginable engine for running Lisp. [correction: I see there are…
> Also, Python is the worst imaginable engine for running Lisp What exactly do you mean by this?
Lisp-stick on a Python
21–30 of 170 posts
Re: Lisp-stick on a Python
#22I don't get it. I am a Smug Lisp Weenie. Lisp is not a syntactic sugar - the only reason it looks like it does is for metaprogramming. Those parens are not syntax - they indicate the underlying structure of the code, a tree which may be manipulated by Lisp macros. Why would anyone pretend to program in Lisp without any benefit? Also, Python is the worst imaginable engine for running Lisp. [correction: I see there are…
> Why would anyone pretend to program in Lisp without any benefit? Because it is superior way of writing a program. Pure, consistent and unambiguous.
Re: Lisp-stick on a Python
#23I don't get it. I am a Smug Lisp Weenie. Lisp is not a syntactic sugar - the only reason it looks like it does is for metaprogramming. Those parens are not syntax - they indicate the underlying structure of the code, a tree which may be manipulated by Lisp macros. Why would anyone pretend to program in Lisp without any benefit? Also, Python is the worst imaginable engine for running Lisp. [correction: I see there are…
Re: Lisp-stick on a Python
#24Earlier quoted context omitted.
People use Python in production, why not Hy?
There are plenty of reasons not to add a transpilation step to production code: * Looking at stack traces is suddenly so much harder and involves reverse-engineering the transpiler unless your transpiler is sophisticated enough that it can de-transpile the stack traces back to the source language. * You're adding a step to your build pipeline. * You're taking on the risk of bugs or security issues that may exist or b…
Re: Lisp-stick on a Python
#25Re: Lisp-stick on a Python
#26Earlier quoted context omitted.
I can imagine speed being a real problem in production?
You can transpile to Python. You get a bunch of necessary symbol definitions but that's about it. I doubt anyone uses hy in production for completely other reasons, would love to be proven wrong.
When I was working on Hy, almost 10 years ago, there was a couple of Hy core devs that had managed to push some Hy code into production. I won't name names, but a known company used Hy when processing firewall rules (if i recall correctly).
I doubt that code is still being used, and I'm not aware of anyone beyond a couple of previous Hy core devs that managed to push Hy into production.
Re: Lisp-stick on a Python
#27Earlier quoted context omitted.
> Also, Python is the worst imaginable engine for running Lisp What exactly do you mean by this?
slow. bloated. not particularly good at managing conses. is there tail recursion?
I assume you're referring to an optimization, because one can write tail recursion in any language that supports subroutines.
Re: Lisp-stick on a Python
#28They are both drawn by Karen Rustad Tölva!
Re: Lisp-stick on a Python
#29Earlier quoted context omitted.
think of it as clojure to java, even without embodying the whole lisp ethos, it gives you a lispy base to write python code, plus extra niceties (threading -> IIRC) plus you get to benefit from paredit under emacs
Clojure is more than just a Lisp for the JVM – it is a Lisp for the JVM with a big focus on immutable data structures – whereas traditionally most Lisps put mutability first instead. There are other Java-based Lisps, such as Armed Bear Common Lisp (ABCL), which are more traditionally Lisp-like in this regard. I think Hy is more of a traditional Lisp, since it shares Python's native focus on mutable data rather than t…
I have few good things to say about Python, other than it sort of works. I classify it in the big-sack-of-stuff languages, along with Perl and shells. Not much elegance or style.
Re: Lisp-stick on a Python
#30Earlier quoted context omitted.
I can imagine speed being a real problem in production?
You can transpile to Python. You get a bunch of necessary symbol definitions but that's about it. I doubt anyone uses hy in production for completely other reasons, would love to be proven wrong.