Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

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

this website sucks
Submissions

comment 6y ago · link · parent

Not only take advantage of functionality, but also:

- make porting to new architectures easier (have you tried writing syscalls wrappers in e.g. golang's insane assembly syntax? Not a fun time); - not break anyone's fucking LD_PRELOAD hooks!!

comment 6y ago · link · parent

Hopefully your brain will prevent you from doing that. When OS developers say that the C library is the public interface and syscalls are private, you listen and use the C library.

Golang authors completely ignored FreeBSD's policy and went with syscalls directly because "they don't change in practice" and that is infuriating. Porting to new architectures is much harder, for one.

comment 6y ago · link · parent

> your language should be participating in the future of HTTP

Nah. It's fine to leave any networking to external libraries.

comment 6y ago · link · parent

> Apple has removed most stuff that's needed for non-mac platforms from CUPS over the years

Wrong. Upstream CUPS on Apple's github has support for everything, even systemd.

> WebKit is probably pretty rare outside macos, most browsers will be built from Chromium/Blink

GTK's WebView (and browsers like Epiphany aka GNOME Web) use WebKit, complete with Apple's web inspector / devtools.

comment 6y ago · link · parent

Hot take: ABI stability is overrated. How often do you need to relink specifically without recompiling everything? As an OS packager, it's no big deal to rebuild everything depending on a C++ shared library when that library is updated. For self-contained binary distributions, statically linking the C++ library or putting the shared objects together works fine still.

vtables are always a pain, but I think the Swift team had some cool ideas about vtables and other dynamic stuff across dynamically linked shared objects..

upd: https://gankra.github.io/blah/swift-abi/ this

comment 6y ago · link · parent

Everyone is posting some stuff about the kubernetes codebase, but:

https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-...

The monotonic time thing is an especially good example.

comment 6y ago · link · parent

Firefox did gain over IE because major websites pointed IE users to it.

And of course Chrome became dominant the same way.

Word of google.com main page > word of mouth :(

comment 6y ago · link · parent

Make the (x..y) syntax construct some std::BetterRange for code in a new edition.

comment 6y ago · link · parent

Wasn't the hardware mute button specifically for ringtones and not media?

On OnePlus phones it's a 3-position switch with silent, vibrate and ring as separate physical positions.

comment 6y ago · link · parent

As if any developer couldn't be coerced to insert malicious backdoors into builds for App Stores. Or any update channel really, even DVDs and carrier pigeons.

Literally all software, the whole concept of binary distribution is "RCE" by this definition.

The only difference is that custom auto updates and the web make it much easier to roll out a backdoor in a targeted way rather than en masse.. Is it a huge difference? Meh.

comment 6y ago · link · parent

> BSD support is much, much, much worse--it basically doesn't work at all for any relatively recent model

Well, would probably work fine with an external keyboard/mouse :D

NVMe should crash right now like it did on Linux before 5.4, but the Linux patch for that https://github.com/torvalds/linux/commit/66341331ba0d2de4ff4... is absolutely tiny, I could probably replicate these quirks in FreeBSD in a few minutes.

The SPI keyboard and touchpad thing though is just.. WHY?? Everyone went with HID over I2C, Apple went with a completely new protocol over SPI. So annoying. I wouldn't want to work on supporting that crap.

> power management (suspend/resume) doesn't work for any model

um, that page says that you have to disable a power saving state on NVMe and it would work on any model with Intel GPU.

comment 6y ago · link · parent

Chromium — yeah, seems like not friendly towards outside contributors, and nobody has convinced Google to accept stuff they don't care about (JIT for unpopular CPUs, support for new windowing systems, video decoding acceleration APIs, …).

Mozilla? Getting your patches merged is rather easy and very pleasant. Firefox is truly a community project we all build together.

comment 6y ago · link · parent

I'm not talking about rewrites and GPUs. I'm saying we do not have dynamic recompilation of everything. As in – if we would have ALL binaries that run on the machine (starting with the kernel) stored in some portable representation like wasm (or not-fully-portable-but-still-reoptimizable like llvm bitcode) and recompiled with optimization for the current exact processor when starting. Only that would solve the "new generation of VLIW-CPU needs very different compiler optimizations to perform, oops all your binaries are for first generation and they are slow now" problem.

GPUs do work like this – shaders recompiled all the time – so VLIW was used in GPUs (e.g. TeraScale). But on CPUs we have a world of optimized, "done" binaries.

comment 6y ago · link · parent

Why aren't they as effective? Contextual ads is what made Google big in the first place, and intuitively it makes sense why they would be the best. It's really weird that personalized ads work well! Makes no sense. Everyone hates how they get ads for stuff they already just bought and so on.

comment 6y ago · link · parent

Main lesson: we failed to make all the software JIT-compiled or AOT-recompiled-on-boot or something, that would allow retargeting the optimizations for the new generation of a VLIW CPU. Barely anyone even tried. Well I guess in the early 2000s there was this vision that everything would be Java, which is JIT, but lol

comment 6y ago · link · parent

They definitely call it ARM in developer tools and technical documents.

comment 6y ago · link · parent

Changes are not necessarily enhancements, and the upstream project might not even want the "enhancements" that are developed in a commercial setting.

comment 6y ago · link · parent

Fujitsu is using custom cores, but AWS Graviton (1 and 2) actually uses Arm Neoverse cores. The Ampere Altra will too.

comment 6y ago · link · parent

Itanic was sinking from the start, it wouldn't be unlikely that Intel would've invented something like amd64 just a few years later if AMD didn't do the smart thing.

comment 6y ago · link · parent

Arm's Mali GPUs don't seem very important in the grand scheme of things. They're the choice for SoC makers who don't have anything else. Qualcomm has their own Adreno, Apple has their own thing, NXP buys GPUs from Vivante, Samsung is now going to include AMD Radeons in phones..

comment 6y ago · link · parent

> they’re not heavily in advertising... yet

haha, remember iAd? That failed quickly.

comment 6y ago · link · parent

The anti-competitiveness is even before that: when Apple decided not to allow sideloading.

Remember when Microsoft was sued for bundling IE with Windows? Now imagine if they blocked other browsers from existing on Windows back then.

comment 6y ago · link · parent

It probably decided whether to require a phone dynamically based on various things.. but that seems to never be required for non-gmail (custom email) accounts

comment 6y ago · link · parent

Arm SVE is also variable data size, and it's already in production on Fujitsu's massive HPC clusters :P

comment 6y ago · link · parent

This is about the ISA, and POWER ISA has indeed been made royalty-free recently. Schematics are about a particular microarchitecture, particular hardware implementation.

comment 6y ago · link · parent

You only need boot blobs. Accessing the GPU, no. VC4 driver for the Pi3 and older is there, and V3D/VC5 for Pi4 is the only driver, AFAIK there is no proprietary driver for the Pi 4 GPU at all, only the open one.

comment 6y ago · link · parent

https://github.com/librerpi/rpi-open-firmware is a pretty serious attempt at the bootloader (incl. VC4 side). As in they can boot an OS, with some limitations but still.

comment 6y ago · link · parent

Why not avoid VPN and fully embrace the end-to-end ideology – only authenticate against services, never against networks. Abolish private networks! :P

comment 6y ago · link · parent

The 3840QM has three times the TDP of a 10210U. A modern 45W part is going to be that much faster. Meanwhile the modern 15W part is also going to be a lot better in bursty single core desktop workloads.

comment 6y ago · link · parent

It's really not. The top CPUs in T420s are power hungry 35W parts that are far slower than current <7W ones designed for fanless devices.

https://hwbot.org/submission/4201949_toanmai84_xtu_core_i7_2... https://www.hwbot.org/submission/4330573_tankdriver69_xtu_co...

1
262728
97