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

> on a Zen 2 system if you increase the voltage to push frequency you also wind up increasing the temperature which retards the maximum possible stable frequency

Well, that effect is there on Zen 1 to an extent, but you can overpower it with >1.4V.

comment 7y ago · link · parent

That's how secure boot should work. Replacing the root of trust should require serious physical access that can be tamper-evident. And yeah, out of the box, the trust is with the vendor — who else would be trusted in a device that doesn't have an owner yet?

comment 7y ago · link · parent

MitM is a fundamental breach of trust between you and the websites you visit.

The websites themselves tracking you… well, whatever, visit better websites, block third-party trackers (Firefox actually does that out of the box), use Tor Browser.

(Also, the tracking is not exclusive to the "developed world" lol)

comment 7y ago · link · parent

Most of the time, just `let thing`. Let (ha) type inference do its thing. Explicit type annotations are for when it fails.

`String` is roughly a Java `StringBuffer`, `&str` is roughly a C++ `string_view`.

Yes, you need to rethink how you write code. Rust relies a lot on the basics of typed functional programming. Reading a Haskell tutorial up until the M word would help a lot. But surely there's a lot of good guides written for Rust specifically.

tl;dr the core concept you're looking for is sum types, aka discriminated/tagged unions. If you're going "up" from C level abstraction, imagine a C union starting with an enum that indicates which value is there. That's essentially what it is at the memory level (modulo optimizations). But conceptually, you just have a "this OR that" type. Pattern matching is how you access values of that kind of type.

https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html

comment 7y ago · link · parent

Google AdSense started off as contextual. Maybe the drop is so significant in this study because Google's ad network no longer knows how to be contextual and is crappy without tracking.

comment 7y ago · link · parent

Oh yeah, there were multiple networks like Carbon, The Deck, etc. The only kind that doesn't suck.

It's weird that tracking-based ads have taken over. Logically, contextual makes a lot more sense. But apparently statistical data is telling ad companies that tracking is worth it :(

comment 7y ago · link · parent

grpc uses protobuf which still does traditional serialization. The cool stuff is capnp/flatbuffers, where you write to and read from the "serial" memory directly.

comment 7y ago · link · parent

Maybe you're looking for D? :)

Anyway, what is "not simple" about Rust's syntax?

comment 7y ago · link · parent

No way. Most people don't know the sizes of their apks.

> discussing user monetization

Monetization must be a much bigger reason. A lot more users would angrily uninstall an app that showed them a giant full screen ad.

comment 7y ago · link · parent

The screens alone are responsible for a lot of size increases (framebuffers in RAM, high res media) but also, unlike in Windows 3.11, modern Word allows you to mix English, Japanese and Arabic in a document, allows use of a screen reader, and has a thousand features that you personally don't need but everyone has some set of features that they use, and taking away any of them would offend someone.

comment 7y ago · link · parent

Since when does libc include "rich" things like regex, serialization and http?? Even C++ standard lib is mostly containers and algorithms.

libc is barely a standard library, it's almost nothing.

comment 7y ago · link · parent

The threshold is not spending all my savings on an additional computer "for science" :)

> accelerated VM inside the leased VPS

Does that work on POWER?

> they can provide lower cost

They can but they won't. They like having huge profits. Even if they offer the base VPS for cheap (Spot instances) they rip you off on storage, bandwidth, IP addresses, etc.

Also, again, desktops. I like developing directly on a desktop workstation. I can't exactly insert my Radeon into a PCIe slot in the cloud and run a DisplayPort cable from the cloud to my monitor :)

comment 7y ago · link · parent

I know you like to play up the privacy angle in your marketing… that wouldn't work on me. I mostly work on public/FOSS stuff, about the only really private data on my PC is my access credentials. I don't want them stolen, but someone targeting me with a low-level exploit for them is a ridiculous moonshot scenario, they're a million times more likely to leak from the actual service itself.

> local machine which sits idle overnight

um, I thought we're talking about workstations here. I power mine off when unused.

> use of Linux etc. is just being done to avoid Microsoft licensing fees, not because of security or owner control concerns

This is based on two rather odd assumptions:

- Microsoft as the default: No, I grew up with Unix, Unix is my default choice just because I know it and I'm used to it;

- owner control on all levels being equally important: meh, there's a lot more that you'd want to tweak in the kernel and up the stack. I wouldn't know what to change in firmware. I have changed many little things in the FreeBSD kernel (and contributed them). The only thing I ever changed in the UEFI firmware on my ARM box is some ACPI tables to fix compatibility.

> That's the price of making them blob-free and still retaining high performance

That sounds vague ;)

Also, what's "high performance" about the board anyway? PCIe Gen 4? On a typical developer workstation that's kind of a waste, Gen 3 is plenty.

comment 7y ago · link · parent

Enough to not bankrupt Raptor just now, but not enough to make POWER actually popular, which would provide them much more customers in the future.

comment 7y ago · link · parent

Ah, they indeed have a shorter spec, but it's at 2611 pages now https://static.docs.arm.com/ddi0596/d/ISA_A64_xml_v85A-2019-...

It's actually a document generated from machine-readable XML files https://alastairreid.github.io/ARM-v8a-xml-release/

comment 7y ago · link · parent

Yeah, that makes it Not CGI, so it's more like binary HTTP. I guess you could say, a precursor of HTTP/2 :)

comment 7y ago · link · parent

Well, the CPUs are in the same ballpark (<500 bucks for the 4-core POWER9 ~= launch price of the Ryzen 7 1800X) but the boards are outrageous — $1100 for the Blackbird is almost twice as expensive as ridiculous E X T R E M E boards like the ASUS ROG ZENITH EXTREME for Threadripper (and a normal decent board for desktop Ryzen is in the $250 area).

Yeah, it's low volume and Raptor needs to pay their employees — but $1100 for a mainboard? Come on. Maybe they should have dropped PCIe Gen 4 from the Blackbird at least.

comment 7y ago · link · parent

That's not what "barrier to entry" means. Entry is not making 2019 Linux. Entry is making something.

I can write a tiny blog engine in a day on my existing computer. I can't walk into Global Foundries and ask them to make me a single wafer of my tiny microcontroller on their 14nm process.

Hobby software is on the same playing field as pro software, and can smoothly become pro software like Linux did. Hobby silicon is on the 1970s playing field - Jeri Ellsworth and Sam Zeloof making a few transistors with size measured in micrometers. There is literally no way to make your own "hello world" in modern performance silicon.

comment 7y ago · link · parent

Linux built up over time with zero upfront investment, starting with Torvalds in his bedroom. Silicon fabrication requires gigantic amounts of cash upfront.

I'm talking about the barrier to entry.

comment 7y ago · link · parent

> If the Power9 GCC / CLang compilers mess up, you call Red Hat for support

uh, where and when exactly did they offer that? Actually I don't remember anyone anywhere offering commercial support for GCC or LLVM/clang.

Well, I'm not the type of person to look for commercial support for anything ever, but I've heard of several companies that provide support for DBMSes like PostgreSQL. Not so for compilers.

I just googled "gcc commercial support" and the results are the GCC FAQ, a mailing list post about it from 2005 (!), GCC on Wikipedia, "Office 365 GCC" (lol) and so on. Looks like it's just not a thing at all.

comment 7y ago · link · parent

Yeah, Intel is ahead of everyone in SIMD width (until someone makes a chip with like 2048-bit ARM SVE :D).

But still, that didn't prevent POWER9 from being in one of the largest supercomputers. And super wide SIMD has its disadvantages (hello AVX Offset downclocking)

comment 7y ago · link · parent

> promise for Linux support that ARM and RISC-V don't necessarily provide

uh, ARMv8 and RISC-V were developed with Linux in mind from the beginning, they didn't even have anything other than Linux/BSD/various-RTOSes, like IBM did with AIX.

comment 7y ago · link · parent

IBM targets both markets. The two variations of POWER9 are literally called scale-up (uses buffered memory) and scale-out (regular DDR4 DIMMs). (Now there's a third one for huge I/O needs…)

The scale-out POWER9 scales down to 4-core.

comment 7y ago · link · parent

> all 1200 pages of it

Sounds weak, one of the versions of ARMv8 has a spec that's exactly 6666 (!) pages. I would expect IBM to be more detailed lol

comment 7y ago · link · parent

Yeah, I already mentioned that because of that price, my "fuck x86" machine is ARMv8 :)

(okay, not only because of the price, also because I just like the A64 ISA and UEFI)

The SolidRun MACCHIATObin is not nearly as powerful — it's ultrabook-grade performance, not server-grade — but it works fine for coding & browsing, and it's also quite open — the only blob in the firmware is something tiny and irrelevant (and I'm pretty sure for some secondary processor), everything on the ARM cores post-ROM (including RAM training code) I have built from source.

comment 7y ago · link · parent

Hardware is different than software though: producing actual physical chips is extremely expensive.

POWER is hot, IBM is probably just confident that someone else producing competing compatible chips and taking all their customers is not a real threat / completely outweighed by the benefits of an open ecosystem (including more compatible but different segment (low-power) chips)

comment 7y ago · link · parent

> including luajit

Well, a fork of luajit. LuaJIT proper has been abandoned for months…

comment 7y ago · link · parent

Raptor Talos/Blackbird is a niche, expensive revival, but a revival nonetheless :)

comment 7y ago · link · parent

> the Torvalds argument

Well, the local machines are coming, it's totally feasible to have a Blackbird at home and host at IntegriCloud…

but both of those are really expensive, so instead I have a MACCHIATObin at home & AWS Graviton in the cloud. ARM is winning :P

> optimizing compiler, code and so on

Fun fact, IBM is paying large amounts of cash on BountySource for SIMD optimizations of various things for POWER: https://www.bountysource.com/teams/ibm

But ARM is winning again: many things, especially the more user-facing ones, are already optimized thanks to smartphones. For POWER, the TenFourFox author is I think still working on SpiderMonkey's baseline JIT. For ARM (AArch64), IonMonkey (full smart JIT) is already enabled, developed by Mozilla, thanks to both Android phones and the new Windows-Qualcomm laptops: https://bugzilla.mozilla.org/show_bug.cgi?id=1536220

1
394041
97