This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-18
Channels
- # announcements (19)
- # babashka (30)
- # beginners (51)
- # biff (12)
- # calva (20)
- # cider (27)
- # clara (20)
- # clj-kondo (19)
- # clojure (128)
- # clojure-canada (1)
- # clojure-dev (5)
- # clojure-europe (29)
- # clojure-nl (1)
- # clojure-norway (48)
- # clojure-uk (5)
- # clojurescript (6)
- # clr (37)
- # core-async (17)
- # cursive (2)
- # data-oriented-programming (2)
- # datahike (1)
- # datomic (5)
- # emacs (22)
- # exercism (1)
- # funcool (17)
- # humbleui (15)
- # jobs (1)
- # malli (44)
- # off-topic (11)
- # podcasts-discuss (1)
- # pomegranate (1)
- # react (1)
- # remote-jobs (1)
- # shadow-cljs (25)
- # tools-build (12)
- # tools-deps (70)
- # xtdb (24)
Has anyone tried using a clojure.clr lib with .net 6 or newer?
I tried core.async, my theory is that it doesn't work since it's compiled with .NET 2.1
I'm running Ubuntu
I've loaded a NuGet lib from ClojureCLR with .net 6 iirc
I've tried all of them. I was running all the tests under .NET 6. They are .netstandard2.0 and netstandard2.1. The latter should load under Core3.1 and later. Only on Windows. don't know why it would matter.
Thanks for the clarification dmiller
If anyone is interested, a .NET 7 api that can run with Clojure.Main -M
on Ubuntu (haven't tried windows).
https://github.com/Dangercoder/clojure-clr-dotnet-api
It's currently showcasing:
• Routing
• Health Check endpoint
• Json Serdes (request/response handling)
• Structuring a clojure-cljr application using Integrant
• Start/Stop the application via the repl to e.g. reload routes
I think it's pretty fast for using some sloppy .NET interop 😄. But haven't tried db calls yet
Nice! 👏
I think it's really positive that .net 7 works so well with clojure-clr. We get tons of useful stuff for free, and those things are also maintained and used in the wild.
This is awesome, thank you!
It would be cool to have something like http-kit
ported to ClojureCLR but I feel like that's probably a heavy lift
It seems like it’s even in a bit too many places in the latest alpha 😄
Could not locate clojure_clr/util/platform with extensions .cljr, .cljc, .cljr,
i.e. the .cljr is repeated twice ☝️ I’ll submit a fixI hope github can add Clojure syntax highlighting for .cljr
files soon. I imagine it's difficult to request that sort of thing though
oh! I didn’t realize that would be an issue
Yeah I had assumed it would. On the bright side, github seems to be smart enough to know that .cljr
files contain Clojure source code when calculating the language percent bar as @UBN9SNVB4’s repo is correctly "100% Clojure"
I wrote a Maya script a couple years ago and was annoyed at not having any syntax highlighting in github, so this is good to know more generally
At some point .cljs
and .cljc
must have been added to the list of Clojure source files though, so I'm curious what process was involved in getting those added, as that's the better long term solution for .cljr
Looks like adding a PR to this repo would do it, but they have a "checklist" of requirements for submitting new extensions, so we may have to wait until .cljr
is used more widely.
https://github.com/github/linguist
Here's the PR that got merged to add .bb
to the Clojure file extension list, probably a good template for whenever we meet the requirements
https://github.com/github/linguist/pull/5931
Now we all just need to start writing and publishing more ClojureCLR code (and I need to start using the .cljr
extension instead of crowding .cljc
files)
"files.associations": {
"*.cljr": "clojure"
}
If you're using vscode, add this to ur settings.json 🙂
I'm going to try to add .cljr
to clojure mode in emacs as well, whenever I have the time to reach out to the project maintainer. The maintainer approved my PR to add lein-clr
support to inf-clojure
so I imagine he'll be open to this addition as well, hopefully
@U03TVA3TR0T For syntax highlighting at least, the following works:
(setq auto-mode-alist (cons '("\\.cljr$" . clojure-mode) auto-mode-alist))
Cider support I believe would require ClojureCLR support nREPL, on which I understand@U45FQSBF1 is making inexorable progress.I'm not sure I would describe progress on nREPL as 'inexorable'. I'm taking a short break to clear my head.
yeah, clojure-mode
support would be a good start though, especially for new users to that it works out of the box rather than requiring a custom config edit
Have just switched to use .cljr
for ring-clr 🙂