Fork me on GitHub
#announcements
<
2023-03-24
>
bozhidar15:03:55

Yesterday I released CIDER 1.7 (https://github.com/clojure-emacs/cider/releases/tag/v1.7.0), but I forgot to announce it. facepalm Enjoy!

🙌 34
👍 10
🎉 20
cider 16
2
kennytilton15:03:43

Announcing version 5.0.0-SNAPSHOT of https://github.com/kennytilton/matrix/blob/main/cljc/matrix/README.md, a generic, glitch-free, property-to-property reactive engine that works especially well for wrapping GUIs, but can be applied usefully to streams of data as well. New this release: • "async" formulaic cells (object properties); • a single tiltontec.matrix.api NS to reduce require clutter; • a useful :debug true option for formulaic cells; • "observers" are now "watches", to avoid conventional misunderstanding of the word "observer". Unchanged: • mutable input cells; • formulaic cells; • global reach for dependencies or mutations; • eager or lazy formulaic cells; • anonymous cells, or "synapses"; • instance-specific cells; • cell or object type specific "watch" functions for side-effects; and • as always, the https://tilton.medium.com/the-cells-manifesto-b21ed10329f0. While all that ^^^ is true, this release exists mostly to support an upcoming (Monday?) https://github.com/kennytilton/web-mx#readme release. Not much doc yet, but DM at will for help getting started, or see you over at #matrix.

🎉 31
bobcalco19:03:37

Announcing release of cljr as open source under Apache 2.0 license: https://github.com/apexdatasolutions/cljr

🎉 36
👍 8
borkdude19:03:16

@U2M7EC8KU Congrats. Windows only?

bobcalco21:03:31

No it works on .NET core too. Basically targeting .NET Framework (Window) and .NET Core (cross platform). Problem for it on .NET Core is that MS took away saving binaries to hard disk via Reflection.Emit()... a problem that is rumored to be fixed with .NET Core 8.

borkdude21:03:41

ah cool, I was confused by cljr.exe, so there is a cljr binary for macOS too?

bobcalco21:03:20

yeah on Mac you'd run it with dotnet cljr.dll <params>

bobcalco21:03:44

it builds both cljr.exe and cljr.dll on windows and you use the exe version there.

borkdude21:03:53

ah cool, so you could make a bash wrapper that does that for you basically

bobcalco21:03:18

i have been focused on Windows/.NET framework as I'm also integrating with Office (think: legacy app modernization). But one of the main use cases is microservices so you'd want those to run on Core to deploy cross platform.

bobcalco21:03:30

.NET is relative hot mess because of the runtime fragmentation over the years (.NET, silverlight, core, standard, winRT, etc). They are trying to tie it all back together again into Core, but because of the Reflection.Emit() restriction the perf on Core is slightly less on startup as the runtime has to compile the entire core clojure library on the fly. Once it's running it's fast; but the startup can take a few seconds. It's much quicker on .NET framework with precompiled libraries.

bobcalco21:03:19

i need to add detail about deps.edn for CLR purposes. Will add that to the readme over the weekend.

borkdude21:03:00

@U2M7EC8KU Have you considered that some libraries may target both JVM and CLR, and how does a deps.edn for such a library look like if it has JVM + CLR dependencies?

bobcalco21:03:54

there are toplevel CLR-specific keys: :clr-deps and :clr-aliases. These are ignored by JVM tooling. cljr ignores :deps and :aliases.

bobcalco21:03:04

There, it's mostly documented already. LOL.

bobcalco21:03:46

{:paths ["src/main/" :another-project-dir]

 :clr-deps
 {Some.Local.Library {:local/root :some-local-dir}
  }

 :clr-aliases
 {:some-local-dir "C:\\libs\\"
  :another-project-dir "C:\\projects\\another-project\\"}

 :nuget/repos []

 }

bobcalco21:03:23

Keeping in mind there could also be :deps and :aliases keys in the same file, that's the current functionality. adding git and nuget are the next two big priorities besides expanding aliases for tool execution.

borkdude21:03:53

Some.Local.Library => this needs to be a qualified symbol

bobcalco21:03:09

It will be Some.Local.Library.dll on the hard drive, located at :some-local-dir.

bobcalco21:03:34

Qualified names will relate more to nuget dependencies and git repos

borkdude21:03:57

I'd say that should be:

{:clj-deps {org/lib {:local/root "Some.Local.Library.dll"}}}
cf how deps.edn deals with .jar files. But better discuss this with @U064X3EF3

bobcalco21:03:39

OK, that's good feedback. Can make it a feature or enhancement request on the Issues tab.

bobcalco21:03:44

:local/root requires a path on the local drive, which in this case is provided by an alias

bobcalco21:03:33

.NET formal names can be used in the first part of the k/v pair, but when referring to a specific folder, the short name of the assembly is enough.

bobcalco21:03:31

another thing worth point out is that assemblies and jar files aren't quite the same thing. If the DLL is compiled by ClojureCLR, each namespace gits its own DLL, so the "correct" thing to do here will be somewhat dictated by a) .NET exigencies and assembly loading logic, and b) the design decisions that went into ClojureCLR up to this point. Java conventions will only be "somewhat" useful.

bobcalco21:03:56

But yes - everything is on the table for discussion at this point.

bobcalco21:03:05

Once the functionality is such that we're past the chicken-egg connundrum of needing cljr to build cljr, the implementation will move to Clojure - porting the tools related projects that currently are JVM specific.

bobcalco21:03:52

But dependency management will require different logic on .NET than it does on the JVM, so I'm waiting to see how far NuGet integration handles that for us.