Hacker Newsnew | past | comments | ask | show | jobs | submit | fathyb's commentslogin

> On macOS memory can be paged to/from disk. On iOS it isn’t and applications must free memory when asked or be terminated

Not sure what you meant by that, you always could `mmap` files into memory on iOS. Back in the 32 bits days there was a ~700 MB limit due to the address space, but there aren't anymore nowadays with 64 bits. If `didReceiveMemoryWarning` is called on your app, then you need to free resident memory but the kernel will take care of dumping file-backed memory pages for you.


> Back in the 32 bits days there was a ~700 MB limit due to the address space, but there aren't anymore nowadays with 64 bits.

Not true, unless something changed recently (definitely more recently than the 32->64 transition). All iPhones have a virtual memory limit (although the limit is higher on phones with more physical RAM).

I know this for sure because several years ago I was the main person in charge of reducing OOM kills on the Facebook iPhone app and virtual memory exhaustion on 64-bit phones was definitely an issue.

See here for where this is enforced in XNU: https://github.com/apple-oss-distributions/xnu/blob/xnu-1121...

I assume Apple does this specifically because they want to prevent apps from simulating swap space by mapping a big file and allocating from it.


That's memory mapping. This is memory paging [1]. I.e. Windows pagefile.sys, Linux swap, macOS swap files. iOS does not have swap files, only memory compression. If you're on a Mac, open up Activity Monitor, go to Memory, and at the bottom there is `Swap Used`. That doesn't exist on iOS. So, if more memory is used than available, applications will need to free memory or be terminated. Unlike macOS, where some used memory will be swapped to disk to allow other stuff to be loaded into memory.

[1] https://en.wikipedia.org/wiki/Memory_paging


It's most likely just disabled rather than being completely different/non-existent. But yes, the application model is built around limited to no multitasking.


> It's most likely just disabled rather than being completely different/non-existent.

As evident by the limited Virtual Memory Swap enabled on iPadOS 16, but not iOS.

All Apple devices use the XNU kernel. But, as the parent blog post shows, the kernel configuration, device tree, and drivers are different.


Apple advertised the first iPhone to run OS X: https://youtu.be/VQKMoT-6XSg?t=506


It's not the same version of OS X that ran on Apple's computers. The "it's OS X" was more for marketing, they just share the same "core".

You could argue that the iPhone currently still runs macOS if you used the same definition today. They share kernels (iirc Apple always kept the ARM patches to Darwin closed-source), BSD-based userlands and the iPhone used versions of the macs application libraries.

A big difference is the iOS and macOS use different compositors.


> on the server that is hosting this service

I’m not sure if it changed, but last time I heard HN was running on FreeBSD: https://news.ycombinator.com/item?id=16076041

> just imagine how much performance could be gained if game vendors didn't ignore it

In the case of FreeBSD, Sony used it as the base for the OS on PlayStation since PS3.


If anybody is interesting in learning more about that smearing campaing: https://www.ajiunit.com/investigation/the-labour-files

> An investigation based on the largest leak of documents in British political history. The Labour Files examines thousands of internal documents, emails and social media messages to reveal how senior officials in one of the two parties of government in the UK ran a coup by stealth against the elected leader of the party.


Politician smeared during election? Shock horror, it happens during every election.

Leader of the party can't unite their own party so there is a plan to oust them? That's politics.

Jeremy couldn't particularly unite the party, didn't take the center ground, and while I don't think he was a true antisemite there were enough mis-steps there that it meant that the claim could stick (along with the IRA sympathizer claims).


Agreed. For spicier chords also recorded by the Nat King Cole Trio on the same set check out Mona Lisa: https://www.youtube.com/watch?v=NIDX18Xl16s


Link for Europe: https://archive.ph/IHdjm


So, the chains broke when doing an emergency braking and the load crushed the pick-up? I clearly see that the driver was at fault, but aren't loads also not supposed to easily escape their tie-downs?


Some loads like this one are so heavy that you just can't defeat their inertia, hence why you go slowly and have a large escort. It couldn't be stopped that quickly just due to the nature of the load.

At some point if you're getting behind the wheel of a vehicle on the road, you have some responsibility yourself. If you're not looking where you're going at all and drive into the path of a heavily-escorted million-plus-pound load and it ends up crushing you because of the sheer physics of the situation, that's on you. There's a hundred other more likely ways to kill yourself on the road if you're not looking where you're going, that don't involve such unusual cargo.

And also, from looking at the photos of the scene, it looks like the driver may have turned quickly to attempt to avoid the crash, and the load continued on of its own inertia and overturned the entire rig, which is an issue caused by top-heavy torque that doesn't care how tightly the load is tied down at all.


Now imagine how limited computers are with their ability to count to only 1.


Most computers can count to 2^32-1, and many can count even higher! They can also string words together grammatically, which means they are one step away from an artificial general superintelligence explosion.

But when non-human animals use AAC systems, or vocalise words directly, to express wants or needs, they aren't really talking, because they don't use tree-like grammars.


What? Even really simple MCUs can output more symbols than 0 and 1 and of course they can count higher.


Isn't because in Cars the character itself is the IP, not the actor? For example, if Owen Wilson started cosplaying as the Cars character and making money out of it, he could be sued.

Reminds me of an Archer bit: https://youtu.be/c9uuITbtl-g?t=2

- Oh my god, Slim Goodbody!

- No! No, this is absolutely not that trademark character. Just a unitard with the systems of the human body on it. On a guy.

- On a guy named TV's Michael Gray.


The video description is

> All credits to FX. I do not own any rights.

Appropriate


> I don’t know if signatures are verified before or after running but the binary probably won’t even run without being signed by a paying Apple Developer anyways.

It's before. You can code sign and verify macOS binaries with any certificate you wish, including a self-signed one (useful in case you want your private iTerm fork). Note the plugin should be signed with the same certificate as the iTerm app [1], just using a paid account won't work.

[1] https://gitlab.com/gnachman/iterm2/-/blob/b0e6b336a6be9bca00...


Isn't opioid addiction the root cause? People dying of fentanyl are mostly opioid addicts who started with prescription meds [1] such as Oxycontin.

Heroin is close to fent in lethality, and oxycodone is next in line [2].

[1] https://nida.nih.gov/publications/research-reports/prescript...

[2] https://www.cdc.gov/nchs/data/nvsr/nvsr67/nvsr67_09-508.pdf - Figure 1.


Opioid addition is a major cause, yet Fentanyl is popular because the margins are INSANE while access to prescription opioids became much more restricted.

In 2019, Indian companies were a major source of precursors as well [0], yet Indian authorities cracked down on this path [1]. Meanwhile, Chinese authorities turned a blind eye [0].

That said, China is semi-federal as well, and depending on which Province the companies are from, it might be difficult to crack down, especially given that Chinese organized crime has transnationalized in Myanmar and Cambodia [2]

None of this can actually work at scale without financing and ease of operation, and the fact that authorities in multiple countries are turning a blind eye and sometimes actively using Organized Crime as a hybrid tool of power projection (eg. Triads in the Chinese diaspora, Punjabi Organized Crime in the Indo-Canadian Diaspora, the Russian and Caucuasian Vorys, etc)

That's how you have a DoJ lead brothel crackdown in DC and Boston that was because they were being used as an attempted honeypot [3]

[0] - https://www.dea.gov/sites/default/files/2020-03/DEA_GOV_DIR-...

[1] - https://www.deccanherald.com/india/ncb-arrests-tamil-nadu-ba...

[2] - Highly recommend Peng Wang's research at HKU (https://sociology.hku.hk/people/wang-peng)

[3] - https://www.cnbc.com/2023/11/08/high-end-brothels-serviced-e...


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: