HN user

6yyyyyy

155 karma
Posts0
Comments76
View on HN
No posts found.

You should run away from React Native Desktop screaming. It's built on top of WinUI 3, and inherits all it's problems, while also being dramatically slower. Almost all functionality requires writing C++ code, and communicating between C++ and JS is a huge pain in the ass. Use QT instead.

And if you think using it will let you port your app to other platforms, think again. There's no drop-in compatible equivalent of RNW for Linux, and the version for Mac is even worse than the Windows version.

t. works on a huge app written with React Native Desktop

I hope this is successful. Fake books are flooding online stores and if this was widely adopted I would certainly refuse to buy anything without it.

But unfortunately I think that's unlikely. Most authors will likely never hear about this. I assume there will be some kind of fee to participate, but this will discourage people from using it. And even if it takes off, the fake book authors will just slap it on anyway as I'm not sure what enforcement mechanism would be effective.

You can use KeePassXC for passkeys. It will generate completely unidentifiable public keys, and save the the private keys to a portable KDBX file.

It's unfortunate that passkeys have been such a disaster. Attestation should never have been part of the spec, it should never have been presented as a replacement for hardware U2F keys, and a private key file format should have been defined on day 1. But there is useful functionality buried under all the noise and confusion.

High PPI screens have been around for 10 years or so, and they still cost about twice as much as a standard PPI screen the same size.

Put yourself in the shoes of the average computer purchaser: Would you rather buy a high PPI monitor, or two standard PPI monitors? To me this is a no-brainer.

I find endorsements very valuable when voting in down-ballot elections. A good endorsement includes the reasoning behind the decision. I read the endorsements of multiple outlets and find myself agreeing more with one or the other.

What's the alternative, do comprehensive research on the record of 20 candidates? I don't have time for that. Read the blurbs they write about themselves in the voter's guide? Why should I trust that, they can write anything there.

A dedicated shader could do it far more efficiently. Ideally, you would create a mip chain, then as you move towards the blurrier parts of the image, spread your taps farther apart and choose them from lower-resolution mips. You could even have an animated "blur map" to control where the blur is, and it would run at 60 fps ez.

This runs at 165 fps in Shadertoy for me (warning all constants are wild guesses, use "pebbles" for iChannel1):

  void mainImage( out vec4 fragColor, in vec2 fragCoord )
  {
      // Normalized pixel coordinates (from 0 to 1)
      vec2 uv = fragCoord/iResolution.xy;

      float blurRadius = clamp(1.5 * (texture(iChannel1, uv/2.0 + vec2(iTime, iTime / 2.0)/6.0).x - 0.5) + 0.5, 0.0, 1.0);


      float mipmapLevel = fwidth(uv).x;
      float biasedMip = mipmapLevel + blurRadius * 4.0;
      vec3 final = (3.0/8.0) * textureLod(iChannel0, uv, biasedMip).xyz;
      for (float i = 0.0; i < 6.28; i += 6.28/5.0) {
          final += (1.0/8.0) * textureLod(iChannel0, uv + 0.02 * blurRadius * vec2(sin(i), cos(i)), biasedMip).xyz;
      }

      // Output to screen
      fragColor = vec4(final.xyz,1.0);
  }

Some of the people who currently fly economy would start flying business, but a huge number of people who are currently taking Greyhound buses, driving, or choosing not to travel at all, would start flying economy.