skysight-inc/HackerNews huggingface dataset:
vpshufb only accesses bytes within the same 16-byte lane and has latency 1. Instructions that shuffle bytes across lanes tend to have higher latency. So at the 16th position, a shuffle value of 0 (or 16, or 32...) gets you the first byte (byte 0) from the other argument, but at the 17th position, a shuffle value of 0 instead gets you the 17th byte (byte 16, or byte 0 of the corresponding 16-byte lane, if you like) from the other argument. This isn't really desirable behavior. Rather, it's somewhat awkward behavior that one has to work with to avoid doing a sequence of more expensive operations.

I am concerned that it takes like 6 instructions (2 to put copies of each lane into all lanes, 2 shuffles, cmpgt, blend) including a load and using an extra register to implement rearrange for use cases that would be fine with vpshufb for 32-byte registers and maybe 14 instructions (4 to put copies of each lane into all lanes, 4 shuffles, 3 compares, 3 blends) with 3 loads and 3 extra registers to implement rearrange for 64-byte registers. Maybe you can do better for the latter case though, I haven't had a thorough try at it.

A common use of vpshufb is to get a mask of character positions from a string matching a small set of characters, which you can do with cmpeq(in_slice, vpshufb(c, in_slice)), where the input substring in_slice is used as the shuffle and c is chosen so that input characters in the set of characters of interest (e.g. {'\n' '\r' '\t' '\"' '\\'}) map to themselves and other characters map to something other than themselves. rearrange doesn't seem to define what happens when indices in the shuffle are negative or too large, so it seems like to use rearrange we need to mask off some bits and do cmpeq(in_slice, rearrange(c, and(d, in_slice))) where the `and` is only there because of the nit about invalid indices and `rearrange` is 1 or 6 or 14 instructions depending on what register width we're working with. That could be unfortunate.

You don't need this stuff for sorting primitives though!
Any news that refuses to pay a ransom it seems.
And continuing into the resulting relationships
more whataboutism, unsurprising.

speaking of UN votes:

fewer than 3% of countries, representing fewer than 3% of people in the world, were willing to go on record saying they trust russia's claims and excuses when they said the same thing

can you guess who they were?

hint: one was russia
I used to think that as well but IOMMU is a thing now. Read strcat's posts, they're really informative. He's the developer of GrapheneOS.

https://news.ycombinator.com/threads?id=strcat
Is one of these 3 what you're looking for?

* https://meetcody.ai

* https://builtbyjesse.com

* https://slite.com/ask
Not used Windows for a while but as far as I remember everything defaults to the C drive. Seems reasonable to also put downloads there. That's where User folders go isn't it?
It’s nothing like dating. Employees need a paycheck. It’s an asymmetric relationship. This becomes very apparent during economic downturns!

There’s really no use searching for the perfect job when the market is flooded with candidates and you have young children and mortgage payments due, yet you have to act like every job you’re applying to is some gift you’ve been searching for your entire life!
See also: https://news.ycombinator.com/item?id=36176272
Yes, however meta and Google are inclusive of speech against the government. Under what grounds would wholesale ban be allowed then? The entire suit will fail and they know it. More waste of tax payer dollars.

If they care about this they can simply ban phones in their school districts.

This suit is analogous to banning fedex and ups because kids are addicted to mailing each other scandalous notes. Clearly will fail.

If there’s specific content posted by specific groups that are a concern the school should go after them.
This sounds rather counterintuitive. It seems to imply drinking hot drinks in winter would make you even colder, not warmer, which doesn't seem true. But this source indeed claims drinking hot tea under certain conditions can cause rather strong sweating, more than compensating the effect of the hot drink:

https://www.smithsonianmag.com/science-nature/a-hot-drink-on...
https://join1440.com/

I’ve been getting my daily news recap from 1440. It keeps to the claim of unbiased summaries and is the length I’ve been looking for.
This seems to be about a cache of compiled stuff where it'll cost $32k to move the data out of S3. So... rebuild the cache somewhere else and drop the original data?
Do you see any scheduling around off hours? The tools I was referring to specifically have this capability to schedule downtime for your resources outside of the hours when they are normally used.
You could easily reply that "dealing with technical debt" rather than learning about the existing code base is "jumping the conclusions," the conclusion being a rewrite.

A lot of this thread is this sort of thinking, that the comment author is the bright one and everyone else is a dunce.
I am not particularly happy with Flatpak - I still think it mixes up two things (packaging, sandbox), and is not particularly good at the former. Nix actually solves the former issue, and does so splendidly. I would much rather see better sandboxes for linux.
I remain optimistic that some people here are open to learning so I still try sometimes.

- Also a radiologist who gets told I’m egregiously overpaid when [insert immature AI tech] can definitely do my job better.
Or rather that our specialness can not be based on intellligence.
Is absolute purity a requirement?
Frankly this is an argument for govt enforcement of not wearing shoes in the house so natural selection can take care of some of the problems that society cannot.
I used to be like you. Still have dozens of hardware and software "prototypes" languishing in drawers and random directories.

I'm addressing the problem by making sketches on paper (yes, very old school) and writing rambling "design" documents before and during my work. That way, I am better able to focus and if I do abandon a project, I have some scraps from which to recollect my original thoughts should I attempt to restart a project after I have gained some applicable experience or knowledge by working on some other idea.
LLM Itself Can Read and Generate CXR Images
> Illusion involving a hidden thumb confounds capuchin and squirrel monkeys for the same reason as humans – it misdirects the expected outcomes of actions they can carry out.

To be fair. As a human I would state you expect it to be a trick (a very easy one to spot in this case) and you can easily infer that the coin just _drops_ into the hand it was to start with. It does not feel that it has anything todo with what actions you can carry out. The coin is either grabbed by the non-coin hand or not, it depends on the magician, right?
https://archive.is/LpjVV
I second poke. It's an amazing tool for debugging in general.

It's relatively rare to look into standardized binary formats (you'll likely look directly into a library at that point), unless you're writing a writer/parser/decoder yourself and need to double-check the output.

When developing with general binary data in mind, poke is much more useful.
I see there's a whole playlist:

https://www.youtube.com/playlist?list=PLrAvDZ9sYjXaF05SYkTJ3...

and the automatic translation seems not bad.
Even more whataboutism

to get back on topic: russian soldiers have been found by UN war crimes investigators to have raped, tortured, and murdered men, women, and children as young as 4, in areas of Ukraine russia controls[0]

(this child rape by russians is in addition to genociding Ukrainians in general -- and I'm not referring to russian deportation of Crimean Tatars [1], or russian killing of millions of Ukrainians in the Holodomor [2])

[0]: https://www.nbcnews.com/news/world/russian-troops-raped-tort...

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

[2]: https://en.wikipedia.org/wiki/Holodomor
AppImage is also troublesome. I just spent a good while debugging ours.

The TL;DR is that AppImage amounts to a self-extracting archive, and you need an application where all the binaries and libraries have a relative rpath. So rather than loading /usr/lib/libz.so, it uses $BINARY/../lib/libz.so.

That part's not too bad, but what can cause a lot of trouble is that there's a fair amount of stuff that uses dlopen at runtime. So you might find that you think you packaged everything, but then the app loads some module from the host system, the API isn't compatible and it explodes in some confusing fashion.

So yeah, Linux app distribution is a pain no matter what it seems.
> It doesn't make sense for every single distro to maintain customized versions of user level applications now that we have one package that works everywhere.

It does make sense for at least one distro to be offering this, as there are numerous reasons to favor the traditional linux distro way of doing things. Flatpak is better for a lot of use cases, but it's missing a lot by not having a centralized system of checks and balances provided by a Linux distro.

Fedora Flatpak brings back a lot of the advantages of traditional Linux distributions, but unfortunately Fedora/RHEL likely won't be maintaining a Fedora Flatpak version of LibreOffice.
We need to face the hard truth that human conciousness might simply be statistics. And it terrifies us.
You don’t need malicious app to cause harm without a sandbox. Malicious data with a bug is enough.

Sandboxes should be the must in this century and mobile OSs are much more ahead here.
DARPA finna be slipping past some sonar nets and listening to some rock and roll while conducting missile drills (or whatever the equivalent is for modern Russia)
I posted a much more concise derivation (and implementation, in just 16 lines) on HN a while back but didn't gain much traction:

https://news.ycombinator.com/item?id=35899215

Here are the 16 lines in full:

function sprung_response(t,d,v,k,c,m)
local decay = c/2/m
local omega = math.sqrt(k/m)
local resid = decay*decay-omega*omega
local scale = math.sqrt(math.abs(resid))
local T1,T0 = t , 1
if resid<0 then
T1,T0 = math.sin( scale*t)/scale , math.cos( scale*t)
elseif resid>0 then
T1,T0 = math.sinh(scale*t)/scale , math.cosh(scale*t)
end
local dissipation = math.exp(-decay*t)
local evolved_pos = dissipation*( d*(T0+T1*decay) + v*( T1 ) )
local evolved_vel = dissipation*( d*(-T1*omega^2) + v*(T0-T1*decay) )
return evolved_pos , evolved_vel
end

And the embedded interactive demo in the blog post:

https://www.desmos.com/calculator/ynbtai98ns

I'm hesitant about reposting as all of my submissions had been inexplicably blocked by HN filters, by the time someone vouches the post it has already been buried.
AWS Shifts Strategy: Public GitHub Documentation to Be Retired
Even the creator of the defacto standard document format doesn't ship the ability to read it out of the box. Neither does the other major desktop operating system vendor.
I've recently quit Twitter and Facebook, and I must admit that these apps are mentally addictive in the same way that cigarettes are addictive. I often think about them when bored, wondering what I'm 'missing' with my friends or followers. It's taken a level of mental strength to avoid re-installing or re-activating in both cases. So in my view, the addiction is 30% of the argument. The 30% is that they cause harm, and remainder, which I agree will be more difficult to prove, is that it was done with intent.
Live laugh love hnarn,

Perhaps you need a badge like this in your life to bring you joy on your repos
The quote from Charles Ardai bugs me. The original was a fun game. Women in video games were at that time (and still are? I don't play anymore) consistently over-sexualized, but it was never why I played a game, and I really don't think most gamers buy games just because because of the size of the main character's chest. Yes, the main character has to be cool and interesting, and Lara Croft is. They gave her an interesting backstory, and the rich British angle made her a cross between James Bond and Indiana Jones (and maybe a little bit of Batman).

Maybe it is just me, but the implication that my buying decision are based on something so puerile is just so damn insulting.
Australia is wealthy because it is digging up its coal and iron and gas and exporting it.
It is particularly galling when the interviewer either assumes it is an easy question now that they know the answer (especially if they did not figure it out themselves), or does not understand the subtleties that a more perceptive person realizes must be dealt with before reaching a justifiable answer.
This claim is baffling to me. Are you saying without state intervention Amazon wouldn't just buy out every potential competitor or drive them out of business using currently regulated tactics?
At least some of those buildings are houses. Do you think what color homes are painted has more to do with marketing or culture and geography?

How about the clothing choices. I see a lot of grey. Do you think that’s an unconscious choice due to lack of marketing for bright clothes?

The red in clothing does stand out, but as other posters and the article say: red was closely associated with the communist party so using it is a political statement of solidarity, not a free fashion choice.

Marketing may have an effect on making western cities more catching than they otherwise would be, but communist era Russia isn’t a good example of what that would look like. Due to other constraints (e.g. government control of factories and design industry) people were not really given free expression. This is an economic factor forcing an aesthetic. Similarly, if you live next to a quarry, you’ll have a lot of polished marble buildings in your town. This isn’t because you love white marble, but because it’s far cheaper than trees to you.
As long as those deprecation errors a are accompanied with an upgrade guide detailing the deprecations, you can't be blamed for anything.

I'm sure people will upgrade willy-nilly and still call you names, but at least they've had plenty of warning.

Besides, if your program doesn't work on their test environment after updating because it needs some extra config to enable legacy behaviour, their update process will have to slow down (alter config and retry) but no serious downtime will occur.
Too bad that jq has such a shitty, convoluted syntax.

Could have definitely chosen one of the many alternatives to jq that also worked with JSON but did so in a much clearer and more elegant way.
That's actually very likely.
Not to diminish the achievements of these people but I suspect being in the right place and time has a lot to do with it. I suspect that for each of the names you cited there are a thousand others who were equally as technically skilled but who you've never heard of.

Wozniak, as I understand it, is best known for creating elegant and highly optimized designs for the Apple I and II circuitry. That may be a rare skill, but I don't think it's nearly as rare as the vast gulf in fame between him and the typical EE would lead one to believe. He became famous because he used those skills in the exact time and place where they mattered most, creating one of the first usable computers that was affordable for the middle class.

Torvalds didn't create Linux ex-nihilo. There was at the time an extensive literature on the design of Unix/Posix systems on which he could lean, as well as the example of Minix, which as I recall, is largely what inspired him to create his own clone of the Unix kernel. The reasons it became as successful as it did are numerous. Part of it has to do with that work being done at the time the Internet was enlarging the number of people who could access and contribute to open source projects. It also coincided with the GNU project being at a stage where it had already developed many of the user space tools for a fully open source Unix-like system but was having trouble getting a kernel off the ground. Note also that a key ingredient of his success beyond his technical competence was his ability to shepherd a world wide group of open source collaborators, keeping them all moving in the same general direction.

I don't know as much about Jeff Dean's history but I do know from experience that there's a lot more to being successful in a corporate context than just technical competence, or even, I suspect, genius. It's rare that one person can create an entire system on their own (though it does happen that one person's work can establish a framework for future contributions) and moving beyond the work of one individual requires a whole additional set of skills.
> In this case, you should split this book into many mini-books, each one focus on one level of audience instead.

FTA:

1.7 Organization of the Material

Because this book covers what would be considered multiple semesters worth of material at the tertiary level in the USA, we have divided it into seven main booklets. Later booklets depend on some earlier ones, but the earlier ones can be treated as a stand-alone book that arrives at a satisfying ending for a student or course that does not proceed further.
I only know 1-2 NZ radiologists but I understand the system there is egregiously underpaid.

Medicare/insurance reimbursement rates for MRI (the professional fee component) are less than Canada (a system I know).

We scan outpatients near 24/7 on some of our magnets in Canada, the ones we don’t are because we don’t have MRI technologists to staff the shifts (the more expensive part as they have unions with labour laws, radiologists can be worked like dogs with no benefits/protections as contractors).
How does that idea fit with real-world China which runs a state-capitalist economy under an authoritarian communist rule?

China has done what needed to be done to realize what is an unprecedented economic miracle, especially considering it's a socialist country surrounded by a hostile capitalist world. They chose to be pragmatic and it worked incredibly well.

While China certainly has capitalists and bilionaires, they are kept in check. China also set a 2050 target to fully transition to socialism.

You are right though that authoritarianism seems to be a pre-condition both for communist and fascist regimes.

Every society has a ruling class. In fascist societies it's the military together with the capital, in liberal societies it's the bourgeoisie, in socialist societies it's the working class. Authoritarian societies use force to maintain order, liberal societies use the illusion of choice. When that doesn't work, they promptly revert to force as everyone else.
I guess you and I disagree on what "make sense" entails.
Show HN: Lingfo – Foreign function interface for any language
I never looked at karabiner's full functionality, but kanata is the closest thing to a linux version of QMK. It can kind of be used for hotkeys, but that's really not its purpose. Better to use a separate hotkey daemon.

Keyboard Maestro would be replaced by one or more completely different tools. There are programs that allow application-specific mapping. I've never seen the point of it, so I can't comment if any of them are any good. What are you looking to do? As someone who uses the keyboard for everything, my experience so far has been that macOS is much weaker at this.
What if it's an anonymous website that offers to pay anybody (via difficult to trace cryptocurrency) who uploads proof that they voted for a particular candidate/party?
They can, just not alone. If they were to unionize in sufficient numbers, there would be nothing to do but meet the demands. But “unions are bad” is the prevailing belief in the US, not to mention the huge amount of efforts that companies and the government go through to suppress them.
You can have a separate load check endpoint (doesn’t even need tls) for clients to check if the client can go ahead with a websocket (re-)connect. The load status check can be served directly by the web server from memory and the connection can be closed immediately after responding so it’s super fast.

And if the servers are so overloaded that the load level endpoint fails to respond? That’s fine because that’s answer also.
I've encountered this too, where I was interviewed by many of the team I would be working with, and was considered a good fit, except for by the one high-standing academic type, who didn't. In that situation, I knew I wasn't impressing that person I was just being myself. Maybe I was subconsciously testing they're openness because I remember I would use a certain word/expression and they would rephrase it and instead of mirroring their phrasing I would say it the way I thought of it. It wasn't so much about being right/wrong but maybe not rocking the boat or just 'be like them'.
Do you have access to the program that reads the data? If so, you can use a debugger to step through the parser for the file, even if symbols are stripped [1]. You can breakpoint on syscalls, such as when the file gets opened [2] and then step through and look around memory for the decrypted version. If you have an idea of what the file should contain you can probably identify patterns this way.

I'm not an expert on this topic at all though.

[1] Of course you then have less information but it's still possible to see the assembly while the file gets parsed. See for example,

http://felix.abecassis.me/2012/08/gdb-debugging-stripped-bin...

[2] https://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.ht...
People still use TCP wrappers? I thought that went out of style 20 years ago.
It would be cool if Node.JS could be used to directly write to IoT (I mean, probably could with a native addon / extension / dot-node -- but maybe the API would be funky because of funky kernel level APIs?). But there are coroutine libraries in C.
They had an ice cream factory in their town. Sounds great
Presumably this isn't actually true though? Like if you buy 5 shares, someone else's brokerage account goes down by 5 shares at the same time. The transaction is recorded on both sides, isn't it? Should be possible to establish who the seller was.
If by "given up", you mean still investing more (sometimes far more) into desktop Linux than practically anyone else.

Desktop is simultaneously not a large priority for Red Hat, and even less of a priority for every corporate player that isn't Red Hat.

RH is still doing a lot of work on things like Pipewire, Wayland, Flatpak, Gtk, Gnome, AMD graphics drivers (David Arlie wrote RADV), making the Nvidia graphics drivers situation suck less, Mesa, etc. They were doing nearly all of the Xorg maintenance too and nobody really picked it up after they stopped.

The only company with a comparable level of investment in desktop Linux is maybe Collabora or (to a lesser degree and with a much more restricted focus) Valve
And frustratingly they could, if the current system of renewable wholesale prices being pinned to the most expensive, fossil fuel, prices were removed. There’s some complexity there because building of renewable generation is incentivised via being able to charge more for it, and therefore break even on the investment earlier, but it certainly seems like that would have been a better move than the government just outright subsidising massive price increases, thus transferring money directly from taxpayers who are feeling the pain of inflation to some of the richest companies in the world.
> This is probably true. Adults too. Defense is going to say that its up to parents and guardians to police the use of these apps. That argument didn't work with cigarettes and alcohol, so I'm guessing won't work here either.

But cigarettes and alcohol is legally age restricted. Or did that happen later?