Kestrel + Clojure

91 views
Skip to first unread message

Scott Archer

unread,
Jun 9, 2020, 11:45:27 PM6/9/20
to clojure-clr
I'm relatively new to Clojure, but wanted to see if I could get Clojure to start the Kestrel web server that ships with .netcore.
If I can get it to work, I'd love to implement ring or a subset of ring on top of Kestrel mainly to learn more about Clojure / Clojure-CLR.

Is there any documentation on how to reference / load libraries in the CLR version of Clojure?
How does it handle async calls to .net components?
Does it support calling extension methods?

I'm getting hung up on some of these things and I know it's purely lack of knowledge on my part, but I was curious if anyone would want to help me work through some of them or if you could point me to a reference so I can understand how the interop works with the CLR version.

Thanks!

Scott


Pankaj Doharey

unread,
Jun 10, 2020, 3:23:50 AM6/10/20
to clojure-clr
Well if you want to load a specific DLL at runtime in Clojure CLR then you can call
(assembly-load-from "/path/to/your.dll") for async refer to
core.sync


Phill Wolf

unread,
Jun 24, 2020, 6:04:55 AM6/24/20
to clojure-clr
Ring itself should(?) work "out of the box", but you would need an adapter for the host. You could model it on ring-jetty-adapter.
Reply all
Reply to author
Forward
0 new messages