Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
BreakfastB0b
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
BreakfastB0b
1y ago
Except that's not from the frame of reference of the photon. At the speed of light, the Lorentz transform shows that 1) Time stops completely, 2) All distances in the direction of travel collapse to zero. So in a very real sense, "
2.
▲
by
BreakfastB0b
1y ago
I participated in the most recent Bevy game jam and the community has a new tool that came out of Dioxus called subsecond which as the name suggests provides sub-second hot reloading of systems. It made prototyping very pleasant. Especially
3.
▲
by
BreakfastB0b
2y ago
Try writing Go without generics. No typed maps, arrays, slices, channels or function types. Only `interface{}`. Go always had generics, you just weren’t allowed to write your own until recently.
4.
▲
How to Setup Leptos SSR with Cloudflare Pages
(github.com)
2 points
by
BreakfastB0b
2y ago
|
0 comments
5.
▲
by
BreakfastB0b
3y ago
Because go doesn’t have exhaustiveness checking when initialising structs. Instead it encourages “make the zero value meaningful” which is not always possible nor desirable. I usually use a linter to catch this kind of problem https:/
6.
▲
by
BreakfastB0b
3y ago
Nix has two types of derivations (builds). Input addressed, and content addressed. An input addressed derivation’s hash is based on the the hash of all its input derivations and its own derivation. Therefore trusting the association between
7.
▲
by
BreakfastB0b
3y ago
You’re confusing Outer Worlds with Outer Wilds, both confusingly released around the same time. Outer Wilds is an indie game where exploration and knowledge is the entire point of the game. It unfortunately has zero reply value as once you’
8.
▲
by
BreakfastB0b
3y ago
I really hate this kind of micro-analysis when it comes to health. The human body is really really complicated and getting fixated on things like oxalates is in direct contradiction to longer term studies on overall health that show that ea
9.
▲
by
BreakfastB0b
3y ago
Go functions are coloured as well. context.Context proliferates everywhere IO takes place to handle cancellation / short circuiting because goroutines can’t be sent signals to die like threads. They have to exit themselves.
10.
▲
by
BreakfastB0b
3y ago
I have zero trouble doing that in vscode without vendoring.
11.
▲
by
BreakfastB0b
3y ago
If this were true, wouldn’t all corporate profits be next to zero as companies compete on the slimmest possible margins?
12.
▲
by
BreakfastB0b
3y ago
Folding Ideas released an excellent video essay recently examining the concept of the metaverse and how it suffers from somewhat of a “No True Scotsman Problem” https://youtu.be/EiZhdpLXZ8Q
13.
▲
by
BreakfastB0b
3y ago
That attitude assumes that the go standard library is the global maximum for Getting Stuff Done, and because of backwards compatibility guarantees ensures that it’s difficult to innovate on. I think having a small standard library is actual
14.
▲
by
BreakfastB0b
4y ago
Not OP but at least for me, over time meat, dairy, etc become so deeply associated with the nightmare of industrial scale animal agriculture that they loose their aesthetic appeal. I know it’s surprising, and it happens slowly, but it happe
15.
▲
by
BreakfastB0b
4y ago
Meaning is use. “Milk” is a fuzzy collection of properties and use cases. Which is why when you say “coconut milk” or “oat milk” people aren’t confused. Hell, cows aren’t magic. Even “real milk” is just a collection of sugars, proteins, etc
16.
▲
by
BreakfastB0b
4y ago
But the whole point of "I, Robot" is that the three laws are incomplete and insufficient! That's literally the whole point of the book.
17.
▲
by
BreakfastB0b
4y ago
How do you square that away with its use in the standard library, and many third party libraries? Someone’s gotta write the reflection code.
18.
▲
by
BreakfastB0b
4y ago
> Go keeps my coworkers from writing code that's too clever for me to understand Until someone whips out `import “reflect”`. I’ve always found it confusing that people claim Go is simple when it contains runtime type reflection, whi
19.
▲
by
BreakfastB0b
4y ago
The phenomenon of “coloured functions” is usually derided because of the way it infects the call tree. In this sense context proliferation is the same phenomenon. Otherwise no one would really care about coloured functions.
20.
▲
by
BreakfastB0b
4y ago
> There has to be a better solution other than needlessly copying data. Sorry I don’t think I explained myself very clearly. What I’m saying is Rust allows you to optimise FP style patterns by replacing copying data with in place mutatio
21.
▲
by
BreakfastB0b
4y ago
You’re correct that they’re fundamentally different things, I didn’t mean to draw a false equivalence between them. The comparison I was trying to draw between them was the way they infect the call tree and usually demarcate impure function
22.
▲
by
BreakfastB0b
4y ago
context.Background() is typically only used when one doesn’t care about the result. If you did care about the result, you should be passing the parent context to preserve the circuit breaker timeout in case the operation takes too long. I t
23.
▲
by
BreakfastB0b
4y ago
> Go decouples all that coloring away. Go does have “coloured functions”, it’s called `context.Context`. Any function in go performing IO usually has to take `context.Context` as its first argument so it’s cancelable. Which then propagat
24.
▲
by
BreakfastB0b
4y ago
I would agree if it weren’t super easy to cause a panic in go. Index slice out of bounds? panic. Close a channel twice? Panic. Incorrect type assertion? Panic. Dereference nil pointer? Panic. I would argue that all of these examples which a
25.
▲
by
BreakfastB0b
4y ago
You would age the same amount during deceleration that you did during acceleration. I think your misunderstanding comes from the relativistic twin paradox. From the perspective of the twin on the spaceship accelerating away from earth, the
26.
▲
by
BreakfastB0b
4y ago
I don’t remember exactly since it’s been a while since I read it, but in Scott Aaronson’s Book “Quantum Computing Since Democritus” which is about how physics informs what’s computable. He talks about how the behaviour of quantum mechanics
27.
▲
by
BreakfastB0b
4y ago
This PBS Space Time video does a good job of explaining it https://youtu.be/1Z5fnwUmTSY . tl;dr the inner and outer event horizons of spinning black hole cancel out leaving a naked (ring) singularity which is believed to be
28.
▲
by
BreakfastB0b
4y ago
I have a Physics degree for what it's worth. Though I'll admit I didn't articulate what I meant clearly. The electron example was assuming that the increasing magnetic field was part of this hypothetical toy universe that vio
29.
▲
by
BreakfastB0b
4y ago
Conservation of energy is not fundamental. Noether’s Theorem shows that Conservation Of Energy only arises in systems that exhibit “Time Translation Symmetry” i.e. conducting an experiment now, and conducting an experiment later always are
30.
▲
by
BreakfastB0b
4y ago
Go always had generics, map, slice, chan are all generic. Go just didn't let the user write any generics, so fuck you if you want any other data structure until 1.18. If you really think you don't need generics, take your code cod
More ›