After that, I found myself with $1000 in Claude credits and decided to go to town, making mistakes along the way.
273 karma · joined July 21, 2008
After that, I found myself with $1000 in Claude credits and decided to go to town, making mistakes along the way.
Yes, I made mistakes along the way.
I would offer this one instead.
I wasn't able to find any chunks of code copied wholesale from OxCaml which already has a DWARF implementation.
All that code wasn't written by Mark, AI just decided to paste his copyright all over.
AI did paste Mark's copyright on all the files for whatever reason but it did not lift the DWARF implementation from OxCaml and paste it into the PR.
The PR wasn't one-shot either. I had to steer it to completion over several days, had one AI review the changes made by the other, etc. The end result is that the code _works_ and does what it says on the tin!
There's value in the PR in that it does not require you to install the separate OxCaml fork from Jane St which doesn't work with all the OCaml packages. Or wasn't when I tried it back in August.
No, I'm not AI or bot, etc. Yes, my resume is genuine and is even more weird than what was listed (see https://joel.id/resume). Oh, and I live in Kyiv.
As for the PR itself, it was a PR stunt that I regret now as the code works and solves a real problem (at least for me!). I'll probably redo it, once I have spare Claude $$$ which I'm using for other projects now (https://joel.id/build-your-dreams/).
My motivation was to use the free $1000 of Claude credits for there greater good, as well as to try to push AI to its limits. It has worked out splendidly so far, my regrettable dumping of that huge PR on OCaml maintainers notwithstanding. For example, I'm having Claude write me a Lisp compiler from scratch, as well as finish a transpiler.
Last but not least, I think AI will write your next compiler and I write about it here https://joel.id/ai-will-write-your-next-compiler/
P.S. I'll try to answer the questions while I'm waiting for my Claude daily limits to reset...
I used ChatGPT and Claude to modify to the stock version of StaticCompiler.jl and bring it up to Julia 1.12.
I didn't write a single line of code but carefully shepherded the project to completion.
Claude Sonnet 4.5 (Claude Code) wrote most of it with ChatGPT 5 (Codex) reviewing and Claude addressing issues in each review. Codex wrote the last 10% or so when Claude kept getting stuck.
I did not write a single line of code but carefully shepherded AI over the course of several days and kept it on the straight and narrow.
- AI: I need to keep track of variables moving across registers. This is too hard, let’s go shopping… - Me: Hey, don’t any no shortcuts!
My work was just directing, shaping, cajoling and reviewing.
A small LLDB Python plug-in reads OCaml values at runtime and prints them in a readable form: lists, tuples, closures, strings, etc. It follows DWARF location lists to track where each variable lives and uses the runtime headers to decode them. The `p` and `ocaml_vars` commands work like normal LLDB commands but understand OCaml values.
It’s not complete yet (records and variants still show as tuples), but it makes debugging native OCaml code straightforward. You can finally set breakpoints by source, inspect locals, and understand what’s in memory without switching to disassembly.
I'm going to add DWARF debugging information to a compiler next.
I do it all without typing a single line of code!
Doesn't IB require a local TWS connection as well as credentials, e.g. 2-factor authentication?
http://wagerlabs.com/blog/2006/01/01/haskell-vs-erlang-reloa...
The benefit is automatically enforcing referential integrity, documenting the "schema" and eliminating a boatload of boilerplate.
Is there commercial potential here?
I already have triggers and could add "REST endpoints" with SQL code and callouts to external functions written in the code that the compiler targets.
Would this be something you would pay for, e.g. if I generated nodejs or some other code?
Oh, my kid speaks Russian and Spanish natively and they teach German and English in school. Will best me by 1 language when out of high school.
The offshore bit was pointed out to me recently and so I had to set up a proper European Union company in a hurry. Now all is well.
I would have been much more comfortable in the cabin but the marina WiFi network didn't reach that far.
Why burn the midnight oil? It was either that or no sailing out next morning to spend a week at sea.
The waiter brought us a bill with a 10% service charge and I asked whether a tip was expected. I don't remember why I asked, perhaps the service charge seemed low or maybe I was just curious.
The waiter told me that of course the tip was expected... on top of the 10% service charge. This is because the service charge covers the staff in the kitchen while the tip covers the waiter :D.