skysight-inc/HackerNews huggingface dataset:
source: https://bugzilla.mozilla.org/show_bug.cgi?id=1735345#c18

---

Markus Stange [:mstange]

Comment 18 • 1 month ago
• Edited

I've filed FB9704004 about this.

-[NSCursor set] appears to be leaking images, causes 70GB leak in Firefox

This appears to be a regression in one of the recent macOS Monterey Betas.

Two Firefox users reported a very large memory usage. We’re tracking this in https://bugzilla.mozilla.org/show_bug.cgi?id=1735345 .
We have a memory report which blames the allocations on this stack:

#02: _malloc_zone_malloc[/usr/lib/system/libsystem_malloc.dylib +0x1e770]
#03: createImageWithSizeRenderInstructions[/System/Library/PrivateFrameworks/AccessibilitySupport.framework/Versions/A/Frameworks/AccessibilityFoundation.framework/Versions/A/AccessibilityFoundation +0x7430]
#04: -[_AXFMouseCursorGeneratorLayer _createImageForScale:color:][/System/Library/PrivateFrameworks/AccessibilitySupport.framework/Versions/A/Frameworks/AccessibilityFoundation.framework/Versions/A/AccessibilityFoundation +0x66e0]
#05: -[_AXFMouseCursorGenerator createImageForScale:][/System/Library/PrivateFrameworks/AccessibilitySupport.framework/Versions/A/Frameworks/AccessibilityFoundation.framework/Versions/A/AccessibilityFoundation +0x5064]
#06: -[_AXFMouseCursorGenerator _registerWithName:connection:isGlobal:setActive:seed:][/System/Library/PrivateFrameworks/AccessibilitySupport.framework/Versions/A/Frameworks/AccessibilityFoundation.framework/Versions/A/AccessibilityFoundation +0x5418]
#07: _AXFCursorSetAndReturnSeed[/System/Library/PrivateFrameworks/AccessibilitySupport.framework/Versions/A/Frameworks/AccessibilityFoundation.framework/Versions/A/AccessibilityFoundation +0x70b8]
#08: _AXInterfaceCursorSetAndReturnSeed[/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices +0x2d1d8]
#09: -[NSCursor _reallySet][/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x1e01d0]
#10: -[NSCursor set][/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x1e0050]

Firefox calls -[NSCursor set] very frequently during mouse motions, so many leaked images might accumulate.
Yep, though I agree with the parent, if a RAM returns data from a location that is different from what is stored in that location, assuming all recommended timings have been followed, then that RAM is defective. If that means they should be recommending a refresh after every single operation, then that's what it means.

In other words, the whole industry sits on a bed of lies at this point and it's only because government is technically incompetent that we haven't seen the world's biggest class-action.
https://archive.md/drAbX
I use Windows, Linux, MacOS, and iOS -- only major OS I don't use is Android.
This isn't the kind of issue a code review would catch. Code review will find when the code isn't written to standards or doesn't look maintainable. It isn't going to catch a subtle misuse of a technique that should be valid.
My spouse (hearing) spent some time immersed in the Deaf community and the learnings she got from just scratching the surface was really eye opening. All of what you said is true - there's no use for many of english adjectives because body language tells it equally as effectively.

The Deaf community was way more nuanced and interesting than I expected. ASL is a really cool language and it's fun and relatively easy to learn.
Digging the pan, hardening it (so it's relatively impermeable to sea water), and then repeatedly evaporating the water until you have a brine rich enough in salt to precipitate, and then massing that salt slush so it can completely dry, and then smashing it into a usable form.

You can look at salt pans on Google Maps. Here is one I have been to:

https://goo.gl/maps/uN968Stn6kPHnH6E7

Obviously today this is done with gigantic machines, and the cost/kg is incredibly low to the point that locals do not pay for salt, but back before the advent of Caterpillar, I imagine harvesting salt this way was very labor intensive.

There is a documentary on Amazon called My Name is Salt about the salt harvest in India. It is quite good.
Thanks for sharing, this fits me really well, I'm gonna give it a try.
Ira Glass has a practical take on the idea of exposing good taste (e.g. trying to paint like Bellini): https://youtu.be/X2wLP0izeJE where he talks about how your good taste informs you that the work you are doing doesn’t yet match your ambition, and that this can be both motivating and discouraging
‘Wrong’ information, if it’s expected, understood, and predictable, is still usable. Especially if we know it’s not going to introduce completely alien artefacts into an image like Ryan Reynold’s face.

All of the standard zoom algorithms fall into that category. Whether bilinear, nearest neighbour, or similar, they’re all going to produce similar outcomes with which, importantly, a teenaged witness on the stand will be familiar. Same with the way TVs upscale content.

It’s not like this is new evidence being introduced in its zoomed-in form. It’s an iPad and footage or images being used in the same way prosecutors and defence attorneys have used them for years when cross-examining witnesses.
Contrary to QWERTY-fr, you can't type accentuated letters directly with the Spanish layout[1]. I find that it considerably lowers my speed when typing French.

I agree that QWERTY-fr looks bloated on the first look, but the position of keys actually make sense so it is super easy to learn. I recommend you to read the philosophy[2] behind this keyboard layout.

What do you think?

[1] https://www.goodtyping.com/teclatESP.png

[2] https://github.com/qwerty-fr/qwerty-fr#-philosophy-overview
I am speaking in generalities because I don't know your exact stance on everything.

The American military budget is so massively over-bloated its sickening. No only that, they made 35 Trillion dollars in adjustments in 2019 alone. The year before they made 30 Trillion dollars in adjustments.

In 2018 the pentagon failed its first ever independent audit, instead of releasing the report, they changed their own rules to hide the report under the guise of "national security".

I shudder to think how much money is being skimmed from the pentagon budget, but no one seems to care.

> Why is it such a negative thing for I, as a contributor, to look at the system critically and with reservations?

Its not, but I find it disturbing how, in general, even the smallest whiff of fraud from a social program, brings all sorts of regulations and cuts. But the Pentagon making 65 trillion dollars in adjustments to its budget in 2 years is meet with silence.

For me, I would rather every single person in this country go to bed with a full stomach, even if it meant some amount of fraud, then to let the pentagon piss away more money.

If people really cared about not wasting their tax dollars they would be outraged over the pentagon. Doing a proper audit of that would probably get back so much money any fraud in social programs would be statistically insignificant.
Learn Apache Spark for data science
Presumably it would be very useful to China to be able to buy power during their night time. It might also be beneficial to Chile to be able to buy power from China when the situation is reversed. Better interconnections mean you can get more benefit from cheap solar and don't have to rely on batteries.
> Isn't cheaper turn the electricity into liquid hydrogen?!

Creating hydrogen is about 80% efficient, so you do lose a fair bit in the process.

> Hydrogen can be stored for months, delivered by car, tubes, ships,

That's the thing about hydrogen, it's tricky to store for long periods of time. It leaks real easy. And liquid hydrogen isn't very dense, about 7% of that of water, so it's hard to ship it in bulk. And at the point you're piping it, well you may as well just pipe the electricity direct.
Seems more efficient to desalinate water using solar and export it to China
What's different in Amazon's bot implementation? And is it accessible to smaller companies somehow?
“I wonder whether you think this essay is "great" mostly because you agree with it?”

An odd question but yes I think it’s great, as I explained in post, mostly because I agree with it. Not sure if you’re asking a real question or making a rhetorical point about thinking people are crass for believing in taste, in beauty.

Assuming it is a real question, part of the reason I think it’s a great essay, as I allude to be in my post, is the brevity and succinctness of it. Paul is sort of known for that— being able to put forth provocative ideas in a concise and compelling way.

I’m sincerely sorry, saddened in a way, that you find art crass. You are not alone. It’s threatening to many people I’ve observed. For me, it’s one of the most important of human achievements, and worthy of celebration and contemplation. To fully appreciate it implies comparing artists and artwork and thinking deeply about what makes some art better, special. No human is excluded from this most human of activities, except for those who exclude themselves. I would urge you, don’t be one of those. Engage with art critically, and enjoy the many rewards it brings. The question of aesthetics has captivated the greatest thinkers for very good reasons. It is to be fully human, to appreciate life. Don’t deny yourself that.
We have come a long way since 2009:

https://www.sciencedirect.com/science/article/abs/pii/S10898...

What Sapolsky was talking about was correct, but the fundamental driver seems to be oxidative stress imbalance. And the genetics part might be highly associated with the mitochondria:

https://www.nature.com/articles/s41380-021-01268-x
Possibly. IME it’s quick Python POCs that didn’t bother with good practices that turn into critical production services without anybody going back and applying good coding standards.
There is such a thing as bad philosophy. By example, it's philosophy produced by narcissists thoroughly unaware and uninterested in any aspect of the canon of philosophy that predates them.
There were a number of reliable desktop systems by the 90s, if you wanted to spend extra money for it.
Apple needs to re-hash their ancient process for handling bugs and remove the entrenchment around Radar, internally and externally. Stop outsourcing your internal tools overseas and telling product engineers ‘it is like it is’. That clearly didn’t work with customers (re: MacBook feature reversals), it also doesn’t work with engineers. Allow engineers to scratch their own itch, and solve these complexity problems in the stack. Fix the back-office mechanisms and SIMPLIFY. Stop building features on sandcastles to pretend they’re concrete.
Texas also has a very successful football team at the Texas School for the Deaf. They play in a 6-man league (the team in the article plays 8-man) but they are 8-1 this year and leading their district heading for the playoffs.

I attended one of their games this year, which happened to be the one they lost, against my nephew's team. The quietness of the game was what stood out to me the most. Of course our team was making noise and our fans were doing the usual cheering. The cheerleaders and fans even tried to "make a lot of noise" on third down, I guess out of habit, because it made no difference, except to get our defense excited I suppose. But the only noise from the other side was a big drum or canon that they used which I suppose the deaf players could feel the sound of to set some timings.

https://www.maxpreps.com/high-schools/texas-school-for-the-d...
It feels industry-wide to me. Quality was never a high priority, but in the past decade it’s fallen that much further. Everything has become centered around shoveling as much code as possible as quickly as possible, with little to no regard for how well it works. Nobody cares if it requires obscene amounts of memory, turns laptops into furnaces, and functions correctly only half the time so long as it’s getting shipped quickly.
Unless you are an exceedingly clever person, it's unlikely you will re-discover all of the advanced/extreme techniques needed to solve the hardest Sudoku puzzles that are out there.

Here is an example of one of the aforementioned "extreme" techniques: https://www.sudokuwiki.org/Exocet

That said, you can probably solve up to and including "difficult" Sudoku puzzles on your own without having to learn advanced techniques.

As another poster mentioned, "Enjoy Sudoku" is a great app to try, as each difficulty level is defined by the techniques needed to solve the puzzle. This should help define for you the boundaries of what you are able to discover on your own.
> Pattern sensitivity in memory chips is a very old problem, and previously was treated as a fatal design error

You seem to know more about this than I do. Where might one go to read more about this? Are there whitepapers, design docs, other resources which could be used to assert positively that the industry used to consider this a defect?
You're looking at the mean which includes billionaire disposable income. Look at the median for a more realistic picture (scroll down 1 grid).
Cool idea, I'll check it out! I've been looking for an online book club that indulges my more esoteric tastes (the last books I read were was a biography of a private mercenary, a sci-fi book, and now a book on the functioning of government) that I wouldn't get from a more traditional book club!
I was just about to comment this. It seems as though PG is saying taste (much like quality) is a perceptual experience[0].

[0] https://en.wikipedia.org/wiki/Pirsig%27s_Metaphysics_of_Qual...
Of Course MoviePass Is Back
1. Yes first thing I run if I ever have to use a Windows PC is this little gem called Shutup 10 (1).

2. Then there is another software called 10AppsManager (2) to remove further bloatware like Onedrive, Skype, etc.

3. After that I visit ninite.com (3) to get the usual software without toolbars and spyware.

4. For other software like ffmpeg I use choco or chocolatey (4).

I am now a full time linux user but this was the least painful way to get my PC running before that. I'm sure things have changed or improved since, but this really worked for me 2 years ago.. hope this helps someone.

(1) https://www.oo-software.com/en/shutup10

(2) https://www.thewindowsclub.com/10appsmanager-windows-10

(3) https://www.ninite.com

(4) https://chocolatey.org/
I think moving such complexity to hardware was a mistake (like branch predictor, etc). Perhaps exposing a very low level API to CPU functionality (like microcode level) and JIT compiling existing x86 to that could perhaps work? We have just enough problem managing complexity in software but at least it is fixable there.

(As for the possibility of such, there is already an x86 to x86 JIT compiler that increases performance)
You are forced to use IL2CPP on mobile since the Google/Apple mandated ARM64 build is not available through Mono. (Mono itself does support ARM64, just Unity doesn't bother to port it) I recently had a bug which erroneously stripped functions in generated IL2CPP code, and I had to trace generated IL2CPP line by line, it’s so much fun.
With respect, to me that stance seems both incomplete and absolute, and falsifiable in about nine ways, so surely, while you are entitled to hold that opinion and are not alone in that judgement, you are both wrong. But so am I.

EDIT: another comment may help explain why I find "judgement" so completely orthogonal to this topic:
https://news.ycombinator.com/item?id=29229946
I never found a way of disabling the automatic starting of iTunes when you press the play/pause button on the keyboard. How do I choose my own music player app?

And my new Mac has things like (can't remember exactly) 'musiccreationd'.

These count as 'startup items' to me.
Manhattan is mostly multi level apartment buildings, at least 4 stories or so. I don't know why your point would contradict mine. Yes, units in the taller skyscrapers are more expensive and sell for tens of millions of dollars, if not more.

I wonder how NYC would do with cheap 30 story Chinese concrete apartment blocks? (30 stories, because any taller requires steel, at least with construction practices that use cheap migrant labor).
Speed is the issue. If IT is a cost center, the business doesn't see the documentation and don't care about it. They want the next feature. At least that's how it is at my company.
Didn't mean to imply that things were back to normal by 2010, only that it was (in theory) possible to prepare for it a little. In my case, there's no way I would have dropped CS in favor of anthropology if I knew what my prospects would look like!

But yeah, it was rough for everyone. Even now, young careers are shaped by what happened in 2008.
Funny, just yesterday I was troubleshooting Carplay troubles. My Opel Ampera-E (Chevvy Bolt) would only recognize my phone as an iPod! For live I couldn't figure out the issue: I rebooted the infotainment system, I reset the infotainment system, I reset my iPhone - yet, on this particular iPhone, Carplay failed to launch.

Turns out that at one point "App & privacy limits" were enabled, and this _silently_ disabled Carplay!
Read a Paper: The Case for a Learned Sorting Algorithm
Lot of posts here say that dithering is something we did in "good old days". Dithering is still very much alive, just not as needed on general web sites. But it's critical when you need to squeeze animation sprites for games or multimedia projects. These sprites typically need transparency, and precise control over which frame is displayed, so standard video codecs can't be used.

So 8-bit palettized PNG sprite sheets are the most convenient way to do it in the browser, where it's not efficient to manually unpack some custom format.

I highly recommend pngquant tool with its adaptive dithering algorithm for compressing sprite sheets. One of main features is it uses partial transparency colors in a palette, while few other tools I tried just support on/off transparency, which is far from great. Especially for antialiased semitransparent edges. pngquant works beautifully with these cases.

https://pngquant.org/
I agree with the previous person that Windows has more bloat. I don't want the 3-5 3rd party games it pre-installs and several other things. I also agree with you though. For me, All the Apple software is stuff I don't use so when I get a new Mac the first thing is removing Mail, Maps, Contacts, Pages, Photos, Calendar, Facetime, Reminders, AppleTV, Music, Keynote, and more and then removing the bloat widgets like News, Stocks, etc...
Yep, remote work is key. I wouldn't recommend someone move to a rural area if they didn't have access to remote work.
AFAIK, there is a little database embedded in COBOL, known as ISAM.

I don't think there are any SQL-style grant/revoke directives within COBOL, and mainframe developers in decades past likely did not spend too much time worrying about system security when the best I/O was a dialup modem.

And now we attach this old code to the internet.

https://en.wikipedia.org/wiki/ISAM
Rowhammer is a memory corruption technique, so if you corrupt the right memory of a process in the right way then you can crash it; same for a kernel or hypervisor.
Can you type « Ç » and « É » with the Swiss layout[1]? What about the French quotation marks (« »)?

[1] https://www.goodtyping.com/teclatSWI.htm
This kind of problem will continue to happen as long as corporate incentives continue to reward new features more than solidifying existing fetures. It's easier to get promoted for doing "new" stuff.
The Brompton system is ... weird. Owing to the fact that the bike folds and the length of the chain line changes dramatically when you fold it, a traditional parallelogram linkage derailleur wouldn't work.

Instead, they have a crazy custom thing that runs the chain through a little pivoting fork that shifts the chain left and right on the two speed freewhatever[0]. The six speed adds the three speed internally geared hub. You can also get one or the other alone.

I believe they developed that combination when the supply of 5 speed hubs that fit their highly non-standard read hub spacing dried up.

I have a two speed Brompton and love it, but their engineers are next-level crazy in the best possible way.

[0] I wouldn't even care to guess. Everything they do is insane.
using java spring framework
maybe. if nothing matters then it doesn't matter if zuck gets charged with something then.
What Designers of Video Game Cities Understand About Real Cities
Hey so I’ll be getting my first MacBook Pro in a couple weeks, so I’m still learning the details about OS X. I’m coming from a windows / Linux background.

I thought the OS shipped with its own firewall? Would you recommend using a third party firewall despite having its own?
> but that doesn't mean that problems don't exist nor that you or your family didn't contribute to the issue.

Wow that's some incredible mental gymnastics you're performing there. So despite the fact that my family has never "killed and genocided the original land dwellers, kidnapped, raped and enslaved people" somehow my family and I still contribute to the issue.

> Apparently you do? Care to explain it to me? Want to tell me that people don't get exploited and they those that are should just change their attitude?

Sure. Exploitation and market forces are a part of human society. Baselessly calling everybody evil without offering any sort of solution does nothing except help convince yourself that you're some kind of martyr.

People absolutely are exploited in every society that has ever existed. We're talking about the housing crisis in California cities here. People are not entitled to live in the most expensive, overcrowded cities in the world with low rent and short commutes. Somehow you've dumbed down a complicated issue into a blanket condemnation of the entire country.

There is an abundance of work available right now. Many jobs can be done remotely, especially the tech jobs in SV.
> I think the number of API's we add to the platform will always keep increasing.

The problem isn't the the number of APIs per se (though I agree that it's unsustainable [1][2]).

It's how they get forced onto the web by Chrome.

- Implementing Chrome's internal API and pushing them to stable, and pretending they are a web standard? Check (Example: Web HID, original "spec" couldn't be understood by Mozilla engineers, updated "spec" was published two months after Chrome enabled it by default and published an article on web.dev)

- Ignoring Mozilla and Safari concerns on an API, enabling in stable because Google's own projects want them, and refusing to bring it back under flag? Check (Constructible Stylesheets, in the end Safari refused to implement them, period)

- Gaslighting other browser vendors through any means possible to an audience of thousands? Check (Alex Russel and the likes of him)

And that's off the top of me head, too late here where I am going through dozens and dozens of such instances I saved to document in a blog post one day.

> It's sad that it's got the point where the teams don't trust each other and it's clear that the perception is wider. I'm still hoping to change that around.

I will quote John Nightingale [3]

--- start quote ---

The question is not whether individual sidewalk labs people have pure motives. I know some of them, just like I know plenty on the Chrome team. They’re great people. But focus on the behaviour of the organism as a whole. At the macro level, google/alphabet is very intentional.

--- end quote ---

All this is very intentional behaviour that has been going on for years. No wonder Safari team is pissed.

[1] https://www.quirksmode.org/blog/archives/2015/07/stop_pushin...

[2] https://drewdevault.com/2020/03/18/Reckless-limitless-scope....

[3] https://twitter.com/johnath/status/1116871251023278080
Integrating with Microsoft SQL Server is definitely on our roadmap in the coming months. If you're up to discuss your use case, please reach out to team@metaplane.dev because we’d love to explore building this integration for you!