Fork me on GitHub
#babashka
<
2020-09-26
>
David Pham12:09:23

Babashka becomes incredbly useful.

David Pham12:09:29

with the web server.

David Pham12:09:01

I was using clojurescript for cheap memoy servers, but with babashka, I guess we have a new contender.

David Pham12:09:26

Is reitit also compatible with babashka?

borkdude12:09:00

Not yet. This repo has done some work on that: https://github.com/kloimhardt/bb-web

borkdude12:09:28

I haven't tried running reitit from source with bb, but I expect there will be some issue

borkdude13:09:23

I think if we include reitit, also ring-defaults has to be included since it depends on that I think?

ikitommi13:09:49

reitit.core depends only on meta-merge, reitit-ring depends reitit-core and ring.

ikitommi13:09:35

… but then there is reitit-swagger, reitit-spec, reitit.middleware … modules which depend on half the planet 🙂

borkdude13:09:34

Ah I see, good to know

borkdude13:09:31

Writing an ad-hoc router for a specific small ring app isn't that hard though. Can get a lot of leverage just from case and re-matches probably :)

borkdude13:09:09

But feel free to open an issue @neo2551 about reitit and we'll see what the rest of the community thinks

borkdude13:09:31

Also please leave some notes at https://github.com/borkdude/babashka/issues/556 how you are using the server, if you are going to.

ikitommi13:09:02

If I would like to have the full-reitit with bb, can I do a pod out of those (if they compile with GraalVM)?

borkdude13:09:58

yeah, pod can work for now I think, since routing is just data in data out right?

borkdude13:09:10

eventually a built-in router would be better, but I'm awaiting more feedback for proceeding into the web apps path with bb

ikitommi13:09:09

just data when defining things, translated into optimized java on the JVM. There are few optional optimizations that do code generation, which won’t work, but mainly just for beating the benchmarks and not enabled by default.

borkdude13:09:53

a pod would be nice meanwhile. I'm pretty sure reitit compiles with GraalVM, given https://github.com/kloimhardt/bb-web

ikitommi13:09:52

oh, that’s the same thing, my bad.

borkdude13:09:07

no it's not. bb-web is using a fork of babashka with reitit and ring-defaults included, yogthos' repo is only using GraalVM, no interpreter

👌 2
borkdude16:09:37

Sophisticated CI script using babashka and clj-kondo in Gitlab: https://gist.github.com/hansbugge/4be701d771057e8ef6bbbb0912656355

🚀 3
borkdude21:09:38

Pondering about an idea to leverage clojure git libs for (GraalVM or other) binaries: https://github.com/babashka/babashka.pods/issues/19