Readit News logoReadit News
pwagland commented on I extracted the safety filters from Apple Intelligence models   github.com/BlueFalconHD/a... · Posted by u/BlueFalconHD
raverbashing · 2 months ago
This seems to be for "region/CN" China?
pwagland · 2 months ago
This is, but there is an almost identical file, assumedly for the non CN regions: https://github.com/BlueFalconHD/apple_generative_model_safet...

This is the same, except for one additional slur word.

Deleted Comment

pwagland commented on Simplest C++ Callback, from SumatraPDF   blog.kowalczyk.info/a-sts... · Posted by u/jandeboevrie
kjksf · 2 months ago
I didn't write that article to convince anybody.

I wrote it to share my implementation and my experience with it.

SumatraPDF compiles fast (relative to other C++ software) and is smaller, faster and uses less resources that other software.

Is it because I wrote Func0 and Func1 to replace std::function? No.

Is it because I made hundreds decisions like that? Yes.

You're not wrong that performance wins are miniscule.

What you don't understand is that eternal vigilance is the price of liberty. And small, fast software.

pwagland · 2 months ago
This is a valid point missed by many today. The mantra of don't optimise early is often used as an excuse to not optimise at all, and so you end up with a lot of minor choices scattered throughout the code with all suck a tiny bit of performance out of the system. Fixing any of these is also considered to be worthless, as the improvement from any one change is miniscule. But added up, they become noticeable.
pwagland commented on Simplest C++ Callback, from SumatraPDF   blog.kowalczyk.info/a-sts... · Posted by u/jandeboevrie
OskarS · 2 months ago
Indeed, that is exactly the case, lambdas are essentially syntax sugar for doing this.

The one thing the author's solution does which this solution (and lambdas) does not is type erasure: if you want to pass that closure around, you have to use templates, and you can't store different lambdas in the same data structure even if they have the same signature.

You could solve that in your case by making `void operator()` virtual and inheriting (though that means you have to heap-allocate all your lambdas), or use `std::function<>`, which is a generic solution to this problem (which may or may not allocate, if the lambda is small enough, it's usually optimized to be stored inline).

I get where the author is coming from, but this seems very much like an inferior solution to just using `std::function<>`.

pwagland · 2 months ago
The author of the article freely admits that `std::function<>` is more flexible. He still prefers this solution, as it is easier for him to reason about. This is covered in the "Fringe Benefits" part of the document.
pwagland commented on Air Traffic Control   computer.rip/2025-05-11-a... · Posted by u/1317
RandomBacon · 3 months ago
While there was over 10 times as many applicants as there were spots, there were people that went to college and studied ATC who weren't able to become Air Traffic Controllers because of the Biographical Questionnaire.

You can't say an opinion is false - it's an opinion.

The fact is though, that the Biographical Questionaire affected hiring. Did it make a noticeable difference though? Who knows. We just know for certain that people who studied for this job didn't get in.

pwagland · 3 months ago
> You can't say an opinion is false - it's an opinion.

I agree that op thought: > [that] there's [no] debate that ATC staffing is a major issue right now, and the FAA really did blow up its hiring pipeline to further DEI goals

Grandparent only said that there is clearly debate over this.

To say that no-one can disagree with op, or point out an opposing point of view, because is their opinion, is not furthering discussion.

pwagland commented on Hacker News Hug of Deaf   susam.net/hn-bell.html... · Posted by u/susam
pwagland · 4 months ago
Given that http://susam.net:8000 has stopped responding, I suspect that there will be a lot more beeps today.
pwagland commented on Xiaomi Car with Driver Assistance Crashes, Three Reported Dead   bloomberg.com/news/articl... · Posted by u/xqcgrek2
honeybadger1 · 5 months ago
the amount of miles driven with tesla fsd with no crashes is so significantly higher it's laughable to even draw the comparison, this data is even publicly available via the API.
pwagland · 5 months ago
An interesting tidbit is that FSD is almost guaranteed to turn off before any accident occurs. Last I looked, the data was not available to see how long after FSD deactivation the accident occurred.

Note: I have an older Tesla, and actually quite like it. I don't have FSD, but I do have enhanced autopilot (EAP) and like it as well. That said, it is very easy to believe that people ignore the road for longer than they should with FSD/EAP turned on.

The grandparent comment also didn't mention the split between FSD miles/non-FSD miles. It is possible that FSD is so good, that every Tesla driver becomes useless when they are required to drive for themselves, and that is what drives the higher accident rate.

pwagland commented on The April Fools joke that might have got me fired   oldvcr.blogspot.com/2025/... · Posted by u/goldenskye
tdstein · 5 months ago
Can anyone tell me how to setup a premium account? I can’t figure it out.
pwagland · 5 months ago
You have to insert 5c.
pwagland commented on Show HN: Searchable Vim Cheat Sheet with Favorites (Open-Source)   nvim-cheatsheet.vercel.ap... · Posted by u/lil_csom
lil_csom · 6 months ago
Hi Reddit,

As my school-funded GitHub education pack is about to expire, I have to let go of the InitelliJ IDEs and I decided to sell my soul and use NeoVim. I am already using Ubuntu after all, so why not continue the 10x cargo culting?

I soon realized that NeoVim is hard. I keep on forgetting how to do things. I figured the best course of action to take would be to start a project that I am writing entirely with using NeoVim... and I figured I'll build a cheat sheet for myself! I was not really satisfied with the existing cheat sheets as I couldn't really search in them and save my favorites to look them up later.

I decided to deploy it after all, so I can look on it on my phone as well. Then I figured, why do not I open source it, so the community can also help broaden this app?

I already feature a search by keyword, category and the favourites function. I plan to add popular remaps also and command breakdowns, to understand why and how eg. 'ggVP' highlights all the texts.

Perhaps I'll add guides later on too.

Enjoy! Now excuse me but I have to configure an LSP for JavaScript...

pwagland · 5 months ago
The free version of the IntelliJ IDEs are reasonably good, at least if you are using one of the languages that the free versions support.
pwagland commented on Why “alias” is my last resort for aliases   evanhahn.com/why-alias-is... · Posted by u/todsacerdoti
pwagland · 6 months ago
The other advantage that the article misses for aliases is that completions will work through aliases. So, in the case give for `alias g=git` typing `g <tab>` will give you the bash/zsh completions for git. You _can_ do this for the script as well, but then you need to code that up separately.

u/pwagland

KarmaCake day945January 23, 2011View Original