clr

Anders Eknert 2023-01-23T11:14:24.523509Z

2
❤️ 3
🎉 2
dangercoder 2023-01-23T12:45:25.231859Z

Cool project 👍

😃 3
dmiller 2023-01-23T16:21:13.151079Z

Very cool. Let us hope this will encourage more porting!

😃 2
2
bobcalco 2023-01-23T17:08:44.544539Z

@anders982 Thanks! You just reduced my list of ports blocking my project by one, and I will be using it as soon as I figure out how to incorporate it! I don't suppose you published it to nuget yet?

Anders Eknert 2023-01-23T17:09:40.817989Z

Very happy to hear that, Bob! 😃 I should add publishing as a TODO! Not even started looking into that yet.

Anders Eknert 2023-01-23T17:10:12.934709Z

Do you know of any good guide on the topic?

bobcalco 2023-01-23T17:10:32.911709Z

I mean, I can build it locally and then simply refer to it. I have my cljr.exe able to pre-load assemblies referred to via :local/root on the harddrive.

Anders Eknert 2023-01-23T17:11:01.958619Z

sounds like a good plan in the meantime 👍

bobcalco 2023-01-23T17:11:52.396029Z

Neart-term on cljr's list of todo's is using the NuGet API but I looked at it and recoiled in horror at the apparent complexity of it, so kicked that can down the road a bit as at least I'm functional with local assemblies. I will probably integrate :git/url before I deal with :nuget/version. lol.

Anders Eknert 2023-01-23T17:12:42.835069Z

Hah! I can imagine. Is the plan to have it work with Maven/Clojars too?

dmiller 2023-01-23T17:16:27.616109Z

Re publishing on nuget: in the docs folder in clojure-clr there is a guide to publishing a lib on nuget. This is something that could be automated at some point.

Anders Eknert 2023-01-23T17:16:52.636319Z

Nice! I think I’ve seen that in the past but forgotten about it. Thanks David 👍

bobcalco 2023-01-23T17:19:42.528159Z

NuGet first. Clojars and Maven are definite "maybes" at this point. Clojars will make sense for libraries that are intentionally portable, whereas NuGet will make sense for libraries that are strictly bound to .NET. I imagine once my first pass using deps.edn with clr-specific keys is done, there will be some thoughtful feedback from the deps/cli folks about how we might more thoughtfully integrate these worlds. Right now I have :clr-deps, :clr-aliases and :nuget/repos as toplevel keys and they do no harm to normal clj deps projects (cuz they are ignored by them). In theory clj could probably handle all of the platforms - would just need to interact with NuGet via it's http interface. But then .net devs would be required to have java on their machines (which many probably do anyway but I hesitate to make it a requirement per se). Plus there are just certain realities about how the CLR runs that is sufficiently different from how JVM runs that keeping them separate makes more intuitive sense to me, even if we merge the deps.edn spec around cross platform support.

👍 1
Emma Griffin (OST) 2023-01-23T18:14:38.226019Z

I think you should publish to NuGet and Clojars for a Clojure/ClojureCLR library

👍 1
Emma Griffin (OST) 2023-01-23T18:15:19.976619Z

@anders982 I've published ClojureCLR code to NuGet before, I'm rusty on the process but willing to help

😃 1
Emma Griffin (OST) 2023-01-23T18:16:12.667939Z

@dmiller the guide in the readme didn't work for me when I tried to use it months ago but I was able to tweak it to work for my project

dmiller 2023-01-23T20:23:50.255529Z

Do you remember what the problem was? (This is generally the routine I follow.)

Emma Griffin (OST) 2023-01-23T20:24:25.915329Z

No but I could probably recreate it at some point

Anders Eknert 2023-01-23T20:30:09.344659Z

I’ll follow it when I publish, and will report if I get stuck somewhere