Hacker Newsnew | past | comments | ask | show | jobs | submit | more phpnode's commentslogin

it's Oracle's UI library that they encourage their official partners to use. I've had the misfortune of doing some consulting for a company that used it, it's actually very fully featured but the internals are totally insane and very dated.


because current battery technology cannot support it


kysely is an excellent successor to Knex, strongly recommended. Pair it with something like https://github.com/kristiandupont/kanel to generate types from your schema.


> any other compilers that do this?

TypeScript has a notorious "Type instantiation is excessively deep and possibly infinite" warning that can often be unsafely ignored with a `@ts-expect-error` comment


Because otherwise the main thread will be blocked while those operations take place and the whole ui will freeze


You'll find this convention in other JS crypto stuff as well, like libraries for password hashing. Eg:

https://www.npmjs.com/package/@node-rs/argon2

https://www.npmjs.com/package/bcrypt

Though the bcrypt package does provide an additional sync API. (You should be using argon2 though.)


Yes, but you can offer both sync and async methods. Web Crypto only has async.


Programmers who are not aware of the pitfalls will use the sync version and build apps that have terrible ux, so it’s better to not give them the option unless there’s a really good reason to, so what’s the use case here?


You're forced make all of your code async all the way down to lowest crypto calls, even if you handle the async way higher in abstraction layers.


How would you "handle the async" at a different layer? If you were to call sync crypto methods, they'd block the event loop no matter where you call them - unless you call them from a Worker, at which point they're async calls again.

The only real use case would be small scripts where you don't care about sync/async, but experience shows that devs will abuse the sync functions in scenarios where the async ones would be appropriate.


Out of all the type systems which provide safety at both compile time and run time, which are your favourites?


It’s all about tension on the lightning connector imo - the connector isn’t designed for that level of flexibility, so it would break and it’s not like they’re going to use a different connector just for the mouse


This is the best steelmanning I've seen of the Magic Mouse charging port design; I'm surprised I never encountered it before. It actually makes a lot of sense considering how stiff the cables typically are, and it also then makes sense that the (immobile) Magic Keyboard and Magic Trackpad do have a charging port you can use while the device is in use.


It's nonsense -- plenty of people use phones and iPads while tethered to a charging cord. The port is well secured to the logic board of the device because it has to survive a lot of yanking, accidental falls, etc. It doesn't explain the Magic Mouse design.


It's not an issue anymore now that they would use usb-c.


No, jsx is an ergonomic mechanism for describing a hierarchy of deferred function calls


lol no.



> Ohanian is based in Florida, where he lives with his wife, former tennis player Serena Williams

Oh, that Ohanian. It's a small world.


that's likely a backronym


I did a little more digging and it seems you're probably right about that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: