clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
2019-12-02T18:41:57.064400Z

I just installed clojure with scoop. Anyone know how I add it to my emacs exec-path? I've tried the sccop/modules/ directory which contains the ClojureTools powershell script and jar. I'm not knowledgeable of powershell.

seancorfield 2019-12-02T19:29:07.065200Z

@jjttjj It's at C:\Users\<account>\scoop\apps for me

seancorfield 2019-12-02T19:29:43.065600Z

(at least, clojure is -- not sure where clj ended up?)

2019-12-02T19:38:10.066200Z

is it correct that you want to be using clojure and not clj for emacs anyway?

seancorfield 2019-12-02T19:38:24.066400Z

yup

2019-12-02T19:38:33.066600Z

tnx

2019-12-02T19:39:21.067200Z

i thought clj was some powershell-specific thing and not an executable on windows -- i'll take a look

2019-12-02T19:41:48.067800Z

i don't see an exe for clojure either -- doing powershell -command clojure seems to work, fwiw

borkdude 2019-12-02T19:42:14.068200Z

isn't it a clojure.cmd thingie that scoop produces?

seancorfield 2019-12-02T19:43:21.069200Z

There's a shims folder too on my PATH -- but I am fuzzy as to how cmd and PS map a command name to a filename...

2019-12-02T19:43:45.070Z

i see a cmd-clojure.exe in the shims folder

1👍
seancorfield 2019-12-02T19:43:53.070200Z

(I start my REPL tooling explicitly and use a Socket REPL so the whole CIDER/jack-in thing isn't applicable to my workflow)

borkdude 2019-12-02T19:44:07.070500Z

spartan workflow ftw

borkdude 2019-12-02T19:44:37.071100Z

(reference to a podcast with Stuart Halloway)

2019-12-02T19:45:02.071800Z

lol, i do something similar but don't find it spartan 🙂

borkdude 2019-12-02T19:45:33.072800Z

well, at least you avoid the fighting with tooling, which is kind of the point of it

seancorfield 2019-12-02T19:45:42.073100Z

Yeah, I want an editor setup that works with local and remote processes identically, therefore requires "no dependencies" and the bare minimum over-the-wire machinery.

borkdude 2019-12-02T19:46:48.073900Z

Someone asked why babashka didn't show a REPL, but did have a socket repl server. The reason is, personally I don't type a lot in console REPLS

borkdude 2019-12-02T19:46:59.074100Z

(sorry off topic)

2019-12-02T19:47:12.074400Z

what does it mean to not show a REPL?

borkdude 2019-12-02T19:47:34.074800Z

when you type clj, you get a REPL in the console

2019-12-02T19:47:44.075200Z

ah that, tnx

seancorfield 2019-12-02T19:48:24.076500Z

Atom's Chlorine has a readonly panel where it displays results -- but there's no "input": you cannot type into Chlorine's REPL. I like that because it encourages a "better" workflow (or at least discourages/prevents a "bad" workflow).

1👍
2019-12-02T19:49:38.077400Z

if one had support for a repl like this, could the socket part be something that could be an external program that just forwards between bb and something else?

borkdude 2019-12-02T19:49:57.078Z

Btw, I just bought Parallels Desktop, it was a Black Friday deal, so I can now properly run Windows on my Mac again. VirtualBox was crashing my Mac so hard, it wasn't possible for me for a while.

borkdude 2019-12-02T19:50:44.078400Z

dunno

borkdude 2019-12-02T19:51:09.078600Z

I guess most of the code can be reused somehow

2019-12-02T19:51:16.078800Z

just thinking one could drop the built in socket repl to simplify the code living in bb

borkdude 2019-12-02T19:51:20.079Z

just like clojure itself does it

2019-12-02T19:51:45.079200Z

although i guess there would be a problem of getting an external tool to work on multiple platforms

2019-12-02T19:52:02.079600Z

ah, looking forward to more windows testing? 😉

borkdude 2019-12-02T19:53:27.079700Z

The code in babashka.impl.socket_repl contains both code for the socket REPL (start-repl!) and the REPL code that you would also use for the console REPL (repl)

1👍
borkdude 2019-12-02T19:54:36.079900Z

it's just mirroring what clojure itself does, only it was made a little more graalvm-friendly

borkdude 2019-12-02T19:55:37.080200Z

don't want to miss out on all the fun

2019-12-02T19:55:57.080400Z

ha ha ha

borkdude 2019-12-02T19:56:56.080600Z

I didn't understand the recent posts on a .dll. Wasn't this problem solved with 19.3.0 ?

borkdude 2019-12-02T19:57:28.080800Z

this one: https://github.com/oracle/graal/issues/1762#issuecomment-560527509

borkdude 2019-12-02T19:57:49.081200Z

or was this only about JDK 11?

littleli 2019-12-02T22:08:51.081900Z

guys, I added very recently cmd-clojure and cmd-clj if shims are required, for example to be able to run from cmd.exe

littleli 2019-12-03T09:35:30.083Z

Thank you. It warms my ❤️

littleli 2019-12-02T22:14:00.082200Z

I see @sogaiu already figured that out 🙂

2019-12-02T22:16:04.082400Z

thanks for adding them 🙂

2019-12-02T23:40:20.082600Z

Ah, this was what I needed for emacs, thanks!

2019-12-02T23:43:31.082800Z

Thanks for your work on scoop-clojure stuff too. I set up dev environments on both windows and linux recently, and for the first time windows was easier! It was always considerably harder in the past. This is my first time using scoop and it seems pretty great