Better HN
topnewbestaskshowjobs
Log inSign up

Rohansi

1,500 karma · joined Sep 18, 2014 (12y ago) · 1,067 submissions

Submissions

comment 1d ago · link · parent

Makes more sense doing what .NET is currently doing for NativeAOT right now: use source generators to extract what you need at build time.

comment 1d ago · link · parent

Probably not. This has been done will all kinds of motors over time. The Steam Controller has similar haptic motors for its trackpad which are used to play a few sounds officially, and can also play music.

comment 2d ago · link · parent

It seems like you are contradicting yourself here. Just generate code that doesn't box on the fly, but without a JIT compiler? Boxing isn't even the biggest issue here - you could probably avoid that with a strongly typed reflection API, but I don't know if that makes it less useful.

IMO the big issue is AOT compilers only compile code that is referenced statically. Without a JIT you would have no choice but to error if you try to call something that wasn't compiled in. Compiling everything is not an option because generics.

comment 2d ago · link · parent

Native in this context refers to the UI toolkit(s) native to the platform. Microsoft has a big list of them, with different visual styles, and applications are split between them.

comment 2d ago · link · parent

Bridges give me bad memories of React Native. There's a reason why they moved away from that - it was terrible for performance.

comment 2d ago · link · parent

Reflection to do what? Getting/setting fields, calling methods, etc. uses `object` which means boxing, which means allocating. Going AOT also means there is no JIT to compile methods (including generic instances) that were not statically referenced.

comment 3d ago · link · parent

Working but there's no way it looks good in person. That one is 360p with cut down textures. That is lower than Switch 1 games in handheld mode, blown up to TV size.

https://www.reddit.com/r/decomps/comments/1xwnadj/comment/19...

Of course you wouldn't need to cut as much with more RAM available but there is no way Apple would let games use the full 8GB. No modern console let's you use all, not even the original Switch (4GB RAM, ~3GB usable). Besides, I'm sure Apple is very happy as-is because kids tend to prefer gaming on their iPhone or iPad.

comment 3d ago · link · parent

Perfectly fine for you to think that. However, you could simply not allow websites to access WebBluetooth and WebSerial instead of supporting browser vendors that refuse to support the features entirely. Both already require you to allow access.

comment 3d ago · link · parent

The Steam Machine is relatively weak compared to proper PC gaming setups but it is still far more capable than even the latest Apple TV. Less than half as much RAM (8GB vs. 16+8GB) and apps can only use 2GB. Good enough for basic games, like what you listed, but not for anything serious.

comment 4d ago · link · parent

The limitations aren't technical. Apple does not want third party browsers on iOS so it is technically possible (in some regions, because they were forced to) but filled with hurdles to discourage anyone from trying.

comment 4d ago · link · parent

It does open instantly, for me. It's not an Electron app. It's actually open source, too: https://github.com/microsoft/calculator

The answer is almost certainly because it is a "work PC". They are typically loaded up with so much shitty monitoring software with hooks in everything, making everything slower than it should be.

comment 5d ago · link · parent

I basically do this with mine too but the newer Chamberlain garage door openers do not work with this. The switches follow some protocol required by the opener which a relay would not work with.

comment 5d ago · link · parent

zram does not compress all of your RAM. It only compresses inactive blocks of memory that would be eligible for swap, if you had swap enabled.

comment 5d ago · link · parent

It's basically in-memory swap. If you have swap then you already have the added latency (but worse) and I/O usage instead of CPU. Like swap, the downsides only come into play under high memory pressure.

comment 5d ago · link · parent

I did the first one. AFAIK it doesn't quite work with all garage door openers because they started using special switches that don't just close the circuit.

comment 1w ago · link · parent

Probably next to nothing compared to what we fish out of the ocean constantly.

comment 1w ago · link · parent

> The comparison with NUCs or mini PCs or laptop boards feels like it's a wrong comparison.

For many (maybe even most) people they do the same thing. Some just want a HTPC, basic desktop, or small server, no GPIO needed. Raspberry Pis were definitely cheaper early on because you could actually buy boards at or near MSRP, but over time the price rose and mini PCs became cheaper.

comment 1w ago · link · parent

You need give permission to websites too. It's weird they haven't transitioned over to requiring permission on Android yet.

comment 1w ago · link · parent

Probably not a bad idea. They (Steam) basically do this right now, except the deposit is only $100.

comment 1w ago · link · parent

I feel like most devices don't fit this list of requirements. What devices do?

comment 1w ago · link · parent

I'd love a replacement for Cricut's software. You don't need a subscription for it but a few features are locked behind a subscription, and they nag a lot, and it's just so bad.

comment 1w ago · link · parent

For inference alone they get far better utilization of the hardware because they can keep it fully loaded with maximum concurrency. Other than that they get to collect a lot of data for training.

comment 1w ago · link · parent

Kind of, but not really? At its core this article is basically a hack to do a bit of SIMD on an instruction set that doesn't have SIMD. Obviously SIMD is still highly beneficial on modern CPUs otherwise compilers would stop emitting it.

comment 1w ago · link · parent

Avalonia has enterprise support available if you need it. It also supports mobile (native AOT, not WASM).

I do agree that it's hard to beat web tech though. Great support across all platforms. Just don't forget to optimize.

comment 2w ago · link · parent

Why would each core need a direct connection to the DIMMs?

comment 2w ago · link · parent

If you're limiting yourself to Microsoft's options then I'm going to have to say that's a you problem. Avalonia is pretty great. What do you use when you're building apps in other languages?

> On the server side, TypeScript is actually better

I like TypeScript but I'd never pick it over C# on the server side unless I had to do React SSR for some reason.

comment 2w ago · link · parent

SQL strings

comment 2w ago · link · parent

What's missing from cross-platform support? You can basically run it everywhere already?

comment 2w ago · link · parent

Lots of people go into the office and do everything on the laptop, including meetings. Useless.

comment 2w ago · link · parent

You don't have to write Lua. As you've already said in a different comment, it isn't a problem in QuickJS because it has memory limiting built in. IMO that's the right way to do this - instead of transpiling JS to try and make it safe you should run it in a virtual machine like QuickJS/Lua/etc does.
12345
36