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

I'm not sure what to add. I definitely agree that CRDT is viable for collaborative editing, I'm just saying people need to be aware of the issues.

Regarding position and undo, these are problems that can also be solved just fine using OT techniques, and are (imho) simpler when there is a central authority that can order all revisions into a globally consistent sequence.

I think it's inevitable that people are going to misunderstand arguments, given the complexity of the underlying space and the paucity of good learning resources. So thanks for your writeup, it adds to the discussion.

comment 6y ago · link · parent

I was trying to use a CRDT to share state between the GUI editor and the language server process. My attempt didn't work well, for reasons I've written about. I have no doubt it can be made to work, and the research towards that might be interesting.

comment 6y ago · link · parent

In xi, there are two issues. One is the cost of the CRDT representation, the other is whether it accurately represents what you're trying to do. Classical implementations of CRDT use a heavyweight node per character in the text, each with its own unique and permanent id. In my research in xi, it became clear to me that more compressed representations are possible, and the xi CRDT is one such: it is an "op" object per edit, but the string itself is just a string.

Lately there has been other work pursuing those compressed representations: Chronofold, I think Martin Kleppmann's automerge has some memory-efficiency work, and there are others.

But at least in the context of xi, this is not where things went wrong. As I've written about (and the author was kind enough to link), it's because CRDT merges aren't a good fit for the problems a code editor is trying to solve, particularly when the "collaborators" are automated processes such as language servers.

In human collaborative editing, it's important to preserve text that's being entered, even in the face of conflict. But when a peer is an automated service, it's much better to drop the edit on the floor and recompute. I'm simplifying here, as it depends on the service - some are history-insensitive, some are sensitive to a small window of history (in the case of automatically inserting indentation, etc), and (speculative) other services may be sensitive to more history.

In addition, the CRDT constrains the data model considerably. In other words, it's unfortunately not a clean abstraction where you can easily add higher level layers on top of the CRDT, but you always have to design those with the CRDT in mind (ie, everything still has to be a monotonic semi-lattice).

So, as with everything else, it's a tradeoff, and it's a question of weighing the pros and cons. I'm glad to see work being done to improve CRDT, but even with a very efficient representation and solid algorithms, the problems with CRDT would be enough for me not to use them in a code editor.

comment 6y ago · link · parent

Also recommended, a deep dive into QAnon from the Atlantic: https://www.theatlantic.com/magazine/archive/2020/06/qanon-n...

comment 6y ago · link · parent

For discussion, I advance a hypothesis that's occurred to me: at least some of the same people are behind both QAnon and c19study.com. I don't have hard evidence of this, but in looking at the social graphs around the c19study Twitter accounts, I see significant QAnon representation (the account @LynnFynn3 shows prominently in the intersection of the two).

Like QAnon, the people behind c19study are very careful to hide their true identities. I find it plausible that they're marketing the same basic stuff to different audiences, c19 to people who fall for stuff that sounds like science that isn't.

Of course, there's another explanation for the overlap, that people who are susceptible to conspiracy theories promoted by anonymous instigators are likely to buy into both. This hypothesis is consistent with them being completely separate, just using similar tactics.

I have a pretty good idea who the coder is behind the c19 site. If you're a reporter who would find this useful, or somebody who is better than me at tracking this stuff down, feel free to get in touch. (Note: other people, including Brian Krebs, have had a crack at this)

comment 6y ago · link · parent

There are multiple projects which show significant promise to deliver this. In addition to Druid, I've been impressed by Iced, and there are several others that are seeing some development.

comment 6y ago · link · parent

https://www.cl.cam.ac.uk/~sps32/Z80proj/Z80_traps.pdf has very high quality imaging of the doping levels, by Sergei Skorobogatov.

https://retrocomputing.stackexchange.com/questions/11143/in-... references "Zilog oral history" and poses the question, but there isn't a strong answer other than the link to the above.

The oral history document referenced is: http://archive.computerhistory.org/resources/access/text/201... . The discussion of traps begins on page 101.

comment 6y ago · link · parent

The dysfunction of the US healthcare system predates the Trump administration by a lot. I consider blaming Trump a shallow explanation of what's going wrong. Why are other leaders doing such a poor job articulating the way forward? Why aren't governors getting together and doing all they can to work around the obvious failures of the federal response?

comment 6y ago · link · parent

There are a bunch of articles etc on this, of which this is a pretty good overview:

https://harvardmagazine.com/2020/08/covid-19-test-for-public...

I'm also a huge fan of this work and struggling to understand why it isn't more mainstream.

comment 6y ago · link · parent

To me, the most striking thing about the interview is his idea for just fixing the Covid testing delays. I think he puts his finger right on the problem: we're incentivizing essentially worthless tests by paying full price. Change the reimbursement structure and capitalism will do its job.

I'd like to understand more deeply why this is not happening.

comment 6y ago · link · parent

I personally would be interested in a tour of "rep movsb", as I consider it one of the interesting (and enduring) features of x86. I figure this'll take you pretty deep into microcode, especially the register-dependent sequencing.

comment 6y ago · link · parent

Carl Bergstrom is one of my favorite Twitter follows, especially on topics that are pushed by seemingly legit sources (including peer-reviewed publications) but contain serious flaws in reasoning. The course sounds amazing, and I'm sure the book is good as well.

comment 6y ago · link · parent

No, there is hardware for it, and it makes a big difference. Ballpark 2x, but it can be more or less depending on the details of the workload (ie shader complexity).

One way to get an empirical handle on this question is to write a rasterization pipeline entirely in software and run it in GPU compute. The classic Laine and Karras paper does exactly that:

https://research.nvidia.com/publication/high-performance-sof...

An intriguing thought experiment is to imagine a stripped-down, highly simplified GPU that is much more of a highly parallel CPU than a traditional graphics architecture. This is, to some extent, what Tim Sweeney was talking about (11 years ago now!) in his provocative talk "The end of the GPU roadmap". My personal sense is that such a thing would indeed be possible but would be a performance regression on the order of 2x, which would not fly in today's competitive world. But if one were trying to spin up a GPU effort from scratch (say, motivated by national independence more than cost/performance competitiveness), it would be an interesting place to start.

comment 6y ago · link · parent

I get the feeling you're only really thinking about machine learning style workloads. Your statement doesn't seem to take into account scatter/gather logic for memory traffic (including combine logic for uniforms), resolution of bank conflicts, sorting logic for making blend operations have in-order semantics, the fine rasterizer (which is called the "crown jewels of the hardware graphics pipeline" in an Nvidia paper), etc. More to the point, these are all things that CPUs don't have to deal with.

Conversely, there is a lot of logic on a modern CPU to extract parallelism from a single thread, stuff like register renaming, scoreboards for out of order execution, and highly sophisticated branch prediction units. I get the feeling this is the main stuff you're talking about. But this source of complexity does not dramatically outweigh the GPU-specific complexity I cited above.

comment 6y ago · link · parent

I've been studying and blogging about GPU compute for a while, and can confidently assert that GPUs are in fact astonishingly complicated. As evidence, I cite Volume 7 of the Intel Kaby Lake GPU programmers manual:

https://01.org/sites/default/files/documentation/intel-gfx-p...

That's almost 1000 pages, and one of 16 volumes, it just happens to be the one most relevant for programmers. If this is your idea of "simple," I'd really like to see your idea of a complex chip.

comment 6y ago · link · parent

I think you're referring to: https://llogiq.github.io/2019/11/05/fear.html

ETA, and here's the discussion thread on the original post: https://www.reddit.com/r/rust/comments/dpakxq/rust_2020_more...

comment 6y ago · link · parent

Two things come to mind as relevant to this query.

First, the Red language (a variant of Rebol) tied itself to blockchain and created a token, though looking at their homepage now this seems less of a central focus.

Second, the Urbit project (which incorporates the Nock and Hoon languages, among other things), was founded by a controversial neo-reactionary figure. The project seems to be moving forward without him, and does not seem to be promoting those ideologies, but still carries that association. In addition to that, the "business model" for Urbit also seems to be tied to cryptocurrency.

comment 6y ago · link · parent

I've been concerned about this for Rust too, as a lot of the published jobs and high profile projects (including Libra) are in the cryptocurrency sector. For example, one of the most promising rival GUI toolkits, iced, is being sponsored by Cryptowatch. Fortunately, the growth of other sectors is robust enough that if all cryptocurrency were to fall into the ocean, Rust would be impacted but not massively so.

comment 6y ago · link · parent

I can confirm what Danny says here.

It's a shame the original article has such flaws in its argumentation, because at the core of it I think there are some good points. Notably, other people don't have to blindly follow Google's example and reasoning. In fact, as discussed here, there are good reasons not to. For one, because Google is so highly integrated (with Borg and its monorepo, not to mention custom approaches to security), it's harder to use AGPL software without risking linking. Most other users outside Google would just apt-get a package or the like. And of course the business risk to Google is large simply because of their scale.

You can even disagree with Google's decision not to use AGPL, but they have openly explained their reasoning, and I think that adds to the discourse.

Disclosure: I used to work at Google, and was fairly actively involved with open-source activities in different capacities while I was there. I am also on record as sharply criticizing Google when I believe that is warranted. This is just not one of those times.

comment 6y ago · link · parent

Again, the number filter mangled the title. The full title from the article is "Inside the 8086 processor, tiny charge pumps create a negative voltage". In the interest of brevity, "processor" could be omitted or replaced with "chip."

comment 6y ago · link · parent

Also, Inconsolata 3.0 is also a variable font with a wide range, including widths from 0.5 to 2.0 of the standard width. I need to see about doing something similar to the Recursive mini-site where I show that off and explain how to get access to the capabilities, but have been busy with other stuff.

comment 6y ago · link · parent

Thanks for the answer. In practice, the "MIT" option sounds very similar to the much more standard "buy a license to integrate the code into proprietary software." As I'm sure you're aware, that's the model that Ghostscript has used for 30 years or whatnot. Is there a particular reason you're risking your customer doing a source release instead of taking this avenue?

My (incorrect) understanding of your MIT option is that it would essentially be a buyout, in other words compensating you for the lost revenue from a public release. I've seen that happen as well.

comment 6y ago · link · parent

Ah, so with the MIT license option they have the right to redistribute the source code, but you're asking them not to do that, as it would undercut your business? And most of your customers comply, as they have their own interest in holding their code close to the vest?

This seems like a highly unusual structure, I can't think of a single other example where "made available under MIT license" does not also imply "code published." But I think I can see where it makes sense for you.

comment 6y ago · link · parent

Could you expand on what you mean by "reduce the cost by switching from the MIT license"? On your licensing page you also state "Open source licensing is still available, though it is the most expensive option by far." I think understand what you mean here, but still feel a bit confused.

comment 6y ago · link · parent

That's fair, I've certainly also had problems with Vulkan drivers from other vendors. So I'm not saying it's more buggy than other GPU platforms, but it is buggy, and it is more buggy than we expect of CPU-based language toolchains and runtimes.

comment 6y ago · link · parent

Yes. Youtube comment sections are among the lowest quality information sources available on the Internet.

comment 6y ago · link · parent

Metal is extremely buggy if you're pushing the state of the art. Patrick Walton has run into a number of very serious driver bugs in porting Pathfinder to Metal (he can reliably panic the kernel just by running shader code), and I've seen some as well, though today I'm working in Vulkan.

I'm hopeful for WebGPU in the future, not just for its features and expected cross-platform support, but because I expect a pretty thorough test suite to emerge, holding developers' feet to the fire to make their drivers actually work.

comment 6y ago · link · parent

As long as we're tossing around citations to the scientific literature which supposedly support our arguments, here's one I'm sure you will enjoy: https://www.medrxiv.org/content/10.1101/2020.05.11.20086439v...

comment 6y ago · link · parent

If herd immunity works, then what is your explanation for the fact that alpha and beta coronaviruses such as 229E, NL63, OC43, and HKU1 (responsible for many occurrences of the common cold) are in continuous circulation?
1
373839
63