5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions
comment 7y ago · link · parent
Nobody is rewriting Firefox into Rust. Servo is a new research engine not intended to replace Gecko, and some Servo components are being reused back in Gecko (Stylo and WebRender). These are fairly self-contained. The bulk of Gecko is still that C++ codebase and it's here to stay.
comment 7y ago · link · parent
lit-html essentially grabs references to elements automatically when parsing a template. You get react-like rendering without any diffing! And does not require build tools.
comment 7y ago · link · parent
You can just… instantiate a template, remembering where the "holes" are, to get precise update functions for every data field that gets inserted into the template. This is what lit-html does, and it's such an obvious approach I'm really surprised that VDOM took off before it.
comment 7y ago · link · parent
lit does just that https://lit-element.polymer-project.org
comment 7y ago · link · parent
and LitElement gives you a base class for Custom Elements that uses lit-html with Shadow DOM: https://lit-element.polymer-project.org
comment 7y ago · link · parent
v1 shipped with Chrome 53, Safari 10 and Firefox 63. (And there's a polyfill.)
It's not "soon", it's very much "been in production for a while".
A base class like LitElement https://lit-element.polymer-project.org is all you need to achieve a sort of "react-like" development style (components with unidirectional data flow) WITHOUT build tools() and WITHOUT dom diffing! :)
(
) if you want to use npm dependencies instead of just plain files with a bundled version of lit, you still need to rewrite import paths, until https://github.com/WICG/import-maps becomes a thing at least. I wrote a tiny dev server that does that: https://github.com/myfreeweb/es-module-devservercomment 7y ago · link · parent
e.g. when AMD open sourced AMDVLK, they had to replace the proprietary compiler it was depending on with LLVM. That was an easy one. Many projects are much more deeply intertwined with proprietary crap.
comment 7y ago · link · parent
comment 7y ago · link · parent
There's a lot more to a system than the CPU.
For the Raspberry Pi, someone bothered to port EDK2 and write ACPI tables: https://github.com/andreiw/RaspberryPiPkg
And Microsoft themselves were interested in the Pi (for IoT Core), so they even have some support for weird Broadcom hardware in the NT kernel.
If someone writes ACPI tables for Allwinner SoCs, it will work :)
> more closed than RPi due to the AllWinner SOCs they use
Allwinner has the most community support out of all SoCs there are. It is reverse engineered of course, but it's really good. To the point of someone writing a FOSS driver for the video decoder: https://linux-sunxi.org/Sunxi-cedrus — the RPi still only has blobs for video acceleration. The GPU situation is a bit reversed: VC4 is well established and maintained by Broadcom, while Panfrost and Lima are still pretty young.
It would be very incorrect to suggest that anything is more closed than the old garbage SoC that's in the RPi. It starts booting from the GPU (!) and it has a custom Broadcom exclusive interrupt controller instead of ARM GIC (!!). The author of the open GPU side firmware for the Pi literally suggested Allwinner (sunxi) as a better alternative: https://github.com/christinaa/rpi-open-firmware/issues/37#is...
But Rockchip of course a much better company because they themselves work with upstream Linux.
comment 7y ago · link · parent
My project https://github.com/myfreeweb/weston-rs was also abandoned though. For a much simpler reason — I realized that I didn't need to reinvent the wheel — https://wayfire.org is everything I could possibly want from a compositor :)
comment 7y ago · link · parent
Immediate doesn't mean just redrawing everything on every frame, immediate means what's described in the article — not keeping state. WR aggressively relies on kept state to optimize rendering of each frame as much as possible.
comment 7y ago · link · parent
I've been using Firefox Nightly in Wayfire (also wlroots based) with GL (and even WebRender) for quite a long time now, it works very well, about the only issue left is popover placement is odd occasionally. What issues do you have?
comment 7y ago · link · parent
I've heard that Nvidia is fixing this in KDE Plasma and maybe Gnome too. (Fuck proprietary drivers though, and fuck Nvidia.)
> huge input lag
that's odd. Gnome's compositor is not the fastest, but it generally works okay for many many people.
> the reasons one should consider a switch nowadays
- No screen tearing ever, every frame is perfect
- Real HiDPI support, different scales on different monitors, many compositors support "Apple-style" fractional scaling (render at ceil(scale) and downscale on GPU)
- Proper touchscreen support, without dragging the mouse pointer along
- Touchpad gesture support (this miiiight have been bolted onto X with XInput2 as well)