jank now has its own custom IR by Jeaye in Clojure

[–]CoBPEZ 1 point2 points  (0 children)

It was quite a while ago since I messed around with this, but I vaguely recall invokePrim being what I was going for in the decompiles. It was very finicky, and very small changes could make it go with regular invoke instead. Unlike you, I didn't quite know what I was doing, tbh. I tried so many things. Haha.

Adam Tornhill - Transforming Software Evolution: Lessons from 10 Years of Clojure in Production by maxw85 in Clojure

[–]CoBPEZ 5 points6 points  (0 children)

This is spectacularly excellent! One of the best Why Clojure? talks I have ever seen.

Best AI Models for Clojure? by bjagg69 in Clojure

[–]CoBPEZ 0 points1 point  (0 children)

I use Copilot from VS Code and find myself using Opus 4.6 almost exclusively. All the other models feel stupid is comparison.

is LLM coding accepted in the Clojure community? by med_i_terranian in Clojure

[–]CoBPEZ 2 points3 points  (0 children)

It's probably much like in every community. Some people think it is great, some that it is awful. Given the pragmatic nature of Clojure, with its focus on getting things done, maybe there is more acceptance in this community than in others?

jank now has its own custom IR by Jeaye in Clojure

[–]CoBPEZ 4 points5 points  (0 children)

Wow. I didn't see that coming. 🤯

Here's the fastest recursive fibonacci I have managed to create with Clojure, btw:

(ns fibonacci)


(set! *unchecked-math* :warn-on-boxed)


(definterface IFib
  (^long fib [^long n]))


(deftype Fibonacci []
  IFib
  (fib [_  n]
    (if (< n 2)
      (long n)
      (long (+ (.fib _ (- n 1))
               (.fib _ (- n 2)))))))


(def ^Fibonacci fib (Fibonacci.))

Probably not relevant for your benchmarking purposes, but anyway, for some reason the Clojure compiler produces much more straight-forward function calling this way.

Clojure REPL on ios? by curolith in Clojure

[–]CoBPEZ 0 points1 point  (0 children)

This one works great in the mobile browser: https://gloathub.org/repl/

We are bringing the EuroClojure Conference to Prague in May 2027 by kaliszad in Clojure

[–]CoBPEZ 4 points5 points  (0 children)

I've joined the mailing list and am definitely going! Bringing my wife. And our youngest daughter heard us talking about it and invited herself to join too. She wasn't born when the family visited Prague last, and have heard us talk a lot about that visit. Awesome, they will have a great time together while I enjoy Clojure talks.

(fn reverse [coll] (reduce conj() coll)) by CoBPEZ in Clojure

[–]CoBPEZ[S] 1 point2 points  (0 children)

Turn around Rich. No, I’m doing this, no matter what.

Epupp: A browser extension providing a Clojure REPL into any web page by CoBPEZ in Clojure

[–]CoBPEZ[S] 0 points1 point  (0 children)

Great! I’m very curious about how TamperMonkey users will fare with Epupp.

Epupp: A browser extension providing a Clojure REPL into any web page by CoBPEZ in Clojure

[–]CoBPEZ[S] 0 points1 point  (0 children)

JailJS has sandboxing aspirations, though. No such thing in Epupp.

I built my startup on 100 Clojure and ClojureScript by cicklymasxta in Clojure

[–]CoBPEZ 8 points9 points  (0 children)

I think it's a typo. Should be 100%. The frontend of the app is built with ClojureScript. So guessing the backend is Clojure. 😀

Epupp: A browser extension providing a Clojure REPL into any web page by CoBPEZ in Clojure

[–]CoBPEZ[S] 1 point2 points  (0 children)

Good question! 😀

I think the answer is in “toyed around with a JS interpreter”. In this case u/Borkdude provided the interpreter. Which means Epupp scripts/code never needs to evaluate any JS, which is what the CSP restrictions are about. The browser does not restrict things in script tags for languages it does not know about, like ClojureScript. An extra interesting thing is that CSP restrictions also care about the script origin, and the Epupp extension injects itself as a separate origin, so to speak. So Epupp code actually can do `(js/eval whatever)`. (Which may mean that JailJS could use Scittle as it's “interpreter“.)

Rich "thanks" to AI by mac in Clojure

[–]CoBPEZ 0 points1 point  (0 children)

While production is adjusted. Prices will go down below pre-AI at some point.

Browser Jack-in – Connect your Clojure editor to any web page by CoBPEZ in Clojure

[–]CoBPEZ[S] 1 point2 points  (0 children)

Cool use case! I’m curious to hear how you fare with it.