HackerTrans
TopNewTrendsCommentsPastAskShowJobs

riggsdk

no profile record

comments

riggsdk
·há 4 meses·discuss
I do this in a more crude fashion (like the article mentions) on the GPU in an old personal project.

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).
riggsdk
·há 5 meses·discuss
Whenever plugging a hole like this, the OS should kinda leave it “open” as a kind of honeypot and immediately show a warning to the user that some exploit was attempted. Granted, the malware will quickly adapt but you should at least give some users (like journalists or politicians) the insanely important information about them being targeted by some malicious group.
riggsdk
·há 7 meses·discuss
Wouldn't it make sense if the content of it could be auto-generated as well for the users' locale directly with no need for JS?

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".
riggsdk
·há 8 meses·discuss
I think OpenStreeMap could benefit immensely from investing a bit in making self-hosted versions more approachable and on more platforms, especially now that vector-tiles are becoming increasingly used.

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.
riggsdk
·há 8 meses·discuss
For those curious, that is @thethoughtemporium on youtube.
riggsdk
·há 8 meses·discuss
With that, you have essentially turned the regular website content into a protocol (not intended for humans) and the LLM into the browser.

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.
riggsdk
·há 10 meses·discuss
The game doesn't really explain that too well. You have to go find the packages first before you can deliver it. For example the old lady asks you to deliver an offering at a temple.
riggsdk
·há 10 meses·discuss
In Denmark you can. I was in my mid thirties when I went to my doctor to ask them to prescribe it. Before each shot I would go to the pharmacy and buy one dose and go to the doctor to have them administer it for me (if I wanted to). At that time I think it was free for teenage girls, now it's free for teenage boys as well.
riggsdk
·há 2 anos·discuss
I also quickly ditched mine. I mean it worked sorta fine - but the usability was absolutely terrible. Often apps lost connection with it so any requests to pause or resume the media was several seconds delayed. If I got a phone call I often wanted a quick way to pause my media but chromecast made this super inconvenient, slow and stressful when the phone is blurting out it's ringtone. App support was also spotty at best. In the end I realized that since I've already chosen between a rock and a hard place (went with the Apple ecosystem), I could just screenshare using an old Apple TV. This ended up working much better in practice (although lower quality video stream) than Chromecast. Today I don't cast much video anymore for some reason, not really sure why. I have an Apple TV 4K and just mostly use the native apps from various services. Having a remote to a system that is completely detached from your phone is much nicer usability wise IMHO.
riggsdk
·há 5 anos·discuss
In Star Trek TNG there was a story arc that culminated in the reveal of a precursor humanoid race that had seeded their genome around the galaxy so that they ultimately resulted in the “big” races like humans, Klingons, Vulcans, Cardassians and so on.