HackerTrans
TopNewTrendsCommentsPastAskShowJobs

BreakfastB0b

no profile record

Submissions

How to Setup Leptos SSR with Cloudflare Pages

github.com
2 points·by BreakfastB0b·قبل سنتين·0 comments

comments

BreakfastB0b
·قبل 10 أشهر·discuss
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, "from the photons perspective" it never exists and the point it is emitted from and the point it is absorbed at, are the same point.

Experiencing time and having mass are linked in a very deep way. Objects that experience time, i.e. have some kind of state evolution, must have mass, this is how we know the neutrino has mass even though it's smaller than we can measure, because we measure them oscillating between the various flavours of nutrinos.

This is also how the Higgs mechanism gives rise to "rest mass" in most particles, by constantly exchanging weak hypercharge with them. This oscillation back and forth gives them mass.
BreakfastB0b
·السنة الماضية·discuss
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 when iterating on UI.

https://github.com/TheBevyFlock/bevy_simple_subsecond_system
BreakfastB0b
·قبل سنتين·discuss
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.
BreakfastB0b
·قبل سنتين·discuss
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://github.com/GaijinEntertainment/go-exhaustruct
BreakfastB0b
·قبل 3 سنوات·discuss
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 the cached binary and the derivation requires trusting the builder and a signature. All non-derivation inputs like source code, must be content-addressed.

A content addressed derivation can then be produced easily by rewriting all the derivations with `nix make-content-addressed`. This doesn’t require trust / signatures as every stage of the build is now content-addressed. The final hash could be confirmed through social consensus of multiple distrusting parties.

There’s nothing in theory stopping you from starting with a content addressed derivation other than it being a pain in the ass as you’d have to know the output hash before you built it, or TOFU (trust on first use) it which is then just the same as using the `nix make-content-addressed` approach.

I’m not sure why you think commit signatures are required. Git is content addressed, you can’t tamper with the derivations without changing the hashes and nixpkgs is primarily developed through GitHub. If someone has access to your SSH keys or GitHub account password it stands to reason they’d have access to your GPG keys too.
BreakfastB0b
·قبل 3 سنوات·discuss
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’ve pieced together the mystery and how to end the game it’s over. I say unfortunately because it’s honestly the best game I’ve ever played and I sometimes wish I could receive just enough blunt force trauma so I could experience it for the first time all over again.
BreakfastB0b
·قبل 3 سنوات·discuss
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 eating mostly plants is a good thing.
BreakfastB0b
·قبل 3 سنوات·discuss
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.
BreakfastB0b
·قبل 3 سنوات·discuss
I have zero trouble doing that in vscode without vendoring.
BreakfastB0b
·قبل 3 سنوات·discuss
If this were true, wouldn’t all corporate profits be next to zero as companies compete on the slimmest possible margins?