This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-07
Channels
- # announcements (1)
- # babashka (77)
- # beginners (219)
- # chlorine-clover (6)
- # cider (52)
- # clj-kondo (14)
- # cljdoc (5)
- # clojure (173)
- # clojure-europe (49)
- # clojure-finland (1)
- # clojure-germany (2)
- # clojure-italy (1)
- # clojure-nl (39)
- # clojure-sweden (4)
- # clojure-uk (51)
- # clojurescript (25)
- # code-reviews (9)
- # conjure (25)
- # data-science (2)
- # figwheel-main (6)
- # fulcro (74)
- # graalvm (1)
- # graphql (11)
- # jobs-discuss (17)
- # keechma (4)
- # lein-figwheel (4)
- # leiningen (1)
- # luminus (10)
- # malli (14)
- # mid-cities-meetup (2)
- # off-topic (28)
- # re-frame (5)
- # reagent (76)
- # reitit (30)
- # ring (7)
- # ring-swagger (1)
- # shadow-cljs (163)
- # spacemacs (11)
- # specter (2)
- # sql (43)
- # tools-deps (13)
- # vim (6)
- # yada (1)
@bherrmann there is an issue for arm64 but nobody is working on that
@bherrmann Note the aarch64 download here: https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-19.3.1 - so in theory it should be possible
i'm thinking of making an attempt to compile clj-kondo and/or babashka on an android tablet. i'll let you know how it goes.
i put some details in the issue -- trying to see if i can set up qemu to do builds in a better environment, but also to test the binary that was built
lol, it just happens to be what i downloaded from the link you posted: https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-19.3.1 -- may be i missed something for java 8
maybe Travis can do it? https://docs.travis-ci.com/user/multi-cpu-architectures/
I'd bet http://sr.ht could
https://man.sr.ht/builds.sr.ht/compatibility.md yes, but with software emulation (for now). Benefit of kvm
https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CBYUE1SJTS86F.36MF9HG5PI6R4%40homura%3E
If I expect to be able (find-ns 'clj-ssh)
after deps has downloaded it and verified that its jar is on the BABASHKA_CLASSPATH after I start my REPL, but still cannot; how do I go forward in figuring out what's wrong?
@rovanion what version of bb are you using and are you using the normal REPL, nREPL or socket REPL?
Socket REPL, still on that snapshot from last friday. Should probably up it. Requiering it was the first thing I tried, but I didn't know that find-ns wouldn't find a namespace that hasn't been requiered. I'll upgrade my bb version and try again.
Ah, I think I just didn't read my output well enough earlier. When attempting to require it I actually get an error:
clojure.lang.ExceptionInfo: Unable to resolve classname: .FileInputStream [at clj_ssh/ssh.clj, line , column ]
@rovanion It seems that library depends on custom Java classes from JSch which are not included in bb either
if you want to use ssh from babashka your best bet is probably clojure.java.shell/sh or ProcessBuilder
or take a look at https://github.com/epiccastle/spire which is also a Clojure CLI tool around ssh
@rovanion here is an example: https://github.com/borkdude/babashka/issues/299
I first included the low level namespace of conch in bb, but I could never make the core namespace work with it. Eventually I decided that interoperability with ProcessBuilder directly is sufficient and the most flexible option
Does anybody here know if there is something like Python's shlex
(shell lexer) in the Clojure/Java ecosystem? Seems like this would be useful given the increasing number of shell/sh
calls I'm making with babashka.
whats the simplest way to ask for user input (prompt in console) in the process of babashka?
(read-line)
I’ve created a process via ProcessBuilder
. after I’ve started it, how may I get the pid of it?
@lilactown Don't know. Could you tell us why you need the PID to begin with?
I want to start a bunch of local proxies and edit my /etc/hosts so that I can use prod services while developing UI locally. my thinking was to have a script that acts something like:
./web-prod.clj up
which would start the proxies, edit my hosts file, and generally configure my system
then when I’m done and want to return my system to normal, I would run:
./web-prod.clj down
I want the pids so that I can write them to a file .web-prod
on up, so that when down is called I can kill those pids
I do want to upgrade to java11 and the pid seems to be supported since java9. but there are some issues in v20.0, so I want to wait until at least 20.1
another option would be to have the script run the entire time my system is configured, and on stop kill all the processes and return my system to normal
I wasn’t able to immediately figure out how to keep the script alive. there are 3-5 different processes it needs to manage, so I can’t just waitFor
on one
then I need to figure out how to do the cleanup before the script halts
maybe you could use (read-line)
and then send a newline to stdin which then executes the cleanup, or something? or start a SocketServer and connect to it?
I have a script that does all the startup of the proxies and it exits immediately while the processes persist, I have to kill
them manually atm
I made an issue here: https://github.com/borkdude/babashka/issues/336
We already have some functions around SIGPIPE in babashka.signal, maybe it wouldn't be too hard to add.
Interesting alternative to PHP driven by the Small Clojure Compiler: https://github.com/alekcz/pcp This website is serving an example: http://pcp.musketeers.io/