digitalmars.D - Chatgpt and bus error
- Walter Bright (9/9) Oct 10 I am not very familiar with the Mac, and waste a lot of time trying to f...
- Richard (Rikki) Andrew Cattermole (4/16) Oct 11 If you used a client, it would have been able to run it for you and then...
- Walter Bright (2/3) Oct 11 ??
- Richard (Rikki) Andrew Cattermole (6/10) Oct 11 I've been keeping it pretty quiet and nobody really caught it when I
- jmh530 (3/14) Oct 11 Try using Codex. Might need Plus/Pro subscription to get some
- libxmoc (9/20) Oct 11 The machine is getting better.
- libxmoc (3/3) Oct 11 On that note, I recommend that the D Foundation look into
- strawberry9 (11/22) Oct 11 Your a bit behind the times Walter;-)
- Walter Bright (2/4) Oct 11 You and Rikki! I expect there will be many more.
- Richard (Rikki) Andrew Cattermole (5/10) Oct 12 There are many more than just us.
- Walter Bright (2/3) Oct 12 So does everyone else!
- Lance Bachmeier (11/16) Oct 12 I think you're out of luck with respect to preventing people from
- monkyyy (3/8) Oct 12 why preprocessors over byte code or intruptitors? all 3 should be
- Lance Bachmeier (4/14) Oct 12 They'll all be straightforward using a frontier model. I singled
- jmh530 (2/17) Oct 12 Why not just tell the LLM what to do?
- Lance Bachmeier (7/26) Oct 12 Sometimes that's reasonable. It's more efficient and less
- Walter Bright (5/7) Oct 12 People write their own custom languages all the time that transform into...
- Lance Bachmeier (5/12) Oct 12 But you've been opposed to AST macros for as long as I've been
- Walter Bright (3/6) Oct 13 Yes, I remain opposed to them as part of the language.
- Guillaume Piolat (7/14) Oct 13 Honestly since everything seems possible now (your dream
- Paolo Invernizzi (4/22) Oct 13 Well, AI can also aids a lot in tooling and libraries for D,
- Meta (8/15) Oct 12 I'll add that I "wrote" a major language addition in a couple
- Walter Bright (1/1) Oct 11 Fixed it! Now hello.d compiles and runs successfully. It's a big step fo...
I am not very familiar with the Mac, and waste a lot of time trying to figure out the Mac way of doing things. I was getting a bus error from a hello world program in Arm64, from somewhere in druntime. I tried my usual methods at tracking the problem, to no avail. So I thought what the heck, and uploaded the executable to chatgpt. It responded with a list of lldb commands, which I executed and transmitted the results back to chatgpt. It found the bug! Well, that was a big time saver. Tomorrow I'll see about fixing it.
Oct 10
On 11/10/2026 7:56 PM, Walter Bright wrote:I am not very familiar with the Mac, and waste a lot of time trying to figure out the Mac way of doing things. I was getting a bus error from a hello world program in Arm64, from somewhere in druntime. I tried my usual methods at tracking the problem, to no avail. So I thought what the heck, and uploaded the executable to chatgpt. It responded with a list of lldb commands, which I executed and transmitted the results back to chatgpt. It found the bug! Well, that was a big time saver. Tomorrow I'll see about fixing it.If you used a client, it would have been able to run it for you and then fixed it. - Someone who already has aarch64 backend that is optimizing
Oct 11
On 10/11/2026 12:01 AM, Richard (Rikki) Andrew Cattermole wrote:- Someone who already has aarch64 backend that is optimizing??
Oct 11
On 12/10/2026 11:37 AM, Walter Bright wrote:On 10/11/2026 12:01 AM, Richard (Rikki) Andrew Cattermole wrote:I've been keeping it pretty quiet and nobody really caught it when I mentioned it in a monthly meeting recently. I have my own language now :) With optimizing backend, including aarch64 support. Fully LLM written.- Someone who already has aarch64 backend that is optimizing??
Oct 11
On Sunday, 11 October 2026 at 06:56:45 UTC, Walter Bright wrote:I am not very familiar with the Mac, and waste a lot of time trying to figure out the Mac way of doing things. I was getting a bus error from a hello world program in Arm64, from somewhere in druntime. I tried my usual methods at tracking the problem, to no avail. So I thought what the heck, and uploaded the executable to chatgpt. It responded with a list of lldb commands, which I executed and transmitted the results back to chatgpt. It found the bug! Well, that was a big time saver. Tomorrow I'll see about fixing it.Try using Codex. Might need Plus/Pro subscription to get some good use out of it.
Oct 11
On Sunday, 11 October 2026 at 06:56:45 UTC, Walter Bright wrote:I am not very familiar with the Mac, and waste a lot of time trying to figure out the Mac way of doing things. I was getting a bus error from a hello world program in Arm64, from somewhere in druntime. I tried my usual methods at tracking the problem, to no avail. So I thought what the heck, and uploaded the executable to chatgpt. It responded with a list of lldb commands, which I executed and transmitted the results back to chatgpt. It found the bug! Well, that was a big time saver. Tomorrow I'll see about fixing it.The machine is getting better. One note tho. the model available on the website is optimized to serve the general public, it is not that good, you should definitely look into using their codex or better, go with claude, you'll get a much better UX, it'll be able to inspect binaries directly for you using objdump and the likes, ut can disassemble, read assembly and a whole bunch of stuff. AI in the hands of people like you is a deadly combo.
Oct 11
On that note, I recommend that the D Foundation look into https://claude.com/contact-sales/claude-for-oss to gain free access to Claude.
Oct 11
On Sunday, 11 October 2026 at 06:56:45 UTC, Walter Bright wrote:I am not very familiar with the Mac, and waste a lot of time trying to figure out the Mac way of doing things. I was getting a bus error from a hello world program in Arm64, from somewhere in druntime. I tried my usual methods at tracking the problem, to no avail. So I thought what the heck, and uploaded the executable to chatgpt. It responded with a list of lldb commands, which I executed and transmitted the results back to chatgpt. It found the bug! Well, that was a big time saver. Tomorrow I'll see about fixing it.Your a bit behind the times Walter;-) I got AI to write a how language specification and compiler .etc... etc.. in less that a week ( https://github.com/strawberry9/CobaltC ) Can you imagine how long that would have taken a human (or more correctly, a 'team' of humans, to complete).It's only cost me 1 months subscription so far. Embrace the AI age right now - that is my recommendation. Not only will it save you lots of time, it may even put you out of your job ;-)
Oct 11
On 10/11/2026 4:16 PM, strawberry9 wrote:I got AI to write a how language specification and compiler .etc... etc.. in less that a week ( https://github.com/strawberry9/CobaltC )You and Rikki! I expect there will be many more.
Oct 11
On 12/10/2026 7:32 PM, Walter Bright wrote:On 10/11/2026 4:16 PM, strawberry9 wrote:There are many more than just us. But I suspect around D I may be the only actual language designer/compiler developer to do it. I have lots of opinions about compiler architecture :)I got AI to write a how language specification and compiler .etc... etc.. in less that a week ( https://github.com/strawberry9/CobaltC )You and Rikki! I expect there will be many more.
Oct 12
On 10/12/2026 12:01 AM, Richard (Rikki) Andrew Cattermole wrote:I have lots of opinions about compiler architecture :)So does everyone else!
Oct 12
On Monday, 12 October 2026 at 06:32:37 UTC, Walter Bright wrote:On 10/11/2026 4:16 PM, strawberry9 wrote:I think you're out of luck with respect to preventing people from inventing their own syntax for D. It's such a trivial programming problem to transform custom syntax into valid D that you can vibe code a preprocessor with a local LLM running on a CPU (I've done it). At some point I will stop writing pure D syntax, even if I share the pure D code with others. I find D to be a compelling target language because it's fast, it has a GC, it can go low-level, it's supported on many platforms, it has good language interoperability, etc. But I don't have a reason to stick with the out-of-the-box syntax any longer.I got AI to write a how language specification and compiler .etc... etc.. in less that a week ( https://github.com/strawberry9/CobaltC )You and Rikki! I expect there will be many more.
Oct 12
On Monday, 12 October 2026 at 17:08:52 UTC, Lance Bachmeier wrote:On Monday, 12 October 2026 at 06:32:37 UTC, Walter Bright wrote:why preprocessors over byte code or intruptitors? all 3 should be ancient cs, verifiable etc.platforms, it has good language interoperability, etc. But I don't have a reason to stick with the out-of-the-box syntax any longer.
Oct 12
On Monday, 12 October 2026 at 19:17:48 UTC, monkyyy wrote:On Monday, 12 October 2026 at 17:08:52 UTC, Lance Bachmeier wrote:They'll all be straightforward using a frontier model. I singled out the preprocessor because it's fast and easy even using a local model.On Monday, 12 October 2026 at 06:32:37 UTC, Walter Bright wrote:why preprocessors over byte code or intruptitors? all 3 should be ancient cs, verifiable etc.platforms, it has good language interoperability, etc. But I don't have a reason to stick with the out-of-the-box syntax any longer.
Oct 12
On Monday, 12 October 2026 at 21:59:54 UTC, Lance Bachmeier wrote:On Monday, 12 October 2026 at 19:17:48 UTC, monkyyy wrote:Why not just tell the LLM what to do?On Monday, 12 October 2026 at 17:08:52 UTC, Lance Bachmeier wrote:They'll all be straightforward using a frontier model. I singled out the preprocessor because it's fast and easy even using a local model.On Monday, 12 October 2026 at 06:32:37 UTC, Walter Bright wrote:why preprocessors over byte code or intruptitors? all 3 should be ancient cs, verifiable etc.platforms, it has good language interoperability, etc. But I don't have a reason to stick with the out-of-the-box syntax any longer.
Oct 12
On Monday, 12 October 2026 at 23:51:54 UTC, jmh530 wrote:On Monday, 12 October 2026 at 21:59:54 UTC, Lance Bachmeier wrote:Sometimes that's reasonable. It's more efficient and less error-prone if I have an easy way to express my intentions precisely and let the language turn it into calls to libraries. For example, if I want to estimate a particular model, a syntax that lets me express the model concisely and unambiguously is easier than prompting an LLM.On Monday, 12 October 2026 at 19:17:48 UTC, monkyyy wrote:Why not just tell the LLM what to do?On Monday, 12 October 2026 at 17:08:52 UTC, Lance Bachmeier wrote:They'll all be straightforward using a frontier model. I singled out the preprocessor because it's fast and easy even using a local model.On Monday, 12 October 2026 at 06:32:37 UTC, Walter Bright wrote:why preprocessors over byte code or intruptitors? all 3 should be ancient cs, verifiable etc.platforms, it has good language interoperability, etc. But I don't have a reason to stick with the out-of-the-box syntax any longer.
Oct 12
On 10/12/2026 10:08 AM, Lance Bachmeier wrote:I think you're out of luck with respect to preventing people from inventing their own syntax for D.People write their own custom languages all the time that transform into a base language. I've done it multiple times, too. It's usually done with macros.
Oct 12
On Tuesday, 13 October 2026 at 01:29:37 UTC, Walter Bright wrote:On 10/12/2026 10:08 AM, Lance Bachmeier wrote:But you've been opposed to AST macros for as long as I've been using the language, and I'm sure even before that, because you don't want folks writing D with their own syntax. Now we don't need AST macros.I think you're out of luck with respect to preventing people from inventing their own syntax for D.People write their own custom languages all the time that transform into a base language. I've done it multiple times, too. It's usually done with macros.
Oct 12
On 10/12/2026 8:39 PM, Lance Bachmeier wrote:But you've been opposed to AST macros for as long as I've been using the language, and I'm sure even before that, because you don't want folks writing D with their own syntax. Now we don't need AST macros.Yes, I remain opposed to them as part of the language. But if you want to generate D code from your language, feel free!
Oct 13
On Tuesday, 13 October 2026 at 01:29:37 UTC, Walter Bright wrote:On 10/12/2026 10:08 AM, Lance Bachmeier wrote:Honestly since everything seems possible now (your dream language!), I think there is a lot of value in exercising restraint and keep talking the same language, collaborating on the same libraries and sticking to our guns. AI lowers the need for each other in way obviously harmful to communities such as this one, at least that's the immediate impression.I think you're out of luck with respect to preventing people from inventing their own syntax for D.People write their own custom languages all the time that transform into a base language. I've done it multiple times, too. It's usually done with macros.
Oct 13
On Tuesday, 13 October 2026 at 11:36:53 UTC, Guillaume Piolat wrote:On Tuesday, 13 October 2026 at 01:29:37 UTC, Walter Bright wrote:Well, AI can also aids a lot in tooling and libraries for D, making happy also not AI loversOn 10/12/2026 10:08 AM, Lance Bachmeier wrote:Honestly since everything seems possible now (your dream language!), I think there is a lot of value in exercising restraint and keep talking the same language, collaborating on the same libraries and sticking to our guns. AI lowers the need for each other in way obviously harmful to communities such as this one, at least that's the immediate impression.I think you're out of luck with respect to preventing people from inventing their own syntax for D.People write their own custom languages all the time that transform into a base language. I've done it multiple times, too. It's usually done with macros.
Oct 13
On Sunday, 11 October 2026 at 23:16:07 UTC, strawberry9 wrote:Your a bit behind the times Walter;-) I got AI to write a how language specification and compiler .etc... etc.. in less that a week ( https://github.com/strawberry9/CobaltC ) Can you imagine how long that would have taken a human (or more correctly, a 'team' of humans, to complete).It's only cost me 1 months subscription so far.I'll add that I "wrote" a major language addition in a couple weeks with AI, whereas it would've taken me months otherwise. https://github.com/dlang/dmd/pull/23744 We're only at the beginning of a massive explosion in the speed at which languages and features can be iterated on. In 5-10 years I think the programming language landscape will look completely unrecognizable.
Oct 12
Fixed it! Now hello.d compiles and runs successfully. It's a big step forward.
Oct 11









"Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> 