3 ms·
>If option A has 20 defects and option B has the superset of 25 defects then option A is better Only if "defect count" is what you care for. What if you don't
by coldtea 4y ago
>If option A has 20 defects and option B has the superset of 25 defects then option A is better
Only if "defect count" is what you care for.
What if you don't give a fuck about defect count, but prefer simplicity to explore/experiment quickly, ease of use, time to market, and so on?
- notriddle 4y agoThen you don't want Zig or Rust. Use a language with a GC. Exploratory programming is a lot more pleasant when you don't have to worry about calling free() at the right time. I've had success with PHP and Elixir for productive, exploratory programming, not just because of their GCs, but also because they both support REPL-driven development and hot code reloading.
- coldtea 4y ago>Then you don't want Zig or Rust. I might still want Zig just fine. E.g. because I know C well, and it's a better C. Or because of the ease of interfacing with C/native libs. And several other reasons.
- jhgb 4y ago> Then you don't want Zig or Rust. Use a language with a GC. Zig allows custom allocators pretty much everywhere, right? Would it be impossible to provide it with a GC-based allocator for increased convenience at the cost of a little performance for programs (or parts of programs) where convenience is preferred? Perhaps libgc could be an inspiration here.
- qzw 4y agoThen just use C? Heck, if you really don't give a fuck about defects, you can just have all your code in main(). You really can't beat that in terms of simplicity to explore/experiment quickly, ease of use, and time to market.
- coldtea 4y ago>Heck, if you really don't give a fuck about defects, you can just have all your code in main(). You really can't beat that in terms of simplicity to explore/experiment quickly, ease of use, and time to market. I probably can "beat that", because e.g. breaking things into functions increases simplicity and being able to explore/experiment quickly. Whereas eliminating defects with a type/lifetime checker you need to hand-wrestle, not so much.
- avgcorrection 4y agoYeah what if you don’t care about memory safety bugs. Indeed.