HN user

joelreymont

273 karma

[ my public key: https://keybase.io/joelreymont; my proof: https://keybase.io/joelreymont/sigs/LggCRGdstZotd1x-FlJzj-M4ut-39swpjd9Wr8sB8ro ]

Posts28
Comments156
View on HN
joel.id 7mo ago

Hacking LLDB for a great Zig debugging experience

joelreymont
6pts1
medium.com 9y ago

$0 recurring in-app subscriptions in iOS: Dark pattern or oversight?

joelreymont
2pts0
wagerlabs.com 12y ago

Erlang vs Haskell [2006]

joelreymont
3pts0
wagerlabs.com 12y ago

Ask HN: Have I specialized myself into a corner?

joelreymont
4pts0
github.com 12y ago

Ask HN: Compiling SQL to Amazon DynamoDB - Can I make money?

joelreymont
3pts1
devblog.blackberry.com 14y ago

RIM introduces an open-source cross-platform game development toolkit

joelreymont
1pts0
twitter.com 14y ago

MIX: A compiler from SQL to Erlang code using Amazon DynamoDB

joelreymont
6pts1
news.ycombinator.com 15y ago

Ask HN: Gadget and Windows software companies in Singapore

joelreymont
1pts0
news.ycombinator.com 15y ago

Ask HN: How does Blackberry push work

joelreymont
5pts3
devblog.blackberry.com 15y ago

BlackBerry Tablet OS aka QNX Neutrino

joelreymont
2pts0
news.ycombinator.com 15y ago

Ask HN: How do I pick a logo? /$500 99designs contest with 70 entries/

joelreymont
2pts2
news.ycombinator.com 16y ago

Ask HN: How do I turn 100K into 1 million?

joelreymont
84pts134
news.ycombinator.com 16y ago

Ask HN: Using startups.ch to move to Switzerland. Non-EU citizens?

joelreymont
8pts3
wagerlabs.com 16y ago

Using Grand Central Dispatch and C++ for inter-thread communication

joelreymont
6pts1
groups.google.com 16y ago

Real-world device using Chuck Moore's SEAforth chips [pdf]

joelreymont
1pts1
news.ycombinator.com 16y ago

Ask HN: Where can I buy 10-100 iPhone 3GS

joelreymont
2pts4
news.ycombinator.com 17y ago

Market for whole-disk encryption Mac software

joelreymont
1pts3
tinyco.de 17y ago

How to land your dream job using LinkedIn

joelreymont
3pts4
news.ycombinator.com 17y ago

Ask HN: What hardware would you like Mac OSX to support?

joelreymont
3pts7
tinyco.de 17y ago

Everything you wanted to know about writing Mac OSX drivers but were afraid to ask

joelreymont
4pts3
tinyco.de 17y ago

Creating Mac binaries on any platform and without using a linker

joelreymont
11pts0
www.wagerlabs.com 17y ago

OpenPoker, a scalable poker server written in Erlang, is public on GitHub

joelreymont
40pts14
www.wagerlabs.com 17y ago

Liberate OpenPoker

joelreymont
5pts1
news.ycombinator.com 17y ago

Ask HN: How to monetize a play for fun poker site?

joelreymont
15pts34
news.ycombinator.com 17y ago

Ask HN: iPhone app for reading YC Hacker News?

joelreymont
1pts1
www.wagerlabs.com 17y ago

A Lisp by any other name would smell as sweet?

joelreymont
2pts0
news.ycombinator.com 17y ago

Awesome examples of CSS code box styling

joelreymont
1pts5
www.wagerlabs.com 18y ago

Lisp for the win

joelreymont
1pts0

Debugging Zig in LLDB is painful.

Slices show up as { ptr, len }, optionals are unreadable, and slice[0] just errors out. Python formatters help a bit but don’t fix expressions. zig-lldb fixes everything… if you’re willing to rebuild LLDB and maintain a fork.

zdb is a native LLDB plugin that sits in the middle:

- Works with stock LLDB (Homebrew / system) - Native C++ type summaries (no Python) - Zig-style expressions work: slice[0], opt.?, err catch x

(lldb) p int_slice[0] (int) $0 = 1

How? By calling LLDB’s internal APIs via versioned offset tables and rewriting expressions on the fly.

Limitations: no Variables View expansion (ABI issues with std::function). CLI debugging works great.

Check out the Github repo at https://github.com/joelreymont/zdb!

I'm not trying to say that this is now projects ought to work right now.

I do think this is where we are heading, though.

No, existing open source projects are not ready for this and likely won't ever be.

It will start in the corporate world and maybe already has.

This ought to be automated using AI.

It could first judge whether the PR is frivolous, then try to review it, then flag a human if necessary.

The problem is that Github, or whatever system hosts the process, should actively prevent projects from being DDOS-ed with PR reviews since using AI costs real money.

This is an excerpt from the session where AI is writing my Lisp compiler. What do you call this? I call this doing what a competent developer does!

39/40 tests pass. The native reader works for integers, hexadecimal, lists, strings and quote forms. The one failure is symbol comparison (known limitation).

  Based on the context summary and the user's note about cleanup, I should:
  1. Continue Phase 3.5 self-compilation
  2. Clean up the repo structure

  Let me first update the todo list and then investigate the SIGKILL issue more
  thoroughly. The issue is that combining reader source with file I/O code causes
   the executable to be killed. Let me check if buffer-to-string with reader
  works:

 Let me test specifically reader + file I/O combined (which is what the
  self-hosting test needs):

You can ask AI to write documentation for humans.

Also, I'll try to break up the PR sometime but I'm already running Claude using two $200/mo accounts, in addition to another $200/mo ChatGPT, and still running into time limits.

I want to finish my compilers first.

It wouldn't do much.

I find that ChatGPT 5.1 was much better at reviewing this code than writing it so I had it review Claude's output until the review was clean.

This is in addition to making sure existing and newly generated compiler tests pass and that the output in the PR / blog post is generated by actually running lldb through its paces.

I did have a "Oh, shit!" moment after I posted a nice set of examples and discovered that the AI made them up. At least it honestly told me so!

I don't always use OCaml (meme coming in 1...2...3) and maintaining a fork is a significant undertaking.

More importantly, being able to debug native OCaml binaries and actually see source code, values of variables, etc. is something that's useful to everyone.

Looking at assembler instead of source code sucks unless you are reverse-engineering.

They are super-polite! There's an issue with process, IMO, and changes taking too long to go through the pipeline. This is why Jane St forked OCaml and are maintaining their fork. They have way more money than the OCaml team at INRIA and can afford to move as fast as they want to while waiting for their changes to make it upstream (sometime or never).

Note that this PR works, was tested, etc.

I was careful to have AI run through the examples in the PR, run lldb on the sample code and make sure the output matches.

Some of the changes didn't make it in before the PR was closed but I don't think anyone bothered to actually check the work. All the discussion focused on the inappropriateness of the huge PR itself (yes, I agree), on it being written by AI... and on the AI somehow "stealing" work code.

Why would you be unwilling to merge AI code at all?

Consider my other PR against the Zig compiler [1]... I was careful to make it small and properly document it but there's a strict anti-AI policy for Zig and they closed the PR.

Why?

Is it not small? Not carefully documented? Is there no value it int?

I'm not complaining or arguing for justice. I'm genuinely interested in how people think in this instance. If the sausage looks good and tastes great, and was made observing the proper health standards, do you still care how the sausage was made?!

[1] https://github.com/joelreymont/zig/pull/1 [2] https://ziggit.dev/t/bug-wrong-segment-ordering-for-macos-us...