You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
I've started a cljc branch for this in both this repo and the alda repo.
The parsing part pretty much works as-is, which is awesome, but it will be trickier to come up with a shared implementation for alda.lisp, for at least two reasons:
ClojureScript doesn't have in-ns, which I have used extensively as a way to split up the alda.lisp namespace into a whole family of files. It would probably be good to have things properly namespaced and not use in-ns, so I'm OK with reorganizing things a little. This approach might be helpful.
ClojureScript doesn't have eval (yet?), so it's unclear at this point what to do with the Clojure code that the parser generates.
For replacing eval, you could use the bootstrapped compiler in cljs.js (as long as the state is isolatable).
Should be able to execute without eval for regular alda.lisp forms (no expressions besides alda function calls and primates) with a simple multimethod though (dispatch on #(when (list? %) (first %))), to get rid of eval on both platforms
The text was updated successfully, but these errors were encountered:
I've started a
cljc
branch for this in both this repo and the alda repo.The parsing part pretty much works as-is, which is awesome, but it will be trickier to come up with a shared implementation for alda.lisp, for at least two reasons:
in-ns
, which I have used extensively as a way to split up thealda.lisp
namespace into a whole family of files. It would probably be good to have things properly namespaced and not usein-ns
, so I'm OK with reorganizing things a little. This approach might be helpful.Copypasta of @crisptrutski's comments on Alda issue #72:
The text was updated successfully, but these errors were encountered: