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 3y ago · link · parent

https://apple.stackexchange.com/questions/153379/how-do-you-...

I saw it within the past year. I didn’t save a screenshot anywhere I can find. I believe I applied defaults overrides (like in the link) to prevent it from coming back, much like Windows GPO policies.

comment 3y ago · link · parent

Just to provide one example, I definitely have seen macOS pop up notifications advertising that Safari is better than everything else, and I should switch back to Safari.

comment 3y ago · link · parent

"corporation" -> "cooperation", but I guess that GPT has seen enough typos to get the gist.

comment 3y ago · link · parent

I was clearly signaling the end of my participation in this subthread.

comment 3y ago · link · parent

It’s a distinction without difference as far as the market is concerned. Your question was just flamebait. If other manufacturers saw how important this would be, and if Apple had zero involvement with the display development as you claim, then those other manufacturers should have bought exclusivity first.

Instead, I’m sure Apple was involved in the design and development. It’s not a coincidence that the display just happened to exactly quadruple the resolution of the iPhone’s previous display while maintaining the exact same size.

Either way, nothing useful can come from this topic diversion.

comment 3y ago · link · parent

That is a pointless question. Why do you call them Apple iPhones when they’re made by Foxconn?

Apple has not made displays in decades, if ever. They still contract the design to meet their specifications, and then market and sell those displays that they were involved with. That makes them Apple displays for marketing purposes.

These days, Apple sources displays from multiple manufacturers, but they end up being nearly indistinguishable because Apple was deeply involved in the design and manufacture.

comment 3y ago · link · parent

It was night and day difference compared to similar 2010 smartphones. Maybe you don’t care about PPI, and that’s fine, but it absolutely did provide benefits to the users in practice.

comment 3y ago · link · parent

Why are you comparing phones from 2015 and 2013 to Apple marketing from 2010? The competition absolutely did catch up eventually. And if the Sharp ISO3 is the best example you can come up with from 2010, then I disagree with your claim entirely. A single, low volume halo device is not comparable to a mainstream device that sold in the millions.

The 2010 Galaxy S had a 233 PPI display compared to the 326 PPI that Apple marketed as "Retina". The 2011 Galaxy II actually regressed slightly to a 217 PPI display. These were both PenTile displays, so their effective PPI was definitely noticeably lower than the paper specs would suggest.

Even in 2012 with the Galaxy III, Samsung's mainstream flagship reached 306 PPI, which is still less than 326, but it would be roughly comparable if not for the compromised PenTile subpixel arrangement that means it didn't even have 306 PPI of clarity, nowhere near as good as a 306 PPI traditional LCD in terms of clarity.

By 2013 with the Galaxy S4, Samsung finally exceeded 326PPI with their 441 PPI display... on paper, but this was still a SAMOLED screen with a PenTile arrangement, but it was probably comparable with the 326 PPI of the iPhone 4.

The 2013 HTC One (M7) actually did have a 468 PPI Super LCD screen, which was impressively sharp, but still years later than the iPhone 4.

It took several years for the mainstream competition to catch up to Apple's retina displays. Apple was miles ahead of everything else. And I say this as someone who was an Android user until the iPhone X! I was not an iPhone user, but I could easily see how much better the pixel density was on iPhone 4 and for several years after that. As with most things, there are diminishing returns, and having a 20,000 PPI display next to a 500 PPI display is going to be completely unnoticeable. 326 "real" PPI is an excellent level of clarity, and I don't see much (if any) advantage to going past the ~450 PenTile PPI (whatever that works out to in real PPI) that we have on a lot of mainstream smartphones today.

Maybe you fell for the marketing hype of PenTile displays that were claiming higher PPIs than they actually had?

comment 3y ago · link · parent

I don't think salaries are the driving factor behind GCP's balance sheet, but that's just my opinion. I obviously can't wave a magic wand and find out for sure either, but my own back of the napkin math can't see that reasonably working out. They brought in billions of additional revenue, but their losses also increased.

comment 3y ago · link · parent

No. GCP consistently loses money.

One of many sources: https://www.theregister.com/2022/07/27/alphabet_q2_2022/

> Google Cloud brought in $6.3 billion of revenue, a 35 percent year on year increase compared to Q2 2021’s $4.6 billion revenue. But the $858 million loss was 45 percent higher than the $591 million deficit recorded last year.

You might ask: "how is that possible, with those same margin-intensive prices that AWS and Azure use?" I have no clue. It makes no sense, given the prices they charge.

comment 3y ago · link · parent

Once again...[0] at least say "22Ah Phone", but seriously just market the phone on the actual energy capacity, which amp hours are not.

This is an "82Wh Phone", assuming they're using a standard lithium ion battery in a normal configuration, which is a lot of assumption.

Watt hour is an actual unit of energy.

22 thousand thousandths of an amp hour is a ridiculous use of units, and it doesn't actually tell you how much energy the battery holds.

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

comment 3y ago · link · parent

yeah, when I tried that link manually earlier, it just redirected to the wiki that the OP linked to.

This post should definitely be updated to point to that release notes page, if @dang sees this.

comment 3y ago · link · parent

The wiki still claims 3.4 hasn't released, although the download page has been updated. What's weirder is that past releases have had a easy-to-consume release notes[0], but 3.4 doesn't? Maybe posting it here now is jumping the gun a little?

[0]: https://www.blender.org/download/releases/3-3/

comment 3y ago · link · parent

Load characteristics do complicate things as well, but I figured even the optimistic case involved enough batteries to dissuade anyone from this idea.

There are other non-rechargeable chemistries that are far more energy dense than AAA batteries, and those might be interesting to discuss.

comment 3y ago · link · parent

1.9Wh was the number I saw on Google. 10 was just me not thinking clearly late at night. I updated my comment.

comment 3y ago · link · parent

"mAh" is a useless measurement that should be banned from marketing to the public, period. It does not actually represent the energy stored in the batteries, and it can easily mislead people. I also get annoyed that no one uses Ah, when "thousands of thousandths" is a really annoying way to communicate. 3200mAh -> 3.2Ah. Why do no manufacturers understand this? And why don't manufacturers just use a proper unit that measures the energy stored in the battery?

You must compare watt-hours (or use joules, if you like) for it to be meaningful. AAA voltage is 1.5V, lithium ion voltage is 3.7V or 4.2V or something, which means that each "mAh" is worth several times as much as one from a AAA battery.

The iPhone 14 Pro battery is about 12Wh. A single AAA battery has about 1.9Wh, according to google. So, 6 AAA batteries, optimistically, excluding other factors that could raise the count. Using your number of 800mAh*1.5V=1.2Wh, which would mean 10 AAA batteries.

comment 3y ago · link · parent

I don't understand why everyone is acting like replacement batteries are unavailable.

Here's an amazon link to a variety of options:

https://www.amazon.com/CAT-S60-Cell-Phone-Replacement-Batter...

comment 3y ago · link · parent

> Why can't I simply price my app at, for instance, 10?

The article says you can. It's one of the "supported conventions".

comment 4y ago · link · parent

Your dedicated servers are by far the most interesting product to me. The US server market needs more price competition, and Hetzner's dedicated servers would bring a lot of competition here if they were priced similarly to how they are priced in Europe.

comment 4y ago · link · parent

The usefulness of portability is generally less the more it sacrifices performance.

I also think of WASM as a tool that could provide a useful security boundary.

comment 4y ago · link · parent

Some interesting holes in that spec:

> What to do with leaks out of temporaries? : p = (s1 + s2).c_str();

> pointer/iterator invalidation leading to dangling pointers

I feel like those are relatively common memory safety pitfalls, not obscure corner cases. The Core Guidelines have been in the works for about 7 years, I think? It's not clear if/when these will ever be addressed if they haven't been addressed by now.

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines...

There are other things mentioned in the list that look suspicious, but they're less clear. So, unless I'm misreading this, then I stand behind my original assertion that there is no safe subset of C++, but the Core Guidelines are certainly better than nothing... assuming they're actually used/enforced in real world applications. Other people are welcome to have their own opinions.

comment 4y ago · link · parent

Certainly interesting, but I'm not sure how well the performance of a prolog interpreter maps to other use cases.

That benchmark looks too short to be a useful measure of how JIT influences performance, otherwise I would ask how the regular Wasmer does in that benchmark too (since it seems like create-exe doesn't include a JIT).

comment 4y ago · link · parent

I don't commonly see mainstream programming languages, compilers, or runtimes providing comparative benchmarks for themselves these days, so I don't consider that a safe assumption at all. It would certainly be nice if Wasmer did provide some benchmarks.

comment 4y ago · link · parent

> thus inferior to natively compiled code in most instances

Do you have a source for this claim? Using a JIT with AOT binaries (which is what this seems to be) can sometimes be very beneficial. It's like doing PGO without the manual work of doing PGO properly.

I'm sure the JIT can make poor decisions sometimes, but I would want to see a comprehensive set of benchmarks, like The Benchmarks Game and TechEmpower showing this. Benchmarks aren't always reflective of reality, but good ones are usually more insightful than random opinions.

The only Wasmer benchmarks I could readily find were from three years ago, and that was before Wasmer 1.0, let alone 3.0.

EDIT: Reading more... maybe `create-exe` doesn't include the JIT at all, so it is just making an AOT binary from the source WASM? In which case, benchmarks are just as necessary to understand how it affects performance compared to a normally-compiled native binary.

comment 4y ago · link · parent

> The memory safe subset of C++ is also an option.

This does not actually exist, as far as I'm aware. There are certain things people propose doing in C++ that eliminate a small number of issues, but I haven't seen anyone clearly define and propose a subset of C++ that is reasonably described as memory safe. Even if such a subset existed, you would still need some way to statically enforce that people only use that.

Even just writing the parsers in Lua should be a safer choice than writing it in C, but I think now is as good of a time as any to start writing critical code paths in Rust. If the Linux kernel is beginning to allow Rust for kernel modules, then it is high time that OpenSSL looked more seriously at Rust too

As others have pointed out, parser generators could be a useful intermediate option for some of this.

comment 4y ago · link · parent

> It's very risky, and a very long term project to rewrite something with this level of history into a completely new language.

I didn't suggest a complete rewrite of the project. However, they could choose to only write new code in something else, and they could rewrite certain critical paths too. The bulk of the code would continue to be a liability written in C.

I agree that it would be nearly impossible to rewrite OpenSSL as-is. It would take huge amounts of funding and time. In general, people with that much funding are probably better off starting from scratch and focusing on only the most commonly used functionality, as well as designing the public interface to be more ergonomic / harder to misuse.

comment 4y ago · link · parent

I think at this point we've established that it's C which is just irreparably broken.

Blaming the OpenSSL developers for writing bad C is just a "no true scotsman" at this point, since there is no large, popular C codebase in existence that I'm aware of that avoids running into vulnerabilities like this; vulnerabilities that just about every other language (mainly excluding C++) would have prevented from becoming an RCE, and likely prevented from even being a DoS. Memory safe languages obviously can't prevent all vulnerabilities, since the developer can still intentionally or unintentionally write code that simply does the wrong thing, but memory safe languages can prevent a lot of dumb vulnerabilities, including this one.

No feasible amount of funding would have prevented this, since it continues to happen to much better funded projects also written in C.

On the other hand, I guess we could blame the OpenSSL developers for writing C at all, being unwilling to start writing new code in a memory safe language of some kind, and ideally rewriting particularly risks code paths like parsers as well. We've learned this lesson the hard way a thousand times. C isn't going away any time soon (unfortunately), but that doesn't mean we have to continue writing new vulnerabilities like this one, which was written in the last two years.

comment 4y ago · link · parent

https://news.ycombinator.com/item?id=33673792

comment 4y ago · link · parent

It's not as if people aren't trying to do that: https://github.com/openai/whisper/discussions/264

I tried out this notebook about a month ago, and it was rough. After spending an evening improving it, I got everything "working", but pyannote was not reliable. I tried it against an hour-ish audio sample, and I found no way to tune pyannote to keep track of ~10 speakers over the course of that audio. It would identify some of the earlier speakers, but then it felt like it lost attention and would just start labeling every new speaker as the same speaker. There is an option to force the minimum number of speakers higher, and that just caused it to split some of the earlier speakers into multiple labels. It did nothing to address the latter half of the audio.

So, sure, someone should continue working on putting the pieces together, and I'm sure the notebook in the discussion I linked has probably improved since then, but I think pyannote itself needs some improvement first.

Sadly, I think using separate models for transcription and diarization ends up being clunky to the point that it won't ever be polished, no matter how good pyannote might get. If you have a podcast-like environment where people get excited and start talking over each other, then even if pyannote correctly identifies all of the speakers during the overlapping segments and when they spoke... Whisper cannot be used to separate speakers. You end up with either duplicate transcripts attributed to everyone involved, or something worse. Impressively, I have seen pyannote do exactly that, when it's working.

At the end of the day, I think someone is going to need to either train Whisper to also perform diarization, or we're going to need to wait until someone else open sources a model that does both transcription and diarization simultaneously. Unfortunately, it seems like most of these really big advances in ML only happen when a corporate benefactor is willing to dump money into the problem and then release the result, so we might be waiting awhile. I'm trying to learn more about machine learning, but I'm not at the point where I have any realistic chance of making such an improvement to Whisper. Maybe someone else around here can proven me wrong by just making it happen.

comment 4y ago · link · parent

> I would recommend using :user-invalid and polyfilling

Is there a polyfill you can recommend?

1
343536
66