134 points encyclopedism 5 hours ago 50 comments
vegnus 4 hours ago | parent
dmead 3 hours ago | parent
Lisp/clojure/scheme etc is inherently untyped. These libs don't guarantee anything near to the level that a formal verification would suggest.
If this were the haskell standard lib however, that would be news.
packetlost 3 hours ago | parent
jeremyjh 3 hours ago | parent
iorekz 3 hours ago | parent
articulatepang 3 hours ago | parent
“[…] reduce it, the call never returns once the vector has 65505 or more elements.”
> These libs don't guarantee anything near to the level that a formal verification would suggest.
This is just plain wrong. A lisp library can absolutely make performance and correctness guarantees, and formal methods can refute or verify those guarantees. A type system is just a special kind of formal method that can rule out certain classes of bugs.
pron 3 hours ago | parent
agentultra 2 hours ago | parent
Things trickle down to Haskell from higher up but it takes a long time to incorporate them. Dependent Haskell has been in the making for like… 9 years? Maybe more? And it’s still being debated whether Haskell should even adopt it.
The type theory needed for formal proofs is much more advanced at this point. Idris, Agda, Lean, Roq… this is where you need to look to see the 100’s.
krosaen 3 hours ago | parent
nextos 3 hours ago | parent
Sadly, posted on LinkedIn, but in a nutshell, he claims that LLMs are not a tool, they are intrinsic automation.
And by using them, you are kinda giving up.
vegnus 3 hours ago | parent
Zambyte 3 hours ago | parent
vegnus 3 hours ago | parent
I have used Lisps with LLMs a bit. I toyed around with an indented Lisp I developed with LLMs, to get rid of all the parenthesis, maybe make the LLM more capable of writing it since it looked somewhat closer to Python. I still play around with it, its nice to look at.
casion 3 hours ago | parent
zdragnar 2 hours ago | parent
chuckadams 1 hour ago | parent
devin 3 hours ago | parent
cmiles74 2 hours ago | parent
Just the other day, someone told me "AI tools can write better code than you, right?", that gave me a chuckle. Yet that attitude is pervasive, I worry it encourages people to let the tool do all of the work. At that point I find myself agreeing with Rich: is it even a tool anymore?
PUSH_AX 2 hours ago | parent
vegnus 2 hours ago | parent
waffletower 1 hour ago | parent
superdisk 1 hour ago | parent
weavejester 43 minutes ago | parent
The main advantage Clojure has in LLM use is that it has a good REPL. LLMs are quite fast at writing code; the bottleneck is often the time it takes to compile and test that code, which is higher for most compiled languages than it is for an open REPL. A LLM writing Clojure typically has a faster iteration loop than one writing C++.
And while I have no hard evidence of this, I also wonder if Clojure's general design philosophy of reducing complexity (i.e. interconnectivity) is also a benefit for LLMs. My experience is that LLMs tend to be more effective the more isolated and unconnected a piece of code is, which Clojure is specifically designed around.
burnte 2 hours ago | parent
mightyham 1 hour ago | parent
geospeck 2 hours ago | parent
geokon 2 hours ago | parent
gritzko 2 hours ago | parent
rvprasad 2 hours ago | parent
First, (.indexOf (seq (byte-array [1 2 3])) 2) fails because byte arrays store bytes and the argument 2 to `.indexOf` is a Long value. Simple type checking (via eyeballing) could have flagged the incorrect usage. I think such exercises can be more helpful if we can reduce the noise.
Second, (get "abc" 1.9) fails because `get` coerces the given key to integer in the context of string objects, which makes sense; specifically in the context of weakly typed language. That said, I believe that detailed documentation of the behavior of `get` can help clients just as well as returning `nil` or not-found value. However, we are still left with questions such as "who and where do we draw the line about the dynamism of the language?" and "what is the agreed upon semantics that we are checking against?"
devin 40 minutes ago | parent
Hyrum's law, anyone?
> With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.
rvprasad 8 minutes ago | parent
So, while I prefer changing get's behavior to match our intuition in the context of string objects, I think it could go either way, which is not saying much :)
vitorsr 2 hours ago | parent
siscia 1 hour ago | parent
networked 1 hour ago | parent
Are language models significantly better at writing Lean than Rocq?
pona-a 1 hour ago | parent
estherney 1 hour ago | parent
As for why Lean is now used: I guess it's just frontier labs having configured their RLVR environments for Lean? Not sure why, though intuitively I think of Mathlib.
dnautics 59 minutes ago | parent
throwforfeds 4 minutes ago | parent
[1] https://www.quantabooks.org/books/the-proof-in-the-code/
yababa_y 14 minutes ago | parent