991 karma · joined May 23, 2020 (6y ago) · 260 submissions
comment 1w ago · link · parent
Irrelevant, Zig has nothing to do with Rust. Rust tooling is slow and bloated and comes in ten different pieces you have to install separately.
> Tooling for you all mean "convenient cli program"
Don't put words in my mouth, you clearly have no idea what I mean by good tooling
> Platforms-specific toolchains
With Zig you don't need platform specific toolchains, in-fact a lot of non-Zig C projects (e.g. Uber) use the Zig toolchain just to have hassle-free cross-compilation. It's one statically linked binary you can use (that consequently works flawlessly on any linux distro irrespective of glibc version) and includes clang, linker, and libc headers for every target. You don't need to reach for Docker or sysroots. That's just one of the reasons that make it good.
C will always blow every single language out of the water in support at least because it's the historical and universal programming language. It doesn't mean it's a better designed language.
comment 1w ago · link · parent
comment 1w ago · link · parent
But while you can have some/most of the benefits Zig has from modern C, I think an underrated benefit is the language culture. As a different language it was the opportunity for a reset, e.g. it's idiomatic Zig to pass allocators to functions, meaning every library in Zig will work this way.
You could do that in C, but none or very few libraries do that so whenever you reach out to third-party dependencies (which is not a lot, in C as in Zig) you have to fight against C's traditional patterns.
comment 4w ago · link · parent
comment 1mo ago · link · parent
Dia is a joke.
comment 3mo ago · link · parent
It gets M5-level numbers at 12-14W.
It gets about 30% better perf than the A19 Pro at equal wattage on the whole 4W - 8W range.
So no it's not worse power consumption than prev gen. This is ARM's stock GPU having finally caught up and being competitive with Apple and Qualcomm's mobile GPUs.
This is insane to me. Stay cynical if you want, I have the right to be excited about it.
comment 3mo ago · link · parent
It's still PoP with the RAM stacked on top in a plastic casing so you need a pretty big fan to cool it since you have to go through insulating plastic, then the RAM to get to the CPU.
With a HPB packaging you can cool the CPU directly and could theoretically get the same amount of cooling power with a much smaller fan that could be integrated into a thing smartphone (à la RedMagic).
comment 3mo ago · link · parent
Of course it will be in Android phones so it will be throttle hard past 4W and will have terrible drivers.
I wish phones moved to HPB packaging and active cooling so we could have sustained 10W and use them as light workstations.
comment 3mo ago · link · parent
resultA : resultB ? (evaluation)
if we always put result first?
I think the most important piece of if statements and ternaries is the condition being evaluated and it's worth putting that first?
comment 3mo ago · link · parent
if (evaluation) result = evaluation
if (evaluation) |result|
Although assignments as expressions in C are convenient, I don't think they make a ton of sense and find Zig's capture easier to read (easier to immediately see what's being evaluated)
comment 3mo ago · link · parent
It gets them what they want for their legal safety, but it actively harms the performance.
Pi with its 300 words system prompt outperforms Claude Code and Codex both in token usage and passing rate, when using the same model + effort configuration [1].
So yeah not only does it bloat context, but it runs worse too.
[1]: https://www.databricks.com/blog/benchmarking-coding-agents-d...
comment 3mo ago · link · parent
I keep my agents on tight leashes, using them very interactively for bouncing off ideas, architecture, and then writing code (especially prototyping) and Flash has been crushing everything I ever needed it to do.
Maybe my ambitions are too tame compared to people needing Fable / Sol grade models, but I'm probably staying on Flash and not moving on to Pro for the foreseeable future.
comment 3mo ago · link · parent
But I agree with OP that when comes the time of sitting down and writing the code, it is a solo activity. I want to lock in and not see multiplayer cursors or avatars popping up around the editor. The part before and after that are for collaboration, but writing your piece of the code is (or at least I like it to be) solo.
comment 4mo ago · link · parent
People talk about frontier as if it's the only innovation worth pursuing. Deepseek V4 is far from fontier, but it's architecture is super innovative and efficient and what it achieves at that size (especially V4 Flash) is incredible.
comment 4mo ago · link · parent
Also I'm not sure the token count is very relevant for an Anthropic employee who just spent 165k worth of token rewriting the whole thing in Rust. Sprinkling a few defers here and there and swapping types surely would have been immensely cheaper in tokens.
comment 4mo ago · link · parent
Why is just a wrapper type "less ergonomic"? Everybody does that all the time in every language. And then if you can convince me it is less "ergonomic": why does it matter if it solves the problem? And that is considering humans write the code manually. Why does it matter if agents write the code? This makes no sense.
comment 4mo ago · link · parent
If you write a blog post about "I switched from X to Y", I expect the WHY: the pros and cons of X, of Y, and of the alternatives that were considered and dismissed before considering Y.
This is more a blog post about how to use Fable to switch from X to Y, than it is about X or Y.
comment 4mo ago · link · parent
I think a lot of people will, but those who do probably weren't the target audience for Zig in the first place?