This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-21
Channels
- # announcements (11)
- # architecture (8)
- # aws (7)
- # babashka (1)
- # beginners (55)
- # calva (52)
- # cider (4)
- # clj-kondo (5)
- # clojure (12)
- # clojure-europe (7)
- # clojure-uk (3)
- # clojurescript (40)
- # clr (1)
- # conjure (5)
- # data-oriented-programming (7)
- # datomic (8)
- # emacs (3)
- # events (1)
- # graphql (2)
- # honeysql (5)
- # lsp (7)
- # missionary (24)
- # nbb (10)
- # off-topic (12)
- # pathom (5)
- # reagent (9)
- # reitit (4)
- # schema (1)
- # sci (9)
- # shadow-cljs (2)
- # specter (6)
- # tools-deps (4)
- # xtdb (13)
This isn’t a bug report (I can’t reproduce with the latest version of sci) but I’m dying to know why sci.core/eval-string
hangs on trivial inputs (e.g. "0"
) on sci 0.2.7
if reitit is also included as a dependency. 😆 :thinking_face:
❯ nix-shell --pure -p clojure
[nix-shell:~]$ timeout -v 60 clojure -Srepro -Sdeps '{:deps {metosin/reitit {:mvn/version "0.5.18"} org.babashka/sci {:mvn/version "0.2.7"}}}' -M -e "(require '[sci.core :as sci]) (sci/eval-string \"0\")"
timeout: sending signal TERM to command 'clojure'
Works fine if reitit is excluded:
[nix-shell:~]$ time clojure -Srepro -Sdeps '{:deps {org.babashka/sci {:mvn/version "0.2.7"}}}' -M -e "(require '[sci.core :as sci]) (sci/eval-string \"0\")"
0
real 0m4.011s
user 0m14.914s
sys 0m0.576s
Also works with sci 0.2.8:
[nix-shell:~]$ time clojure -Srepro -Sdeps '{:deps {metosin/reitit {:mvn/version "0.5.18"} org.babashka/sci {:mvn/version "0.2.8"}}}' -M -e "(require '[sci.core :as sci]) (sci/eval-string \"0\")"
0
real 0m4.263s
user 0m15.740s
sys 0m0.657s
Simply requiring sci is fine, even with reitit:
[nix-shell:~]$ time clojure -Srepro -Sdeps '{:deps {metosin/reitit {:mvn/version "0.5.18"} org.babashka/sci {:mvn/version "0.2.7"}}}' -M -e "(require '[sci.core :as sci])"
real 0m4.255s
user 0m20.633s
sys 0m0.658s
I’ve been staring at the 0.2.8 changelog and nothing stands out. 😆 https://github.com/babashka/sci/blob/master/CHANGELOG.md#v028