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.
Rowan Barnard 2021-04-10T09:46:28.164Z

Oh nice thanks, that looks a lot nicer, I'll give it a try 🙂

Rowan Barnard 2021-04-10T09:55:55.165900Z

Yes it worked, thank you very much @seancorfield 🙂 The usage looks much nicer now. Should I let Practicalli know about this as the Practicalli deps.edn has very similar functionality and usage to yours?

borkdude 2021-04-10T09:56:48.166500Z

@flyingpython Note that the workaround for this is inside of the tool, it's not a general solution for all -X tools

borkdude 2021-04-10T09:57:11.167Z

It accepts args as symbols and then calls str on those internally again to get strings

Rowan Barnard 2021-04-10T09:57:21.167100Z

Ah I see

Rowan Barnard 2021-04-10T09:58:16.168100Z

Yeah I still think the community should come up with a better way of doing this -X stuff that is more beginner friendly

borkdude 2021-04-10T09:58:50.168800Z

You can just fire up a REPL and execute the function from the REPL to work around limitations of -X.

Rowan Barnard 2021-04-10T09:59:28.169600Z

Oh yeah I saw how you did that just above - I didn't know I could do that 😅

Rowan Barnard 2021-04-10T09:59:51.170200Z

Yeah that looks nicer than relying on commandline

borkdude 2021-04-10T09:59:51.170300Z

The REPL as a universal shell, who would have thought of that ;)

Rowan Barnard 2021-04-10T10:00:50.171500Z

Still I think at least documentation about this stuff should show how to pass the strings for Windows users or show how to do it with the REPL like you did above

borkdude 2021-04-10T10:02:34.174Z

Agreed.

Rowan Barnard 2021-04-10T10:02:56.174400Z

Because there might be a lot of people on Windows interested in learning and they just get up to the chapter on starting your first Clojure project and immediately hit an unsurpassable brickwall simply because they aren't on *nix

Rowan Barnard 2021-04-10T10:05:47.176800Z

I keep learning how awesome the REPL is, soon every problem is going to look like something the REPL can solve 😂

borkdude 2021-04-10T10:06:43.177700Z

That is true. The REPL should probably be one of the first things everyone entering Clojure should learn. And the REPL can be a good workaround for the -X limitations anyway, so all that needs is good documentation.

borkdude 2021-04-10T10:08:48.178500Z

The only thing where the REPL isn't such a good fit is when you want to invoke the things from a shell script, but in that case you can just write a .clj file and execute it with clojure -M script.clj.

Rowan Barnard 2021-04-10T10:12:43.180300Z

Is that kind of what is going on with the dev.clj file that goes along with seancorfield's deps.edn? One of the aliases there :dev/repl invokes that file as a JVM option

borkdude 2021-04-10T10:13:19.180800Z

I don't know that project well, so Sean can probably explain it here better

Rowan Barnard 2021-04-10T10:15:11.182900Z

Ah OK no worries, I can kind of read and get some kind of understanding of much of the deps.edn files but I get lost with the JVM options stuff - I guess I don't have a good understanding of how the JVM can be invoked and the possibility with options