This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-20
Channels
- # announcements (30)
- # babashka (118)
- # beginners (23)
- # calva (68)
- # cljdoc (10)
- # clojars (13)
- # clojure (90)
- # clojure-bangladesh (1)
- # clojure-europe (27)
- # clojure-gamedev (1)
- # clojure-nl (11)
- # clojure-uk (4)
- # clojurescript (59)
- # community-development (3)
- # cursive (13)
- # datomic (39)
- # defnpodcast (1)
- # emacs (10)
- # figwheel-main (1)
- # fulcro (18)
- # graalvm (21)
- # honeysql (1)
- # introduce-yourself (1)
- # juxt (1)
- # lsp (197)
- # malli (19)
- # off-topic (28)
- # practicalli (2)
- # re-frame (42)
- # reagent (4)
- # reitit (7)
- # releases (2)
- # sci (35)
- # shadow-cljs (13)
- # spacemacs (4)
- # vim (3)
Thanks a lot for https://github.com/clj-easy/graal-build-time :) I finally manage to build my first native non trivial app :) xD
May I ask you where I could find a delay trick for applications? I have one dependencies (ring-defaults) that initialize time on call? :)
You could speak Ancient Greek it would be the same haha
Basically, I require a library and that library probably initialize something. How do you circumvent this problem?
Thanks :) I hacked the library :) xD
I thought there would be some magic trick xD
Thanks a lot for your help!
an issue/PR would be the preferred long term solution. Glad you made it work. Do you care to tell us what you're making?
Sure, I am was just trying to make a simple http-kit server with reitit, so I found this example from @yogthos https://github.com/yogthos/graal-web-app-example and this blogpost https://www.redpill-linpro.com/techblog/2021/03/31/faster-clojure-with-graalvm.html which uses docker to make compile the jar into a native application. The challenge is that the examples uses lein (I prefer deps.edn) and also that [ring/ring-defaults "0.3.2"]
has a joda initialization, so I had to hack the ring-defaults (basically removing the cookies and the session middleware).
I need to create a simple proxy server at work, but I was interested in compiling to native for a long time 🙂
yes, that was also one of the options, but I suspect performance will be critical
I mean, I don't know how much performance I am loosing with babashka
I don't know you're requirements but if you use the same deps as the babashka web-app example, you can strip a lot of dependencies and binary size
Here are some performance numbers with babashka + httpkit: https://github.com/kloimhardt/babashka-scittle-guestbook/issues/2#issuecomment-860257752
Just extra info. No need to do anything. Your current approach works and you got your first native app, this is great, congrats :)
Thanks, I will take little victory over little victory 🙂 I feel like 2 years ago, after I released my first cljs webapp xD