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

> Amazon could be designing their own core right now

Would require an architectural license and lots of talent and time.

Getting stock Neoverse cores is an incredible deal for them, this is probably a big part of the reason they can offer cheaper services from their chips.

Arm cores aren't really all that behind, there are just tendencies for wildly incorrect comparisons (past Arm cores vs upcoming competition cores, scale-targeted configurations vs workstation-targeted ones, etc.)

comment 4y ago · link · parent

It is a setuid binary because it does sudo.

You cannot accomplish sudo without setuid. Note that sudo means gaining privilege in the current context, with all its environment (including inherited file descriptors, the process group, etc.), not doing a privileged action at a distance.

> also true for the /usr/libexec/polkit-agent-helper-1 helper it uses which is a setuid binary but doesn't really have to be

Try making it non-setuid and see what happens.

(It will fail to check your password because most mechanisms for doing so, like the usual pam_unix, are only accessible to root.)

comment 4y ago · link · parent

> guess there are simple embedded js interpreters

In fact a duktape backend has just landed:

https://gitlab.freedesktop.org/polkit/polkit/-/merge_request...

Speaking of security though, I'd trust SpiderMonkey much more because it's battle-tested in the most hostile environment imaginable (millions of browser instances loading completely untrusted code 24/7). But in this context we don't execute untrusted code so whatever :)

> pkexec should not exist

Hmm. For things that do want "just a graphical sudo" for whatever reason, it is kinda the perfect answer. Reusing the per-desktop authorization UI that is used for more fine-grained actions for a sudo-like tool is the correct thing to do. No one wants to have more redundant authorization mechanisms and UIs…

comment 4y ago · link · parent

pkexec is a setuid binary because pkexec is just a sudo-alike that uses polkit for authorization.

> a scheme of having a privileged service that acts on the requests of unprivileged processes

That is precisely what polkit is!

comment 4y ago · link · parent

> newer Android versions would not run on this chip

Why would all the Android Java stuff actually require a newer chip?

e.g. OnePlus 3 started with 7.x, was officially updated only to 9.x, but with LineageOS it runs 11.x currently.

> Untrusted sources

As if the vendors are super trustworthy…

> you might be able to install Google Apps... after the 6th try

Google services are "just one more zip to flash" and I've never heard of having to retry multiple times.

> no Google Wallet

Not too hard to carry the actual physical cards, or use a separate device (smartwatch).

> or banking apps

Complain to your bank / switch to a better bank.

> no idea what is included

LineageOS shoves the commit log right in your face, you can have a pretty good idea when it's really important to update.

> Performance and stability of the device usually takes a big dive

Really? Performance and stability are typically the reasons to switch to custom.

CyanogenMod/LineageOS have been, in my experience, the most performant and stable Android experiences by far, since the 4.x days at least.

comment 4y ago · link · parent

You can get Google Camera on anything: https://www.celsoazevedo.com/files/android/google-camera/

comment 4y ago · link · parent

Most processors with Arm cores do not have "management engines", in fact lots are almost blob-free. Some like Marvell Armada 7k/8k can run without any blobs.

comment 4y ago · link · parent

The stock edk2 menu has, like, two items.

System76 have built a more serious setup UI: https://github.com/system76/firmware-setup

Microsoft’s https://github.com/microsoft/mu also probably contains UI from the Surface line or something??

comment 4y ago · link · parent

> not production-ready

Glade is very mature, people use it extensively for serious software:

https://blog.horizon-eda.org/misc/2021/01/29/glade.html

Cambalanche is a fresh start, with gtk4 in mind, of course it's not production ready yet. But I'm really excited about it, the architecture is cool (probably the best use of the broadway backend ever)

comment 4y ago · link · parent

Ooh, they use chromium ec, nice. Where is its serial console accessed? :)

comment 4y ago · link · parent

Way to bury the lede — "simple note taking app" usually makes people think of the usual text notes. This is a handwritten notes app for drawing tablets, like a more modern xournalpp. Nice!

comment 4y ago · link · parent

Oh, 0 in stock now. Was completely not found on jlcpcb when I wrote that comment. Sometimes I forget how buggy that search is.

comment 4y ago · link · parent

The language selector being "Objective-C or Java" is quite something. Tiger really was made in that era…

comment 4y ago · link · parent

Will the RP2040 ever be available at LCSC/JLCPCB?

comment 4y ago · link · parent

How is it "nice" when any struct member could map to either an attribute or a child element?

XML is a markup language. It's in the name even. Trying to use it for serialization is weird.

comment 4y ago · link · parent

> Cookie Policy: Same-Site=lax by default

LET'S GOOOOO

The day web developers forget about stupid "csrf protection tokens" is coming \o/

comment 4y ago · link · parent

Manufacturers have the option of producing standards-compliant goddamn hardware! Say for PCIe, even if it's a buggy and quirky implementation but it does support ECAM, you can still expose a PNP0A08 and deal with quirks in firmware (hello Socionext/Marvell/NXP).

> PEP (power management plug-in) in the OS […] ACPI spec allows a manufacturer to do this

Doing management in AML is almost the whole point of ACPI. Microsoft pushing this PEP thing into the ACPI spec is bad. This is the "letter" of ACPI now, unfortunately, but it's very much against the original "spirit" of ACPI :/

comment 4y ago · link · parent

Chromebooks give you full flashing & serial console access for both AP (main CPU) and EC over an SBU cable, run open source firmware on both AP and EC (modulo FSP/AGESA), even run open source firmware on the root of trust (you can't replace that one with an unsigned build on a retail device but you can study it for sure).

Apple silicon Macs have the main CPU cores fully in control, with zero external peripherals having full DMA access to system RAM (everything goes through IOMMU), and have an interesting secureboot architecture that allows different security levels on different OS installations (you can run unsecured Linux side-by-side with a fully Netflix-ready macOS).

I have much worse news about the typical Intel BootGuard'ed PC laptop.

comment 4y ago · link · parent

These 32-bit SurfaceRT/etc. devices were a complete failure; this has nothing to do with current Surface Pro X etc. which do allow everyone to easily turn Secure Boot off.

comment 4y ago · link · parent

Didn't Linux developers say that Qualcomm's ACPI tables are a horrific Windows-specific mess that has close to zero standard PNP* things?

comment 4y ago · link · parent

Where did the ISP idea come from?!

How can ISPs do anything close to this when they're not even concerned with how many devices you have? ISPs just do not connect individual end user "devices", they connect subnets.

> content providers may refuse to serve you

Providers of Hollywood-copyright-mafia content like Netflix have already been demanding hardware DRM (at least for high resolutions) for years.

Providers of public ad-supported content like YouTube care about maximizing views above everything. They'll happily serve a 4K stream to a Windows 98 machine if it can connect with modern TLS somehow. YouTube isn't even trying to fight youtube-dl all that much, there was an attempt at throttling recently but it was very quickly defeated. Heck, YouTube Music on the web does not use DRM at all, and that's all music-copyright-mafia content there.

comment 4y ago · link · parent

Basically Google Pay and other NFC payment providers. Haven't encountered SafetyNet requirements anywhere else.

comment 4y ago · link · parent

Buttcoiners' "future" is all about financializing everything. They have ZERO claim to "good old web 1.0 decentralization" because the original web was all about information wanting to be free!

comment 4y ago · link · parent

And both are now eclipsed by the wild speculation. The vast majority of buttcoins' "usage" is all about "number go up".

comment 4y ago · link · parent

What? I'm not saying SMS is the better option or something. I'm saying that people in most countries picked WhatsApp/Telegram over the Apple-specific iMessage!

comment 4y ago · link · parent

People in normal countries also don't like SMS anymore, but somehow everyone picked WhatsApp/Telegram…

comment 4y ago · link · parent

> when >90% of BTC mining is backed by clean energy. IIRC it's around 50% now

What? There is no fucking way mining is using anywhere near 50% clean energy.

And using any energy for proof-of-waste is awful. That clean energy could've been used for something productive rather than a hashing lottery.

> on this basis

That's far from the only problem. The bigger problem is that this "technology" only works for crime and does not work as an actual regular currency.

comment 4y ago · link · parent

nethack! although it would only be cheating in the "fastest death" category

comment 4y ago · link · parent

Any decent (gaming/enthusiast/high-end) keyboard uses dioded on every key to achieve N-key rollover (sometimes only 4KRO on the USB output due to sticking with boot protocol or whatever other reasons)

comment 4y ago · link · parent

Ask marcan for more info :) but IIRC Apple's secure element does not do anything by itself and is behind an IOMMU.
1
456
97