Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hot_gril
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
391.
▲
by
hot_gril
2y ago
It's only in newer chips, but it's broader than VP8/9 was. Intel and Nvidia's newest chips support hardware en/decoding of AV1, while Nvidia never supported VP8/9.
392.
▲
by
hot_gril
2y ago
Yeah, this pattern is old. But JS is the only common language (at least today) that went so all-in with it.
393.
▲
by
hot_gril
2y ago
I don't get how it took until present day for randomly-generated asymmetric keys to become somewhat commonly used on the Web etc in the form of "passkeys" (confusing name btw). Password rotation and other rules never worked.
394.
▲
by
hot_gril
2y ago
Yeah, we're not gonna convince people in other countries that hacking is uncool. Better to have the advantage.
395.
▲
by
hot_gril
2y ago
And people used to complain that ML is a buzzword, it's not really "learning" anything, and this is nothing more than mere image processing.
396.
▲
by
hot_gril
2y ago
Besides money, market share must also be important for Firefox. Otherwise the web becomes Chromium-only.
397.
▲
by
hot_gril
2y ago
That sounds more like Golang (generics)
398.
▲
by
hot_gril
2y ago
Python is more so in the same boat as Rust. Python asyncio was relatively recent.
399.
▲
by
hot_gril
2y ago
This isn't an actual problem people encounter in unit testing, partially because you test your outer interfaces first. Also, irl static types often get so big and polymorphic that the context matters just as much.
400.
▲
by
hot_gril
2y ago
These are "embarassingly parallel" examples that multiprocessing is ok for, though. There was always the small caveat that you can't pickle a file handle, but it wasn't a real problem. Threads are more useful if you have
401.
▲
by
hot_gril
2y ago
Maybe a place to look for obvious use cases is in other languages. JS doesn't have threads, but Swift does. The reason I can't think of one is, free threads are most useful for full parallelism that isn't "embarrassingly
402.
▲
by
hot_gril
2y ago
Basically true in JS too. You're not supposed to do blocking calls in async code. You also can't "await" an async call inside a non-async func, though you could fire-and-forget it. Right, but how often does a Python prog
403.
▲
by
hot_gril
2y ago
Yeah and even with static typing, a string can be many things. Some people even wrap their strings into singleton structs to avoid something like sending a customerId string into a func that wants an orderId string, which I think is overkil
404.
▲
by
hot_gril
2y ago
JS had an event loop since the start. It's an old concept that Python seems to have lifted, as did Rust. I used Python for a decade and never really liked the way it did threads.
405.
▲
by
hot_gril
2y ago
This is what made me give it a shot in TS, but the problem is your types at interface boundaries tend to be annoyingly complex. The other problem is any project with optional types soon becomes a project with required types everywhere. Ther
406.
▲
by
hot_gril
2y ago
I shouldn't have said it's a waste of time period, cause every project I work on does have static typing in two very important places: the RPC or web API (OpenAPI, gRPC, whatever it is), and the relational database. But not in t
407.
▲
by
hot_gril
2y ago
Well the TS tooling is more painful in ways. It's not compatible with some stuff like the NodeJS profiler. Also there's some mess around modules vs "require" syntax that I don't understand fully but TS somehow plays
408.
▲
by
hot_gril
2y ago
ThreadPoolExecutor is the most similar thing to asyncio: It hands out promises, and when you call .result(), it's the same as await. JS even made its own promises implicitly compatible with async/await. I'm mentioning what JS
409.
▲
by
hot_gril
2y ago
Non-blocking HTTP request is the bread and butter use case for asyncio. Most JS projects are doing something like this, and they don't need to manage threads for it. You want to manage your own thread pool for this, or are you going to
410.
▲
by
hot_gril
2y ago
When is the last time you had a bug IRL caused by passing the wrong kind of thing into plus(x, y), which your tests didn't catch?
411.
▲
by
hot_gril
2y ago
Asyncio is designed for things like webservers or UIs where some framework is probably already handling the main event loop. What are you doing where you just want to run something else in the background, and IPC isn't good enough?
412.
▲
by
hot_gril
2y ago
What are the common use cases for threading in Python? I feel like that's a lower level tool than most Python projects would want, compared to asyncio or multiprocessing.Pool. JS is the most comparable thing to Python, and it got prett
413.
▲
by
hot_gril
2y ago
It is properly typed: it has dynamic types :)
414.
▲
by
hot_gril
2y ago
I think static typing is a waste of time, but given that you want it, I can see why you wouldn't want to use Python. Its type-checking is more half-baked and cumbersome than other languages, even TS.
415.
▲
by
hot_gril
2y ago
I think the above comment is just saying that you shouldn't use logs to do the job of metrics. Like, if you have an alert that goes off when some HTTP server is sending lots of 5xx, that shouldn't rely on parsing logs.
416.
▲
by
hot_gril
2y ago
I ran a public anarchy Minecraft server in high school using a copy of a private server's map that got reimaged each week. Periodically someone would join, spend all day destroying buildings, then explain via a series of messages to no
417.
▲
by
hot_gril
2y ago
The motivation is relevant, and the motivation here doesn't look good.
418.
▲
by
hot_gril
2y ago
It's called something similar, but it doesn't seem like the same thing. For one, I don't think you can force an iPhone 11 into max performance mode like you can with a 6. If you read the context around that quote on Apple
419.
▲
by
hot_gril
2y ago
He probably knew how long the ferry ride was before he booked it.
420.
▲
by
hot_gril
2y ago
"For iPhone 6, iPhone 6 Plus, iPhone 6s, iPhone 6s Plus, iPhone SE (1st generation), iPhone 7, and iPhone 7 Plus, iOS dynamically manages performance peaks to prevent the device from unexpectedly shutting down, so you can still use you
More ›