By default, Go copies values when you pass them around. But sometimes, that can be
undesirable. For example, if you accidentally copy a mutex and multiple goroutines work on
separate instances of the lock, they won’t be properly synchronized. In those cases, passing
a point...
By default, Go copies values when you pass them around. But sometimes, that can be
undesirable. For example, if you accidentally copy a mutex and multiple goroutines work on
separate instances of the lock, they won’t be properly synchronized. In those cases, passing
a point...
By default, Go copies values when you pass them around. But sometimes, that can be
undesirable. For example, if you accidentally copy a mutex and multiple goroutines work on
separate instances of the lock, they won’t be properly synchronized. In those cases, passing
a point...
In transformer models, the
attention block
is typically followed by a feed forward layer (FF), which is a simple fully-connected
NN with a hidden layer and nonlinearity. Here's the code for such a block that
uses ReLU:
def feed_forward_relu(x, W1, W2):
"""Feed-...
Quick takeaways
Focus on applying what you learn - reading books or watching videos isn’t enough without practice
Build real projects that challenge you - trivial examples don’t expose you to the hidden complexities you’ll face in actual work
Expect and embrace...
#550 — April 16, 2025
Unsub | Web Version
🥚 We're taking a little break for Easter but didn't want to take the entire week off, so we have a slimline issue for you today :-) Back to full speed next Wednesday!__Peter Cooper, your editor...
This blogpost is the second installment in a three-part series exploring the mechanics and semantics of the Go scheduler. Despite being published in 2018, the content remains relevant today, as the Go scheduler’s design continues to influence the development of efficient a...
Go 1.24 added a new tool directive that makes it easier to manage your project’s tooling.
I used to rely on Make targets to install and run tools like stringer, mockgen, and
linters like gofumpt, goimports, staticcheck, and errcheck. Problem is, these
installations were glo...
Go 1.24 added a new tool directive that makes it easier to manage your project’s tooling.
I used to rely on Make targets to install and run tools like stringer, mockgen, and
linters like gofumpt, goimports, staticcheck, and errcheck. Problem is, these
installations were glo...
Go 1.24 added a new tool directive that makes it easier to manage your project’s tooling.
I used to rely on Make targets to install and run tools like stringer, mockgen, and
linters like gofumpt, goimports, staticcheck, and errcheck. Problem is, these
installations were glo...