3 ms·
It's not kneeling it's literally just eliminating bugs. It's kind of like saying that we kneel to logic while doing math
by vatsachakrvthy 11mo ago
It's not kneeling it's literally just eliminating bugs. It's kind of like saying that we kneel to logic while doing math
- YouAreWRONGtoo 11mo ago[dead]
- GuB-42 11mo agoThe problem I have with what I call "bondage and discipline" languages is that while it has value making sure the code is correct, it is not pleasant (for me) to work with. Sometimes I just want to try out stuff, I know there is a bug, in fact, it breaks everything, but that's exactly what I want, I will revert it once my little expertement is complete. Strict languages will refuse to run anything unless you make sure that code follow all the rules, which is useless work as you know it won't stay (because it breaks things on purpose). It is not just Rust, it is just that Rust has a lot of that. There is also C++ not allowing me to access private class members, or Python being annoying with its indentation, these are all good things for production code, but it gets in the way of experimentation. Combine this with slow compilation times and it makes Rust not very experiment-friendly, which I think is the reason why many people don't have a good time with it. As I understand it, Zig is more permissive and also has fast compilation as a design goal, which I think is a big contributing factor in making it more "pleasant".
- api 11mo agoExperiments very often become production and now you have security holes and technical debt.
- GuB-42 11mo agoYes, that's a tradeoff, bondage and discipline languages like Ada and Rust are popular in some fields for a reason. What I like the most is a middle ground: have a language that it permissive when it comes to generating code, but be strict with warnings. Again, problem is that too many people don't care about warnings. Way too many times, I had people call me to investigate their bugs, see a warning, point it out and tell them "here, that's your bug".
- evntdrvn 11mo agoAn interesting thought experiment would be a language/toolchain that would be permissive when generating debug builds, but hard-required warn-free to generate an optimized executable.
- ay 11mo agoPut Claude code on top of it and now you have prototypes of what you have in mind written pretty much instantly and they are suitable for reshaping into production later if needs to.
- all2 11mo agoI'd be curious if there is additional tooling needed for this, as Zig is a moving target in terms of language/features. I know of _ways_ to do this, but has anyone done this successfully with a RAG+version locked docs or something like that?
- ay 11mo agoIn my comment I meant Rust, not Zig, apologies I didn’t make it clear enough!
- RAMJAC 11mo agoLol, not that it's any good, but here is a pretty much purely vibed zig NES emulator that I let Claude work on: https://github.com/RAMJAC-digital/RAMBO https://github.com/RAMJAC-digital/RAMBO It renders something.
- mordnis 11mo agoZig can also be annoying. For example, you cannot just ignore the return value, even in debug builds. Playing around with slices, c strings, arrays is also annoying in comparison to C.
- vatsachakrvthy 11mo agoYou're right that rust is not experiment friendly, especially since it doesn't have a repl. I guess I must be into BDSM because my go-to language for experimentation is Haskell