2024-07-29 10:33:46 I think Forth is actually easy to debug, just need to debug more than you would other things 2024-07-29 10:33:55 But at least you've got a REPL to work through it 2024-07-29 13:22:39 you certainly have to pace yourself and test incrementally as you go. if you write a screen full and then try to load it and it segfaults, then you start having to insert prints and binary search for the cause 2024-07-29 13:24:41 The same has to happen with C 2024-07-29 13:25:02 The difference is C is less likely to produce these errors, and more likely to also warn or error before you have to debug 2024-07-29 13:25:21 But when you get mystery segfaults it's the same bag 2024-07-29 13:25:39 Especially when you're using STC and can debug with gdb, as I've done with Forth sometimes 2024-07-29 13:26:12 So you will have more debug cost in Forth, but I don't think the debug cost in Forth per bug is particularly high 2024-07-29 13:26:22 You can just expect more bugs 2024-07-29 13:26:46 Just my impression from fixing my own broken code 2024-07-29 13:26:54 Even with Forth I tend to write a screenful 2024-07-29 13:27:13 I'm not afraid of debugging so don't try everything out as I go, although that does feel nicer sometimes 2024-07-29 13:37:01 ACTION looking at vau calculi 2024-07-29 13:38:42 Debugging's one of those important costs people fail to consider. It's one of the reasons I don't use C++ 2024-07-29 13:39:16 Because when something goes wrong and there's no obvious solution, suddenly your whole stack is under scrutiny. You have a probability distribution of many things. 2024-07-29 13:39:26 And the distribution for C++-isms is worse than e.g. C 2024-07-29 13:40:06 The foot-shotgun thing 2024-07-29 13:45:59 It's why zero-code, AI, etc all fall flat in practice. Stuff doesn't actually work and then you need a real programmer/engineer to fix it. 2024-07-29 13:46:13 It's great.... until it doesn't work! 2024-07-29 13:46:39 I prefer a compromise, understand as much as you can but sure use more declarative programming to make life easier 2024-07-29 14:01:47 i can't think of many times my c compiler has segfaulted just loading the code 2024-07-29 14:11:54 It might if it could execute code 2024-07-29 14:12:21 I've seen C compilers generate incorrect code, and C++ compilers segfault 2024-07-29 14:12:40 I saw MSVC++ segfault on code in the C++ standard document 2024-07-29 14:12:59 And I've seen SDCC generate incorrect code 2024-07-29 14:13:25 I've only seen one questionable generation from GCC although it was defended by the devs and is a bit of a grey matter 2024-07-29 14:36:13 lol i've seen gcc run out of memory 2024-07-29 14:55:01 I've seen GCC run out of memory because of exponentially large macro substitutions 2024-07-29 20:53:12 what was the incorrect SDCC code? 2024-07-29 20:53:29 just curious. I used it briefly for 8051 before fleeing in terror