This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-23
Channels
- # ai (1)
- # aleph (1)
- # announcements (7)
- # babashka (87)
- # beginners (34)
- # biff (9)
- # clerk (4)
- # clojars (37)
- # clojure (144)
- # clojure-art (12)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-uk (2)
- # clr (5)
- # conjure (1)
- # data-science (1)
- # datahike (7)
- # datalevin (6)
- # datomic (13)
- # events (1)
- # fulcro (1)
- # graalvm (5)
- # gratitude (1)
- # honeysql (4)
- # hyperfiddle (122)
- # malli (26)
- # nbb (2)
- # off-topic (16)
- # portal (93)
- # practicalli (1)
- # re-frame (1)
- # reitit (15)
- # releases (3)
- # remote-jobs (1)
- # shadow-cljs (5)
- # tools-deps (6)
- # xtdb (4)
This is a shell script that installs .NET 7 and clojure-clr on Ubuntu, just wanted to share it, someone might find it useful. https://gist.github.com/Dangercoder/abfb81bb90f4c83ca79e920a0bf67c8a
🙌 4
🙏 2
2
2
How can I translate this into clojure-clr interop:
Action<Task<String>>
? I'm trying to generate a delegate.
(gen-delegate |System.Action
1[System.Threading.Tasks.Task`1[System.String]]|[the-string])`
(-> (Task/Run
(sys-func [System.String] []
"Hello, continuation"))
(.ContinueWith
(sys-action [|System.Threading.Tasks.Task`1[System.String]|] [^Task task]
(println (.Result task)))
(->cancellation-token)))
Made it work in a different way. Nice👍 2
As I mentioned to you privately, generic type references need some serious work. You provide a case in point.
I think a workaround for now is to just use C# where it's needed and write wrapper code to make it more cljr friendly.