Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 7y ago · link · parent

> how long its taking Firefox to get their Rust rewrite going

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

Even non-OSS apps that "require" Google services usually work fine without them.

comment 7y ago · link · parent

And lit works without any build tools!

comment 7y ago · link · parent

https://lit-element.polymer-project.org

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

No, you don't need to do anything at build time! (You don't even have to have a build time.)

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.

https://lit-element.polymer-project.org

comment 7y ago · link · parent

You can easily do HTML-in-JS "react-like" rendering without diffing!

lit does just that https://lit-element.polymer-project.org

comment 7y ago · link · parent

lit-html also lets you write declarative UI without diffing (and use actual HTML tag syntax without any build tools): https://lit-html.polymer-project.org

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

https://caniuse.com/#feat=custom-elementsv1 https://caniuse.com/#feat=shadowdomv1

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-devserver

comment 7y ago · link · parent

https://twitter.com/whitequark/status/946887056424341504

comment 7y ago · link · parent

Everyone who does speculative execution had Spectre issues, but Meltdown-style vulnerabilities have been mostly Intel-exclusive. These new ones are too.

comment 7y ago · link · parent

FreeBSD does not import GPU drivers into base, they're now packaged and under the GPL (they depend on some GPL code imported from Linux).

The "fun" part with these drivers is FDT attachment, but work is ongoing in FreeBSD on this.

comment 7y ago · link · parent

Does the new DRM driver currently work with Wayland compositors? I know Alyssa has demonstrated Weston on Panfrost, but that might've been with ARM's kernel driver or something

comment 7y ago · link · parent

Often it's a mess of third party proprietary dependencies, code owned by subcontractors, etc.

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

DCSS is also fun in some places: https://twitter.com/crawlcode

comment 7y ago · link · parent

Not sure. Why is everyone talking about the original Pinebook now? The Pro is coming.

comment 7y ago · link · parent

Forget IRC. You can do everything with Matrix :)

comment 7y ago · link · parent

GIMP certainly wins on convenience: you just download it, no credit cards or shady torrents.

comment 7y ago · link · parent

You don't. Panfrost is already capable enough to run a simple desktop like Weston :)

comment 7y ago · link · parent

> It's not too far fetched, they're not very different at all, they're both quad-core A53 (ARMv8) 64-bit based SOCs with similar clock speeds, and the some of the Pine boards with more RAM can run Win10.

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

Well, not handling collisions helps a lot with exposing bad CSPRNGs. If they (and e.g. OpenSSH as mentioned in the original 2014 bug report) did handle collisions, it could've remained unnoticed.

comment 7y ago · link · parent

I guess people who aren't overly pedantic say "GMT" to mean "UTC", just like everyone says "SSL" when it's actually "TLS". Older but better sounding names stick around.

comment 7y ago · link · parent

btw, wayland-rs is both RiiR and bindings currently (native_lib cargo feature), and I've used it with libweston for custom protocols!

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

WebRender is not just a "plan" but a real thing (I'm using it right now), and it's fully retained.

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

> Games (normally) re-render the whole scene every frame

They don't re-upload the whole scene to the GPU every frame, they don't recreate objects all the time. Immediate mode was only used in, like, the GL 1.x times.

comment 7y ago · link · parent

What's the correct word for "something local that talks to 8.8.8.8/whatever and caches responses" if not recursive? Forwarding?

comment 7y ago · link · parent

You can always take a compositor and fork it to implement your window management features…

or, much better, use a compositor with a plugin system, so window managers can become plugins! :)

https://github.com/WayfireWM/wayfire

comment 7y ago · link · parent

> enabling this in Sway results in some very odd behavior that breaks certain things

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

> incompatible with the proprietary Nvidia drivers (and no plan to ever fix that)

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)

comment 7y ago · link · parent

There is a mainline driver for the RPi with full Mesa support. On e.g. Arch Linux ARM, you can just install a wayland compositor and run it.

It's just the conservatism of distros like Raspbian. 32-bit, old kernel, proprietary blobs, old packages (stable debian).

comment 7y ago · link · parent

Well, you don't have to run an untrusted program as your user account, you can sandbox. If you run something in a jail and pass it a wayland socket, it will be able to display, but won't be able to modify your files.
1
454647
97