14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions
comment 4y ago · link · parent
I think the lesson here is that one shouldn't listen either to antivax grifters or to greedy pharma execs who oversell their products because of the enormous incentive to do so, whether it be vaccines or Alzheimers treatments. The best approach is to listen to what real scientists who actually understand the subject say, but that does take patience and a willingness to invest time.
comment 4y ago · link · parent
Some of the early results on pseudorandom generators and hash functions aren't holding up well, but I think that's just progress. We understand the problem a whole lot better than we did back then.
Perhaps more interesting is the literature on memory models. The original publications of the Java and C11 memory models had lots of flaws, which took many years to fix (and that process might not be totally done). I worry that there are a bunch of published results that are similarly flawed but just haven't gotten as much scrutiny.
comment 4y ago · link · parent
comment 4y ago · link · parent
And a clarification, I wouldn't call this RGB linear mixing, to me that's mixing in a physical light intensity space. Rather, it's alpha compositing in an sRGB color space, which is probably the most common mode. It's possible to verify this by setting transparency to exactly 50%, painting 50% black over white, and 50% white over solid black, verifying that the color is the same, and measuring that - it's very close to sRGB (128, 128, 128). Linear mixing would give approximately (188, 188, 188). Incidentally, this also shows that Mixbox doesn't retain neutral hue when mixing black and white - it gives something closer to (129, 127, 130), a slight reddish-purplish tone compared with neutral gray.
comment 4y ago · link · parent
I'm fiddling with an alternative approach based on IPT-like color spaces, which won't need the 10MB lookup table, and will have a tunable parameter for paint opacity (between watercolors and pastels). So far I have promising but not compelling results. If people are working on, say, a free software painting application, get in touch.
comment 4y ago · link · parent
I'd actually like to qualify that a bit. Doing unsafe is not especially hard, just use pointers everywhere instead of references. That's exactly like C (which doesn't even have references), but the syntax is clunkier, you have to use function calls instead of concise operators like * and ->. What is hard is finely interleaving safe and unsafe Rust, as the author is trying to do. That's difficult because the unsafe code has to upload all the safety invariants of safe Rust, and those are indeed complicated.
comment 4y ago · link · parent
comment 4y ago · link · parent
http://math.fau.edu/yiu/Oldwebsites/MPS2010/TerenceTao1984.p...
My favorite part is when he was asked, at age 8 minus epsilon, whether addition distributes over multiplication (after having established that multiplication distributing over addition is an example of a distributive law), and he said, "only for Boolean algebras."
(Disclosure: I was also a child prodigy, so much of this story resonated with me. I'm now a research software engineer at Google, working on lots of mathematically intensive topics in 2D graphics, but obviously nowhere nearly as accomplished as Prof Tao)
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
I know you were kinda joking by using scare quotes for "recently", but let me fill that in for people who might be less familiar with the history. Unicode broke out of the 16-bit limit as of version 2.0, released in July 1996, so yeah, a quarter century. The first RFC for UTF-8 (RFC 2044, Oct 1996) explicitly supports UCS-4. As far as I know, there has never been a time where UTF-8 restricted to the BMP (ie 3 bytes) has been in widespread use. In other words, I am questioning your assertion that 3-byte UTF-8 has ever been considered "long enough," except perhaps in sloppy implementations made without much care for following specs.
comment 4y ago · link · parent
comment 4y ago · link · parent
In any case, glad you have found your niche in academia! Working with students is indeed rewarding - I've gotten to do some through Summer of Code, but academia is definitely a better place if that's your passion.
comment 4y ago · link · parent
comment 4y ago · link · parent
I'll also add, I looked into academia and talked to some people about steps in that direction, for example seriously considering taking on teaching a class at UC Berkeley. But I decided that the daily grind of academia was not for me. I think I get to spend a larger fraction of my time actually working on my problems at Google than I would at a university.
comment 4y ago · link · parent
Partly I'm posting this to support 'lapsedacademic's assertion, you can do good research in industry. It takes a certain element of luck to land a spot, but it also helps to be very passionate about the research itself.
I'm now writing a paper on an exciting GPU algorithm, but it's pure love, funding doesn't depend on it, it just makes a nice point on my list of accomplishments during perf time.
comment 4y ago · link · parent
The other big reason to prefer a rope is that the worst case complexity is excellent. Basically all incremental operations are O(log n). With an "array of paragraphs" you get various pathological performance cases such as a huge number of small paragraphs or one very big one.
A good rope implementation is not trivial, but when done right it hides its internal complexity from the layer above. And it's a solved problem. There are at least two or three solid rope crates for Rust (just to pick the language I'm most familiar with), and will likely be more, as people find it fun to implement.
comment 4y ago · link · parent
comment 4y ago · link · parent
That is Griffin-Lim, which matches the second mention but not the first. It's a fairly well known algorithm for reconstructing speech from spectrum, though I believe is largely superseded these days by vocoders based on neural techniques. (Actually I just checked and the original Tacotron paper cites Griffin-Lim; I do think newer neural TTS approaches have gone beyond it, however)
comment 4y ago · link · parent
Unfortunately, I don't have a good writeup of that, but some of the details are in this ATypI talk[1].