HNHacker News
TopNewBestAskShowJobs

danhor

1,136 karma · joined April 2, 2020

submissionscomments
danhor··on Maintaining an Android app in Google Play Store is a lot of work
Just for completeness: For reproducable builds F-Droid can now distribute builds signed by the developer.
danhor··on ARMv9 Architecture Helps Lift Arm to New Financial Heights
> It appears to be possible to debug the Hazard3 cores in the RP2350 in the same way as the ARM cores:

It is, but (as far as I understood it), they're using ARM SWD IP (which is a fine choice). But since their connection between the SWD IP and RISC-V DM is custom, you're going to need your adjust your debug probe software quite a bit more than between different Cortex MCUs.

Other vendors with similar issues (for example WCH) build something similar but incompatible, requiring their own debug probe. This is a solved problem for ARM cortex.

danhor··on ARMv9 Architecture Helps Lift Arm to New Financial Heights
RISC-V is even worse: The Cortex-M series have standardized interrupt handling and are built so you can avoid writing any assembly for the startup code.

Meanwhile the RISC-V spec only defines very basic interrupt functionality, with most MCU vendors adding different external interrupt controllers or changing their cores to more closely follow the faster Cortex-M style, where the core itself handles stashing/unstashing registers, exit of interrupt handler on ret, vectoring for external interrupts, ... .

The low knowledge/priority of embedded of RISC-V can be seen in how long it took to specify an extension tha only includes multiplication, not division.

Especially for smaller MCUs the debug situation is unfortunate: In ARM-World you can use any CMSIS-DAP debug probe to debug different MCUs over SWD. RISC-V MCUs either have JTAG or a custom pin-reduced variant (as 4 pins for debugging is quite a lot) which is usually only supported by very few debug probes.

RISC-V just standardizes a whole lot less (and not sensibly for small embedded) than ARM.

danhor··on A community-led fork of Organic Maps
At least for bycicle routing, Brouter also runs offline and is much more performant than both OSMAnd and OrganicMaps (and can be integrated into OSMAnd).

To me it feels like OSMAnd heavily prioritizes feature develompent over performance, which is fair enough but still annoying.

danhor··on AfD classified as extreme-right by German intelligence
> But this is the problem. It means that a party being illegal isn't such a big deal in and of itself.

Yes, this is what the constitutional court decided.

> If some party is illegal for whatever reason, it should be banned right away.

It should be hard (and is very hard) to ban a party. Thus if every party illegal should be banned right away, a large amount of effort would need to go into banning by the highest legislative and judicial bodies in the nation. It's furthermore quite hard to definitively establish a party as such, which further makes such things much slower (calls to ban the AfD have been happening for more than a decade now).

danhor··on AfD classified as extreme-right by German intelligence
> AFD obviously still exists so a court has not banned them. Innocent until proven guilty.

A court can only ban them after the parliament has voted to ban them. One of the hurdles on getting the parliament to vote on this topic has been the outstanding decision by this body, if it's really "gesichert rechtsextrem". At least in many previous cases surrounding this question (mostly libel cases), courts have argued that the specific people these cases were about could be seen as "outside of the democratic spectrum".

> The measures would of course need to be biased toward false-postives to prevent future false negatives.

Certainly, that's why both the parliament and the highest court have to decide, with previous instances sometimes not coming through (for example, the NPD for not being relevant even though they were certainly Nazis).

> That the afd growth of doubling their power since last election and AFD is now polling in first place. So to win the next election they need to essentially remove AFD from being an option; or los

There would be no reason to ban a party if they could be ignored (see the NPD), you only need to ban extreme parties if they're popular. If the AfD were at 3% this would be a much smaller topic, since there would be no foreseeable risk. But even with the AfD at much lower than <15%, this was very much an area of concern, with steady (legal, as with this classification and previous ones concerning subgroups) progress towards establishing their extremist status.

danhor··on Efabless – Shutdown Notice
I/O pads (and their drivers) take up a huge amount of space. For some simpler ICs their die size is determined by their Pads.
danhor··on Toyota reduces price of new hydrogen car with $15,000 of free fuel
The data on EVs is that maintenance (at least on the drive train + battery) is not an issue, excluding air cooled designs like the Nissan Leaf which were doomed from the start.

But hydrogen fuel cells are also expensive to maintain and have been a huge maintenance burden, as they're quick to fail with contamination (and lots of other factors), leading to hydrogen trains being replaced by diesel trains.

Hydrogen can be clean, but it isn't and won't be for the forseeable future for the simple fact that it would be way to expensive. Almost all hydrogen today is made from natural gas and much less efficient than powering an electric car from a gas plant. But even if hydrogen was produced with electricity, due to the low efficiency it would be much dirtier than an electric car (And we're entirely discounting hydrogen leakage, which is much more potent at heating up the planet than CO2).

Hydrogen can also be fast to refuel, but it takes much longer than gas and often requires a long "time-out" after the last refueling. Hydrogen fuel stations are also very unreliable. With current EVs, 20%-80% charging in 20 minutes is state of the art, which should make charging times mostly a non-issue when this is also available in most "cheap" EVs.

danhor··on USB On-The-Go
Every USB-C docking station that exposes USB ports while also supplying the attached computer with power uses this feature, letting the computer act as a host and the docking station as the power source
danhor··on Taxpayers spend 22% more per patient to support Medicare Advantage
The vast majority of germans use statutory health care insurance, with only 10% using private insurance.

Many other aspects of healthcare follow a similar model, where parts are fully private, parts are non-government-but-quite-close-in-function (Ärztekammern and other things) and many to most are public in some sense.

danhor··on I sent an Ethernet packet
You're basically talking about FPGAs. Sure, for >500 MHz (depending on the FPGA) you'll need to use the integrated transceivers, but they're flexible and support the physical layer of many protocols.
danhor··on Never Missing the Train Again
Even though most times my train comes every 15 Minutes (and in other places even every 5), I still check for: Disruptions and I try to catch the train exactly. I often get on the platform a minute before the train departs and rarely miss it.
danhor··on Since spring of 2023, the world has been warmer than climate models anticipated
> We need to embrace carbon-free electricity (whether its nuclear or solar or whatever) and electrify as many things as possible.

We need to do that (and even that is proving very hard, looking at the issues building out electrified ground transport and electrifying heating) and it will help a lot, but it won't be enough.

We have quite a few sectors where (economic or even feasible) non-carbon solutions aren't very forthcoming: Especially in (animal-based) food and aviation, but also manufacturing of e.g. new steel or concrete. These account for a huge chunk of emissions and reducing their emissions close to 0 in the next 20 years doesn't seem very likely. Looking at other technologies that are currently economically viable, such as solar, wind, electric cars or LED lighting, 20 years for nearly full adoption is very optimistic.

Reducing emissions there will mean also reducing consumption (and thus production, or the other way around) of those products. If we only accept superior technology as a means to "solve" climate change, we won't.

That'll very likely not mean degrowth as a whole as many sectors of the economy, especially the growing ones, are very compatible with an "electrify-everything" approach.

danhor··on Embedded Rust in Production?
For some complex peripherals (especially wireless) this may be the case, but in my experience it's often much easier to write small abstractions for what you need in the mode you need it in (for serial, timers, IO, DMA, ...) than relying on manufacturer SDKs, which are often so poorly documented that you need the reference manual anyways to understand the peripheral to then understand the abstraction, which is often much more complex to use than it needs to be for my use cases. With abstractions in Rust or, for something quickly thrown together, in uPython you're at least getting "you're holding it wrong errors".

Interfacing with the peripheral registers themselves is also a bit simpler with Rust in my experience, as a proper .svd already contains bitfield setups with enums and R/RW/W1 information to at least set the bits you want instead of the Macro-Hell in C some manufacturers throw at you.

danhor··on Britain's reliance on coal-fired power set to end after 140 years
I'm no expert in the UKs domestic energy, but at least looking at electricity mix charts it seems to me like growth of renewables after introduction (lets say 2005) from <5% to ~40% compensates the drop in electricity produced from coal (~33% to <2%) quite nicely. The huge drop in coal production starting ~2014 also doesn't seem to correspond to an increase in net electricity import, so I don't see what you're basing your claims on.

It's also news to me that the UK was ever self sufficient for energy in the last few decades. Most countries are at least roughly matching their electricity production, but almost all are huge energy importers for non-electric energy, so I don't quite see the issue (if e.g. most large oil producing countries were to suddenly stop exports, most of the world would be in huge trouble).

Why do you claim that this, which has been the reality for almost all countries over the last few decades, would be horrific?

danhor··on NSA releases 1982 Grace Hopper lecture
An ATtiny really isn't good value for money, except when looking for something simple to use.

The CH32V003 is $.10-$.20, quite usable in my experience and features a 16 kB ROM, 2 kB RAM and a 32-bit 48 MHz RISC-V.

The PMS150 is available for <$.05 with ~1.5 kB ROM, 60 B RAM and an 8-bit 8 MHz CPU.

If you're excluding chinese manufacturers, the STM32G030 is sub-$.80 in quantity for 32 kBs of ROM, 8 kBs of RAM and a 32-bit 64 MHz ARM CPU.

danhor··on Google removed Organic Maps from the Play Store
While people don't discover these apps on the play store, they will hear of the App, search on the App/Play Store and install it. If they can't find it by typing the app name into the search bar there, they won't install it.

I doubt most users will, even when given the link to an .apk, install it. Either because they are discouraged by the alarming prompts (in my opinion a tradeoff that is unfortunately worth it) or because they get lost.

danhor··on USB Sniffer Lite for RP2040
> namely the ARM royalties must be paid?

Yes, and it also contains other IP block (for example the USB from Synopsys) for which fees will be paid by the manufacturer. The Cortex-M0+ cores in the rp2040 are probably pretty cheap, so they don't impact the final price much.

> is there a derivative or version of this chip without the ARM core?

No. There might be future versions (they are, in general, looking at Risc-V stuff), but there isn't too much benefit.

> That said, this is the same issue if there are MPEG codecs [..]

No it isn't. The issue with those is that not only does the creator of the IP block itself need to get paid, but also the patent pool behind it, which is usually much more expensive. For most products from a smaller company (and even many larger ones), an AV1 hardware codec or a DisplayPort output will also be an IP block bought from someone else.

danhor··on Unfashionably secure: why we use isolated VMs
Because unless you resort to stuff like in-ram overlayfs which will also result in data loss, a lot of system software assumes it can write anywhere and will bitterly complain if not, even if it's not "real" data, and can be very annoying to fix. That's fina for carefully engineered containers, but the usual thrown together stuff docker started with gets a lot more annoying.
danhor··on SimSig: Railway Signalling Simulations
> Trams often have rubber tires

No, they don't. There are a handful of weird french systems (and even less outside of France), but there are more ruber-tire metros than trams, I'm sure. They are rare and have been getting rarer.

80m is in the lower half for metros, but long in the context of systems having on-street portions (exceeding the german legal limit of 75m with a special exception). It's also on the long end for small metro systems.

danhor··on SimSig: Railway Signalling Simulations
> and heavily reverse-branched systems like the DC Metro or NYC Subway struggle to make even 20TPH.

I find this really interesting that is seems to be the limit for "big-boy" complicated subway systems, while there are many very complicated smaller systems that achieve much more. For example, a lot of the german Stadtbahn systems run somewhat long trains (up to 80m), run using conventional signalling systems underground (so not on-sight, which would allow for a much higher throughput). Naively I'd assume the tram-style segments and frequent at-grade crossings would make this much worse, but apparently not.

For example, Stuttgart (https://download.vvs.de/Stadtbahn_Liniennetz.pdf, https://gleisplanweb.eu/show.php?Map=Stuttgart&Index=1&Heigh...) currently runs 27 tph between Stadtbibliothek and Olgaeck, with plans to run 30 tph without any upgrades, and 30 tph between Staatsgalerie and Stöckach (additionally even running the U11 for events) without any significant issues and quite a complex network with many flat junctions outside the underground sections. The DC Metro has much less complicated branching/reverse-branching patterns.

danhor··on SimSig: Railway Signalling Simulations
You could also characterize the maximum braking ability of the train in front of you and the minimum braking ability of your own train and determine the needed distance for any given speed based on that. This would of course be more complicated and probably be solved by only including broad categories of trains (i.e. only two sets of values for either passenger trains or freight trains).
danhor··on I like the RP2040
The Pi Pico is intended to be the module format (and can be delivered on reels and used with some PnP machines), though it is much larger than it needs to be for this purpose (and this might be why you didn't mention it).

I have only implement touch buttons for hobby projects using a different MCU, but is there a reason to not just use the PIOs for touch sensing?

danhor··on Uganda's surveillance state is built on national ID cards
I would argue that google employees are a much smaller issue:

- There are many less people (probably 2-3 orders of magnitude) accessing the data at all at Google, and (probably?) most sensitive data isn't accessible at all

- As you can't choose to avoid the government, the standard of trust should be much higher

- I don't know how well it works at Google. The reports of videogame leaks through employees accessing accessing unreleased Videos and the (for now) inability from Google to solve this problem at least indicates to me that the approach has issues.

- There are many more valid reasons for a government employee to access the data, so it's harder do differentiate. You also have the issues of police dempartments (and similar), where an access might not be allowed but done as unoffical policy "for the greater good"

- I would think that Google is much more capable of implementing and managing such a system than goverment suppliers or agencies, unfortunately

danhor··on Patrick Breyer and Pirate Party Lose EU Parliament Seats
I really doubt that battery plants for longer duration storage will be lithium based, something redox-flox based will be the future. But with batteries (especially grid scale, where energy and power density matter much less) there are a multitude of feasible options, some more, some less economic, which means in case of material shortages we can switch in the medium term. I also think hydroelectric storage is an underappreciated opportunity, which, if there is a serious issue with chemical battery supplies, could be reasonably quickly expanded.

It's also silly to use batteries as base load, as is the concept of base load in general in combination of cheap, but non-dispatchable, renwables, which is one of the things that hurts the economics of nuclear plants.

danhor··on Uganda's surveillance state is built on national ID cards
The government isn't a large, monolithic entity (despite all rumors to the contrary), and the biggest issue would probably be single employes or departments that use this system for things they aren't supposed to. Trusting the goverment at large or every single employee are different things.
danhor··on Deutsche Bahn introduces "MetaWindow"
I don't think that is really true. In principle, a slower train is quieter, but a tram usually has very tight curves in lots of places, resulting in screeching, as opposed to a (modern) mainline railway which has much wider curves. A tram also needs to run closer to the homes, to still be attractive despite the lower speeds, increasing noise levels at the homes and also requiring more road space near people. Meanwhile a mainline train is much faster, thus can run farther away from home as the access penalty is offset by higher speeds. Low-floor trams also often feature more screeching due to the inability to use conventional bogies.

Anecdotally, in germany, projects to (re-)build trams in cities often fail over local protests, while rail reactivations don't usually succumb to that. HSR does get a lot of local protests, but (IMHO) not really because of the noise and fails less often compared to trams.

danhor··on A leadership crisis in the Nix community
Isn't that exactly what the free software movement is based upon? You can only use our software if you agree to share your source code modifications with the binary (death to proprietary software, very ideological) and you can only contribute if you agree if that.
danhor··on Running a Raspberry Pi with a read-only root filesystem
The last few times I used a read-only rootfs it was to build an appliance-like device which you plug in, do stuff and when its not needed can be unplugged. For this, there's no other solution.
danhor··on Playing audio files in a Pi Pico without a DAC
Using PWM to play audio is flawed (but usable for many applications), other approaches such a sigma-delta will lead to much better results, but with a lot more effort. https://github.com/tierneytim/Pico-USB-audio seems like a reasonable implementation at first glance.
← PreviousPage 2 of 13Next →