Better HN
topnewbestaskshowjobs
Log inSign up

mike_hearn

16,686 karma · joined Dec 16, 2013 (12y ago) · 6,430 submissions

Email me:

mike@hydraulic.dev: Hydraulic Conveyor makes distributing desktop apps as easy as a web app. Use it to bring your mobile apps to the desktop and avoid the need to maintain a web version, to use your language and toolkits of choice or to do things that you can't do in the browser. Integrated support for Electron, Flutter, JVM and native apps.

https://www.hydraulic.dev

--

mike@plan99.net: Personal email. I've worked on anti-automation, was an early Bitcoin developer and then designed the Corda enterprise blockchain platform and the Conclave toolkit for writing SGX enclaves.

Submissions

comment 1d ago · link · parent

It's unclear if he did or didn't. Export control laws were designed for objects that you need to possess to use, but GPUs can be installed and powered by one party while being used by a third party - in fact that's the standard arrangement. So NVIDIA can have sold lots of GPUs to third parties who are not Chinese, and those third parties can then have either sold them on or just hosted them for Chinese labs, and it's then not necessarily a violation of the law that existed at the time.

comment 1d ago · link · parent

It's sad how the logo gets progressively worse with time. The classic logo is colourful, fun, cute even. Then all the detail and colour are removed, but hey, at least it's still blue and at least it's still recognizably the Docker whale. Then the last one. All the colour is gone. The shape is so abstracted it is no longer recognizable. The natural shape is replaced with a generic rounded rectangle. It's instantly forgettable and actually quite ugly. We are visual creatures who have appreciated art from the days of being cavemen, but this logo has no artistic value.

comment 1d ago · link · parent

Signing and uploading is the easier part. That can be done from any OS.

Look at my HN profile, my company sells a product called Conveyor that can take files as input and generate self-updating packages/installers for every desktop OS from any desktop OS. In other words it cross-builds macOS apps, Windows apps and Linux packages. Then it creates a download site that detects the users OS and gives them a big green button to click to download the right stuff.

For macOS it does signing, notarization and Sparkle integration with delta updates automatically. If you're building Electron or JVM apps you don't even need to compile anything, just supply the JS/JARs.

Apple don't care about this one way or another. They don't make it easy but they also don't stop it, and I've had good interactions with their official developer support agents in the past where I actually asked questions or reported bugs in the process of developing Conveyor. They were always friendly and approachable (unlike MS!).

comment 1d ago · link · parent

They control the CPU, so nothing stops them having a system where the CPU can step in and out of encrypted code. You aren't really meant to 'debug' closed source binaries anyway.

comment 1d ago · link · parent

It's not open source, really. Not anymore. A lot of the newer code added since the first versions of macOS is proprietary. A lot of the code signing and security subsystem is closed source, the APFS file system is too, most of the drivers are etc.

As for why a few parts remain open, it's probably just inertia. When OS X was new the open source/free software movement was at the peak of its hype cycle, many treated it as a locked in future, sort of how people talk about AI today. Kernel engineers in general were always pretty pro-open source, much moreso than GUI layer developers, and Linux was already available and growing fast. People believed that desktop Linux could be a competitive platform back then.

So as XNU was built on open source components like FreeBSD and Mach, I guess there was some internal fights between pro- and anti- open source camps. Jobs or someone else resolved it by saying it was OK to open source the low value / generic parts like the UNIX parts, but not the higher value userspace where macOS historically had competitive advantage. Then as the years passed this became just the way things are done, and nobody revisited it.

comment 1d ago · link · parent

That's the Darling project.

comment 3d ago · link · parent

YouTube has a massive system in place to find and block pirated material. I can't remember the last time I saw a simple video rip on YouTube.

Nowadays you're getting gray area stuff like new AI generated stories based in the Harry Potter universe, which is probably copyright violation but it's not actually pirated video, so Content ID doesn't spot it.

comment 3d ago · link · parent

Yes it is surprising because many of these answers are not obviously the max likelihood. Many of them don't really have a max likelihood, like the age of the fictional characters.

For arbitrary choices like that, you'd either expect models to correctly approximate the age distribution of the population, or you'd expect the age choice to vary semi-randomly between models (even if one specific model has some notion of what is most likely it wouldn't be the same between all of them).

But what we see is that despite being apparently independent, models from totally different companies and training operations converge on their opinions to a startling degree.

This is to me at least quite unexpected and extremely interesting to know (I've been following this topic since it was first noticed how often Elias and Elara the Lighthouse Keepers appear in AI written stories). Partly because it suggests that people who know this can get an edge over other people who don't, when using AI.

comment 3d ago · link · parent

Those will be trusted by people less.

comment 3d ago · link · parent

iPhones do cryptographic handshakes and attestation internally between the SoC and the camera chips. You can swap out the camera but the OS will know it, and it won't be signing the result.

The way you've phrased it makes your question unfalsifiable anyway. We can imagine a "sufficiently motivated actor" who can do literally anything. But for most cases this kind of tech will work well enough. It's got a lot harder to root phones over the years and big companies are in a great position to use AI to shake out lots of other bugs that could be used to do it in future.

So I think this tech can work well.

comment 3d ago · link · parent

Are you assuming here that AI will never, ever code a memory leak? Because I don't think that's the case.

Rust is not the silver bullet its community is trying to meme it into being. Its approach to memory allocation only works in some cases, the rest of the time you're back to refcounting and the potential for leaks.

For AI it's especially bad because they never memorize full codebase context in the way an experienced dev would, so it all becomes very dependent on how your codebase is structured and how you prompt it. GC just eliminates all those bugs and the associated token cost of trying to find and fix them.

comment 3d ago · link · parent

Look at their README.

comment 4d ago · link · parent

You don't have to make x86 obsolete to be successful. You can just add extra accelerator chips. GPUs did this, NPUs are trying to do this, and there are plenty of exotic accelerators inside modern computers doing specialized DSP tasks.

If this stuff works, it'll surface first as some PCIe extension device that work can be dispatched to when it makes sense. Then maybe it'll get integrated into SoCs and be exposed via new CPU instructions or devices. Perhaps compilers can then start to identify blocks of code that can be reduced to interaction nets, compile the net and then run them on Frostbite style chips opportunistically.

comment 4d ago · link · parent

No? What's Genie then?

comment 4d ago · link · parent

A free software license is by definition a license that doesn't place requirements on anyone to pay for it, sponsor it, contribute or otherwise. If a license didn't grant these freedoms, it wouldn't be a free software license.

What you're asking is, should widely used libraries be proprietary software sold for money? And that is indeed an honest question. There's a huge ecosystem of developers out there who say yes, there's nothing special about that idea at all.

For example, on Apple, Google and Microsoft platforms you don't use OpenSSL when writing native apps. You use the vendor's cryptography APIs. The licenses of Windows and macOS force all users large or small to pay for them. On Android, the native crypto provider is Conscrypt:

https://github.com/google/conscrypt/

... which is open source, but you will notice that it doesn't accept outside contributions and is funded by revenue from Android's proprietary components licensing. So that's very close to the model you're suggesting: it's "open source" but in practice large corporations pay Google lots of money for the privilege of shipping it.

Moreover Google fund BoringSSL and other forks of OpenSSL. The issue here isn't funding levels (anymore). The issue is that OpenSSL is written in C, and not very good C at that.

comment 5d ago · link · parent

Both JRuby and TruffleRuby are very much alive and are not written in C. Shopify supports the TruffleRuby project, and it not only comes with more memory safety but also a JIT compiler!

And yes, there can be vulnerabilities in the compiler itself. But it's still better to have less memory unsafe code than more.

comment 6d ago · link · parent

Tell the Spanish that their outage wasn't real, it was just "a bunch of ideology" and see if they believe you.

comment 6d ago · link · parent

The opposite. You hide CPU features the hardware actually has.

It's just a tradeoff. Most users don't care about the latest CPU features and having a bigger pool of machines to migrate VMs to simplifies operations.

comment 6d ago · link · parent

But this article is about replacing hard-coded algorithms and functions with what is actually indeed an LLM. Decision models like Jev are large language models, they're just using a slightly different neural architecture designed for one-shot selection from a list instead of generation of tokens. But they're still processing language neurally.

comment 6d ago · link · parent

No, that's just a neutral writeup of what happened.

Less neutrally, there have been far too many years of people pretending that you can build a grid out of 100% renewables. It was a false claim from the beginning, but engineering was overridden by ideology. The Iberian outage was one of the consequences - unfortunately merely a preview of coming attractions, as our political class is in denial and would rather believe lies than address the truth that it's caused by their own laws. Now it's only a matter of time until the entire UK or European synchronized grids experience a collapse of their own, with a similar root cause. We can't say we weren't warned.

comment 6d ago · link · parent

That's actually easy to solve. There was an attack exactly like that when I worked at Google (a loooong time ago). The DDoS bots cached the DNS lookup forever, but compliant clients respect the 5 min TTL. So the cluster was drained at the DNS level. User traffic went elsewhere and the botnet DDoSd an empty cluster nobody was using. Attack was defended against perfectly.

comment 6d ago · link · parent

Yes, but that's irrelevant here because the CPUID report won't change across live migrations.

Consider what would happen if you were live migrated from a machine with AVX512 to one without. Your app would suddenly start crashing with SIGILL for no apparent reason. So, live migrations always preserve the apparent CPU feature set. If you started on a machine without AVX512 then until the VM is rebooted you will remain on such a (virtual) machine.

comment 1w ago · link · parent

Yeah that one is super annoying, totally agreed.

comment 1w ago · link · parent

A few unimportant quibbles... you can't avoid locking files on Windows because the OS locks EXEs and DLLs automatically.

IIRC it's more that the filter architecture itself is slow, but yeah Windows comes with some slow filters out of the box that don't help. There's a writeup somewhere about this from a Windows kernel engineer but it was years since I read it. AV is indeed the worst offender but Windows always has one, so <shrug>.

systemd is inspired by macOS Launch Services. I guess svchost is the closest equivalent in Windows, but it didn't play any role in the systemd design process.

Linux processes do contain threads, I didn't quite understand what you meant by saying they're not containers. There is now the concept of a Windows picoprocess but it can't do much and isn't used after WSL1 was removed, if I understand correctly. I agree that Windows doesn't really need cheap processes architecturally and native apps don't rely on them without that imposing much cost.

[D]COM isn't a kernel feature but the closest equivalent on Linux would be DBUS, not eventfd. I don't know how they compare in terms of efficiency, I'd expect about the same, although in a past life I actually worked on an open source implementation of DCOM!

I didn't argue Linux is better, I have plenty of beefs with how Linux works too :) The Windows kernel is rightly very popular because it offers a stable driver API, which in turn enabled a huge gaming and hardware ecosystem, for instance. But architecturally I don't see big differences between them tbh.

Now Midori, on the other hand... that really was different!

comment 1w ago · link · parent

Hah, actually I never played it. But it's cool to know it simulates this.

comment 1w ago · link · parent

Power stations need power to start up and operate, called house load. It's for things like pumps and excitation current. To black start a station requires the house load to come from somewhere, like a generator set. For a coal, gas or nuclear plant the house load is quite large. For a hydro plant it's small, you just need enough to open the wicket gates and energize the generator coils. Therefore, black start capability is cheaper to sustain at hydro stations than other kinds.

Once the hydro station is back online the power it generates can be used to provide house load to the other stations.

comment 1w ago · link · parent

They do. Almost all permissions you can request from macOS don't have any UI associated with them. You have to statically declare them up front as an entitlement. If shipped outside the App Store the OS grants most entitlements automatically. If in the store, the app reviewers sanity check the entitlements against what the app does.

comment 1w ago · link · parent

Permissions on macOS work better than any other desktop OS by miles, it's not even close. But the GIMP is not a native Mac app and probably doesn't do things the way it needs to for proper integration. Use Pixelmator or some other Mac graphics app and things work fine.

Apps ask you to manage the system settings dialog only when they're requesting a very high level of system access and ship outside the app store. That describes a lot of apps that developers like to use (custom window managers etc), but not so many apps normal users will encounter.

When apps do uncover use cases that the permissions system isn't a good fit for, Apple are pretty responsive about adapting the system in backwards compatible ways. For example, AI apps wanting full disk access because they want to read the internal files of a messaging app - not ideal, so Apple have introduced a way to grant access to only specific apps from a modal popup triggered when the app tries to do it, not from the system settings app.

The way this is meant to work, by the way, is that the messaging app cooperates with the apps that want access to messages by exposing an app over XPC. AI apps are going offroad because AI companies in such a mad scramble to ship features and because of the complicated web of corporate relationships - does Meta really want to grant OpenAI access to people's WhatsApp messages on macOS or would they prefer to push users towards Meta Muse, etc. So AI apps bypass the genteel cooperative way and try to suck data out of the app's internal files directly. Apple is standing in the middle trying to mediate this stuff in a reasonable way, and I think they're doing a fine job.

comment 1w ago · link · parent

It's not that great. The idea it's amazing is a bit of a meme. There are many things about the Windows kernel that are much worse than Linux.

Consider: exclusive file locking for almost everything. UNIX lets you delete or move an open file, the Windows kernel doesn't and this creates enormous complexity at higher levels of the userspace stack especially for any kind of auto updater. It's also one reason Windows updates are so painful.

Windows has pathetically low performance in the filesystem layer, largely thanks to its filter driver design. It's not uncommon to find apps written originally for Linux are basically un-portable to Windows because they assume fast file IO and Windows just can't provide it. This was also a major motivator of the WSL2 effort. Windows actually has a feature called Dev Drive. It's a whole alternative filesystem that's faster than NTFS. They call it Dev Drive because they assume only devs need good filesystem performance (gah). You can't run Windows itself on a Dev Drive though, because of tech debt-y "reasons".

This ridiculous approach of assuming developers are special is carried over to other things too. The Windows kernel supports symlinks but this support is nearly useless because it's disabled out of the box for security reasons (symlinks play a role in some kinds of attack on UNIX). So you have to turn on Developer Mode in the control panel to be able to use them. Hard links do work but only for directories, iirc.

Sometimes you'll see the Windows approach to security be praised (SIDs, object manager etc). It does have a more principled design than Linux, that's true, but the standard here is macOS/XNU not Linux and the Windows kernel's sandboxing support is far worse than macOS.

Windows processes are extraordinarily heavy compared to a Linux process. They take more RAM, start up much slower, and context switching is slower. Again, this difference often renders Linux software un-portable because they assume they can fork and exit processes very fast, but on Windows you just can't. You pretty much have to replace a multi-process design with threads.

Despite the Windows kernel not being a competitive advantage to Microsoft (IMHO), and despite that they run public symbol servers, they keep it closed source. If you really want to understand the Windows kernel you can do so down to the level of individual function calls with public information, but you can't actually read them. The reason is probably security-through-obscurity for DRM, Warbird and other such things, not that it seems to help much. This makes it frustrating to figure out what's going on.

Relatedly, the Windows kernel is an absolute war zone. It's nothing like Linux, which is a conventional textbook OS design. On Windows the kernel is riddled with deliberate traps, code obfuscation engines and "tilt sensors" designed to try and block attempts to hook internal functions by malware or other kinds of malicious software. This shows up in other places too: for example, the API to Linux is the system call instruction. On Windows the kernel theoretically doesn't have a stable syscall interface and you're supposed to go via public APIs like kernel32.dll, which in turn just forwards to ntdll. In practice it does have stable syscalls because MS never randomized the system call interface, so apps trying to detect hooking in userspace do invoke system calls directly (often for anti-cheat purposes). The result is there are like three different ways to invoke NT system calls, all of which are extremely overlapping and duplicative (kernel32, ntdll, system calls), all of which are used by apps in reality but only one of which is documented.

12345
215