Recent submissions

Comment · 4 days ago
Other Danish'ness:

You'd translate the "else" keyword to "ellers". "if then else" => "hvis så ellers"

Related, the word "or" would be translated to "eller" (without the 's') "and or not" => "og eller ikke"

Comment · 6 days ago
I got really surprised when Wolt suddenly gave me a notification on iPhone that said "Welcome to Germany! Discover all the places you can order from". How on earth would it know I had crossed the border? I hadn't interacted with the app for several days and the iOS location services setting is explicitly set to "While Using". That must mean Wolt is actively telling iOS it's being "in use" even though it's not. Really really scummy behavior that should be illegal.
Comment · 7 months ago
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).

Comment · 8 months ago
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.
Comment · 10 months ago
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".

Comment · 11 months ago
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.

Comment · 1 year ago
For those curious, that is @thethoughtemporium on youtube.
Comment · 1 year ago
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.

Comment · 1 year ago
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.
Comment · 1 year ago
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.
Comment · 1 year ago
TLDR:

> It's a single function that's now 100x faster, not the whole of FFmpeg

Seems to be in a color detection filter.

> avfilter/vf_colordetect: add x86 SIMD implementation

Comment · 1 year ago
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.
Comment · 1 year ago
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.

Comment · 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.
Comment · 1 year ago
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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton