Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

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

this website sucks
Submissions

comment 5y ago · link · parent

The power of Rust is not in what you can do, it's in what you can't (without the `unsafe` keyword).

C++ doesn't have the prevention. If you're not an expert on concurrency, you might just share mutable access to a regular bool variable between threads and use it in that way (as in the article) and nothing would tell you it's wrong. You wouldn't know you need a specific library (or just "to use std::atomic" in this case) until you encounter the weird runtime behavior, try to debug it, try to formulate a google query that describes the bugs/code well enough, and find the answers.

"Hand holding" (i.e. rejecting programs that don't conform to more advanced correctness rules) is great. It's what computers are good at. It's foolish not to use computers for this!

comment 5y ago · link · parent

CI runners are kinda different than VM hosting. I mean sure you could abuse them to run sshd and interactively use them for a while :D but the service as intended is that you don't "rent" the VM in any meaningful way, it's fully theirs, they just run your one single job on it and show you the logs.

comment 5y ago · link · parent

Water cooling gives you two things. One, huge thermal capacity for absorbing short bursts of massive heat. Two, the great flexibility of not hanging the radiator directly off of the heat source – which means you can spread the heat across (many) long radiators and they can be cooled by fans running at much lower RPM (that IS quieter than running 1-2 fans at high RPM which is what you get on a tower cooler), you can share the cooling capacity between CPU and GPU, you can have lots more capacity (and without putting stress on PCBs).

comment 5y ago · link · parent

Usually it's not really about speed, you usually want tmpfs on /tmp /var/tmp /var/run etc. to just specifically avoid persistence.

comment 5y ago · link · parent

GPU support would take quite a while…

comment 5y ago · link · parent

Only the MacBook Air is fanless, and of course it throttles after a while, that's why there's the Pro with a fan on the M1

comment 6y ago · link · parent

Huh? io_uring from what I've seen is mostly about direct disk async IO which some databases like (and I prefer databases that mmap :P) while netmap is kernel bypass for networking – "mmap" for NIC ring buffers – without monster frameworks like DPDK, with universal API that keeps all NIC-speicifics in the kernel drivers.

comment 6y ago · link · parent

> two 64 bit channels

Yeah, I'm saying you can't magically unify them into a single 128-bit one. If you only use a single channel, the other one is unused.

comment 6y ago · link · parent

> or 1 channel (128 bits wide)

The DDR4 bus is 64-bit, how can you have a 128-bit channel??

Single channel DDR4 is still 64-bit, it's only using half of the bandwidth the CPU supports. This is why everyone is perpetually angry at laptop makers that leave an unfilled SODIMM slot or (much worse) use soldered RAM in single-channel.

> The big win is you can have 8 cache misses in flight instead of 2

Only if your cache line is that small (16 bit) I think? Which might have downsides of its own.

comment 6y ago · link · parent

Yes, Apple's microarchitecture is indeed completely their own, while Qualcomm uses rebranded/tweaked Arm Cortex cores.

comment 6y ago · link · parent

AMD would be able to do DRAM on package for the lowest wattage "ultrabook" chips, at the cost of producing a very different package for them vs. the bigger laptops that are expected to have upgradable SODIMMs. But I doubt that this "co-location" is that huge for performance. Whatever memory frequency and timings Apple is using are likely easily achievable through the regular mainboard PCB, maybe at the cost of slightly more voltage. DDR4 on desktop is overclockable to crazy levels and that's going through lots of things (CPU package - socket pins - board - slots - DIMMs).

> stacked modules such that the side wall of the Mac Pro is a grid of 4 or more such modules each with co-located memory like the M1 has

Quad or more package NUMA topology?? The latency would absolutely suck.

comment 6y ago · link · parent

Yes, of course management firmware is everywhere. Having keys in special memory that is literally only connected to fixed-function crypto HW blocks is what makes something a "hardware" security thing.

comment 6y ago · link · parent

> so are the trusted execution environments used by fTPMs?

AMD PSP for sure is. I think I might have heard something about Intel ME being on the PCH in some cases???

Anyway seems like the point is to make it a "more hardware" TPM rather than a firmware one – i.e. the key memory would only be accessible from fixed function crypto hardware blocks.

Coincidentally, this might mean that the embedded TPM would still work after me_cleaner destroys most of the ME firmware :)

comment 6y ago · link · parent

Discrete TPMs have been going out of fashion, fTPM (firmware tpm, i.e. soft TPM located in ME/PSP) has been standard for a few years now.

comment 6y ago · link · parent

fTPMs have been standard for a few years now. As I understand it, this Pluton thing is mostly about having a fully "hardware" TPM inside the SoC instead of a "firmware" one.

comment 6y ago · link · parent

Any ISA that has fixed (or slightly variable like 1-2 words) length instructions rather than x86's nuts length instructions is easier to decode. In tiny mobile form factors the energy spent on decode can make a bit of a difference.

comment 6y ago · link · parent

Where did you find HBM?

The mock-up picture they showed at the event clearly shows two traditional DDR style chips (encased in their own plastic with white text on it) on the package. This is absolutely not how HBM looks like, HBM is bare die stacks connected to the processor die with an interposer. Also HBM would've made it significantly more expensive.

comment 6y ago · link · parent

Huh so "scalability" on that roadmap did not mean chiplets on GPUs?

comment 6y ago · link · parent

That's just someone's opinion/prediction. I don't have to agree with it :)

comment 6y ago · link · parent

LPDDR channels are weird. https://www.anandtech.com/show/16226/apple-silicon-m1-a14-de... shows "8x 16b LPDDR4X channels"

Which would be the same width as dual channel DDR4 – 8x16 == 2x64 :)

Also it's completely ridiculous that some people think it might be HBM. The presentation slide (shown in both anandtech articles) very obviously shows DDR style chips, with their own plastic packaging. That is not how HBM looks :) Also HBM would noticeably raise the price.

comment 6y ago · link · parent

AMD should easily beat Apple in graphics, all they have to do is switch to the latest Navi/RDNA2 microarchitecture. They are collaborating with Samsung on bringing Radeon into mobile devices, surely that will translate into efficiency improvements for laptops too.

> ARM’s architecture vs. x86-64

x86 will always need more power spent on instruction decode, sure, but it's not a huge amount.

comment 6y ago · link · parent

Boxes are unlikely to use this key. The letter implies that this key is for the weakest (software-only) level of protection, used on generic PCs.

comment 6y ago · link · parent

They showed both Windows and Debian, and I'm pretty sure said nothing about the architecture of the Debian, but the Windows was amd64.

comment 6y ago · link · parent

I'm pretty sure it can, they demoed running x86 Windows on the previous keynote.

comment 6y ago · link · parent

And some ML acceleration that was built directly as ISA instructions? Not that these would be used in the boot process and basic apps...

comment 6y ago · link · parent

At least with the previous versions of macOS you didn't have to do anything special, the software renderer would just work if you don't have a supported GPU.

comment 6y ago · link · parent

Plausible deniability though – who said you can't have a hobby of intentionally making up nonsense texts, sending them to friends to laugh at?

(Of course the public existence of software that does this could definitely make that excuse less convincing.)

comment 6y ago · link · parent

Well, not directly, for most people that would be via Apple/Google stores.

And of course these stores could have secret functionality for shipping targeted updates.

But if it exists, this means that 1) none of the developers working on the store backend decided to leak info about it and 2) none of the targets have had an expert look at their device to find an unusual update that wasn't seen by anyone else.

Over time, the probability of either of those things happening would be going up…

comment 6y ago · link · parent

Starting with Android 10, Google can push updates to lots of system components (media codecs, android frameworks, tzdata, …) https://android-developers.googleblog.com/2019/05/fresher-os...

But those on older versions are screwed. It's really a major fuck-up that Google didn't do this for root certs since the beginning of Android.

comment 6y ago · link · parent

There is indeed EFI https://rpi4-uefi.dev – even with ACPI tables, but if you choose ACPI you won't get all the Pi-specific devices (i.e. the GPU I don't think has an ACPI attachment yet).

And there has been 3d acceleration drivers in mainline linux for even the previous Pies too for a few years. But only in Linux.

1
242526
97