@carkh although I'm on windows myself I don't actually know how powershell works and only use WSL myself
if there is something I can do to make detecting clojure
better I'd be happy to do that
right now I'm using https://www.npmjs.com/package/which to detect the clojure
command
I guess this needs a .ps1
?
.cmd
actually sucks because you get the annoying Terminate batch job (Y/N)
on CTRL+C
@thheller as far as i know there is no file that you can call, i think the clj installer defines the clj and clojure commands out of a powershell module...
it looks like the installer makes those commands available globally to any powershell command line
the difficulty i had in making a batch (or cmd file) to invoke clojure via powershell resides in escaping the different levels of nested double quotes
because you have to keep in mind the escaping rules from the cmd file, then from powershell and java maybe ?
hmm I guess I need to figure out how powershell actually works 😛
It might be possible to sidestep the problem entirely by using one of those node libraries to work directly with powershell
but i know nothing about node..
@thheller well not a problem for me, but i guess you might want to think about it at some point in the future
looks like the clojure team is full steam ahead on pwoershell now, and you ain't turning that boat easily =)
I'm unable to download maven dependencies behind a proxy. The clj tool doesn't seem to use the HTTP(S)_PROXY environment variables. Is there a way around this?
@carkh I ran into exactly the same problem of clojure being a Powershell thing when trying to get compilation with GraalVM in Windows working
if you start something from a regular cmd.exe shell, are environment variables passed down to a powershell.exe shell? that’s also something that wasn’t clear to me
I’ll revert to lein native-image for GraalVM for now, so I can stay within cmd.exe. I also ran into another issue with clj.native-image (TDEPS-128).
Latest version of clj uses the Maven proxy settings in settings.xml
See the Maven Proxies section in https://clojure.org/reference/deps_and_cli
since it’s now feasible to create Windows binaries with Clojure + GraalVM, maybe it makes sense to do this instead of the powershell approach? clojure.exe
That would be neat
just got this working today: https://twitter.com/borkdude/status/1128419191588106241
17mb not too bad, what's the startup time like ?
it says so in the picture in the tweet
the binary can be smaller, but I’m compiling along some resources. you can expect 10MB if you have only some code
hum I understood it as saying trhe duration of the linting operation which would be after startup i guess ?
that’s true, linting one file takes 10ms
startup is instant
nice
but I found 10ms already instant, that’s why I said that 😉
i was thinking maybe a half second startup time, so you beat that at the very least =)
it’s nice that all the major OSes can now be targeted with the same Clojure code, natively