Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
trealira
1y ago
Yeah, if you want to use asterisks without italicizing your text, you need to escape them with backslashes, and then you can write things like 5 * 2 * 1 = 10. That is, you'd write it like this: 5 \* 2 \* 1 = 10
62.
▲
by
trealira
1y ago
There are attacks on people's voting rights, but gerrymandering actually doesn't affect the presidential election in the US. The electoral votes are chosen by statewide popular vote, except in Maine and Nebraska.
63.
▲
by
trealira
1y ago
I have to say that, the vast majority of the time, the way I've heard and said the word "clitoris" doesn't rhyme at all with "Dolores," so I wouldn't have been able to guess it either.
64.
▲
by
trealira
1y ago
It wouldn't be wrong in this case, either.
65.
▲
by
trealira
1y ago
Thanks for sharing your old compiler and the source code listing for it, though I can't read the documentation in German. Out of curiosity, how did you deal with the fact that for a top-down parser, 1 token of lookahead isn't enou
66.
▲
by
trealira
1y ago
Yes, that's it, thanks. I knew the site wasn't dead, so I was confused why the link seemingly was.
67.
▲
by
trealira
1y ago
I remember reading this link that went through them, but the link is dead now: https://minnie.tuhs.org/pipermail/tuhs/2021-November/024695.... But a couple interesting things I remember hearing (though I'
68.
▲
by
trealira
1y ago
There are some books at my university about how to program on PL/1. So, I've wanted to write some code with it out of sheer curiosity for some time (especially given a lot of the "interesting features" I've heard ab
69.
▲
by
trealira
1y ago
Yeah, and my grandmother lived under Nazi Germany, although she was a supporter and not put in any camps. Call me an elitist all you want, I don't care. I'd be fine with banning political discussion altogether on this site, but un
70.
▲
by
trealira
1y ago
That's not what they were saying 4 years ago, but okay lol, I see you can't say anything else.
71.
▲
by
trealira
1y ago
[flagged]
72.
▲
by
trealira
1y ago
Name calling is when you point out uncomfortable truths.
73.
▲
by
trealira
1y ago
They're not going to do anything about it. This is what they voted for. They thrive on our fear and anger. This is their revenge for the perceived wrongs of the Obama and Biden administrations.
74.
▲
by
trealira
1y ago
Yes, this is what I mean by not taking responsibility for their beliefs. They can't just admit they like Trump because of doing things like illegal impoundment or trying to get Harvard to install conservative commissars. It's alwa
75.
▲
by
trealira
1y ago
A lot of people want a garbage collected Rust without all the complexity caused by borrow checking rules. I guess it's because Rust is genuinely a great language even if you ignore that part of it.
76.
▲
by
trealira
1y ago
Thanks for explaining and giving me an overview of your code. I guess I was overly focused on Forth being stack based, when it's also perfectly capable of processing trees recursively. Yeah, I just think parsers are really cool, and ha
77.
▲
by
trealira
1y ago
Thanks for sharing that. I've actually been learning some Forth recently and had been wondering how a parser or a compiler might actually look using Forth, and you actually already made one, which is pretty cool. I was wondering this b
78.
▲
by
trealira
1y ago
> Choosing references as your default is insane, honestly. Safe Rust is akin to writing formally verified software in the mental and ergonomic overhead it incurs. That's not coincidental. I've come to the conclusion one of the
79.
▲
by
trealira
1y ago
I guess nullptr was put in there because because because "#define NULL 0" had some bad consequences for C++ and they needed a replacement. std::nullopt doesn't seem so different to what I was talking about; I guess it's
80.
▲
by
trealira
1y ago
Nah, they'd never add new syntax like that, given it's inconsistent with the rest of C++. If they added an explicit uninitialized value representation to the language, I bet it would look something like this: int x {std::unini
81.
▲
by
trealira
1y ago
C++ is not going anywhere. It's even still used in gamedev to make new games. It's used in HPC and scientific computing. Windows applications often use it. And so on.
82.
▲
by
trealira
1y ago
> I'm not saying zero, I'm just saying null. What would happent to the primitive types of that language, then? When I said that, I was thinking of languages like Go and Java, both of which implicitly initialize integers to 0, b
83.
▲
by
trealira
1y ago
I think it depends. Not having uninitialized variables by requiring the user to provide some value, as in expression-oriented languages, makes sense to me, because it wouldn't make sense in an expression for a variable not to have a va
84.
▲
by
trealira
1y ago
A lot of people are already being "programmed" to be Nazis via existing media. I doubt a hypothetical chatbot that does the opposite of this one could do any better than existing celebrities and influencers peddling such lies and
85.
▲
by
trealira
1y ago
Thanks for explaining. I guess that makes sense, but it surprises me: language implementors choosing to do the slightly worse option not due to technical limitations or historical baggage, but just because it's easier. I thought only C
86.
▲
by
trealira
1y ago
They do implement both of those, except instead of flat_map, it's called and_then for Option and Result.
87.
▲
by
trealira
1y ago
This is a self-response, but I've thought of a case where it might be fairly difficult for a compiler to prove a variable is always initialized, because of the use of pointers. Take this function to copy a linked list in C: struct
88.
▲
by
trealira
1y ago
I don't even necessarily agree with them, but what's so terrible about that opinion that you'd say it's awful and should be flagged and legislated against?
89.
▲
by
trealira
1y ago
Somehow Rust is able to do it, though. Is it really that hard for compilers to do flow analysis to detect and forbid uses of uninitialized variables? Not even being sarcastic, I genuinely would like to know why more languages don't do
90.
▲
by
trealira
1y ago
C used to seem like a beautiful and simple language to me, but as I used it and learned more about it, it seemed more complex under the surface, and kind of janky as well. It's just utilitarian.
More ›