clr

vncz 2023-06-02T02:21:22.517769Z

@jarvinenemil This is starting to look very interesting, can you share the code that is implementing the example?

vncz 2023-06-02T02:22:03.450129Z

In Microsoft anything non .NET is a bit frowned upon (though we do have some services in Java); having Clojure .NET would really allow me to have both and I am supposed to write an example soon

dangercoder 2023-06-02T11:11:10.107009Z

@vincenz.chianese here's some code: https://github.com/Dangercoder/clojure-clr-dotnet-api This repo is an example of how to use .NET 7's minimal api 100% async (database access, http-request processing..) It also contains instructions on how to: • Develop • Run • Build - only Docker - (we can't compile clojure-clr to a .`dll` on .NET 3.1+ due to https://github.com/dotnet/runtime/issues/62956) The repo is supposed to evolve into a full example of a minimal production grade app, there are some clojure libraries missing that I would like to use, e.g. https://github.com/seancorfield/honeysql I'm planning to move all the interop code to separate nuget packages once I've thought about them a bit more.

🤩 1
dangercoder 2023-06-03T16:58:47.687059Z

I've added structured logging support to the repository which is very useful- Serilog. The logger impl is using the common Microsoft.Extensions.Logging.ILogger interface. Example:

(info "User Created {@userId}" 1337)
{"@t":"2023-06-03T16:57:51.0717786Z","@m":"User Created 1337","@i":"052f201b","userId":1337,"SourceContext":"potion"}

vncz 2023-06-02T15:15:55.848299Z

Fantastic, thank you very much!

seancorfield 2023-06-02T15:35:55.007279Z

What's "missing" about HoneySQL at this point? It runs on CLR (based on minimal testing, admittedly).

dangercoder 2023-06-02T15:58:11.054539Z

I can't fetch it via nuget

seancorfield 2023-06-02T16:01:43.277399Z

Ah, you don't support git deps yet?

dangercoder 2023-06-02T16:11:31.121329Z

Correct

seancorfield 2023-06-02T16:13:08.318259Z

Is there a GH action for packaging a Clojure lib and deploying it to the (a?) Nuget repo?

seancorfield 2023-06-02T16:13:41.708909Z

(I know nothing at all about Nuget or packaging CLR stuff...)

dangercoder 2023-06-02T16:15:28.573209Z

Not yet but It might be worth waiting on the tools.deps work that @dmiller is working on.

seancorfield 2023-06-02T16:18:55.206979Z

Yeah, until I can set up automated testing (via a fork of Cognitect's test-runner, perhaps) and automated build/deploy, I don't feel I can really go beyond git deps for my libraries. But I would like HoneySQL to become widely used in the CLR world, which is part of my driver for being involved here...

dmiller 2023-06-02T16:22:36.656569Z

I have a fork of cognitect test-runner. it loads. Not thoroughly tested yet. https://github.com/dmiller/test-runner

Anders Eknert 2023-06-02T11:27:16.240559Z

absolutely killing it, @jarvinenemil 👏

1