Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

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

this website sucks
Submissions

comment 4y ago · link · parent

Also Bazel is very "corporate", it's not designed for projects that want to be good FOSS unix citizens.

Very telling: "common c++ use cases" https://docs.bazel.build/versions/4.2.2/cpp-use-cases.html includes pulling googletest source from the web and linking a random shared object blob. Zero mentions of pkg-config.

comment 4y ago · link · parent

Just like tup, redo keeps popping up as a nice conceptual thing, but none of these take off in practice.

For most projects the winning build system is not the most conceptually interesting one, nor the most flexible one. It's the most "convention over configuration" one. This is why Meson has taken the freedesktop/gnome/etc world by storm.

comment 4y ago · link · parent

No, Sway supports downscaling. Augmenting downscaling with exact fractional scales is still in discussion: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/i... (And Firefox has a prototype implementation using wp_viewporter but you have to set the scale manually.)

Of course, independent of the desktop environment, you could just tell supporting applications to just manually render bigger UI (exactly how you would on X11 with some TOOLKIT_DPI variable thing per UI toolkit) and keep the monitor scale in the compositor at 1x. That's probably what you've been doing. That doesn't support multiple monitors with varying scale.

comment 4y ago · link · parent

Directly using physical PPI has basically never taken off anywhere. Everyone is using "arbitrary 1x" because designers and developers have never started using physical dimensions for digital UI elements. Most people speak in "96-dpi-ish logical pixels" because it's much more convenient. Everyone knows what 128px approximately looks like. No one measures UI elements with a physical ruler in millimeters.

comment 4y ago · link · parent

In a "logical pixel" system (macOS, Wayland, …Android??) the scale is the relationship between logical and physical pixels. In an "app go draw bigger stuff" system like Windows, it's just the factor of how much bigger the UI elements should be. E.g. in Windows settings you can set 150% scale and all UI elements will be 1.5X as large.

And the "good" scale depends mostly on PPI of the monitor, as well as user preference. On a 27" 4K monitor, 1x scale is near unusable: the UI elements would be microscopic. Windows defaults to 150%, but 175% and 200% are fine as well (here's the user preference aspect).

comment 4y ago · link · parent

Oh it does? Nice. Kinda expected Apple to go full asshole mode on that.

comment 4y ago · link · parent

But only when they make a glossy one: https://www.youtube.com/watch?v=3mTV1TOblbA

comment 4y ago · link · parent

That's double the PPI compared to 27" 1080p ;) Granted, the usual "non-retina" 27-inch resolution was 1440p, but it's still a monitor you could use 2x scaling on. Yeah 1.75x or even 1.5x would be kinda preferable if you want more screen space but I like the huge UI elements.

comment 4y ago · link · parent

Yep, trying to find PPI based rules of thumb is silly.

The better definition of "retina" is far simpler: you render UI at >1x scale on it.

comment 4y ago · link · parent

It's really stupid to force Thunderbolt usage though when USB-C has an alt mode for DP directly.

comment 4y ago · link · parent

I'm using a 28" 4K (with Wayland, which does scaling exactly like macOS) — used to use 1.5x with downscaling but switched to 2x "huge UI" for perfect crispness and honestly? It's not bad. It's actually good. Don't fear the big buttons :)

comment 4y ago · link · parent

ehh… It is pretty easy to use but there's way too much bundled stuff in there, you're always under FreeRTOS, and Wi-Fi support is all proprietary blobs (but that's unfortunately the case with every embedded Wi-Fi chip… unlike Bluetooth LE with has multiple fully FOSS implementations)

comment 4y ago · link · parent

nRF52s are definitely not extremely cheap, they're high-quality fully-documented dev-friendly chips with lots of onboard resources. If you want cheapest BLE, there's some utter crap from Dialog Semiconductor that comes with a proprietary SDK in ROM and one-time programmable (!!) memory for the application (external flash can be used in development).

And you DO NOT have to use the Nordic SDK, there are lots of better and fully FOSS options — Apache Mynewt, libopencm3, Rust nrf-rs…

comment 4y ago · link · parent

You also do not have to use their tools. Use Rust with nrf-rs, or Apache Mynewt (with a fully open source BLE stack), or libopencm3, or…

comment 4y ago · link · parent

Yes, the 51 is really old by now. The 52 line extends down as far as the tiny nRF52805.

The 51822 is not nearly as fun to work with as the 52s, e.g. current Apache Mynewt with NimBLE doesn't even fit into the 51's tiny flash, the 51 doesn't have systick, and so on.

comment 4y ago · link · parent

A big design goal of Protobuf was long-term evolvability of message definitions with backward and forward compatibility. How rich is ASN.1 in that aspect?

comment 4y ago · link · parent

No, not in a capability-based environment. Once you cap_enter() on FreeBSD, you can't – that's the whole point. Same in proper WASI runtime implementations.

Please don't assume people are stupid ;) These sandboxes have been carefully designed and extensively tested.

comment 4y ago · link · parent

Ideally they should be turned into open source projects.

Google's https://abseil.io and Facebook's https://github.com/facebook/folly come to mind.

comment 4y ago · link · parent

But conveniently the at() stuff has allowed for capabilities-based security with Capsicum, CloudABI (RIP) and now WASI.

Since the at() functions exist, these environments can just not have a global filesystem namespace – there is no open(), only openat() under the descriptors you have. No escaping up from the sandbox!

comment 4y ago · link · parent

I wouldn't want an IDE to ever warp my fucking mouse pointer!

comment 4y ago · link · parent

Meanwhile I'm carefully importing KiCad symbols and footprints (and polishing them and contributing to the community library) into a much less popular, newer open source EDA tool…

because it's just that good: https://horizon-eda.org

comment 4y ago · link · parent

You might not notice if you… don't ever scroll anything, I guess?

comment 4y ago · link · parent

> particularly a compositor impl to go along with it

Well, there is a wlroots impl, so I've just added a couple lines to wlroots to invoke this support from an env variable without having to modify the actual compositor :D

https://github.com/unrelentingtech/wlroots/commit/5b8308651c...

but the wlroots impl isn't merged either, so I think there's kind of a mutual dependency here. Either your MR or the wlroots MR should go in first!

comment 4y ago · link · parent

> the whole system is incapable of providing such feature in pluggable way

No, the system is perfectly capable, it's just hard to get all compositor authors to agree on a common protocol (and to agree that it's necessary in the first place). Big DEs especially prioritize regular-user usability features (e.g. currently lots of work on IMEs) rather than fancy nerd customizations that don't always need to be a common external program that works with all compositors (is it really a problem to write a plugin for your DE specifically? No!).

comment 4y ago · link · parent

There are SPI headers for flashing on many many desktop mainboards.

comment 4y ago · link · parent

Vendor-provided SDKs are typically not good. Nordic's is one of the more decent ones and it still has a messy makefile based build system that's horrible to use. With nrf-rs you just use it as a cargo dependency.

You don't have to write your own HAL when the community maintains really excellent ones, written by people who actually want to fucking use it rather than vendor employees who just have to get it out of the door.

comment 4y ago · link · parent

I'm not sure if/how this is improved in KiCad 6 but from the KiCad 5 tutorials I've seen, "manually match symbols to footprints" was its approach to library management :/

I'm learning PCB design with https://github.com/horizon-eda/horizon instead — and here library (pool) management comes first. You actually place full "parts" (that associate symbols and footprints and other metadata) onto schematics — and if you don't want to decide on a particular model number, you can still place a "base" part (e.g. "generic 5k resistor") and change it later. Oh, and the schematic editor actually edits nets, rather than what KiCad does (seemingly just a basic CAD drawing that gets analyzed into a netlist as a very separate explicit step).

comment 4y ago · link · parent

Yes, but "whether" is kinda weird here. The first (community development) requires the second (open sorce). If upstream can accept your contributions, this means you've already forked it for yourself.

comment 4y ago · link · parent

HTC actually made a phone with real sapphire glass..

comment 4y ago · link · parent

Video decode acceleration is very nice for battery life and freeing up the CPU for that LLVM build you're running in the background, but it's absolutely not a requirement, it's nowhere near as important as GPU rendering. Heck, a lot of hardware doesn't have VP9 support and people watch VP9 YouTube on it.
1
678
97