Fork me on GitHub
#core-typed
<
2024-05-27
>
TJ Campanella14:05:35

Do you have any examples of typing a function that should return hiccup?

ambrosebs18:05:41

If you strip away the conform structure it might be useful?

ambrosebs19:05:55

but no I don't have examples. I'd be curious if you could share what you're tackling.

TJ Campanella21:05:15

We have a website that uses the rum library for server side rendering hiccup. We typed a bunch of our more business logic files and have liked the benefits so far, so we wanted to try out typing some of our files with hiccup components

TJ Campanella21:05:53

But yeah we have been using typed clojure for a couple months now and have overall enjoyed the robustness it brings

ambrosebs01:05:47

I'm curious if you check many namespaces and how the performance is? I recently merged some changes to parallelize checking, it would be interesting if you could try one of the latest snapshots (1.2.2-20240527.060957-41).

ambrosebs01:05:45

One problem is that the printing is interleaved but I've found 3x speedups on my internal testing.

TJ Campanella01:05:39

We use lein-typed to check namespaces around 15 of them. I’m pretty sure we’re on the snapshot already and I thought for sure I noticed a nice speed up earlier. I will confirm though later tonight or tomorrow.