Readit News logoReadit News

Dead Comment

Deleted Comment

duaneb commented on Channels in Golang   tapirgames.com/blog/golan... · Posted by u/bsg75
duaneb · 9 years ago
If anyone has a clue why this was downvoted, please clue me in. It was on topic and indicating missing information.

Edit: I really don't care how much I get downvoted, I'm going to highlight its uselessness until someone cares to justify it.

duaneb · 9 years ago
We should really require commenting while downvoting unreplied comments. The community has gotten lazy.
duaneb commented on Do Teachers Need to Include the History of Mathematics in Their Teaching? (2003)   researchgate.net/publicat... · Posted by u/lainon
lordnacho · 9 years ago
Yes, yes, a hundred times yes.

My math teacher taught me not only calculus, but also when and who got up to what. It doesn't have to take a long time, but a bit of context helps a lot. Euler went to Russia and yada yada bridges graphs etc.

Same goes for all science disciplines. You need to have a rough idea that Darwin worked in the 19th century, that much of thermo came about in the late 19th century, that quantum is a 20th century thing. You need to know what people were wondering about, and what experiments they came up with.

I've been listening to a lot of audio courses lately, and those little nuggets really help to understand things.

The point of the little stories such as how Watson and Crick came up with the double helix is to help recall. It's hard to remember dry facts, much easier to remember stories. People are kinda built that way.

duaneb · 9 years ago
I'll be the devils advocate. Why? I can understand calculus perfectly fine without understanding how people got there. In fact, I'd argue much of what you learn before call--in the order of discovery--actively hinders understanding.
duaneb commented on Channels in Golang   tapirgames.com/blog/golan... · Posted by u/bsg75
duaneb · 9 years ago
If anyone has a clue why this was downvoted, please clue me in. It was on topic and indicating missing information.

Edit: I really don't care how much I get downvoted, I'm going to highlight its uselessness until someone cares to justify it.

duaneb commented on Channels in Golang   tapirgames.com/blog/golan... · Posted by u/bsg75
lobster_johnson · 9 years ago
"Fix" in quotes, really -- I don't think the Go team ever pretended they were building a replacement, although they are certainly replacing C++ for their own work. That said, if you read Rob Pike's history of Go (previous link), they were mighty surprised to discover that Go didn't really entice C++ programmers at all; the crowd that Go appealed to were Ruby and Python developers who wanted a faster language that was still expressive and fast to compile.
duaneb · 9 years ago
Well, it's basically duck typed, but without type values you can assign. Doesn't surprise me much.
duaneb commented on Channels in Golang   tapirgames.com/blog/golan... · Posted by u/bsg75
hamandcheese · 9 years ago
Because the creators won't give us generics
duaneb · 9 years ago
...yet.
duaneb commented on Channels in Golang   tapirgames.com/blog/golan... · Posted by u/bsg75
lobster_johnson · 9 years ago
Go's authors didn't really set out to fix C, they wanted to fix C++ [1].

To say that channels is the answer to fixing select() ignores the fact that Go doesn't support non-blocking I/O at all. select{} only works on channels, and I/O operations are always blocking.

It seems like a bit of a missed opportunity to not let file descriptors and other data structures support select{}, much like they decided not to let "range" work for anything except built-ins. To wait on multiple sockets, you have to start a goroutine per socket and communicate via channels, even if all you want to do is service one event at a time. That's fine, it's Go's way. What I'm less happy about is that because of this design, you can't ever interrupt a blocking operation — reads in particular — other than by closing the file descriptor. That's why SetReadDeadline has to exist, to at least let you set a timeout.

[1] https://commandcenter.blogspot.com/2012/06/less-is-exponenti...

duaneb · 9 years ago
Fix for some value of fix. Go's lack of generics make the data structure offerings pitiful. Just look at heap: it's worse than c.

There is a role for a language like that, but calling it fixing c++ ignores 90% of the reasons people use c++ in the first place. In fact, id say that go reminds me most of the version of c++ that operated as a preprocessor. It's almost exactly the same template implementation!

Deleted Comment

Deleted Comment

u/duaneb

KarmaCake day6551February 13, 2008View Original