Better HN
topnewbestaskshowjobs
Log inSign up

enneff

14,622 karma · joined Jan 27, 2009 (17y ago) · 2,278 submissions

adg at golang dot org
Submissions

comment 4y ago · link · parent

I think the absence of semicolons is a pretty big call-out.

comment 4y ago · link · parent

Seriously. I think Rust has a lot going for it, but I will say this: the type inference in Rust combined with its expressive type system can make sophisticated programs very hard to follow. My experience was with extensively reading the cargo codebase; trying to figure out what the resulting type of an expression that maps/filters/collects over other complex expressions is a chore.

For example, I find it very hard to figure out what the type of public_dependencies is in this declaration: https://github.com/rust-lang/cargo/blob/8fbc8459d59f3acecdb6...

This is the same kind of thing that makes JavaScript challenging to read. It requires a lot of discipline on the author’s part to make it clear what is going on, and even the best of us lack discipline at scale.

comment 4y ago · link · parent

> bad because of stop-the-world pauses

Have you actually experienced this to be a problem in the last half decade with Go? GC pauses in modern Go programs are short enough to be negligible in almost any practical program.

comment 4y ago · link · parent

If you looked at the spec which provides simple, valid examples that work, then why would you spend hours writing different code wondering why it doesn’t work?

The section you linked does explain it, btw.

  IfStmt = "if" [ SimpleStmt ";" ] Expression Block [ "else" ( IfStmt | Block ) ] .
Note there is no newline or semicolon between Block and the optional “else” clause, and a Block is thusly defined:

  Block = "{" StatementList "}" .
So that being the case I’m not sure why you’d assume it’s valid to put a newline after the trailing “}” of the Block, before the “else”.

The other factor at play here is the treatment of semicolons: https://go.dev/ref/spec#Semicolons

All of this is quite natural once you use the language. in fact, it was designed this way in response to the way it was being used.

It is not appropriate for the spec to constantly reiterate concepts that have already been introduced, but rather it should precisely define each concept once. If you want to learn a language from its spec then it behooves you to consider the document as a whole. That requires a lot of mental overhead and I think most people are better off learning from examples and tutorials rather than reading a language spec.

comment 4y ago · link · parent

Have a look on twitter. A few people “me too”ing wrt their relations with the guy.

comment 4y ago · link · parent

The ownership of those works is certainly a complex issue. Contractually ownership would have been assigned to id, but what happens for unpaid work? What about works in progress? Depends on the contract terms and the interpretation of those terms. Sounds like a lot of grey areas, and there can be significant repercussions for making spurious DMCA claims.

comment 4y ago · link · parent

Based on how passionate Mick is about his work, and how incredibly polished his Doom 2016 work was, I always found it unbelievable that he would have been responsible for the Doom Eternal mess. I had no idea the details would be this messy.

comment 4y ago · link · parent

And he’s an artist and writing the music for a doom game is a huge creative opportunity for him. id clearly took advantage of that. Too many companies exploit artists who believe in their art. It sucks.

comment 4y ago · link · parent

This would never happen with an indie studio because they wouldn’t have the deep pockets to legally strong arm the contractor. If both parties were small businesses then the threat of legal action from either side would keep them both form misbehaving.

comment 4y ago · link · parent

Web 2.0 was just XMLHTTPRequest.

comment 4y ago · link · parent

Yeah absolutely and some of the most senior engineers I have worked with often made a point of asking seemingly obvious questions, to great effect. I think it’s a wonderful thing to demonstrate and I do the same.

comment 4y ago · link · parent

Also a lot of emotional problems don’t need to be solved, you just need to process the feelings and move forward.

comment 4y ago · link · parent

There’s a fantastic book and tv series by a research psychologist Brene Brown where she talks a lot about how to be on the listening end of these kinds of conversations. Often in these situations the other party just wants to have their emotions validated by someone they trust. Just being there to acknowledge their feelings and see their pain is enough (and trying to do more can sometimes make things worse). I highly recommend checking Brown out, she is quite incredible.

comment 4y ago · link · parent

I try not to frame things as “dumb questions” because I find that junior devs can feel a lot of their questions are “dumb” but really they’re often very good questions and (even if you lead by example) they can be hesitant to ask them. I think it’s generally a good assumption that if someone has a question in mind then it’s worth exploring, so there are no dumb questions.

comment 4y ago · link · parent

Having a series of great mentors over the years.

comment 4y ago · link · parent

Well by that logic nothing is necessary.

comment 4y ago · link · parent

Mosquitos are food for many other organisms.

comment 4y ago · link · parent

Except Tesla and SpaceX operate in industries where there aren’t a lot of options for people who are passionate about those kinds of technologies. There are tons of tech companies they support strong engineers. Why would you want to work for an abusive boss if you don’t have to?

comment 4y ago · link · parent

We all do it a lot. We are primary emotional beings and we go around pretending we are rational. Life gets a lot easier and more comprehensible when you start paying attention to it.

comment 4y ago · link · parent

Most of the countermeasures that are sold (such as AntiVirus software) are pretty much snake oil. The single easiest and most important thing you can do to keep your systems safe is to keep them updated.

comment 4y ago · link · parent

No, it’s like driving a car whose airbag is known to have a fault that will send shards of material into the driver’s face in the event of an accident. (A real issue that many manufacturers had to issue a recall for.)

This is actually a great analogy now, because Apple (or whoever) regularly issue “recalls” for their known-insecure software in the form of software updates. If you follow the discussion in the info sec community surrounding these updates, often the vulnerabilities that are patched are being actively exploited.

One recent iOS update that comes to mind is one that patched an issue where a PDF sent via iMessage could give remote code execution with no user interaction or visibility. (Actively exploited.)

So yeah, you can drive around with your faulty airbag if the possibility of getting your face mangled doesn’t bother you. Or you can just follow the recall procedure, which is a bit inconvenient but it seems much less inconvenient than facial reconstruction.

And if you don’t care about your data being compromised and sold to bad actors, who may then steal your identity and cause a LOT of trouble for you, then by all means run known-insecure software. That seems like very poor risk assessment to me.

comment 4y ago · link · parent

Not easily. A lot of the processes don’t have man pages or any other documentation. And they’re closed source so you never really know what they do.

comment 4y ago · link · parent

TBH the only thing pushing me away from macOS is that there’s a bunch of stuff running on there by default that I don’t understand, and I don’t really trust Apple’s direction wrt respecting user privacy.

When I’ve been using Linux in other contexts lately it’s been awesome being able to fully understand exactly what each process is and why it’s running (and to be able to remove it if I want to). On my macOS (and windows) boxes I end up trusting Apple and Microsoft a lot more than I would actively choose to.

comment 4y ago · link · parent

Am I the only one here who finds the title and central message of this post totally ridiculous? Like “I don’t like what Apple are doing so I’m only going to give them a few more thousand bucks, but then in a few more years I’m probably gonna switch to another OS!!!”

comment 4y ago · link · parent

The difference between 60hz and 120hz is massive in gaming. I know this because I play an FPS that usually runs at 120Hz and I really notice when it drops to 60 when the action gets intense.

The difference between gaming at 4K and 1440p or even 1080p however is not that significant imo. Competitive (and many casual) gamers prefer a high frame rate to high resolution.

But as display technology improves people will just come to expect their games should run in native 4k resolution.

comment 4y ago · link · parent

At google many years ago they gave me an LGTM stamp for something, can’t remember what exactly. Fun thing to have around. This one is much nicer than mine though.

comment 4y ago · link · parent

Your reductionist view gives no room for safe cycling in most cities. It requires nothing of the drivers and accomodations from everyone else. Why is that? Cars haven’t even been common for 100 years. Before they came along, we didn’t even need speed limits, and vehicles of different kinds could occupy the streets together. Now it’s all just cars. It doesn’t have to be that way, and in some parts of the world it isn’t.

You say I’m a lunatic, but my experience and the scientific community research shows that drivers often don’t view cyclists as humans, nor do they accurately assess the risk of driving too close to (or even ramming or side swiping) cyclists. (You can find several papers on this, or just ask any cyclist.)

By the way, even if it’s only 1 in 100 drivers who hold this attitude, a cyclist encounters hundreds of drivers during a typical trip. Those are not good odds.

comment 4y ago · link · parent

Yes I can see how the existence of other beings may be inconvenient to you.

comment 4y ago · link · parent

If a cyclist has to yield to every passing car, then in any busy area (where most people travel) the cyclist effectively always has to be off to the side, which is not safe.

If the cyclist is not occupying an actual lane to themselves then they are constantly being passed too close by fast moving vehicles, and in danger of running into the suddenly-opening doors of parked cars or surprise pedestrians.

Seriously, if you go somewhere where drivers are respectful of cyclists you’ll see it’s just so easy for it all to work smoothly and safely. The impatience of drivers, at the expense of others safety, is astounding to me.

Also it should be noted that motorists give each other space for selfish reasons; they may damage their car or themselves if they collide with another car. If they hit a cyclist chances are they’ll kill or permanently maim the cyclist, but do little damage to their car, and so they have little reason to care. (!!!!!!)

1
8910
76