Live data from Hacker News

The Silently Shifting Semicolon [pdf]

cs.ucla.edu

21–30 of 37 posts

Re: The Silently Shifting Semicolon [pdf]

#21
post #19

Good article, but I was kinda disappointed not to have what I expected to be a good read about the evolution of how people use semicolons in natural language. Now I want to read that too.

Although it does not have a chapter on the semicolon, check out the book "Shady Characters".

https://amazon.com/dp/0393064425

Re: The Silently Shifting Semicolon [pdf]

#22
I don't do much threaded programming - I think it's come up once in my career? (and fortunately at the time I was pairing with a Java guru) - so I don't completely understand the issues here.

Can someone link to a good introduction to the problem? I just wasn't able to completely understand it from the examples in the linked article.

Re: The Silently Shifting Semicolon [pdf]

#23
post #22

I don't do much threaded programming - I think it's come up once in my career? (and fortunately at the time I was pairing with a Java guru) - so I don't completely understand the issues here. Can someone link to a good introduction to the problem? I just wasn't able to completely understand it from the examples in the linked article.

For Java specifically, this is a concise summary of the issues: https://docs.oracle.com/javase/8/docs/api/java/util/concurre...

Re: The Silently Shifting Semicolon [pdf]

#24
post #20

Earlier quoted context omitted.

She's not much of a cook either, apparently : "A: heat oil in a skillet, and B: add in chopped vegetables"

What don't you like about that? If you heat the vegetables and oil together, they can slowly lose their water and essentially boil, and taste boring; if you let the oil get to the right temperature and then add the vegetables, then they'll cook up nicely, with plenty of Maillard reactions (browning), and taste delicious.

You're clearly a better cook than Alice :)

Re: The Silently Shifting Semicolon [pdf]

#25
post #2

So Alice quits programming and goes back to cooking because Math is Hard. And we wonder why there are gender issues in tech.

I had a completely different reading. I thought the fable portrayed Alice as thoughtful and bright. The punchline is that this talented student was right to leave programming for cooking because the lack of sequential consistency in high-level languages is absurd.

Yeah, that's my understanding too. It's not "math is hard let's go cooking" it "fuck this nonsense". It's not math problems that are the problem here, it's inconsistent execution in the name of performance.

Re: The Silently Shifting Semicolon [pdf]

#27
post #19

Good article, but I was kinda disappointed not to have what I expected to be a good read about the evolution of how people use semicolons in natural language. Now I want to read that too.

I was all ready to rant about how much I hate semicolons where they are unnecessary...

Re: The Silently Shifting Semicolon [pdf]

#29
> Luckily, it doesn’t seem to matter in practice. Programs just seem to run ok even though there is the potential for unpredictable behavior.

No, we take locks or use other memory fence primitives. You introduced Alice to multithreaded programming without teaching her about locks?

Post reply on HN