HNHacker News
TopNewBestAskShowJobs

simiones

5,383 karma · joined May 4, 2018

submissionscomments
simiones··on Keyboard differences between Windows and Macs
I think you're perfectly right on the details of the implementation. But then we may have a disagreement of semantics here.

The way I view this, there are three separate things: processes, applications, and windows. In all versions of Windows, a single process/application, that the user launched exactly once, was able to have one main window and multiple other windows that could be independently manipulated, closed etc. Since Alt+F4 was added as a keyboard shortcut, it closed the currently active window, which might happen to be a confirmation dialog or anything else. If it was used to close the main window, the application/process might choose to shut down, automatically closing other windows it owned, but this was never a requirement.

Now, for the process / application distinction. By my understanding, in traditional Windows, the concept of an application is essentially an executable whose main function is WinMain. A user can spawn one or more processes from the same application executable, and these are handled differently in 16-bit vs 32-bit Windows - but they have always existed as separate copies, within the technical limitations of the time. Even in Windows 1.0, the second execution of WinMain did indeed receive a hPrevInstance and could use it to access resources of the already running instance - but it was still a separate thing, with its own window and its own event loop. Ultimately it wasn't all that different from a new process spawned from the same executable - except that memory and compute constraints at the time made it important to have a way to share certain parts of the parent (and the lack of memory isolation made it trivial to access the memory of any other thing running on the system anyway).

The concept that an application can only have 0 or 1 instances running is a very weird concept that MacOS shares only with mobile OSs and Windows Metro/Universal/UWP/whatever MS calls their mobile-style store apps today.

Edit to add a note: it's actually quite common on Windows today for programs to not actually launch, or at least not use, a second process when running the executable again. What they do instead is that during startup they check if the process is already running by checking some named mutex or other similar mechanism, and if it is, they ask that process to open a new top-level window, maybe with the new document loaded into it if you were actually opening a doc, and then the new process just exits, while the old process start a new window that for all intents and purposes looks just like a new copy of the process to the user.

simiones··on Sticky alpine flower confirms Darwin's 150-year-old carnivorous plant prediction
Something is "carnivorous" if it directly consumes the flesh (or other parts) of an animal - usually a living one that it kills (as we have a different name for those that consume only already dead animals - necrophages).

Feeding on nutrients from an animal that died and was then broken down by other beings into base elements in the same area as your roots doesn't qualify these trees in any way as either "carnivorous" nor even "necrophage". Carnivorous plants are those that trap and kill animals that they then directly digest, such as a venus fly trap. Those don't just benefit from animals dying around them and being consumed by bacteria - they have mechanisms that cause the death of the animal and then secrete substances that directly convert the animal into plant nutrients.

simiones··on Keyboard differences between Windows and Macs
An "app" in Windows has always meant a process that starts with a WinMain() function. And as I said in other comments, a single app could always create multiple windows using the CreateWindow() function, that could each be independently closed (though not by Alt+F4). Nothing stops Windows in principle from having a way to close the entire application/process on pressing some keyboard shortcut regardless of which of its windows is currently in focus - they just didn't ever implement one. They could have defined a special message that the application's main message loop can handle to gracefully clean up everything, and then made a keyboard shortcut that would post this message, they just never did it.
simiones··on Keyboard differences between Windows and Macs
Windows has had support for multiple windows in a single "app" (that is, a single C program that had one WinMain() function), from all points of view, since Windows 1.0. One sense is irrelevant here - all UI elements that we consider Controls today (such as a button) are "windows" in the standard Windows API. But even in what we normally call windows, these were present from the start of Windows 1.0: your application starts with one main window, and it can later create dialog windows, tiled windows, or popup windows - each of which can be closed without killing the main window.

Now, Alt+F4 didn't exist as a standard keyboard shortcut in Windows 1.0 - it was added later, but certainly by Windows 95 at the latest. And already in Windows 95, Alt+F4 was the "Close Active Window" shortcut, which would close the window or dialog that was currently active - not the entire application whose window this was. So pressing Alt+F4 on your keyboard while a "Save As" dialog was present in Word 95 would close that "Save As" dialog, it wouldn't close your Word document.

You can check the Windows Programming Guide to see how to create dialog windows or popup windows in the same app that already had a main window in Windows 1.03: https://archive.org/details/win103-sdk-manuals/5%20-%20Windo...

simiones··on Keyboard differences between Windows and Macs
Alt+F4 in Windows has always been "close window", not close app. It is even shown on the traditional "application icon" menu on each window, that many new apps are unfortunately doing away with.
simiones··on OpenAI, the Partition Principle, and Mathematics
Hyperbolic, perhaps, but how does that make them "unserious"?
simiones··on OpenAI, the Partition Principle, and Mathematics
If OpenAI researchers are publishing shoddy papers, why in the world would anyone else be responsible for editing and cleaning up their shoddy papers?
simiones··on Cops Can Bypass iPhone's Automatic Reboot to Get into Locked Phones
Oops, should have said CCP, not CCCP.

Though I should note that this would be the "SSSR" since I was clearly using the latin alphabet, even if I had chosen to use the Russian name of the USSR.

simiones··on Cops Can Bypass iPhone's Automatic Reboot to Get into Locked Phones
It's important to separate what can happen from what will happen.

The majority of people walking in the worse neighborhoods of LA or Chicago never have a single crime happen to them. But that doesn't mean that it's safe to go in a bad neighborhood - and it really doesn't mean it's safe to go there wearing designer clothing, gold watches, diamond rings and wearing your Apple VR device.

The same is true for travel. It's perfectly safe for the vast majority - but it's very important to be aware what may make you a target and what can happen to you if you are. Tens of millions of people visit the UK or China every year with no incident. But if you're a public active supporter of Palestine Action, or an active demonstrator against the CCCP respectively, be aware that you personally face a real risk from this travel, and your devices are actually very likely to be searched at those borders. Vice versa though (anti-CCCP activist traveling to UK, PA activist traveling to China) is perfectly safe, though.

simiones··on Cops Can Bypass iPhone's Automatic Reboot to Get into Locked Phones
That's completely different. Pleading the 5th and not testifying is completely different from giving false testimony - which is never protected. Even in a trial, if you are asked under oath if you handled the body, you are allowed to say that you invoke your 5th amendment rights not to respond; but you are not allowed to say "no, I didn't" if in fact you did (you can later be accused of perjury in addition to your conviction).
simiones··on Gemini 4 Argon
Which tells you of the poor moral character (if not outright participation and complicity) of many people who seemed respectable.
simiones··on Gemini 4 Argon
> Did they ever really abuse the power Google could have wielded?

Plenty of times. Perhaps the worse is pushing Manifest v3 with no support for real ad blockers in Chrome. Not to mention no support for ad blockers in Chrome mobile.

Also, their stealing of newspaper content.

Their new push for AI summaries instead of actual search in their search product, stealing even more clicks from sites that actually produce information.

YouTube pushing Shorts to everyone, and now the weird text posts that you can't hide.

In general their gigantic push for ads everywhere all of the time.

simiones··on Oracle on the hook to pay data centre investors even if site has no electricity
That's not an operating cost, it's capital cost.
simiones··on Transit rewards
The problem is that personal vehicles inevitably leads to unsustainable traffic. Now, for low traffic areas, driverless cars might be an acceptable solution. But for busy areas, the geometry of transporting 1M people in cars vs buses is simply inescapable.
simiones··on I said no and Apple said yes
"Frustrated with how critical details are missing from the GUI, requiring you to learn console commands? Don't be so ambitious, stop using a GUI for these things at all and write your own CLI for them!"
simiones··on ZuckOff Know when a camera is in the room
Theoretically, yes, absolutely. Practically, no, they would be taken down by automatic filters and you'd have to be willing to face Disney's lawyers to try to get them reinstated.
simiones··on Houthis 'take control' of key island in global shipping route
The conflict in Palestine is created entirely by Israel. The militants are just the people who refuse to lay down and take it. This has become more and more obvious - if not through the genocide in Gaza, then through the rapid illegal colonization happening at an accelerated place in the West Bank.
simiones··on List of references on Sony websites to players "owning" their digital games
One fun thing I remember from reading some EULAs for physical games I bought in the past: the EULA for StarCraft at least explicitly said that you are required to obtain prior written permission from Blizzard Entertainment before lending the disk to a friend. Obviously this is not practically enforceable, but it shows that nothing of this kind is new from these companies' perspectives.

The way the law is structured, you are never buying copies of digital goods, regardless of the format in which you obtain them. Instead, you buy a license to use the digital good under the specific terms and conditions of that license. That is why if you get a disk with GNU utils on it from the FSF, you are still bound by the GPL in what you can do with the data on that disk.

simiones··on iPhone Duo
> Obviously Apple did the research on this.

Just like they obviously did the research on the Apple VisionPro and that is inevitably going to be the next big computing device, right?

I think the research is exactly what's happening right now (or will once it launches).

simiones··on Scientists observe Einstein's gravity in the quantum world
Ohh, yes, I had not at all understood that this was what you were referring to, especially as I had already suggested this is a real, though to my mind implausible, possibility.

Now, as to how plausible this is, we'll actually get into semantics. To me, saying that "gravity is quantum" would mean that it is a real force/interaction, and that this force obeys the Heisenberg uncertainty principle. So, I wouldn't say "gravity is quantum" if it turns out that the Entropic gravity theory is true, as in that theory gravity is only an apparent interaction. However, I admit that this may only be my perception of what these terms mean together, and that others may use "gravity is quantum" to refer to any theory that explains the macroscopic effects we call gravity in a way that matches quantum theories.

simiones··on Scientists observe Einstein's gravity in the quantum world
Their statement has two possibilities:

A: If gravity is quantum, then (B) there must be some particle-like think that we call a graviton that mediates the interactions, and then seeing a rubidium atom fall must have been an interaction with this particle.

not A: If gravity is not quantum, then they are making no claims about a graviton.

If you think gravity is not quantum, then you go to the "not A" branch, and they make no claims about that branch - so there is no contradiction with their IF.

simiones··on Scientists observe Einstein's gravity in the quantum world
There is a difference between "being in a superposition" and "occupying the same space". The uncertainty principle basically tells you that an electron is never in a defined place - it exists with some probability in many different places (technically it could be at a definite position, but only if it had completely indefinite momentum, and that's not physically meaningful given energy constraints).

Now, say we have an experiment where two different sources each fire one electron in some direction; and say the electrons have the same spin and other properties except for their initial position and momentum. We can meaningfully say that for a certain location between the two sources there is some > 0 probability for either electron to be there, so the amplitude of each electron's wavefunction at that position is > 0. However, that doesn't mean we can ever find both electrons at that same postion at the same time: the individual wavefunctions are just parts of the two-electron system's wavefunction, and, per the Pauli exclusion principle, that one will be 0 for any state of the form "electron A at position x and electron B at position x". So, for any position, you can find either electron there, but never both.

An additional wrinkle is that this only applies for two identical electrons. If the electrons have different spins, then they can actually be found at the same location at the same time. You can have a spin-up and a spin-down electron in the same place at the same time, but not two spin-up electrons. This is the fundamental property of fermions. However, you can have any number of identical photons at the same location - that's the fundamental property of bosons.

simiones··on Scientists observe Einstein's gravity in the quantum world
The statement "if gravity is quantum, this was an interaction with a graviton" is true even if it ultimately turns out that gravity is not quantum. The statement is about the consequences of a premise, and is not falsified if that premise is false.

The only way this statement could be false would be to have quantum gravity but no particle that mediates this interaction - which doesn't seem plausible almost by definition.

simiones··on .name Termination
> There aren't laws to ensure that. Within specific jurisdictions, sure, but not globally.

Many trademarks are indeed more or less global.

> A lot of companies also don't trade under their full name. Apple, famously, wasn't founded as Apple but as Apple Computer, and was only able to rename after achieving a deal with Apple Records.

That's irrelevant - Apple Computers owns the Apple trademark (for certain industries).

> The lack of more namespaces also led to things like nissan.com being owned by Uzi Nissan (and now his family, I assume) rather than the car company.

It's not perfect and not guaranteed to be unique, yes. But people's names have many orders of magnitude more collisions.

> <firstname>@<lastname>.name as an email address.

No, you'd at best get `??@firstname.lastname.name` as your email address. Which, again, is irrelevant, as it's impossible to say which of the many thousands of Firstname Lastname people this might belong to.

> (The cultural aspect is irrelevant - it was not enforcing a specific order. If people wanted to register lastname.firstname.com, nothing would stop that)

I wasn't referring to a specific order, but to the cultural idea that people have 1 firstname and 1 lastname. In Spain, for example, people typically have 1 first name and 2 last names - but you couldn't get `a.b.c.name` as an address. Having a first name, a middle name, and a last name is also very common.

There are also cultures where people simply have one name, not first + last. For example, a person's full legal name in Tibet might just be "Woeser".

simiones··on Go grandmaster Shin defeats AI KataGo with a two-stone handicap
I'm sure it's also a matter of how much time you actually dedicate daily to this - and it's quite hard to maintain passion and focus for 8+h /day on the same game for 30-40 years.
simiones··on .name Termination
DNS names are never permanent, they are in fact extremely im-permanent, always requiring periodic re-registration (though, to be fair, with pre-emption rights, so you have some guarantee of keeping your registration if you don't forget).
simiones··on .name Termination
> Also, .name filled an actual need for general non ccTLD

That's a silly idea. While there are laws that ensure to a decent extent that there is a single company called "Google", so that it's relatively unambiguous who `google.com` should refer to, there is no uniqueness whatsoever to personal names. There are likely hundreds of thousands of people called "John Smith", so the FQDN `john.smith.name.` would not really tell you anything.

This is without even going into the fact that "first-name.last-name" is culturally specific (though, to be fair, a large proportion of cultures in the world use this format).

simiones··on Go grandmaster Shin defeats AI KataGo with a two-stone handicap
The problem is that "with a handicap" is in itself ambiguous. People sometimes use it positively, sometimes negatively. That is, you say that Shin had a two-stone handicap, that can in itself be understood as either "Shin was given an advantage of two stones over the AI" (the reality) or "Shin was playing with a disadvantage, giving the AI two extra stones" (the more common reading of "to have a handicap").
simiones··on Go grandmaster Shin defeats AI KataGo with a two-stone handicap
Only if you were to assume that a player's prowess remains constant throughout their career, which we generally know to be false. (I'm completely inventing dates here) If Fisher played Kasparov in 1990 and Kasparov played Carlsen in 2020, you can only compare Carlsen to Fisher if you assume Kasparov's skill was about the same for this entire duration, which no one believes to be the case.
simiones··on Go grandmaster Shin defeats AI KataGo with a two-stone handicap
A small note - it's Elo scoring, not ELO. It's named after Arpad Elo, it's not an acronym of any kind.
Page 1 of 34Next →