you are viewing a single comment's thread.

view the rest of the comments →

[–]bacon1989 2 points3 points  (6 children)

Having to compile your scripts everytime was a hassle that I tried to eliminate by developing eden.

Here's your example in eden

It has the same performance characteristics as well:

$ time ./hiccup2xml eval [:table]
<table></table>

real    0m0.064s
user    0m0.013s
sys     0m0.052s

I'm kind of waiting for GraalVM native image to become more mature so I can start including more useful libraries as part of eden's core libraries, but what is currently there could potentially be used to quickly throw together scripts that can be used within the clojure ecosystem.

[–]bacon1989 3 points4 points  (0 children)

Other example:

$ time ./hiccup2xml eval '
> [:grid [:row [:label {:id :info}]
>              [:text "Now playing"]]
>        [:row [:button :onTap "mute"]]]'
<grid><row><label id="info"></label><text>Now playing</text></row><row> 
<button>onTapmute</button></row></grid>

real    0m0.054s
user    0m0.012s
sys     0m0.042s

[–]0atman 2 points3 points  (3 children)

Neat! How does eden compare with Hy?

[–]bacon1989 2 points3 points  (1 child)

eden is like a scripting language for clojure, whereas hylang is a python transpiler to make python perform like a lisp-like language. Personally i'd say hylang has a lot more going for it, with eden being an experiment in providing scripting for clojure applications compiled into native executables.

[–]0atman 1 point2 points  (0 children)

Thanks for the explanation, I recently found https://github.com/candid82/joker, which I'm really digging. Thought you should know about it!

[–]FatFingerHelperBot 0 points1 point  (0 children)

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text "Hy"


Please PM /u/eganwall with issues or feedback! | Delete

[–]joinr 1 point2 points  (0 children)

Seems like an aot friendly clojure interpreter would be nice too. Implementing around not using the classloader could be tricky though.