14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions
comment 6y ago · link · parent
https://www.theatlantic.com/health/archive/2020/06/covid-19-...
comment 6y ago · link · parent
On topic to the original post, I implemented Knuth-style line breaking in the Android text stack (working with Anish Athalye who was an intern at the time and did the first prototype). There were a bunch of nicely tuned implementations of advanced data structures and algorithms in there.
comment 6y ago · link · parent
[1]: https://digbysblog.net/2020/06/tiktok-isnt-the-answer-folks/
comment 6y ago · link · parent
https://journals.plos.org/plosone/article?id=10.1371/journal...
Also, interesting fact: this is a Wansink paper. Wansink is a bullshit artist of the highest order. So I think there's quite a meta-lesson here.
https://www.vox.com/science-and-health/2018/9/19/17879102/br...
comment 6y ago · link · parent
IMHO this is an area ripe for more exploration. If I were working on it, I might look to linking first before compilation, because the basic link task is more similar to what GPUs are good at (advanced stuff such as LTO is a different story, though).
comment 6y ago · link · parent
But as the spread continues (a process which takes time), per-capita numbers make sense. Mr. Burn-Murdoch revised his position (see [2] for a podcast with transcript where he talks about his thinking), and now the FT graphs have a normalized option (though their focus has moved on to other metrics such as excess mortality).
Carl Bergstrom also has a great thread [3] where he talks about the choice, concluding that both are valid as long as you're careful about context.
HTH
[1]: https://twitter.com/jburnmurdoch/status/1244380095164420101
[2]: https://voices.media/transcript-john-burn-murdoch-senior-dat...
[3]: https://twitter.com/CT_Bergstrom/status/1249930293928030209
comment 6y ago · link · parent
I am disappointed but not at all surprised that many of the reactions here are responses to my partisan position. I worked pretty hard to reduce that without compromising what I was trying to say. Certainly in the Twitter list I'm promoting I think I succeeded; it includes Scott Gottlieb, who was FDA commissioner under Trump and now advising two Republican governors on Covid-19, but doesn't have anybody (D or R) who uses their platform to push partisan political messages.
But I think the reduction of everything to partisanship is one of the ways in which we're broken. It's impossible to have a productive conversation under those circumstances. I think it's a kind of learned helplessness. We don't want to solve problems ourselves, we want our political party (and institutions in general) to do it. I'm sure many of us on this thread have fantasies of our party vanquishing the other one on the political stage and carrying out our wishes. Or if our party is in power, then we reflexively want to rationalize away whatever flaws they have. (For the record, I am equally upset by what's going on in blue states and red. Seeing the numbers go up in California, where I live, is at odds with any simplistic narrative that Democrats embrace science and Republicans deny it, with direct consequences for Covid response)
In any case, thanks for the responses, they're all respectful, and I appreciate that.
comment 6y ago · link · parent
That particular tweet resonates poetically for me, and speaks to major themes in my essay. The belief that you can have rising cases and mortality will stay low is, as we speak, a major narrative in what I refer to as "idiot Twitter." What I get from the Tweet is that a basic theoretical understanding of the underlying processes should be enough to dispel the notion. Just as a child might not know that thunder follows lightning, the people espousing this theory do not understand basic epidemiology. It's not a scientific proof that thunder follows lightning, or that there might not be edge cases such as the flash being so far away that the sound dissipates.
Increased testing is absolutely a factor in explaining why we're seeing this puzzling pattern, but doesn't by itself explain what we're seeing. Part of the answer is lead time bias, which from what I can tell is a reasonably obscure epidemiological concept but relevant in this context. Dr. Ellie Murray explains it in this linked "tweetorial":
https://twitter.com/EpiEllie/status/1280305393516904448
Simpson's Paradox is another major factor: to really gain an understanding of what's going on, you need to look at individual states or even finer regional divisions, and aggregating them can obscure important patterns. The effect is especially important these days because different states are very different.
comment 6y ago · link · parent
In any case, I wanted to stay away from reflexive both-siderism as I've most often seen it used as a bad faith argument.
comment 6y ago · link · parent
One interesting pattern I found from discussions on HN is that when people cite papers, they very often don't support what the poster seems to be claiming. That's maybe I something I could expand on, because it's similar to cherry-picking but still not quite the same. In any case, I still appreciate the references because often I learn something :)
comment 6y ago · link · parent
comment 6y ago · link · parent
In any case, the message is much more, "I've been paying close attention and have found these people worth listening to," and I don't think "authority" is really the word I'd use to express my criteria. I mean, I had a whole section against authority, and in my penultimate graf I implore readers to do their own critical thinking and not blindly follow.
comment 6y ago · link · parent
comment 6y ago · link · parent
I wrote this because I wanted (normalizing) locale comparisons to be super fast, as they can be part of the key for cache lookups of text layout. In a language identifier such as "en-Latn-US" the script is in title case.
So this kind of thing still does happen, just at the lowest levels of libraries that provide nice clean abstractions for other people to use.
comment 6y ago · link · parent
Ultimately, I'm not very smart, and someone who is could probably figure out how to map all these other code editing problems to CRDT data structures. Once that's done, the result should be compelling, because CRDT lets you take advantage of low-latency local connections rather than requiring everything to get serialized on a central server. It's research I would love to see being carried forward.
comment 6y ago · link · parent
https://www.statnews.com/2020/05/14/gilead-should-ditch-remd...
And a fascinating tale how cat owners are buying the black market version to treat FIP:
https://www.theatlantic.com/science/archive/2020/05/remdesiv...
comment 6y ago · link · parent
That's not a deep exploration of the numerical analysis (especially compared with OP), but it does make one point: traditional "numerical analysis" techniques tend to assume the traditional four mathematical operators as canonical, but if your goal is to get something computed on actual computer hardware quickly and reasonably accurately, you have a wider palette to play with. In particular, inverse square root is a primitive about as efficient as reciprocal on modern hardware (or if using Carmack's wtf trick).
comment 6y ago · link · parent
A good intro to layout transitions is: https://www.gamasutra.com/blogs/EgorYusov/20181211/332596/Ta...
The number of copies required to get a pixel from CPU space into photons today is ridiculous. It used to be you'd just write into a memory-mapped buffer, and your graphics card would scan out directly from that where it would get to the electron beam modulator in microseconds.
comment 6y ago · link · parent
For complex reasons, that's all been changing. For example, Metal on macOS doesn't even have a way to specify partial screen updates. Those optimizations are still valid, though, and in my ideal world we have both good support for partial invalidation and fast GPU rendering. Among other things, that would be really good for power usage. But to get there requires some attention to detail that seems to be mostly gone from the desktop UI space.
comment 6y ago · link · parent
Also, Swift is marketed as a fast language (also based on LLVM), yet in my measurements it's 20x to 50x slower than Rust for JSON processing. I found that surprising. Would you not?
comment 6y ago · link · parent
Also, thanks for those early winapi discussions. The attitude of Rust towards winapi is one of the early reasons I started seeing Rust as being viable for actually building GUI.
comment 6y ago · link · parent
Perhaps an even better motivation is indentation. When I use editors with regex-based indentation (the norm), I'm regularly annoyed when it gets it wrong. Being able to budget a few milliseconds or tends of milliseconds to do indentation that exactly matches what rustfmt or gofmt would recommend would be worth it, imho.
comment 6y ago · link · parent
ETA: Heh, I'm amused to find the latter link to be another point in what seems to be an extended conversation between Andy Chu and the Rust text-processing community :)
comment 6y ago · link · parent
comment 6y ago · link · parent
Second, the design of fancy-regex is precisely to delegate to the regex crate when features like lookahead aren't needed. I had high hopes for the performance, but it turned out to be lackluster, a highly tuned backtracking engine beats it in most cases. And much of the problem is indeed that RE2-style approaches are a lot faster when captures aren't required. And, by nature, Sublime-style syntax definitions rely extremely heavily on captures. A bit of discussion (including comments from burntsushi) here:
https://www.reddit.com/r/rust/comments/5zit0e/regex_captures...
Third, the question of whether "regular languages" would support faster parsing is somewhat academic, though perhaps you could build something. Though the languages being parsed often have some regular features, as a rule there are exceptions. Markdown is an extreme example, and cannot be parsed well with either regular languages or Perl-style regexes, though that hasn't stopped people from trying.
comment 6y ago · link · parent
I agree with you that getting shortcuts (and other similar aspects) right is more important than which code is used to implement text editing. We're very much going to try to take that to heart as we implement more text capabilities in Druid.
Regarding LSP. Yes, while the functionality is there, it is very difficult to implement a really polished user experience with it. I think a lot of that is in the design of the protocol itself; it's hard to avoid annotating the wrong region when there are concurrent edits. It's interesting to think about how to do better, but I fear you'd be bringing in a lot of complexity, especially if you started doing some form of Operational Transformation. I would highly recommend that if someone were to take this on, they study xi in detail, both for what it got right and what was difficult.
comment 6y ago · link · parent