569 karma · joined Nov 28, 2022 (3y ago) · 183 submissions
comment 2y ago · link · parent
No deep messages have been found in either yet, and I am sure some people tried, so it stands to reason that no such messages exist. Mathematical objects can be complicated and difficult to understand and go on for infinitely long without having secret messages hidden in them.
comment 2y ago · link · parent
> Question: "So after this change, is there way I can still simply call zig run or do I have to use a build.zig file?"
Andrew's answer: "No, this use case will regress."
This in fact literally states that "just" calling "zig run" won't be possible anymore, and heavily implies you'll need a build.zig file.
comment 2y ago · link · parent
Yes sure, art is political, but art is political in a different way in which a discussion forum might be said to be political, and it's entirely reasonable to wish for a discussion forum with a less political bent.
comment 2y ago · link · parent
Note that I said 'statements', not 'expressions'.
A lot of the confusion here (and maybe yours, too) stems from this difference. In Rust, (almost) everything is an expression by default, and you turn it into a statement by adding a semicolon. This allows you (and the type checker) to very neatly distinguish between expressions and statements, which is great. It's a very nice and elegant approach imo.
comment 2y ago · link · parent
Sounds suspiciously like "I didn't assemble my laptop correctly, something is slightly loose somewhere".
As a whole, how many people buy a Framework laptop and put Windows on it, of all things? I can't imagine that's more than 10%.
comment 2y ago · link · parent
I feel like the author misunderstands what a "core principle" is. This here is (at most) a bitter lesson learned from several decades of experience. It's not a principle, it's at best a conclusion following multiple stories of getting rid of legacy systems, but even as that this is highly dubious.
comment 2y ago · link · parent
Cut me a break. In Go and Rust it's still easy to compile old code, and these languages have very strong backwards compatibility guarantees. You might need to compile it with a flag enabled, but it is going to compile and work.
Having the ability to improve on past language design mistakes over the years by deprecating old ways in favor of new ones is nice, and the burden of migration is generally minimal (or can be done automatically).
comment 2y ago · link · parent
The issue is that "X used fake accounts to push political agenda on social media" might be interesting political news, but it's incredibly boring technical news.
Everyone knows that this is possible, and the only novel information here is political.
I'd say that if you posted news which are interesting in how they relate to tech, and also political, you're going to (or at least should have) more success than this article. Even just a proper analysis of how widespread fake political social media accounts area, deeper statistics, more novel processes of this happening, etc. would all be interesting, and would not fall in the politics-first-tech-second bucket.
comment 2y ago · link · parent
Rust functions (which don't take mutable references) are incapable of modifying anything you pass into them, and any sort of global state is heavily discouraged.
This is pretty good as far as "pure" goes, but of course, they can perform I/O. (Then again, without any side effects a program would do nothing at all behind heating up your CPU, so this seems like a fair trade-off.)
What makes Rust functional are the patterns you can use in the language, though. A lot ot of maps, a lot of filters, a lot of iterators and algebgaic data types and pattern matching.
comment 2y ago · link · parent
Idk, looking pretty good to me, unless you think none of these count.
Considering everyone seems to hate C++ nowadays, and Rust looks like the only existing alternative. Hard to imagine the trend won't continue.
comment 2y ago · link · parent
comment 2y ago · link · parent
It's literally just typed JSON with functions and a few built-ins. It's laughably simple and great. The whole "yet another programming language" refrain is so silly when it comes to Nix.