This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-16
Channels
- # aleph (1)
- # announcements (3)
- # babashka (24)
- # beginners (333)
- # clj-kondo (36)
- # cljs-dev (11)
- # clojure (75)
- # clojure-italy (3)
- # clojure-uk (15)
- # clojurescript (31)
- # core-logic (18)
- # cursive (2)
- # data-science (3)
- # datomic (1)
- # events (1)
- # fulcro (13)
- # graalvm (2)
- # jobs (1)
- # kaocha (2)
- # malli (1)
- # overtone (6)
- # re-frame (7)
- # reagent (17)
- # rewrite-clj (3)
- # shadow-cljs (10)
- # sql (9)
- # vim (1)
apart from the usual python -> python2 change i make, it appears the nc i have doesn't have a -q option so the socket-repl tests wouldn't pass as is -- once i used the if branch for the mac instead, things were ok. other than that, everything passed.
ah, i had to manually set GRAALVM_HOME to get the ssl test to work, but once set, it was fine
btw, based on @dharrigan's PKGBUILD for clj-kondo-bin, here's one for babashka-bin:
pkgname=babashka-bin
pkgver=0.0.27
pkgrel=1
pkgdesc='A Clojure babushka for the grey areas of Bash.'
arch=('x86_64')
url=''
license=('EPL')
provides=('babashka')
conflicts=('babashka')
source=("")
sha256sums=('b0b1f0c3d7e0603a7f8f31ea5037e0ec6d04b7c7918164f526d8d2e27007f46f')
package() {
install -Dm755 "${srcdir}/bb" "${pkgdir}/usr/bin/bb"
}
i noticed that conch/destroy doesn't appear to succeed for my invocation of shadow-cljs via yarn in a babashka script -- so i tried this with the original conch library on the jvm and noticed the same behavior there. this isn't a babashka issue, so may be i should ask elsewhere, but any clues as to why destroy doesn't appear to work?
ah, this was a case of the yarn (node) process being destroyed, but not the process (jvm) it launches...quick searches suggest other folks have had similar issues.
in this particular case, shadow-cljs happens to write its own pid to a file, iiuc, so using that info, may be https://docs.oracle.com/javase/9/docs/api/java/lang/ProcessHandle.html#of-long- may be applied. i guess that may not work on java 8 though...
@holyjak binding
now works with clojure.core/*in*
and clojure.core/*out*
:
https://github.com/borkdude/babashka/releases/tag/v0.0.29
Awesome!
ok, the processhandle thing seems to work -- apparently graal 19.3 might have support for java 11: https://github.com/oracle/graal/issues/651#issuecomment-533627450