-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epsilon is not compatible with Babashka #153
Comments
It's pretty interesting how far we've come, but I'm not sure if meander in its current form is a good fit for babashka. E.g.
So shorter programs which rely on clojure.core instead of lower level interfaces will be faster in babashka. This is why e.g. https://github.com/xapix-io/matchete is pretty fast in babashka, but probably less performant in Clojure on the JVM than meander. |
It's not clear to me what you're referencing here. Can you provide some more detail?
This is true, however, we can avoid that by providing and suggesting the utilization of an interpreter namespace which works basically as matchete does. At the moment I'm fast tracking this by ripping out the use of the macro match. |
That would be interesting! The part about the predicates: e.g. doing |
I now measured some differences and in babashka it's basically equally fast, so you can disregard that comment or at least take this as information that this won't help much in babashka, probably. So the main issue is keeping the amount of code to load for meander as small as possible to get the best startup time possible. |
I'm in! |
Is meander still not compatible with babashka? |
@aleksandersumowski Since the latest release you should be able to load meander, but I think there are a few edge cases that might not be working yet. Feel free to report them in terms of small standalone issues on the bb side of things and we can see if we can fix those. |
ok, I'll give it a try :) |
Some time has passed; and meander spurts a "babashka compatible" thing now in its README -- is this resolved? 😅 |
yes, tests work with babashka on CI: https://github.com/noprompt/meander/actions/runs/5231806454/job/14159967827 |
Unable to resolve classname: clojure.lang.ILookup [at /private/tmp/meander/src/meander/substitute/syntax/epsilon.cljc:1441:24]
user=> (require '[meander.epsilon] :reload)
Could not resolve symbol: S__23485 [at /private/tmp/meander/src/meander/epsilon.clj]
Probably related to one of the
(let [save-id (gensym* "S__")]
constructs.The text was updated successfully, but these errors were encountered: