Better HN
topnewbestaskshowjobs
Log inSign up

raphlinus

14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions

I do research on fundamental UI technology and 2D graphics, with a focus on Rust and fonts. @raph@mastodon.online
Submissions

comment 5y ago · link · parent

I think it's important to distinguish two things, which look similar on the surface but are quite different. One is the ability to listen to the scientific discussion taking place on whether Ivermectin is effective. That is reasonable and is a good thing.

The other things is pushing narratives that directly contradict our scientific understanding to an audience of nonscientists. And to be clear, "Ivermectin might work and there are good studies in favor of it" is not in that category, but "Ivermectin is the cure" is.

I think the Pierre Kory and Bret Weinstein podcast[1] is on the border between these two (with a bit of motte and bailey). But to get more insight into how it's landing, check the comments to that video. Lots of people finding ways to procure it, conspiracies, and a strong overlap with antivax.

[1]: https://www.youtube.com/watch?v=kSWjl-JOIqs

comment 5y ago · link · parent

I think the most useful lens to understand the sociology of these kinds of questions is religious belief. And there is no shortage of people out there who want to convince others of their belief.

The narrative for "the Ivermectin story" is particularly compelling, as it involves brave maverick doctors working selflessly to get the word out, suppression and censorship by shadowy organizations (big pharma fearing competition, the big Internet companies just lusting after the power of thought-control), and the empowerment of people to take medical decisions into their own hands.

Incidentally, this was the exact same narrative as HCQ, and is being pushed by a lot of the same people. The end of the story may turn out differently, as the evidence on HCQ is overwhelming that it doesn't work, so you only see dead-enders pushing it, but there is a good chance that Ivermectin will turn out to be at least moderately effective, though the jury is still out.

comment 5y ago · link · parent

Another great review from the last couple weeks, by Derek Lowe: https://blogs.sciencemag.org/pipeline/archives/2021/06/07/iv...

Same tl;dr. It's possible it works, but the evidence for it is not strong.

comment 5y ago · link · parent

For the curious, reasonably recent discussions from several TWiV episodes on Ivermectin. [3] is quite recent (Jun 9). [4] reviews a study which is mildly encouraging. I think it's fair to say that the jury is still out, and it does deserve more investigation.

Fun fact: Vincent Racaniello's wife worked on Ivermectin at Merck, and on a recent livestream (the 6/16 one) he suggested it would be reasonable to take it, especially because it's known to be safe.

[1]: https://youtu.be/4hGVeZGfEnU?t=5414

[2]: https://youtu.be/N0-H28vzOps?t=1452

[3]: https://youtu.be/teJ1wXyEf1Q?t=1905

[4]: https://youtu.be/kz1Ja5zH1n8?t=1720

comment 5y ago · link · parent

Lean's foundations are similar to Coq. I think the ergonomics are a bit better.

Most activity in proof systems is based in type theory these days, but set theoretical systems do exist, of which Metamath is the most mature. That said, Metamath is seriously lacking in automation, so there is an element of tedium involved. That's not because of any fundamental limitations, but I think mostly because people working in the space are more motivated to do things aligned with programming language theory. There was also a talk by John Harrison a few years ago proposing a fusion of HOL and set theory, but I'm not sure there's been much motion since then.

I believe a fully featured proof assistant based in set theory would be a great contribution.

[1]: http://aitp-conference.org/2018/slides/JH.pdf

comment 5y ago · link · parent

For what it's wort, I agree with a lot of the criticism you raise. But I think it's a bit misdirected to blame this proposal - the C implementors and standards people went down this road a long time ago, and arguably the proposal cleans it up and puts it on a sounder footing.

What we now realize is that the C abstract machine is a much more complicated and slippery idea than was originally hoped. The strictly typed world does not blend smoothly with an assembly-like model where pointers are simply integers used to index into memory. But staying strictly in the latter model is also not viable, as it precludes some optimizations that we really want to do.

Incidentally, this is one of the big things holding up a formal spec for Rust as well, as Rust also has a strictly typed fragment (even more so than C) but C-like pointers as well. The semantics of all this more or less inherit from LLVM, but as we're finding out, LLVM is not particularly sound when it comes to these difficult cases, namely converting back and forth between pointers and integers, and doing nontrivial manipulation of those integers.

comment 5y ago · link · parent

I see your point but from my perspective, in most places there's a trickle of good stuff and a flood of junk. I try to offset that by occasionally reading a virology or epidemiology paper myself and listening to TWiV when I get the time. The thing that's striking to me is how different that picture is from middlebrow sources, in which I include a lot of the mainstream press. For example, their scare stories every time a new variant comes out is cookie-cutter journalism (and is basically crying wolf for when something notable does happen, like delta).

comment 5y ago · link · parent

Sure, if that's the belief that's actually driving decisions. It certainly isn't the way I approach things. I eagerly sought a vaccine (my appointment was 10:20am on the first day I was eligible) because the safety and efficacy was demonstrated by data from trials conducted with a high level of scientific rigor, plus observational studies from places that had gotten there early. It was thrilling to see the early data out of Israel that showed such a strong vaccine effect from their age-stratified rollout.

And to further support my point, I wouldn't recommend anyone get CureVac - from the data we have now, that looks like a dud, even though it is an mRNA vaccine with some similarities to the others.

My guess is that that there is a deeper underlying question: should we trust the scientists and institutions who do these trials. And on that my personal belief is that yes we should, but we should also be skeptical and hold them accountable. They make mistakes - the recent aducanumab decision looks like a big one - so I am definitely not arguing we should uncritically accept everything they do and say. But when they do it right, as has happened with vaccines in the US, we should celebrate, not undermine, that.

I do appreciate that trust in people and institutions is a personal thing and there are reasons for it to vary.

comment 5y ago · link · parent

I am not, but I can downvote things that I think degrade the quality of discussion, which in my personal opinion includes a great many Covid threads. Others of course can submit and upvote stuff they find is interesting. If you have good stuff that challenges the conventional wisdom, please post it, as I actually seek out that kind of material (for example, Alina Chan's Twitter feed, which in my opinion is the best skeptical source on the lab leak theory).

comment 5y ago · link · parent

I often flag and downvote stories like these, because I do not believe they are consistent with HN's mission to feed intellectual curiosity. It is clear we have a very vocal contingent of vaccine deniers, and I do think it is useful to hear their arguments, but I believe that's best done in the context of source stories that actually convey some new understanding.

From my observations, the best lens for understanding vaccine denial (or other related forms of Covid denial) is religious belief. Articles like these are medium-quality grains of opinion supporting that belief. Outside Covid, such things are obviously not in scope for HN, but the virus has captured our attention.

If I were the mod, I'd have an explicit policy that Covid stories need to come from high quality sources. Dissenting or unusual perspectives are fine, but these "just asking questions" pieces with confusing (at best) statistics aren't. And I'd honestly consider most mainstream press pieces not to clear the bar either. There are some excellent science journalists and bloggers out there (Derek Lowe is one of my favorites of the latter). We should be listening to them, I think.

comment 5y ago · link · parent

There are a bunch of ways to do this. One of the more straightforward is to use a temporary buffer big enough to hold both the new values and the existing stream, and start by shifting the existing stream to be right aligned (using memmove or the equivalent). Then read bits from the old stream while writing bits into the new stream. Using Elias-Fano coding (which I believe is an instance of Golomb coding), the write position will never overtake the read position, so the merge can be done in-place.

comment 5y ago · link · parent

It's doable. First, you use a Golomb coding for the deltas. Tuning the parameters just right, you can get it to fit inside your budget with a little room to spare.

Then, to get reasonably good time complexity, you use that extra space as a scratch buffer - read in a chunk of input, sort in place (heapsort is good for worst-case time complexity), and merge with the compressed stream. It's not simple to implement, but it does work.

comment 5y ago · link · parent

There are two versions of the question. One allows external storage (Guido's answer and the top hit on SO), the other does not.

comment 5y ago · link · parent

It reminds me of the classic interview problem, attributed to Google: sort 1 million 32 bit integers (provided as a stream) using 2 megabytes of memory. Most people's first instinct is that it can't be done, you need almost 4 megabytes to store the input, but of course it can be, you keep the sorted list in compressed form.

I haven't found a really good writeup, most of the hits on Google (SO, earlier HN stories) fail to get the answer.

comment 5y ago · link · parent

Something I've been thinking about that maybe the HN hivemind can help with; I know enough about io_uring and GPU each to be dangerous.

The roundtrip for command buffer submission in GPU is huge by my estimation, around 100µs. On a 10TFLOPS card, which is nowhere near the top of the line, that's 1 billion operations. I don't know exactly where all the time is going, but suspect it's a bunch of process and kernel transitions between the application, the userland driver, and the kernel driver.

My understanding is that games mostly work around this by batching up a lot of work (many dozens of draw calls, for example) in one submission. But it's still a problem if CPU readback is part of the workload.

So my question is: can a technique like io_uring be used here, to keep the GPU pipeline full and only take expensive transitions when absolutely needed? I suspect the programming model will be different and in some cases harder, but that's already part of the territory with GPU.

comment 5y ago · link · parent

Another good and accessible discussion of what went wrong with this vax is Derek Lowe's "In the Pipeline" blog:

https://blogs.sciencemag.org/pipeline/archives/2021/06/17/cu...

comment 5y ago · link · parent

Depending on your definition of "malicious," I think it clears that bar. The problem is not making a good-faith argument that 40 bits was sufficient (which was done for some extent for export-approved 40 bit SSL), but that it misleads people into believing that it's 64 bit encryption while it only has 40 bits of strength for people who are in on the backdoor.

And as far as the other half of your question, no, there's no possible benefit (other than to the backdoor owners) from a smaller keyspace, as it goes through the motion of encrypting with the larger one.

comment 5y ago · link · parent

In addition to picking a platform, you also essentially need to pick a generation. Vulkan 1.0 for example is missing subgroups and has lots of other limitations. Vulkan 1.2 on a modern GPU with an updated driver is pretty darned powerful, with an explicit memory model, control over subgroup size, a form of pointers, and a range of scalar datatype sizes (f16 is especially useful for machine learning, commonly having 2x the throughput as f32). It is possible to have multiple versions and select at runtime, but it's an additional complexity that needs to be considered, and can constrain your architecture to accommodate the compatibility modes.

comment 5y ago · link · parent

It is ironic, but not at all surprising to me, that "free speech" in the context of current Freenode means being not enforcing codes of conduct (so being transphobia-friendly among other things), but an iron moderation grip on any criticism of the network itself.

comment 5y ago · link · parent

It's kinda portable, but I've had not-great experiences with MoltenVK - piet-gpu doesn't work on it, for reasons I haven't dug into. It may be practical for some people to write Vulkan-only code.

comment 5y ago · link · parent

The biggest question for me is whether this will hold up with variants, particularly delta. My understanding of the data from the UK is that the effectiveness of the full two-dose regimen against delta is quite good, but the single dose less so. There are a lot of unknowns here, but if there is greater chance of vaccine escape, we could be playing with fire.

comment 5y ago · link · parent

Yeah, that looks like probably the most promising stack for the future, but there are certainly rough edges today. See [8] for a possible starting point (a pull into that repo or a link to your own would both be fine here).

[8] https://github.com/googlefonts/compute-shader-101/pull/8

comment 5y ago · link · parent

OpenCL is sadly stagnant. Vulkan is a good choice but not itself portable. There are frameworks such as wgpu that run compute shaders (among other things) portably across a range of GPU hardware.

comment 5y ago · link · parent

A simple artifical life / cellular automaton framework would be a great demo for portable compute shaders. I'm looking at this as a potential starting point in my compute-shader-101 project. If someone is interested in coding something up, please get in touch.

comment 5y ago · link · parent

Thanks!

comment 5y ago · link · parent

I grant you that this is well researched. However, readers should bear in mind that this resource is first and foremost a persuasive effort in favor of the lab leak hypothesis.

comment 5y ago · link · parent

The latest commit to that anonymously authored repo is over a year ago. I am a bit tired of these "we are an anonymous group pushing the truth" efforts; in the case of HCQ they are unmitigated bullshit.

The best sourced argument for lab leak is the Drastic project[1]. This is basically the work that's been getting the media attention for the last few weeks.

A good source for arguments holding the lab leak unlikely (there is of course no evidence strong enough to rule it out entirely) is episodes 760 and 762 of the podcast This Week in Virology[2]. Skeptics of authority would say that this is the community of virologists covering their own back. Others who basically believe in science [ETA: meaning basically trust scientists; this is a pretty complex concept to unpack] will find passionate and knowledgeable experts explaining why they find the lab leak hypothesis unlikely.

[1]: https://drasticresearch.org/

[2]: https://www.microbe.tv/twiv/

comment 5y ago · link · parent

Yes, for thousands of files of a few kilobytes each, GPU might be a good speedup. On a discrete card, a potential bottleneck is copying the files to device memory, but this might be a case where high end integrated graphics might perform well, as there's no need for staging buffers and the copy. But it's hard to know the real performance without trying it and measuring.

comment 5y ago · link · parent

Potentially, but it depends on the task. You need thousands of threads to get real performance boost, and hashing is an inherently sequential task, not really GPU-optimized (hash functions in the Merkle-Damgård family like SHA; you can do Merkle trees too). In fact, I'm not sure why anyone would want to hash on a GPU, unless, say, they wanted to hash lots of short strings as some kind of science project or something.
1
272829
63