Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions

My email is at gmail using my username.

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

Submissions

comment 4y ago · link · parent

Yes, but all of that applies to you as well. At least two people have reported no battery drain with the Pencil attached: https://news.ycombinator.com/item?id=33250550

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

Until you test it for yourself, I wouldn't get so excited. I disagreed with their conclusion entirely in another comment already, as did several other people.

comment 4y ago · link · parent

not fully: https://support.microsoft.com/en-us/surface/which-surface-de...

comment 4y ago · link · parent

I think you forgot to put an asterisk there. Microsoft doesn't fully support such old devices anymore: https://support.microsoft.com/en-us/surface/which-surface-de...

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

My iPad mini (6th generation) drains in a few days without a Pencil attached to it, and nothing I've been able to do manages to improve standby time noticeably. I think your blame is misplaced on the Apple Pencil. Apple needs to fix standby time on iPadOS across the board.

comment 4y ago · link · parent

Yes, that's... exactly the point being made. The solution that every single iPad with USB-C used before today isn't pictured in that tweet, and it is far better. Apple made a really annoying choice here.

comment 4y ago · link · parent

Yeah, I've seen several people trying to say this is related to the iPad Air, but... other than some similar design aesthetics, this device does not appear to be related to the iPad Air at all. The exterior dimensions are all different, and this new iPad is missing several important features from the iPad Air. The screen doesn't even support the P3 gamut that the 2020 iPad Air supported.

comment 4y ago · link · parent

> Sub 20ms response time with zero caching.

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

You think no one cares about the convenience of having the type system do a lot of the work for you? Or being able to autogenerate client libraries? I find that position confusing.

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

Flask is faster to get going in what way? Writing types instantly saves you a ton of time and effort right out of the gate.[0]

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".

[0]: https://news.ycombinator.com/item?id=33224324

comment 4y ago · link · parent

That's not what anyone is talking about.

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.)

[0]: https://fastapi.tiangolo.com/#example-upgrade

[1]: https://fastapi.tiangolo.com/#recap

comment 4y ago · link · parent

I don't understand how feedly is the issue here. If the client doesn't say they accept gzip encoding, why are you sending gzip encoded content? It would be slightly weird if the feedly client doesn't ask for gzip, but this is standard HTTP content negotiation.

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

NFC has a range of around 5cm and has nothing to do with how AirTags work for tracking purposes. Do you really think AirTags only update their location when someone with an iPhone comes over to intentionally scan it?

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 do wonder how many people who understand Go's limitations (and work around them as you point out above) have truly given Rust a try (takes a few months - can't be done faster)

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

> The biggest problem is not support for the instruction set in the silicon, but the performance penalty it brings.

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.

[0]: https://www.phoronix.com/review/amd-zen4-avx512/6

comment 4y ago · link · parent

> Plus all of those 1GB+ models won't fit into a phone anyway.

I don't think that's a requirement here. I've been playing with Whisper tonight, and even the tiny model drastically outperformed Siri dictation for me in my testing. YMMV, of course.

comment 4y ago · link · parent

EDIT: After writing and posting the original version of this comment, I did an experiment where I dictated it to Siri, and then saved that audio (which was recorded simultaneously), which I then fed to both Whisper's tiny.en and medium.en... Siri did terrible for me. Whisper tiny.en was 100% accurate, as far as I can tell, and the only thing Whisper medium.en did was add a few commas that tiny.en had missed. I actually ended up playing the audio file for Siri as well, and that did not end well either. YMMV, but even the tiny model seems very useful. tiny.en took 17.5 seconds to process the ~1 minute audio file, and medium.en took 351 seconds, but I think there is a lot of room for performance optimization on this M2 MBA. The model evaluation was purely using the CPU, not GPU or neural engine, and it wasn't even using all of the CPU cores for whatever reason.

----

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

Sure, but I did see one linked in another thread here on HN after posting that comment.

comment 4y ago · link · parent

I've tried speaking to that demo several times... I used the built in feature to record from microphone, and I played back the samples to make sure they were audible and clear.

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

Isn’t the A2 much weaker than a 3090? So those results are promising.

EDIT: for what it's worth, Nvidia rated the A2 at 18 TFLOPS of FP16, and Apple rates the current A16 Neural Engine at 17 TFLOPS of FP16. I'm sure it's not an "apples to apples" comparison.

comment 4y ago · link · parent

“CPU” isn’t necessarily the benchmark, though. Most smartphones going back years have ML inference accelerators built in, and both Intel and AMD are starting to build in instructions to accelerate inference. Apple’s M1 and M2 have the same inference accelerator hardware as their phones and tablets. The question is whether this model is a good fit for those inference accelerators, and how well it works there, or how well it works running on the integrated GPUs these devices all have.

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

You just said the models pretty much all work the same way, then you said doing what I described won't help. I'm confused. Apple and Google both offer real time, on device transcription these days, so something clearly works. And if you say the models already all do this, then running it 30x as often isn't a problem anyways, since again... people are used to that.

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

A lot of models we currently use seem to do the same thing. The model will transcribe a "best effort" interpretation in real time, then as you can continue speaking, you'll see it go back and make corrections. I'm sure you can feed the first X seconds you have into the model, followed by (30-X) seconds of silence, and it will do real time transcription just fine... it would be weird if this broke anything. Then, as you get more speech, you continue getting better transcription of the first 30 seconds, then you switch to a 30 second sliding window.

Maybe I'm missing something, but I don't see the problem here.

comment 4y ago · link · parent

Someone else in this thread[0] said Whisper was running at 17x real time for them. So, even a weak machine might be able to do an acceptable approximation of real time with Whisper.

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.

[0]: https://news.ycombinator.com/item?id=32928207

comment 4y ago · link · parent

I agree it would be nice to have the ability to toggle some of these on without the others.

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

That’s a lot of articles claiming the processors will “run” at 95C, but… what is that even supposed to mean? The processor temperature depends entirely on the cooling solution being used. Those leaks don’t seem to be very grounded in reality. Maybe they meant the junction temperature or the automatic throttling temperature, but those certainly weren’t the implication.

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

Underclocking isn’t necessary for it to be more efficient, if AMD is to be believed. A higher peak power does not mean generating more heat / using more electricity to perform a given task, as long as the task can be completed proportionally faster.

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

Precisely which reviews have you seen for Ryzen 7000 that paint it as a space heater?

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

I believe both DAC and fiber draw about the same power, but DAC obviously has very limited cable lengths. I’m not entirely sure why regular ethernet draws more power, I just know this is a fairly consistent thing wherever I look.

Handling the SFP module itself will more directly expose you to the heat than an integrated ethernet port, so maybe that’s the difference.

1
363738
66