med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

345
active users

#clojure

6 posts5 participants0 posts today

I want to generate pleasing colour palettes autogically in #Clojure; it seems to me that this is best done in the CIELAB colour space. There's no Clojure implementation, but there is a Java one, here:

gicentre.net/utils

However, it's not in Maven. OK, download the jar.

Oh, wait, it depends on `org.processing.core`. That is in Maven, so that's alright, yes?

No, it in turn depends on two further packages which are not in Maven.

This is Python levels of DLL hell!

giCentregiCentre utilities — giCentre
Replied in thread

@mousebot Indeed, another solution to the precise use case you state would be

`(map (fn [a b] (do-something-with a b)) all-the-as all-the-bes)`

There you don't actually need the index, because you take the elements from each collection in lockstep. At least in #Clojure, the mapping will terminate when either collection runs out of elements.

Over five years now I'm programming on the JVM. Started out with #Java, moved to #Kotlin as my daily driver, dipped my toes into #Scala and once in a while enjoy experimenting with #Clojure. Groovy outside of gradle files, is still a gap to fill.

I had the urge to go behind the language and explore the realms of bytecode, linking and loading and JIT compilation and the helpful people on the RockTheJVM discord recommend me this amazing book: "The well Grounded Java Developer" which goes into this step by step.

It let me appreciate what an outstanding piece of software the JVM really is.

manning.com/books/the-well-gro

The cover for The Well-Grounded Java Developer, Second Edition
Manning PublicationsThe Well-Grounded Java Developer, Second EditionUnderstanding Java from the JVM up gives you a foundation to grow your expertise and take on advanced techniques for performance, concurrency, containerization, and more.

In experiments in Reflaxe (Haxe Macro based Haxe compilation) I'm starting to see the light.

I've got a clone of the macro type definitions named `Glot` (notably, no position data, which isn't always present, and many less `Ref`s) and I've started to get it to transform without stack overflows.

`ClassType`s often have self references, and `FieldAccess` needed a little modification. Stack overflows often don't report where the actual reference loop is, so it's been slow going.

I need to fix up the transformer from Glot to EDN (internally Parenthetical Markup Language) and see what more needs doing to get a Babashka generator going.

Babashka has a bunch of batteries built in that would make like easier for a lot of people.