365 karma · joined Apr 23, 2020 (6y ago) · 110 submissions
comment 4w ago · link · parent
comment 8mo ago · link · parent
I just run a low-res (256x256) pre-pass and store the distances to a floating point texture. I then use that pre-pass texture as the starting point (minus some delta) when drawing full-screen. This makes it really nice and performant, even for complex SDF shapes.
I think a common misconception in GPU programming is that branching is slow. It is only really slow when neighboring fragments diverges on those logic branches.
The quick pre-pass step gets close enough to the SDF surface that more fragments are in lockstep with each other and terminates at the same time, eliminating the expensive re-runs the GPU driver has to do. More experimentation is needed on my end. I do this in the browser with WebGL so accurate profiling is sometimes difficult.
I experimented with different resolutions and number of pre-pass steps but found it was sufficient on most GPU's with a single prepass run (subject to change the more I test).
comment 9mo ago · link · parent
comment 11mo ago · link · parent
Either as a date in the example "4 days ago" or "in 2 days, 2 hours and 28 seconds" for future events. This requires some control for granularity to control for how precise you want it to be and what to omit.
"a few seconds ago", "3 seconds ago", "less than a minute ago".
Should support a shortform that can act as a countdown timer "00:00:56" or "00:56".
comment 12mo ago · link · parent
I would love to quickly install a small subset of the planet (say my home city or country) on a cheap webhost with a simple LAMP stack. Then have the map just use that server whenever it fits within the bounds of my subsets and then possibly fallback to other or the public servers if requesting data from outside.
Routing also seems like something that could technically be done (albeit less efficient than dedicated C++ implementations) on cheap servers but I guess it would require more work.
Rolling out map updates for all these self-hosted instances is a bit of another problem but I'm sure it can be done.
comment 1y ago · link · parent
That’s just… I don’t know what to feel about that. I’d rather keep the websites we visit for humans first, LLMs second. Not the other way around.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Just as I’m about to tap it, the other person ends the call and what I’m actually tapping is some other person on my call list that it then immediately calls. Even if I end the call quickly they often call back confused “You called, what did you want?”
Apple: PLEASE add a delay to touch input after the call screen closes.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
> In a concrete example, let’s say that our household wealth is $25,000, and we’ve just gotten a motorcycle with some miles on it already.
> Assuming no deductible, would this be worth it? Yes!
> If our wealth had been $32,000 instead, the insurance would no longer have been worth it
comment 1y ago · link · parent
The Janet language is named after an immortal being in The Good Place who helps mortals navigate the afterlife, hence the title.
It kinda surprised me that they ship the language with a PEG (parsing expression grammer) instead of a basic Regex engine.
This has been my wish for any programming language that ships a Regex library by default to also include a capable PEG.comment 2y ago · link · parent
This works as expected in Firefox.
comment 2y ago · link · parent
It works by using a fixed-position pre-blurred (with glass effects) background image: https://webdev.andersriggelsen.dk/aero/bgl.jpg
This is a lot more performant than a live gaussian blur but it of course has all the drawbacks of not allowing for a dynamic background image.
comment 2y ago · link · parent
Their examples does however only look a bit like distorted pixel data. The hands of the children seem to warp with the cloth, something they could have easily prevented.
The cloth also looks very static despite it being animated, mainly because the shading of it never changes. If they had more information about the scene from multiple cameras (or perhaps inferred from the color data), the Gaussian splat would be more accurate and could even incorporate the altered angle/surface-normal after modification to cleverly simulate the changed specular highlights as it animates.
comment 2y ago · link · parent
The interconnceted-ness could make perfect sense when it comes to collision prevention. If there is a collision up further ahead, this information can be quickly propagated between nearby cars to warn and/or automatically slow down. I do not know if this is already in use or if it was just one of those possible future scenarios with 5G. Would also make sense if ambulances could make their presence known to drivers much earlier so they can get out of the way.
comment 2y ago · link · parent
To me that just screams "particle physics are predictable(determinant) as long as the particles are shielded from outside noise, not because they are connected/bound together by some mysterious force or law of physics."
I suppose a thought experiment to prove/disprove that would be to send one of the entangled particles, particle A, around a black hole to slow it's time down and then afterwards measure if the entangled particles still give opposite results but consistent with the time delay.
comment 2y ago · link · parent
comment 2y ago · link · parent
Another reason why I kept the same toothpaste brand is that I've never had a single cavity in my adult teeth while my siblings have had plenty (they used a different brand than me). Not sure if it's credited to the toothpaste or just if it's because I never flush my mouth with water after brushing - they still do that to this day.
comment 2y ago · link · parent
I have just gotten used to that is not always the case and they actually went for small button = small flush. It makes sense physical-wise but UI-wise not so much.