Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

it's easier to make something Turing-complete than not... most interesting example is probably rule 110.


The point is that it’ll end up that way, so just embrace it from the start.


the lisp way. the problem is it results in software which is difficult to reason about due to all the compile-time execution, even if you have state-of-the-art compile-time debuggers (if any language has them, it is lisp).


I haven’t so far found any zig code terribly hard to reason about, and it’s important to know that compile time type crafting (currently) doesn’t support decls. Although you can madness your way around that, theres idiomatic ways to manage this.

Comptime is definitely very powerful, and even the top people using zig frown upon “magic”.

But to be completely honest, “magic” shit just happens all the time if you enable it. Rust macro abuse to get “magic” comes to mind. If it happens in rust, it’ll certainly happen in zig.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: