HN user

riggsdk

362 karma
Posts0
Comments107
View on HN
No posts found.

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).

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.

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".

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.

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.

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.

BGFX (https://github.com/bkaradzic/bgfx) uses a different approach. You basically write your shader in a GLSL-like language but it's all just (either very clever or very horrible) macro expansions that handles all the platform differences. With that you get a very performant backend for OpenGL, WebGL, Vulkan, Metal, Direct3D 11 and 12 and Playstation. It's shader compiler program basically does minimal source level transformations before handing it over to the platforms' own shader compiler if available.

To me the BIGGEST annoyance is the iOS “End call” button.

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.

CSS Hell 1 year ago

I spent waaay too long trying to figure out why my CSS rule didn't work. It doesn't accept me to overwrite an already existing one. The rules did not specify this at all. It is not clear that the game wants me to find another rule that fixes the problem instead of adding a single perfectly valid line of CSS that does it. There is a huge difference between those two. CSS being cascading meaning that any CSS property coming after an initial rule will overwrite the previous one (in part or fully). It would be really nice if the game would tell me if the rule I added wasn't allowed instead of just silently failing to do anything with no feedback.

How would you deal with this common issue in many multiplayer shooters?: - I see someone sniping - I go behind a wall to safety - I still die From the enemy snipers perspective I was still in view when he shot. From my perspective I was not. Many game servers only roll back time to validate from the shooter's perspective. In this case you'd want some logic to perhaps negotiate a compromise - like only dealing half damage.

Why not just store each "frame" of spectral image as it's own HEVC compressed video clip? Each image frame in the video corresponds to a slice of the light spectrum. The longer the video, the more precision you pack into the frame. With that you have variable precision per frame as you see fit. It being a video you exploit the obvious video compression advancements that has been achieved over the years without having to reinvent the wheel.

Steam Networks 1 year ago

Random thought: could you insulate high voltage wires in pipes and blow cold air through those? Any loss would become “free” heating for homes nearby.

The linked article explains it further down. In common cases it boils down to "if you're rich don't bother with insurance, if you're poor you should pay it".

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

The title made me believe it was just another AI assistant (thinking Janet from "The Good Place" - but for us non-dead people instead. Was pleasantly surprised to see it is a programming language and that the title was just a clever joke on that:

  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.

Or analogous of how you convert audio waveform data into frequencies with the fast-fourier transform, modify it in the frequency spectrum and convert it back into waveform again.

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.

Aside from tonnes of possible security vulnerabilities, I do see some upsides:

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.

(not a physicist) One thing that I always wondered about that I never see "debunked" anywhere is any discussion about whether or not entanglement is actually just because the two entangled particles are put into a pretty predictable state (opposite of each other). If one is measured "up" the other will measure "down".

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.

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.

I suffered from canker sores all of my childhood and well into my early adulthood. I sometimes had as many as 20 sores around my mouth. I've as long as I remember used a non-SLS toothpaste but I still got the sores - especially around stressful periods of time like around exams. For some reason they started appearing less and less as I approached my 30'ies. I never have them anymore now. I still use the same non-SLS toothpaste though as I'm not really keen on them returning despite the toothpaste not really helping me much when I was younger. I'm imagining it helped with them not being worse than they could be.

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.

This one always comes to mind when I see some fancy toilet designs at various venues. Which one do I press? Normally in UI a bigger button usually means a more used feature. I can't imagine the average person doing number 2 more than number 1. Most toilets around here have the same size button but an icon with a big circle representing a big flush and small circle for small flush. The buttons being the same size makes the icons have more "meaning".

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.

I've somewhat convinced myself that someone in the postal service is leaking information about pending parcels to scammers (or the scammers have access to some servers). Whenever I'm expecting a package the number of phishing attempts in my email skyrockets. Period of no packages - a lot less attempts. Waiting for a new package? Phishing emails ramp up again.

How common is writing checks in America these days? In Denmark it is more or less completely phased out (with few exceptions). Nobody uses them anymore in practice. In Denmark I've had no issues cancelling my gym memberships directly online but haven't been to that many different ones.

I loathe the cost-cutting keyboard manufacturers have turned to over the recent years.

I cannot get a good danish keyboard anymore without the ÆØÅ keys having the Swedish, Norwegian and Finnish/Suomi keys printed on them as well, often in different colors.

My decade+ old "Logitech Illuminated" keyboard has been the best keyboard I've ever had but recently it's been acting up for me. It occasionally adds diacritics to random letters. Tried cleaning it with no luck. It was a danish-only version, laptop-like flat keys but with more "travel-distance" so it feels like the best of both worlds. Also had a nice flat palm-rest.

Unfortunately I can't get this keyboard or find something that has a similar form factor anymore anywhere - and if I can find some version of it, it has the the terrible multi-country-cost-cutting-keys on it. I suppose that if I find a replacement keyboard that I can move the old keys over to the new one (if they are even the same after all these years)