Readit News logoReadit News
simscitizen commented on uBlock Origin Lite now available for Safari   apps.apple.com/app/ublock... · Posted by u/Jiahang
TheDong · 22 days ago
> iMessage search works quite well if you can find it buried in the interface

And as long as you only want to search all messages, not a single conversation.

Let me give an example: I know a person sent me an image in imessage about one year ago. How do I search "from:user has:attachment date:2024-07-*"?

In gmail that's easy, in discord, that's easy. Does imessage search have literally any of those filters?

Searching within one chat seems especially like it's table-stakes for any chat app's search

simscitizen · 22 days ago
If you type the name of the person, it should allow you to create a filter for "Messages with: Person". It should also pop up a filter bubble for photos. From there I think you can type in some query and it should do a query on the photos via text. I don't think you can add your date filter though.

Second way would be to open that conversation view, click on the contact icon at the top of the view, which should then bring you to a details page that lists a bunch of metadata and settings about the conversation (e.g. participants, hide alerts, ...). One of the sections shows all photos from that conversation. Browse that until you find the one you care about.

simscitizen commented on The case of the UI thread that hung in a kernel call   devblogs.microsoft.com/ol... · Posted by u/luu
simscitizen · 4 months ago
Oh I've debugged this before. Native memory allocator had a scavenge function which suspended all other threads. Managed language runtime had a stop the world phase which suspended all mutator threads. They ran at about the same time and ended up suspending each other. To fix this you need to enforce some sort of hierarchy or mutual exclusion for suspension requests.

> Why you should never suspend a thread in your own process.

This sounds like a good general princple but suspending threads in your own process is kind of necessary for e.g. many GC algorithms. Now imagine multiple of those runtimes running in the same process.

simscitizen commented on Servo vs. Ladybird   thelibre.news/servo-vs-la... · Posted by u/speckx
gibibit · 5 months ago
I am excited for any path that gets us toward a faster, leaner, cleaner web browser. It is insane that we have to dedicate multiple gigabytes of RAM, have CPUs 1000x faster than we had back with Netscape Navigator, and still the browser performs poorly, and constantly has security vulnerabilities.

I hope Ladybird and Servo succeed. I tried Servo a couple of years ago and it was quite useless, unable to do anything, so I'll have to check back and see how it's doing sometime and see if it's improved.

UPDATE: just tried the latest Servo build on macOS. About 100 MB download, not bad. Started fast. Kind of works. Fast but not very smooth, lots of repaint flashing etc. And text fields and text selection on the web page work poorly or not at all.

I guess they're focusing on interesting internal stuff rather than the basics of loading a webpage and allow you to highlight text and copy it, or click in a text field and edit the text. I wonder whether it will graduate to a real browser sometime.

simscitizen · 5 months ago
> It is insane that we have to dedicate multiple gigabytes of RAM, have CPUs 1000x faster than we had back with Netscape Navigator

Webpages are applications. Browsers are application runtimes. The main culprit driving high memory usage is not the runtime, but the application.

simscitizen commented on The NIH is being slashed and burned, not "reformed"   sensible-med.com/p/the-ni... · Posted by u/SubiculumCode
tw04 · 6 months ago
> Practically speaking, when the majority of people who decided to vote voted for the person applying these policies, what mitigations are left?

Impeachment. In a functioning government. Because the elected person campaigned on not doing any of these things.

simscitizen · 6 months ago
And replace him with JD Vance?
simscitizen commented on Fixing C Strings   thasso.xyz/2024/12/16/fix... · Posted by u/ushakov
simscitizen · 8 months ago
There are quite a few of these "better C string" idioms floating around.

Another one to consider is e.g. https://github.com/antirez/sds (used by Redis), which instead stores the string contents in-line with the metadata.

simscitizen commented on The number given as % CPU in Activity Monitor   eclecticlight.co/2024/11/... · Posted by u/Brajeshwar
dang · 9 months ago
[stub for offtopicness]
simscitizen · 10 months ago
Pretty sure it’s just scheduled CPU time / wall clock time. If you have multiple cores then scheduled CPU time can be greater than wall clock time.

Also scheduled CPU time doesn’t take in to account frequency scaling or core type as explained in the article. Just how much time the OS scheduler has allocated to the core to run tasks.

simscitizen commented on Warning: DNS encryption in Little Snitch 6.1 may occasionally fail   obdev.at/blog/warning-mac... · Posted by u/HelenePhisher
conradev · a year ago
If you do need the lower-level control, Apple does still recommend `getaddrinfo`. It handles NAT64 translation for IPv6-only carrier networks:

https://developer.apple.com/library/archive/documentation/Ne...

simscitizen · a year ago
That’s not the current documentation, as evidenced by the “archive” in the URL.

If you want to stay at a lower level the recommendation these days is to use Network.framework. If you want something higher level then use CFNetwork (probably through the classes exported by Foundation like NSURLSession).

simscitizen commented on Logbookd – SQLite Backed Syslogd   git.sr.ht/~martijnbraam/l... · Posted by u/tosh
nine_k · a year ago
Maybe autocommit mode is set? I'd expect that.
simscitizen · a year ago
Inserting a new row for each log line in autocommit mode would be absurdly inefficient compared to just appending a log line to a file.
simscitizen commented on Logbookd – SQLite Backed Syslogd   git.sr.ht/~martijnbraam/l... · Posted by u/tosh
simscitizen · a year ago
How does this work exactly? Is every log line a separate transaction in autocommit mode? Because I don't see any begin/commit statements in this codebase so far...
simscitizen commented on Modular Monoliths Are a Good Idea   materializedview.io/p/mod... · Posted by u/riccomini
recursivecaveat · a year ago
What were the two facebook repos? I can't find any reference to them.
simscitizen · a year ago
The main ones were www which contained most of the PHP code and fbcode which contained most of the other backend services. There were actually separate repos for the mobile apps also.

u/simscitizen

KarmaCake day407January 14, 2013View Original