Live data from Hacker News

Lisp-stick on a Python

docs.hylang.org

41–50 of 170 posts

Re: Lisp-stick on a Python

#41

What am I looking at here? And what is it for?

Much like Clojure is lisp on the Java virtual machine, Hy is a lisp on Python. There are definitely plenty of ways in which lisps vary and I've heard Hy tends to follow some Pythonisms more closely than other lisps may follow their host languages.

Re: Lisp-stick on a Python

#42
If you want to use Python libs from CL, see py4cl: https://github.com/bendudson/py4cl the other way around, calling your efficient CL library from Python: https://github.com/marcoheisig/cl4py/ There might be more CL libraries than you think! https://github.com/CodyReichert/awesome-cl (or at least a project sufficiently advanced on your field to join forces ;) )

Re: Lisp-stick on a Python

#43

Earlier quoted context omitted.

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…

That! Clojure is an elegant experiment with immutability. The implementation details of Clojure's datastructures are a pure joy to look at. JVM is an unfortunate choice as I see it, but it's a pretty solid system which is benefiting from decades of research on JIT, GC, etc, so not entirely unreasonable as a back-end. I have few good things to say about Python, other than it sort of works. I classify it in the big-sac…

Clojure is definitely more than an experiment. It processes many millions of dollars daily through things like banks and even at Walmart. It might not be used a lot, but experiment is not accurate at all. You didn't flesh out your comment about Java, they used to also transpile to C# and still to Javascript. I think Java's fast memory allocator is particularly suitable to the immutable data structure memory requirements. I also find the JVM a very robust and mature platform. It's also a great gateway being able to interop into corporate environments as a way to get traction. I am curious what other language you think would be better given those desired traits that Hickey designed for.

Re: Lisp-stick on a Python

#44
Wonder why not syntax totally common lisp so one does not need to change with switch to turn on certain or full Hy features. It is a bit confusing this partially Python partial Common Lisp then throw in a “!” for defmarco …

Re: Lisp-stick on a Python

#45
post #44

Wonder why not syntax totally common lisp so one does not need to change with switch to turn on certain or full Hy features. It is a bit confusing this partially Python partial Common Lisp then throw in a “!” for defmarco …

[deleted]

Re: Lisp-stick on a Python

#46

If someone thinks the Hy mascot, Cuddles the Cuttlefish, looks awfully familiar to a certain crustacean mascot, you would be correct! They are both drawn by Karen Rustad Tölva! https://www.aldeka.net/

Amazing! Ferris is loved and Tölva's art at that site is so nice and funny. Very cool and appropriate that she's also managed to have "Rust" as part of her name.

Re: Lisp-stick on a Python

#47
post #43

Earlier quoted context omitted.

That! Clojure is an elegant experiment with immutability. The implementation details of Clojure's datastructures are a pure joy to look at. JVM is an unfortunate choice as I see it, but it's a pretty solid system which is benefiting from decades of research on JIT, GC, etc, so not entirely unreasonable as a back-end. I have few good things to say about Python, other than it sort of works. I classify it in the big-sac…

Clojure is definitely more than an experiment. It processes many millions of dollars daily through things like banks and even at Walmart. It might not be used a lot , but experiment is not accurate at all. You didn't flesh out your comment about Java, they used to also transpile to C# and still to Javascript. I think Java's fast memory allocator is particularly suitable to the immutable data structure memory requirem…

There's also CLOJERL - Clojure on BEAM (Erlang), and recently CljDart, clojure to dart transpiler was released and seem to have a lot of momentum.

Re: Lisp-stick on a Python

#48

Earlier 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…

Let’s not be too pedantic, it was just an analogy, not a bad one, nor perfect but none are.

As a Clojurist I think it behooves us not to put on gatekeeping airs (because we’re up against those too).

Post reply on HN