6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions
Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.
Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view
comment 4y ago · link · parent
How certain are you that you've controlled all the variables? If the Pencil was the cause of a widespread issue, then I have to imagine lots of articles would be being written about this and Apple would be taking it seriously.
As it is, I think that iPadOS just has a variety of things that can trigger bad battery life, and that's much harder for Apple to tackle than a single, easily-defined issue like the Apple Pencil affecting battery life would be.
comment 4y ago · link · parent
It might still be getting some updates, for now, but it can't be updated to the latest version of Windows. I guess you could install Linux on it.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
I mean... to be clear, they do tons of caching[0], which is certainly critical for their ability to have a non-cached response time of 20ms. Most of their responses should be coming from a cache, given the type of site they run, otherwise they would need a lot more servers.
[0]: https://nickcraver.com/blog/2019/08/06/stack-overflow-how-we...
comment 4y ago · link · parent
Proper async support is decently important to me in any language or framework, but in the real world, I haven't often run into other developers who care much about that.
comment 4y ago · link · parent
And if your framework is faster, then of course you're going to mention it. Do you really think Flask or Django wouldn't point out that they were fast, if they were? I'm quite sure they would, since it's not shameful to educate the reader on what your framework offers compared to the competition, but they can't, because they're not.
Your link goes to the very bottom of that page, so is it really prominently featured compared to everything else they're trying to sell you on? It really doesn't seem like it. More convincing would be pointing to their list of "key features" at the top, which does mention performance first, but then quickly focuses back on "Fast to code" and "Fewer bugs".
comment 4y ago · link · parent
Take this example from their docs:
@app.get("/items/{item_id}")
async def read_item(item_id: int, q: Union[str, None] = None):
return {"item_id": item_id, "q": q}
You are declaring the types of the parameters, and FastAPI parses and enforces them for you. This saves quite a bit of code, and lets you focus on your business logic. Writing the code this way also allows FastAPI to generate a meaningful description of your API, which can be schema (such as Swagger) that tools can use to generate clients, or it can be documentation pages for humans to read. Any good documentation will still require you to write things, but this gets you further, faster than using something like Flask.This example[0] takes these concepts even further.
Or just glance at the summary and see that it has nothing to do with @app.post.[1]
FastAPI has also properly supported async routes for longer than Flask, from what I understand.
(I've never personally used FastAPI for anything serious, since I have rarely used Python for anything other than machine learning for the past 5+ years, preferring to use Go, Rust, or TypeScript for most things, but I am aware of it, and seeing its claims misrepresented like that is mildly annoying. FastAPI is far more appealing to me than any other Python web framework I've ever seen, and I've only heard good things about it. Based on my experiences in other languages, their approach to writing APIs is absolutely a good one.)
comment 4y ago · link · parent
If an HTTP server is ignoring the Accept-Encoding header and choosing to serve a Content-Encoding that the client can't accept, that is the problem here. If the server and client can't come to an agreement, isn't that the purpose of HTTP 406? But, being able to serve both gzip'd and plain text versions of an XML file doesn't seem that crazy.
comment 4y ago · link · parent
Even if you bury the AirTag in the middle of the luggage, it will still be trackable, but NFC will absolutely not come even close to reaching it.
They’re not going to have off the shelf equipment capable of locating an AirTag quickly enough to matter even if they can tell there are AirTags somewhere in the general vicinity of the luggage area. That’s just not how any of this works.
Whether the rule itself is ridiculous or not, as others have pointed out, the main benefit seems to be that they can tell customers to stop bothering them about luggage that they’ve lost.
comment 4y ago · link · parent
I have written both languages professionally in various contexts for years. In point of fact, I've been writing Rust since before Rust 1.0 came out, although I didn't get my first Rust job until about 3 years later. They're both excellent languages. I actually didn't learn Go until several years after learning Rust, and at the time I didn't appreciate it like I should have, since I was so excited about Rust. Only after getting professional experience with Rust did I truly begin to appreciate how nice Go is for the things it is good at.
Go is just so much better suited for network-connected services (including but not limited to web backends), and Rust is better suited for batch processing or embedded contexts where no compromise on performance can be made, in my experience. There are lots of reasons for this, but it's off topic from the question, and the answer to the question is that I absolutely do go back to Go. Neither language is a perfect tool for all problems, and I constantly dream about building my own language that learns from the best of both... there is certainly room for improvement on both ends.
comment 4y ago · link · parent
Why is that sentence present tense instead of past tense? I suppose it continues to be a problem for Intel, but your comment appears to be presenting Intel downsides as if they were universal. Zen 4 apparently implements AVX-512 efficiently, without the problems Intel implementations experienced. That's what this whole discussion is about, and that's what Phoronix found as well.[0]
Hopefully Intel will catch up to AMD on AVX-512, but in the mean time, people optimizing software should be aware that AVX-512 has few (if any) downsides on certain platforms. Phoronix found zero performance penalty, but perhaps more testing is required.
comment 4y ago · link · parent
----
With Siri dictation, I feel like I usually spend at least as much time correcting its mistakes as I do speaking the dictation itself. In some cases, that is still faster/easier than typing, but I would rather have a voice model that can work in about the same total amount of time without requiring constant corrections. If I speak for 30 seconds, then I can do other things for 30 seconds while my phone processes it… that might actually be preferable if it gets it right. Otherwise, I’ll be spending 30 seconds actively editing it anyways. Even an improvement on the number of edits required per dictation would be nice. Admittedly, I feel like Google and Microsoft already do a much better job here.
It could be interesting to use the tiny model to give a preview of the writing while the large model is taking its time, and then allow the user to tap on words that changed to see the predictions from the tiny model and correct back to them if they want. I was doing some experiments a few minutes ago, and on one audio clip, the tiny model wrote down a very literal interpretation of an uncommon sci-fi word, and that was more accurate than either the medium or the large models. The rest of the time, the larger models did better, as expected.
But, I don’t know. This is interesting to me, but I agree there could be issues with making is workable for real time transcription.
comment 4y ago · link · parent
Sometimes it outputs the words "thank you" (which I did not say), sometimes it outputs a period. It never once output anything I said. It seems completely broken.
EDIT: apparently something about the combination of Safari+HF+Whisper was not working. I tried another Whisper demo on HF and had the same results. Switching to Chrome made it work flawlessly... I have no idea what kind of codec incompatibility was happening.
comment 4y ago · link · parent
Brute forcing the model with just traditional CPU instructions is fine, but… obviously going to be pretty slow.
I have no experience on the accuracy of Talon, but I’ve heard that most open source models are basically overfit to the test datasets… so their posted accuracy is often misleading. If Whisper is substantially better in the real world, that’s the important thing, but I have no idea if that’s the case.
comment 4y ago · link · parent
I doubt people run online transcription for long periods of time on their phone very often, so the battery impact is irrelevant, and the model is ideally running (mostly) on a low power, high performance inference accelerator anyways, which is common to many SoCs these days.
comment 4y ago · link · parent
Maybe I'm missing something, but I don't see the problem here.
comment 4y ago · link · parent
Also, I feel like shipping to the cloud and back has been shown to be just as fast as on device transcription in a lot of scenarios. Doing it on device is primarily a benefit for privacy and offline, not necessarily latency. (Although, increasingly powerful smartphone hardware is starting to give the latency edge to local processing.)
Siri's dictation has had such terrible accuracy for me (an American English speaker without a particularly strong regional accent) and everyone else I know for so many years that it is just a joke in my family. Google and Microsoft have much higher accuracy in their models. The bar is so low for Siri that I automatically wonder how much Whisper is beating Siri in accuracy... because I assume it has to be better than that.
I really wish there was an easy demo for Whisper that I could try out.
comment 4y ago · link · parent
Regarding USB devices, Apple has offered a setting for years in "Face ID & Passcode", under "Allow Access When Locked" called "USB Accessories". If you turn that off, then your iPhone won't allow USB accessories to connect if the phone has been locked for more than an hour. Not quite the same as the Lockdown setting, but better than nothing?
comment 4y ago · link · parent
But, all of this is still irrelevant to efficiency. Running at 230W for 1 second to complete a task would generate less heat / use less electricity than running at 150W for 2 seconds to complete the same task.
comment 4y ago · link · parent
But, efficiency is often a curve, and you can supposedly get crazy efficiency by limiting the TDP of Ryzen 7000, so it is an option for those who prize efficiency above maximum performance, and it would still represent an improvement over a Ryzen 5000 at the same TDP. As I said, though, we’ll need to see actual reviews.
comment 4y ago · link · parent
The official announcement indicated significantly better power efficiency. AMD claims that if you limit both to a 65W TDP, you'll see 74% better performance on the new generation, but that even at full TDP, the efficiency will be higher.
However, I am waiting on the actual reviews... not making multi-year decisions based off of limited, pre-release information. If it is more efficient, then vowing to stick with an older, less efficient product just because it has a lower TDP number on the box doesn't make any sense. Efficiency is the only thing that matters when seeking to avoid a space heater, since the less efficient product will generate more heat for a given amount of work. All of these processors will clock down when idle
comment 4y ago · link · parent
Handling the SFP module itself will more directly expose you to the heat than an integrated ethernet port, so maybe that’s the difference.