14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions
comment 7y ago · link · parent
[0]: https://github.com/xi-editor/xi-editor/issues/1187#issuecomm...
comment 7y ago · link · parent
On the other hand, the idea of using CRDT for something other than collaborative editing (or certain types of databases where eventual consistency is a reasonable consistency model) is almost certainly not worth the complexity. That's what I wish I had known when I started.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
But yes, if you have an existing editor or application and you try to just add CRDT, there are a lot of things that can go wrong.
comment 7y ago · link · parent
First, and to make it legally very crisp, I used an Apache 2 license, which comes with an explicit patent grant. Second, renewal is coming up for the Spiro patent, and I'm not renewing it. Nor am I pursuing the provisional on the new spline work. These will take a few months to become legally binding, as theoretically I could change my mind, but the first I think makes it official right now.
comment 7y ago · link · parent
comment 7y ago · link · parent
Having recently done a lot of GPU programming, I'm wondering what your thoughts are on a GPU-like approach, with tons of in-order cores. It's hard to program, but maybe we need to figure that out in order to get performance.
comment 7y ago · link · parent
And perhaps it would be more accurate to say Flutter follows the Web, as many of the team are former Chrome engineers, though I think they've tried to clean up a lot of the warty stuff.
And absolutely, the idea of relying less on the compositor is not original to me, WebRender has similar goals, though I think I can make things performant, rich, and fairly simple by leveraging compute.
comment 7y ago · link · parent
I think this is a bad approach on modern hardware, for the reasons kllrnohj stated.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
I didn't talk about this in the post because I haven't actually implemented fancy compositing, but based on what I've seen you never want to render to texture (which Flutter does sometimes) as it uses up scarce global GPU memory bandwidth, and if you're doing that using heuristics, then performance gets very unpredictable. I should express this more clearly, but the goal in piet-metal is not to do the fastest renderer (I'm sure it isn't), but the one with the most consistent and predictable performance.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
I've been thinking about blur (and mentioned some approximation techniques), but it's expensive in any context. Maybe if we think in shaders instead of the blur tool, we'll find a visual palette that is both fresh and efficient.
1524.
Show HN: 2D Graphics on Modern GPU(raphlinus.github.io ↗)
306 points · by raphlinus · 7y ago · 86 comments
comment 7y ago · link · parent
Note that the compiler will add a compute shader at compile time and require you to configure your pipeline state every time. This is the equivalent on a more traditional GPU where shader compilation occurs between the GPU and CPU. For example if you want to set the shader with a single pass on a CPU it is reasonable to compile it each time after GPU rendering, and even compile it once on the GPU. This is an extension of the parallel compile-to-script: run-to-script approach.
It's a very compelling illusion of actually understanding the topic. I've seen less coherent responses on Stack Overflow and, dare I say it, Hacker News.
comment 7y ago · link · parent
I've been arguing for a long time that operating systems should provide read only snapshots of files as a primitive, but that's a pretty big ask; it's especially hard to do when the file system is network-mounted. There are a couple of copy-on-write filesystems on Linux (btrfs and ZFS if memory serves) which can do this locally, but it's not mainstream.
comment 7y ago · link · parent
Incidentally I've spent considerable effort on this problem, including writing a prototype faster JSON parser in Swift (still about 3x slower than Rust, but a huge speedup over what's there). I couldn't get anyone in the Swift community to care enough to motivate me to finish the work, which is indicative of a deeper problem: Swift just doesn't have "performance culture," the benchmark game results notwithstanding.
comment 7y ago · link · parent
comment 7y ago · link · parent
Example build.rs: https://github.com/emoon/rust_minifb/blob/master/build.rs