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 3y ago · link · parent
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
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
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
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
comment 3y ago · link · parent
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
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.
comment 3y ago · link · parent
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
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
Here's an amazon link to a variety of options:
https://www.amazon.com/CAT-S60-Cell-Phone-Replacement-Batter...
comment 4y ago · link · parent
> 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
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
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
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
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
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
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.