Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ghoward
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
121.
▲
by
ghoward
4y ago
The true test of what I said is "show me the code." The code is my `bc`. [1] Find a memory bug, any memory bug, in my `bc` after 1.0. Rust has occasional memory bugs too; I mentioned that specifically. It still happens. So if yo
122.
▲
by
ghoward
4y ago
I wrote a `bc` implementation. There are more than you would think, yes, but not terribly bad. I think he exaggerated a little, and `bc` has more than just a simple calculator.
123.
▲
by
ghoward
4y ago
Dereferencing NULL pointers: my code is structured such that every function parameter that can be NULL is marked so. And I check those possibly-NULL pointers. This could also be done with a macro: #define y_d(p) ((p) == NULL ? abort()
124.
▲
by
ghoward
4y ago
I agree, but you get used to it. With enough familiarity, it's just as readable. The fact that I have built all of this is part of why I don't accept contributions. [1] I don't expect people to be able to read my code. [1]:
125.
▲
by
ghoward
4y ago
I still disagree that it's awful.
126.
▲
by
ghoward
4y ago
I understand you think it's awful, but I do like it. Everyone has their preference.
127.
▲
by
ghoward
4y ago
Unless he means that Rust should be used on projects where the Rust compiler is available for all relevant platforms and C and C++ can be used otherwise, I disagree. In fact, until LLVM is replaced, C++ will probably be the language of choi
128.
▲
by
ghoward
4y ago
What's your problem with the Unix philosophy? Also, I never said it applied in every case, just that it's useful to have in this one.
129.
▲
by
ghoward
4y ago
Well, yeah, just because the philosophy isn't perfectly followed doesn't mean it's not good to strive for in certain cases. This is one of those cases because it means the build system will be more easily extended and still b
130.
▲
by
ghoward
4y ago
I really don't get why people make things so complicated. Here's how to fix Kubernetes and systemd: make a non-sucky build system and then use it to build systems. Systemd builds a running system. Kubernetes builds a distributed s
131.
▲
by
ghoward
4y ago
This is so true. I'm one of the few that kept going out of a love for writing. It was only three or four years that I put GoAccess on my server, ran analytics, and realized that I actually had traffic! If the motivation is intrinsic, i
132.
▲
by
ghoward
4y ago
My post explicitly called out a nuclear option for such cases. Even Fossil has such an option; it's called "shun."
133.
▲
by
ghoward
4y ago
IMHO, both Git and Fossil are wrong here. Fossil requires users to either commit stuff they don't want to see later, or hack away until finished, cherry-picking changes as necessary. This isn't a good workflow for everybody. Git a
134.
▲
by
ghoward
4y ago
I think I agree with what you said. Not every dependency should be eliminated just because.
135.
▲
by
ghoward
4y ago
I think you and the author are both right. Given infinite time, would a company want to replace their build system and OS with something better? I think the answer is yes. Just look at Google: they implemented their own build system (Blaze&
136.
▲
by
ghoward
4y ago
I'm a heavy use of C, and most of what I got wrong were around integer promotion. I'm glad I run clang with -Weverything and use ASan and UBSan.
137.
▲
by
ghoward
4y ago
What I'm trying to explain is that using the term "declarative" is confusing to a lot of developers who who not think of functional programming as declarative, but rather think of something like JSON.
138.
▲
by
ghoward
4y ago
Perhaps, but that categorization is going to confuse a lot of developers. It sure confused me until I said something wrong, and all of you Nix proponents descended on me. This confusion is not good for Nix.
139.
▲
by
ghoward
4y ago
Declarative has a few definitions with respect to computer languages, and the Nix community seems to be using one and ignoring others. When I think of declarative, I think of a language that has less power than a Turing-complete language. T
140.
▲
by
ghoward
4y ago
Yes. They are declarative.
141.
▲
by
ghoward
4y ago
No, it is Turing-complete. I was going off of the article and Nix documentation that says Nix is declarative. But if it actually is not, then there shouldn't be a problem with power. However, Nix proponents shouldn't claim it is d
142.
▲
by
ghoward
4y ago
This is news to me, I admit. But if this is true, then people shouldn't say Nix is declarative.
143.
▲
by
ghoward
4y ago
Then people shouldn't say it is, such as in the article under discussion.
144.
▲
by
ghoward
4y ago
> I fall heavily into the use less powerful languages "liberties constrain, constraints liberate" camp. For what it's worth, so do I. That's why my build system will allow users to set those constraints. It's a g
145.
▲
by
ghoward
4y ago
Unfortunately, you're correct that they are not that common. In fact, my last job was at a place where the salesman told me to not fix a bug I found until a customer ran into that bug so that "they'll remember why they need u
146.
▲
by
ghoward
4y ago
Someone who is also from South Africa who lives in Israel disagrees with you. [1] [1]: https://youtu.be/AcEL-NlxBk0
147.
▲
by
ghoward
4y ago
I'm sorry. There's no hope for me either; I'm not a "good cultural fit" most of the time. I agree with your last sentence, although I would word it a little differently. :)
148.
▲
by
ghoward
4y ago
Holy cow, you can't get a job? What?! That makes me feel better about not being able to.
149.
▲
by
ghoward
4y ago
This is still a solution in search of a problem. Hosting artifacts is not that expensive. Disk space is cheap.
150.
▲
by
ghoward
4y ago
I think @cycomaniac [1] is right. We, as developers, did this. We gave Google too much power. I've just switched to Firefox. I hope they don't go off the rails here, but I fear they will with bribes from Google. [1]: https:/
More ›