Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chewxy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
361.
▲
by
chewxy
8y ago
This gives me an idea on how to improve a cgo call: have a pool of C-stacks, preallocated and managed by Go. brb time to bench
362.
▲
Programmers at Work: Bill Gates (1986) – 10 year anniversary of republication
(programmersatwork.wordpress.com)
2 points
by
chewxy
8y ago
|
0 comments
363.
▲
by
chewxy
8y ago
> Because the industry isn’t dominated by well thought out solutions. Most programmers I talk to love the idea of spending time and using the perfect tools to design outstanding solutions to problems. They discuss how much they supposedl
364.
▲
Psychology of Code Readability
(medium.com)
2 points
by
chewxy
8y ago
|
0 comments
365.
▲
by
chewxy
8y ago
As the primary author of Gorgonia[0], thank you for this. I've never read this. It's a fascinating read about the thought processes that go into creating TensorFlow. One particularly interesting thing is that it looks like Tensorf
366.
▲
by
chewxy
8y ago
Self-plug: Gorgonia[0] can support OpenCL as well (but time and effort is required to write support libs). Would appreciate contributions. I recently gave a talk on how to interface with foreign libs[1]. Writeup soon to come. [0]: https:&#
367.
▲
by
chewxy
8y ago
And only using Tensorflow.
368.
▲
An AI in Our Image: The Risks of Bias and Errors in Artificial Intelligence
(rand.org)
2 points
by
chewxy
9y ago
|
0 comments
369.
▲
Effects of CPU Caches
(medium.com)
99 points
by
chewxy
9y ago
|
23 comments
370.
▲
CSPFuck: Brainfuck, with Go-style channels
(github.com)
4 points
by
chewxy
9y ago
|
0 comments
371.
▲
by
chewxy
9y ago
How is Go anti FP? It's anti-generic programming and I think that's a great idea. As a side note, there are a LOT of considerations that are implicit within a language when you do functional programming. Let me explain. Let's
372.
▲
by
chewxy
9y ago
Isn't this how any multiple returns are handled? Return a tuple. Then language supports allow splatting of it, that's all. What am I missing?
373.
▲
by
chewxy
9y ago
The benefits of defining interfaces at point of use is decoupling of dependencies. Imagine you have two packages: A and B. A defines interface Fooer and struct FooThing. Package B only requires anything that can call Foo(). But because the
374.
▲
by
chewxy
9y ago
https://zedshaw.com/archive/indirection-is-not-abstraction/
375.
▲
by
chewxy
9y ago
Troll answer: but then where would people go if they want to show off their ability to talk in jargon like "applicatives", "arrow", "lenses"? Serious answer: Not really. Monads are more abstract than just conte
376.
▲
by
chewxy
9y ago
Should probably name them - makes it readable. But you are correct - duplicate interfaces are fine
377.
▲
by
chewxy
9y ago
Ah, that's why you write your abstract implementations in Haskell, and then rewrite them in Go ;P
378.
▲
by
chewxy
9y ago
> But I'm happy to hear a good justification of why it's important to have both structs and interfaces, if there is one. Performance is a good reason. If you are familiar with Java or C#, Go interfaces can be seen from one poin
379.
▲
by
chewxy
9y ago
Go Guru. It's an amazing tool
380.
▲
by
chewxy
9y ago
It's in there in a footnote (click on one of the *): > Of course there are subtleties that I am eliding. For example, context-sensitive code would benefit very much from taking interfaces and returning interfaces Or to steal from Ha
381.
▲
by
chewxy
9y ago
Author here. > Does this not work? It works However, this is what I have recently found quite a lot. An interface is defined: type Foo interface { Method1() unexportedMethod() } And in the same package, only
382.
▲
by
chewxy
9y ago
the sort.Interface is an abstract data type. It's poorly named IMO. If it's called sort.Collection, it'd make more sense
383.
▲
by
chewxy
9y ago
I've got two: I write and prefer to write code in Go. But when I'm in my thinking mode, I like and use Haskell a lot. I find Haskell clears up your thinking a lot, but it's really not great for production work. Go on the othe
384.
▲
In the 1950s everyone cool was a little alienated. What changed?
(aeon.co)
1 points
by
chewxy
9y ago
|
0 comments
385.
▲
by
chewxy
9y ago
GHC Core is. Haskell is far from small https://blog.chewxy.com/2014/09/03/small-languages/
386.
▲
by
chewxy
9y ago
programming in the large in the sense of many people being involved in a large program
387.
▲
by
chewxy
9y ago
kubernetes, docker
388.
▲
by
chewxy
9y ago
You wrote XGBoost in Go? I've been looking for that and dreading writing one
389.
▲
by
chewxy
9y ago
I have similar experience with GP, which is how I ended up writing Gorgonia ( https://github.com/gorgonia/gorgonia ). Serialization of models is easy: .npy files are very good formats though I know a number of people who
390.
▲
by
chewxy
9y ago
The Gorgonia Family (used for deep learning): https://github.com/gorgonia/ I'm currently looking for contributors to help develop bindings for cudart (what is currently available is cuda driver API, cublas and cud
More ›