Fork me on GitHub
#off-topic
<
2018-05-24
>
benzap02:05:34

How difficult would it be to write a clojure-to-wasm compiler? I'm under the impression that's it's doable, but obviously lacks a standard library to interop effectively with. Could clojure just consider piggy-backing on any advancements that Java+JVM makes to compile to webasm?

benzap02:05:20

Seems like only the .NET world has really been pushing for compiling C# to webasm. I wonder if graalvm will ever go so advanced as to support webasm as a compilation target.

dominicm07:05:52

@benzap I think someone mentioned that wasm doesn't have GC? But I might be making that up.

dominicm07:05:24

Dnolen had some comments about wasm in his defn podcast interview.

benzap09:05:07

Ya, it doesn't have it's own GC, but i'm under the impression you would compile your own GC

benzap09:05:18

it would be like re-implementing a GC similarly to how the JVM would be re-implemented for a new line of CPUs

benzap09:05:31

I think it's the reason why LLVM was so quick to develop something that worked for webasm, since it's primary concern is to work incredibly well in that area

benzap09:05:04

I would assume that GraalVM would be the best bet for supporting webasm with the JVM, which would then lead to the possibility of supporting clojure

leonoel11:05:29

Hi all, I have a huge naming issue :

(defn ??? [x]
  (fn [& _] (throw x)))

leonoel12:05:14

very poetic !

3Jane13:05:41

(short for “barely activated - refuses functioning” 😉 )

trollface 4
bronsa11:05:19

throwing?

👍 4
vemv11:05:53

(constant-thrower-of :foo)

😆 4
manutter5112:05:17

I would probably call that bomb-with-x

💣 8
emil0r18:05:12

bomb-with would work for me. Nice naming

slipset18:05:23

suddenly-an-exception!

leonoel12:05:47

thank you all for being part of such a helpful community !

Henry12:05:15

A bit offtopic, but has anyone experience with http://webgo.de and http://all-inkl.com and can recommend one or the other for certain reasons?