14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
[1]: https://raphlinus.github.io/curves/2021/02/19/parallel-curve...
comment 4y ago · link · parent
I think my approach may be less difficult, as it's based on accepting numerical errors when curves are within epsilon of each other. Thus, a lot of the guts of my algorithm is computing bounds and geometric intervals (adapting some ideas from North's master's thesis[1]). I'm I'm not yet convinced that precise orientation is even possible with cubics.
[1]: https://scholarsarchive.byu.edu/cgi/viewcontent.cgi?article=...
comment 4y ago · link · parent
I'd love to work with a more mathematical colleague on the error bounds and so on. Ideally one who knows the way of the land regarding academic publication, as I think even what I have now is publishable.
Another good implementation to be aware of is Skia path ops[1], used quite a bit in production, including fonts.
comment 4y ago · link · parent
(Incidentally, the process of updating web pages on levien.com is to log in to my Linode instance and use vim to edit the static directory. I probably should upgrade to some more modern way, at least use version control, but I do get a warm sense of nostalgia doing it this way.)
comment 4y ago · link · parent
The computer science content behind UI is pretty similar to that of build systems, particularly incremental computation and trying to derive dependency graphs, and [2] is a seminal paper on that topic.
If other people have suggestions I'd like to hear them.
[1]: https://people.seas.harvard.edu/~chong/pubs/pldi13-elm.pdf
[2]: https://www.microsoft.com/en-us/research/uploads/prod/2018/0...
comment 4y ago · link · parent
Also see this paper[1] (also cited by 'jjgreen elsewhere in this thread) which discusses the perception of higher derivatives in the context of roller coaster rides.
[1]: https://iopscience.iop.org/article/10.1088/0143-0807/37/6/06...
comment 4y ago · link · parent
[1]: https://www.science.org/content/blog-post/how-antidepressant...
comment 4y ago · link · parent
I really don't like Medium - I did a few things there before switching to GitHub Pages. The point of writing is to reach an audience. Why accept friction to juice their monetization?
And yes, there's no question my blog opens doors for me. For example, I recently got invited to give a keynote at RustLab this fall, and I'm sure that was on the strength of a blog post I had done on Rust UI architecture.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
And of course a Wayland subsurface is using the compositor.
[1]: https://docs.microsoft.com/en-us/windows/win32/directcomp/ba... [2]: https://developer.apple.com/documentation/quartzcore/catrans...
comment 4y ago · link · parent
I will one hundred percent agree with you that my approach is not a good one if you want a pretty good GUI in a reasonable amount of time. For that, an incremental approach, especially adapting some existing successful design, would be better. But that is not in fact my goal, it is to yearn for the sea.
I am, quite deliberately, spending a lot of risk points. In addition to using a language which may (see elsethread) not be a good fit for expressing UI at all, I'm building a GPU 2D renderer from scratch, also using compute shader techniques which have not been proven, and I am designing a reactive architecture that is not just a simple adaptation of React. Any of these could fail, as have some of my previous attempts. But I think they will be interesting failures, in that we'll learn something, and if all the pieces do come together, it will be a UI toolkit capable of performance completely untouchable by the existing state of the art. In turn, I'm interested in how that could open up new creative possibilities constrained by current implementations.
So I'm pretty comfortable with my approach. And hey, next time you're in the Bay Area (or perhaps when I'm in your neck of the woods), lemme buy you beer and we can talk about why it gives you satisfaction to dump on other people's work.
comment 4y ago · link · parent
506.
Advice for the next dozen Rust GUIs(raphlinus.github.io ↗)
345 points · by raphlinus · 4y ago · 270 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
My main point is that "native" covers a lot of ground, and "native legacy compatibility" and "native modern" are radically different technology stacks on Windows.
comment 4y ago · link · parent