News for hackers. Stuff that matters.
Re:Cherry: ClojureScript to ES6 Compiler by nerpderp82 on Tuesday November 01, 2022 @02:36PM (#33425467)
Is anyone doing Clojure to Wasm?
Re:Cherry: ClojureScript to ES6 Compiler by Mikeb85 on Tuesday November 01, 2022 @02:44PM (#33425625)
How would you do that? Compile a JVM to WASM? A GraalVM to WASM image? Seems like it'd be too heavy for the web.
Re:Cherry: ClojureScript to ES6 Compiler by pjmlp on Tuesday November 01, 2022 @06:14PM (#33428358)
Clojure always builds on their host platform, that is why even its reader has conditionals for each platform.

A WebAssembly implementation would target the WebAssembly bytecode, and everything beyond the core forms would be based on WebAssembly ecosystem.

Re:Cherry: ClojureScript to ES6 Compiler by fulafel on Tuesday November 01, 2022 @03:31PM (#33426245)
JS is a much better compile target. WebAssembly doesn't have GC and it's just not geared towards dynamic languages.
Re:Cherry: ClojureScript to ES6 Compiler by the-alchemist on Tuesday November 01, 2022 @04:48PM (#33427282)
Everyone is waiting for WASM to support garbage-collection (GC) officially. =)

Clojure has Javascript, JVM, .NET, LLVM, Arduino, GraalVM, etc. targets, so rest assured, a WASM version will come out as soon as it makes sense!

Re:Cherry: ClojureScript to ES6 Compiler by pjmlp on Tuesday November 01, 2022 @06:11PM (#33428309)
Not everyone, anyone that cares is shipping their own GC implementation just as they have to in regular CPUs.

GC is "coming" since WebAssembly was announced.

Re:Cherry: ClojureScript to ES6 Compiler by nerpderp82 on Tuesday November 08, 2022 @06:12PM (#33525552)
I'd love a Clojure(Script) that ran on Wasm, even if it bundled its own GC. One path through this would be the Gambit Scheme ClojureScript compiler.