This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-02
Channels
- # ai (1)
- # aleph (16)
- # announcements (1)
- # architecture (51)
- # babashka (32)
- # beginners (27)
- # calva (3)
- # clerk (1)
- # clojure (49)
- # clojure-art (1)
- # clojure-denver (6)
- # clojure-europe (70)
- # clojure-nl (1)
- # clojure-norway (56)
- # clojure-uk (2)
- # clojuredesign-podcast (4)
- # clojurescript (57)
- # clr (15)
- # community-development (3)
- # conjure (1)
- # core-async (10)
- # data-science (1)
- # datalog (2)
- # datomic (3)
- # emacs (12)
- # events (1)
- # gratitude (4)
- # honeysql (9)
- # hyperfiddle (86)
- # jobs (4)
- # off-topic (10)
- # pedestal (5)
- # portal (11)
- # practicalli (2)
- # reitit (7)
- # releases (3)
- # remote-jobs (1)
- # sql (15)
- # tools-build (8)
- # xtdb (4)
@jarvinenemil This is starting to look very interesting, can you share the code that is implementing the example?
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
@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.
What's "missing" about HoneySQL at this point? It runs on CLR (based on minimal testing, admittedly).
I can't fetch it via nuget
Ah, you don't support git deps yet?
Correct
Is there a GH action for packaging a Clojure lib and deploying it to the (a?) Nuget repo?
(I know nothing at all about Nuget or packaging CLR stuff...)
Not yet but It might be worth waiting on the tools.deps work that @U45FQSBF1 is working on.
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...
I have a fork of cognitect test-runner. it loads. Not thoroughly tested yet. https://github.com/dmiller/test-runner
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"}
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"}