HNHacker News
TopNewBestAskShowJobs

joelreymont

273 karma · joined July 21, 2008

[ my public key: https://keybase.io/joelreymont; my proof: https://keybase.io/joelreymont/sigs/LggCRGdstZotd1x-FlJzj-M4ut-39swpjd9Wr8sB8ro ]
submissionscomments
joelreymont··on AI has a deep understanding of how this code works
Thank you! I was completely unexpected, actually. I was stuck with upgrading XLA [1] and my boss gently pushed me into using ChatGPT. I wish I had used Claude instead.

After that, I found myself with $1000 in Claude credits and decided to go to town, making mistakes along the way.

[1] https://github.com/elodin-sys/elodin/pull/219

joelreymont··on Migrating the main Zig repository from GitHub to Codeberg
I had $1000 in Claude credits and went to town.

Yes, I made mistakes along the way.

joelreymont··on Migrating the main Zig repository from GitHub to Codeberg
That one was poorly documented and may have been related to an issue in my code.

I would offer this one instead.

https://github.com/joelreymont/zig/pull/1

joelreymont··on AI has a deep understanding of how this code works
I'm real.
joelreymont··on AI has a deep understanding of how this code works
OxCaml is a fork of OCaml, they have the same license.

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.

joelreymont··on AI has a deep understanding of how this code works
People complaining about AI stealing code may not realize that OxCaml is a fork of the code that AI is modifying. Both forks have the same license and there are people working on both projects.

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!

joelreymont··on AI has a deep understanding of how this code works
I think it's for me to redo the PR and break it into smaller pieces.

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.

joelreymont··on AI has a deep understanding of how this code works
I'm the author of the PR.

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...

joelreymont··on [dead]
This blog post provides a detailed guide to building standalone binaries with Julia, e.g. for microcontrollers and embedded.

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.

joelreymont··on [dead]
It’s not where I obtained this PR but how.

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.

joelreymont··on [dead]
I didn't write a single line of code in this PR but I carefully shepherded it to completion over the several days.
joelreymont··on [dead]
Debugging native OCaml code used to be painful because the compiler didn’t emit DWARF data. LLDB had no idea where your source lines or variables were. With DWARF v5 support, the compiler now includes proper debug info — line mappings, symbols, and variable names — so LLDB can actually follow your code.

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.

joelreymont··on [dead]
I added command history browsing and editing, as well as tab completion to a debugger that did not support it.

I'm going to add DWARF debugging information to a compiler next.

I do it all without typing a single line of code!

joelreymont··on The $10 Hedge Fund Supercomputer That’s Sweeping Wall Street
Who do you use for execution? I wish I could use Interactive Brokers for server-side but, I think, that requires 100k and FIX connection.
joelreymont··on Why you might not want to incorporate in the USA
What carrier offers free EU roaming?
joelreymont··on Real money, invested with algorithms
How does Quantopian connect to IB?

Doesn't IB require a local TWS connection as well as credentials, e.g. 2-factor authentication?

joelreymont··on Ask HN: Why isn't Erlang more popular?
This is very old but...

http://wagerlabs.com/blog/2006/01/01/haskell-vs-erlang-reloa...

joelreymont··on Ask HN: Compiling SQL to Amazon DynamoDB - Can I make money?
This was a project for a client so that code is proprietary. I wrote the compiler in OCaml and generate Erlang code that targets my DynamoDB wrapper [1].

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?

[1] https://github.com/wagerlabs/ddb

joelreymont··on Go 1.2
Do you have an email?
joelreymont··on Ask HN: What's the best place in Europe to live and work cheaply?
I'm bound to hit the Cuban consulate at some point ;).
joelreymont··on Ask HN: What's the best place in Europe to live and work cheaply?
I have a 5 y.o. and wouldn't move from Tenerife (South). Private college costs ~400EUR/mo, health insurance is cheap and crime is super-low.

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.

joelreymont··on We Work Remotely – New Job Board from 37 Signals
Mark the tax treaty checkbox on the W8BEN. This solves all issues, assuming that your company is established in a jurisdiction with a tax treaty.
joelreymont··on We Work Remotely – New Job Board from 37 Signals
Just mark the "tax treaty" checkbox and be done. Been doing it for over 10 years, including with my offshore company.

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.

joelreymont··on Why Startups Should Choose Canada Over Silicon Valley
http://www.zec.org, of course Europe is a whole different ball of wax.
joelreymont··on Frustrated with iCloud, Apple’s developer community speaks up
How do you know that the iCloud server is hosted on Microsoft Azure?
joelreymont··on Advice on the implementation of a real-time trading system [closed]
http://quant.stackexchange.com/
joelreymont··on Windows 8 — Disappointing Usability for Both Novice and Power Users
Offtopic: Can you please poke me via email or otherwise? I'd love to chat. Your profile on HN has no contact info. Thanks!
joelreymont··on Yes I Still Want To Be Doing This at 56
I once spent the night on the stern of a sailboat with 6 cans of Red Bull, debugging a Mac driver for a piece of hardware that may end up being used by Foxconn to test iPhones.

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.

joelreymont··on Tipping doesn't make any sense
We dined at Nardo's in Havana a summer ago. It's off of Central Park, in front of the Capitolium. Had a great time.

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.

joelreymont··on Something is deeply broken in OS X memory management
From my days of optimizing Firefox startup on the Mac, I remember that this doesn't work 100%. The only way to ensure that caches are 100% purged is to unmount the filesystem.
← PreviousPage 2 of 6Next →