Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
defen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
301.
▲
by
defen
4y ago
Preprocessing produces a series of tokens, so you would implement it as a new type of token. If you're using something like `-E` you would just pretty-print it as a comma-delimited list of integers. If you're moving on to translat
302.
▲
by
defen
4y ago
> Actual compilers tend to handwrite their parsers rather than using theory; parser generators aren't good at recovery and error messages. The linked article recommends using a parser generator. However in my experience I agree with
303.
▲
by
defen
4y ago
Whenever there is a post relating to Zig, I can always rely on you to post negative comments for no real reason. I can understand not liking the language, but this is about the C/C++ compilation toolchain, which uses clang under the ho
304.
▲
by
defen
4y ago
Thought experiment: Do you think current-you could manipulate 13-year-old-you into doing something bad? If the answer is no, then that means you were mentally fully developed by age 13. To which I say congratulations, but that is definitely
305.
▲
by
defen
4y ago
Saying "no undefined behavior" when what you really mean is "We define our language's behavior to be the same as C's" (in other words, you just punt undefined behavior to the C compiler) is deceptive at best. I
306.
▲
by
defen
4y ago
> most static languages go with the usual angle-brackets thing for generics, which is fairly declarative and somewhat limited. Zig however has gone with a more general approach: use “comptime” functions which take types as arguments in o
307.
▲
by
defen
4y ago
> The real goal is socially repressive puritanism and a desire to punish women for choosing to have sex. Is the intent behind child support laws "a desire to punish men for choosing to have sex"? If a man has a one-night-stand
308.
▲
by
defen
4y ago
Use ‘zig cc’ and target the appropriate glibc.
309.
▲
by
defen
4y ago
That's the percentage of fall deaths caused from each height, not the mortality rate of a fall from a given height.
310.
▲
by
defen
4y ago
> You don’t fire someone over one incident. But if someone declines to internalize the feedback and continues to make PRs that are very far from acceptable or even reviewable, yes that is grounds for termination. I agree; it's just
311.
▲
by
defen
4y ago
> I was let go once for having too many commits in a PR. You were fired for having too many commits in a PR? That seems like an extreme overreaction unless there's more to the story.
312.
▲
by
defen
4y ago
> If they respond badly, you keep training them until they respond better. Right, but what do you do with all the other cars on the road that presumably still have the bad behavior (while the fix is being developed)? Just assume that th
313.
▲
by
defen
4y ago
> This is missing the entire point of ML. ML is literally defined as not having to explicitly program responses in for every situation. So how do you know how the system will respond to an arbitrary situation? You could easily argue that
314.
▲
by
defen
4y ago
It doesn't change the morality of the theft, but it is relevant when determining how the thief should make the victim whole. To use your paycheck analogy - consider these two situations: 1. The thief steals from you on your way to th
315.
▲
by
defen
4y ago
Since most software users are not tech-savvy and care about convenience and price significantly more than they care about security (revealed preference), the "worse is better" phenomenon incentivizes commercial developers to imple
316.
▲
by
defen
4y ago
Can you give us a quick summary for people who don't have 15 minutes to watch a video?
317.
▲
by
defen
4y ago
Is this the "weird WiFi latency on Mac OS" thread? I've got a WiFi network with a MacBook Pro (running 11.6 because I hate upgrading) and a System76 linux box (as well as lots of other devices). Both of the machines can ping
318.
▲
by
defen
4y ago
Well, the question you might ask is "Why didn't someone at Solana spend a weekend writing a fuzzer for this extremely important component that deals with billions of dollars"? OP is obviously incredibly talented, fine, but ma
319.
▲
by
defen
4y ago
They gave copies to the 650 people who advanced far enough in IMO and EGMO (International Math Olympiad / European Girls’ Mathematical Olympiad) to be considered "medalists". It's very unlikely that those people don'
320.
▲
by
defen
4y ago
> We have also given OSS authors advisor equity That's a fantastic idea. In retrospect it's a really obvious idea but I've never heard of anyone doing it before. Is this a common thing that I'm just oblivious to?
321.
▲
by
defen
4y ago
Useless if the messages are intended for a human who is going to use the feedback to manually adjust something (for example, parsing a programming language and telling the user what they did wrong) If your parser is parsing something machin
322.
▲
by
defen
4y ago
Sorry, this is just completely wrong, at least regarding Moldbug. > I remember his moldbug persona from the blog-o-sphere back in the mid/late aughts as someone who would write long meandering posts in the comment section of pickup
323.
▲
by
defen
4y ago
They can absolutely plead the fifth. But Roberts could also fire them for refusing to answer.
324.
▲
by
defen
4y ago
True, he can't control but that's federal law enforcement 101 - "get the suspect to lie to you".
325.
▲
by
defen
4y ago
Roberts should simply have the FBI ask each clerk if they leaked the document. If the clerk says yes, fire them. If the clerk says no, they are either telling the truth or committing a felony. Would the real leaker risk catching a felony ch
326.
▲
by
defen
4y ago
Historically this was achieved via religion. Small-to-medium size startups can sometimes pull it off with the concept of a "mission", although that's probably less effective these days since everyone wants to "change the
327.
▲
by
defen
4y ago
So you agree that chihuahuas are less dangerous. That's my entire point.
328.
▲
by
defen
4y ago
That's why I presented a hypothetical question. It's like answering the trolley problem with "make laws against tying people to railroad tracks". Hypothetically speaking if you had to leave your kid with one or the other
329.
▲
by
defen
4y ago
I did; do you understand why I am saying "DOG leaves food or objects alone when told to do so" or "DOG is quick to sneak out through open doors, gates" or "DOG is slow to respond to corrections" (among many oth
330.
▲
by
defen
4y ago
Fair enough, but I think it's safe to say you're an extreme outlier.
More ›