Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jibalt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
jibalt
5y ago
You're mistaken. https://en.wikipedia.org/wiki/Memory_safety#Approaches
62.
▲
by
jibalt
5y ago
Rust has plenty of undefined behavior: https://doc.rust-lang.org/reference/behavior-considered-unde...
63.
▲
by
jibalt
5y ago
Because all the semantics for what are the valid parameters for types and other comptime operations are scattered throughout the code that is run at comptime. It's the same problem as with C++ template code, but perhaps worse. For inst
64.
▲
by
jibalt
5y ago
What matters is time from initial inception.
65.
▲
by
jibalt
5y ago
> My big problem with Zig is that Andrew Kelley is promising a lot of features, but doesn't really deliver much. My biggest problem with your comment is that it is completely and utterly false. >At least Rust, as blamed and loved
66.
▲
by
jibalt
5y ago
correct-for-BMP-but-not-otherwise is simply a bug (and cultural chauvinism). And almost all of such implementations aren't correct-for-BMP because uppercasing Unicode is far from "basic".
67.
▲
by
jibalt
5y ago
When I saw the first line of some Zig code, it was unusual so I thought about it and got an inkling of the idea behind it and its power: const std = @import("std"); When I saw the second line and subsequent similar lines, I realiz
68.
▲
by
jibalt
5y ago
The author didn't even read the Hello World section of the Zig Reference Manual that (of course) has an example of printing.
69.
▲
by
jibalt
5y ago
You're talking about idioms, not philosophy ... the philosophy of Zig can be obtained by running `zig zen`. And the OP didn't even read the Hello World section of the Zig Reference Manual that has an example of printing.
70.
▲
by
jibalt
5y ago
>A lot of the problems seem to be from a fundamental misunderstanding of Zig's philosophy and very basic things about how the language works. Possibly Zig needs more emphasis on those things in its documentation. As a rank beginner,
71.
▲
by
jibalt
5y ago
This is of course false.
72.
▲
by
jibalt
5y ago
Where did you get that impression? No one has ever done that.
73.
▲
by
jibalt
5y ago
Zig doesn't propose to prevent UB (in fact the docs say that it takes aggressive advantage of it for optimization). (Neither does Rust.)
74.
▲
by
jibalt
5y ago
Many of Zig's fancy type features are in the library, not in the language, because types can be programmatically constructed at compile time.
75.
▲
by
jibalt
5y ago
There's a Hello World program at the beginning of the Zig Reference Manual. It of course shows how to print things. Many other of these failures could be avoided by reading that document, reading Zig source code in the distribution, lo
76.
▲
by
jibalt
5y ago
Prototypes were in the original C standard of 1985, before first edition of The C++ Programming Language was released and long before C++ was formalized standardized.
77.
▲
by
jibalt
5y ago
So don't lift it as a standard attribute.
78.
▲
by
jibalt
5y ago
It's very common for a function to have multiple defers ... but defers in a loop are a misuse of the feature.
79.
▲
by
jibalt
5y ago
Is it April 1 already? "Whereas gcc’s cleanup attribute is attached to functions, POSIX’ cleanup functions and the try/finally are attached to possibly nested blocks. This indicates that existing mechanism in compilers may have di
80.
▲
by
jibalt
5y ago
Tell that to the passengers on the two 737 MAX planes that crashed.
81.
▲
by
jibalt
5y ago
Lungs and kidneys can work independently, but two pumps running at the same time on the same circuit will cause more failures ... it's like parallel vs. sequential circuits.
82.
▲
by
jibalt
5y ago
It's a point where a single failure causes system failure, but that's a lot more words. These things tend to get whittled down to "terms of art", the meaning of which is understood by those trained in the art. It's
83.
▲
by
jibalt
5y ago
"A single point of failure (SPOF) is a part of a system that, if it fails, will stop the entire system from working." >I think linguistically the term can be hard to parse. Yeah, "solitary" might make more sense ... o
84.
▲
by
jibalt
5y ago
"only one link is actually the weakest" Which isn't relevant since (obviously) no one was talking about how many links are the weakest link. "it is at that link where the chain will break" Wars have been lost by thi
85.
▲
by
jibalt
5y ago
BY the phrase not meaning what you think it means. https://en.wikipedia.org/wiki/Single_point_of_failure "A single point of failure (SPOF) is a part of a system that, if it fails, will stop the entire system from
86.
▲
by
jibalt
5y ago
galaxy_width / truck_width = 3 × 10^20
87.
▲
by
jibalt
5y ago
Yeah, scientists are point-missing dummies who think that the images that telescope will produce are of no value next to images of the telescope unfolding. Far better to have internet randos who surely aren't dummies running things.
88.
▲
by
jibalt
5y ago
That's not the point ... it's about messaging and PR. And he's saying that it's not a matter of what works, but rather about "a great experience".
89.
▲
by
jibalt
5y ago
Off topic. (And the OP does not live in either the US or the EU.)
90.
▲
by
jibalt
5y ago
Your claims are implausible, as well as being off-topic.
More ›