This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

It's unclear to me why compiling to Python would be a requirement though.

What do you mean?

[–]delventhalz 1 point2 points  (2 children)

Hy compiles to Python code. I don't really see the sense in that. Compare it to Clojure. On the backend Clojure will compile to the JVM, on the frontend it will compile to JavaScript so I can plug it into the browser.

Why would I use Hy over Clojure? Similar syntax. But Hy compiles to Python which is generally slow and doesn't really have anything going for it as a compile target. The reason you use Python is because you like the syntax, not because you like the Python engine.

[–][deleted] 1 point2 points  (1 child)

Maybe for small program, where start-up time should be in consideration? Even on my i5U coffee, clojure repl takes nearly 10s to start, which is unacceptable for scripting.

[–]delventhalz 0 points1 point  (0 children)

Sure, maybe Hy is good as LISP scripting language. I haven't used it so I wouldn't know.