skysight-inc/HackerNews huggingface dataset:
That doesn't sound right. Codeweavers has been shipping fairly recent version of DXVK alongside with MoltenVK since CrossOver 20. On community side there's Gcenx/DXVK-macOS[1] that patched DXVK to work with some of Apple GPU quirks in some games and closely track upstream.

[1]: https://github.com/Gcenx/DXVK-macOS
Unit Tests are a colossal waste of time 80% of the time, and at least 80% of that time should be spends in thinking how to make your system debuggable.
Brazil seizes iPhones from stores while the EU which has a lot more leverage forces Apple to switch to USB-C altogether. All countries look after their own best interests and use legislation to counter every perceived threat to their local economies. This is the same reason why the Biden administration is banning China from acquiring high end chips from NVIDIA, AMD and other U.S companies.
-edit: fixed small typo
If you do it smart they won’t be able to prove any wrongdoing. E.g. your second job should be contract work through your own offshore LLC, so you won’t show up in The Work Number and similar databases.

A different evasion tactic could be getting paid in crypto.
Why would anyone create a new account just to post that, on this thread? I really want to understand.
Factorio runs quite well on the M1. The graphics system (FPS) is partially decoupled from the factory simulation side (updates per second, or UPS), so there are two components to performance. UPS mostly depends on how big and complex your entire factory is, and on what mods you're running, and FPS mainly depends on how many sprites are on screen. FPS is limited to be <= UPS, since there's no point in redrawing until the game state changes, but UPS can be greater.

FPS: Despite being a 2D sprite game, sometimes it has trouble keeping FPS at 60, at least when running at max graphics and max zoom level with a graphically intensive mod. I would guess it's using OpenGL, and Apple's OpenGL stack isn't great. You can see the article mentioning the M1 Max only hitting 45 FPS in one of the tests, and this is without mods (but with a huge base and presumably a wide zoom level). In my experience, if you adjust the graphics settings appropriately (eg max sprite atlas size and max vram usage, since integrated graphics use unified memory), you can usually keep it at a smooth 60 FPS 99% of the time even in graphically-intensive setups with max or almost-max quality settings.

UPS: Scoring 199 UPS on the flame_sla 10k base puts the M1 Max above any other laptop processor for that benchmark. This matches my experience: the simulation part of the game almost never lags, except for unavoidably heavy operations (eg generating new worlds when playing with mods that do that). See a comparison at:

https://factoriobox.1au.us/results/cpus?map=4c5f65003d84370f...
Bankman-Fried being invited to speak at a New York Times event alongside Yellen
Property rights and such are secondary. The primary issue is: who has the power? Right now the answer to that question is "US", but since China is catching up on GDP, and, unlike US, actually manufactures things. If China decides that they want payments for all the goods that they export to be in RMB then there's nothing the rest of the world can do about it, except stop all the imports from China (which would take decades, because they have to learn to manufacture all those goods themselves). Once most of your imports come from China instead of the US it does make sense to use Chinese currency as the reserve currency, since you are going to need a lot of RMB to pay for your imports anyway.
Veritasium has a recent video that goes into the algorithm a little bit. So does 3blue1brown. But basically anything that processes signals digitally will probably use the FFT somewhere. But even outside of that, you can use it for some kinds of matrixes in linear algebra and probably many other places :)
Everyone has test environment. Some people also have production environment!
> All platforms hate speech policies go beyond the law in the USA, not just Twitter's.

Correct, one of the provisions in section 230 permits this, but Elon Musk is now saying anything that is not illegal, but also showing charts that show the reduction in hate speech, so which is it?
It doesn't really leak a release date, just when they say they plan to stop making Activision games available on Playstation. IMO it's ambiguous about whether that means they'll continue to make new games for the Playstation platform as soon as the merger is concluded, it could be that they are just allowing the back catalogue to remain up on PSN until 2027.

A 7-year release cycle is normal though.

PS2 - 2000

PS3 - 2006

PS4 - 2013

PS5 - 2020

Xbox - 2001

X360 - 2005

XB1 - 2013

XB-SX - 2020
For people saying that this is a sign of the dollar dominance ending consider this.

Gold is valued in dollars.
Oil is valued in dollars.
Any gold for oil exchange will be decided by the going dollar rate of each.
Counter parties and middlemen assisting this trade will be hedging their positions with dollar settled derivatives traded on deep and liquid dollar markets.
From a mobile, you can. And anyways, I would actually be even less confident that Google correctly implemented 112 support than 911.
Sorry, but this seems extremely disingenuous.

The industry uses Direct3D on Windows and XBox, Metal on Mac and iOS devices, Gnm on Playstation, and Nvn on Switch.

Aside from a subset of Android, what popular platform uses Vulkan by default?
It's not quite the same because the helpdesk person is probably paying a sizeable chunk of their salary on tuition. Presumably working in science would scratch that itch for you, so number to compare against is whatever you'd make elsewhere, minus what you spend on tuituon, minus however much it's worth to you to be able to focus on the science and not have to balance your time with some unrelated job.
I thought about that and nearly didn't make the post but I still think it would be worth it.
it would be fascinating to see a plot of toxoplasma gondii hitting the first page of HN vs time.

It seems periodic, and i'm not kidding. (kinda like Jodi Foster in Contact with the headphones on)

Not this time, but usually it's a revelation about the protozoan with mice being fearless around cats, or about humans living with cats, with associated proposals of drama, perhaps to drive pageviews.
We're supposed to be reporting Linux crashes?

I always assumed the fact I can reliably break Linux on Laptop A with Docking Station B by doing Action C was pointless to report, because how is anyone supposed to reproduce it if they don't own Laptop A and Docking Station B?
I just bought an iPhone yesterday, and the charger no longer comes with a standard USB A port. It comes with a lightning-to-usbC cable, which it suggests I plug into my MacBook to charge. I do not have a USB-C outlet, so I either need to get a USB A to USB C adapter or a USB-C charger port if I want to plug my phone into the wall.
Although I'm not sure the Twitter to Mastodon migration makes sense for everyone on Twitter, I think there will be a good chunk of people that will use Mastodon more frequently than Twitter.

Also, other disgusting decisions from Elno will certainly trigger more influx spikes.
> I don't think we have any non-recursive code abstraction tool.

Mircoservices, Projects in a monorepo, Infrastructure as code, ...

Sometimes they don't even have abstractions at all.

And there are whole companies being built to make these things even remotely managable.
> to think you need to provide extreme value to your employer because of "the times looking tough" is the media scaring you

I would say first try to provide as much value for yourself by building something that you own.

But trying to provide extreme value by working intensely is not a bad way to face life I would say. I want to work 8h hours (or less!) but I want to run hot all the time while I'm doing it. What's wrong with that?
If you have 26 minutes spare, Veritaserum's video [0] on the history of FTs and FFTs is quite good.

Effectively, a Fourier Transform can turn a signal into its underlying frequencies using a neat property of maths. For a piece of music, say, you could produce a spectrogram [1] – Foobar2000 [2] has a nice one built in – to visualise the frequency of music with time. In general, this is all sorts of useful applications any time you have a signal – electronics, climate physics, astrophysics, detecting nuclear explosion testing underground, and so on. It's essential to modern medical imaging, and a whole bunch of differential equations can be solved a lot faster by using this.

The FFT takes the naive O(N^2) algorithm and makes it O(n log n) by bunching together repeated calculations, so if you have a million samples, that's some 70,000 times faster. At the time of its discovery it was critical for Fourier analysis to actually be reasonable to do on a computer, taking days instead of years.

[0] https://www.youtube.com/watch?v=nmgFG7PUHfo
[1] https://en.wikipedia.org/wiki/Spectrogram
[2] https://www.foobar2000.org
I'm building one too, and plan on open sourcing its code.
Pretty much every developed nation has came out and said their recycling process is just not actually recycling.

Side note: I bought a Yetti Rambler(tm) insulated bottle, one of my favorite things in this world. I've not bought a bottled since.
The whining is insufferable at this point. Cruel? Quit. Nobody’s is making you stay.

If you’ve worked at Twitter, you are one of the richest people in the world. Take those 1337 code skills somewhere else and stop complaining.
2 billion people already have the Toxoplasma gondii in their brains. If it were to affect humanity is some profound way, we would have already linked it to something more substantial than n=197 studies of correlating success in entrepreneurship to the virus.
Deathloop is on XBox Game Pass so definitely not an exclusive...
Producing a Go parser from the language specification mechanically, mostly
It’s impressive to see T. Gondii evolve to influence their hosts to write positive PR.

Joking aside, it makes sense to me that higher risk behavior on the host’s part would increase a parasite’s spread, since some of the energy that drives risk also increases the rate of physical interaction with the world; like a free roaming particle with a lot of momentum on a substrate. It is good to see more research looking into this since this seems to be low hanging fruit compared to possible compound effects of t. gondii influence on society.
Sometimes it’s just a big-ass software project which should never be touched.
> Do you really need tests for the read(2) syscall when Linux is running on a billion devices, and that syscall is called some 10^12 times per second globally?

Yes, you do, because otherwise you will find that some change or new hardware will break it.
Guys, I am not a software engineer but I hope you make it difficult for people that chose to stay at Twitter get other jobs in the future unless they had a good reason like H-1b/immigration or lack of job offers elsewhere.

People talk about how managers and CEOs will react if kelon succeeds, but it is at least equally important to think about how employees might react. Any move in my org in this direction and I'm jumping ship right away, I may not even waiting until I get an offer elsewhere.

Few things piss me off more the "genius jerk" like kelon. Like, I like to think I am a peaceful person but people like that, I just want to destroy fully. Instead of being humbled and grateful for your talent and celebrate your hardwork and help others get to where you are, you use your accomplishment as an asshole badge.

If you want to understand kelon or anyone really, but especially leaders, you must understand what their life and experience was during their developmental years(12 and under). Examples include: trump and how his father treated him when he was a kid, Putin and how he grew up in the shadow of his WW2 war hero brother or Xi and how he grew up in the middle of the chaos of Mao's great leap forward. Elon Musk (kelon) grew up in apartheid south africa in a rich emerald mining family, jewels are why apartheid existed basically. when you see that and his relationship with his parents , suddenly you see how he sees employees and bosses and how things should be done to increase wealth and why his companies are uniquely racist infested to the point several lawsuits (repeatingly across jursidictions) over racial hostility keeps happening against Tesla.
> stopped working for me when I graduated high school and entered what some may call the real life

> future of finance wet dream doesn't actually ever scale to 1% of what's needed, stop burning fossil fuel, and find a new hobby, ffs

This just seems needlessly vitriolic rather than a substantive argument.

I gave you a protocol that doesn't "take 30 years" and you say it's a pipe dream.
> There is the idea that anyone that wants to be a leader probably shouldn't be a leader. These are the types of people who crave being in positions of authority over others.

Which is why it's helpful to have as many (what I refer to as…) "power traps" in a society as possible: coaching, teaching, leading an HOA, leading a PTA, etc.

I have nothing against these endeavors, you must understand, but my view is that a person spending time acting as a judge for a dog show is less likely to pursue becoming an actual judge.
Apple just asks gaming companies to put unreasonable extra effort by not supporting Vulkan so no wonder more and more decided to fuck that platform.
> with the x86_64 build necessarily running in emulation

Rosetta 2 is not emulation, at all, it's AOT, static binary translation, backed by hardware that implements Intel specific behaviour from the latest chips down to the oldest 8080 or something. It's eerily fast.

In fact, it happens that arm64-translated x86_64 running on Apple Silicon can often be faster than x86_64 running on the latest Macs with Intel processors.

So you really have to ask two questions here:

- does the x86_64 Factorio build run faster on Apple Silicon than on a comparable† Intel?

- on Apple Silicon, does the arm64 Factorio build run faster than the x86_64 Factorio?

† whatever that means
This is a great talk on it https://www.youtube.com/watch?v=8_t41xvPp1w from systems we love
KISS is also my experience.
It NEEDS to be simple because maintaining code a year or more later you need code you can easily grasp.

The job descriptions of 99% of companies don't reflect that.

"It needs to be as simple as possible but not too simple"
Saudi Arabia (to pick a major oil exporter) imports about 20% of its goods from China. But it also imports vastly more from regional partners and the US and Europe, not to mention that it depends on the US to secure all of its oil exports to China across thousands of miles of vulnerable ocean routes.
CS person with biology PhD here. The mix of biology and computation is huge, and with the right skill set, interdisciplinary unicorns make tons of money. If you want to see how computation and biology mix, first dive into a standard university Intro Biology course, and then with that foundation, look into computational biology & bioinformatics (they're distinct). You'll find that genomics is only one piece of a much bigger and absolutely fascinating story.

To get that basic biology foundation, another post mentioned an EdX Intro Biology course, that would be a terrific start, or just get a recent university-level intro biology textbook. It's not terribly difficult material and you'll be in far better shape than reading a biology-for-laypersons pamphlet.
Bitcoin, Ethereum and Monero

You're welcome
In other words: unit testing requires that your code is a unit.

i.e. does not depend on external timing or fickle hardware.

Very, very difficult to unit test someting that runs using hardware interupts.
If you want to claim that Direct3D is king, I'll agree with you. I'm merely pointing out that all of the DirectX libraries are fairly irrelevant when they run just fine without DirectX.
I don’t use Windows, but LispWorks is well supported on Windows, macOS, and Linux. I bought the macOS version and pay the yearly maintenance fee. It has a good portable GUI library called CAPI and creates small standalone executables.

LispWorks is expensive so try the free version for a long time to make sure it is right for you.

For macOS and Linux, the open source SBCL is excellent and there are libraries to use TK or web apps as GUI interfaces.
I worked at one place that had so many mocks, your tests were barely testing any real code. In one case, a dude checked in a 5000 line test suite for an "internal API." The server was mocked. All the tests were doing was checking that calls echoed back their own parameters. What was the point? Well, the API client now had 100% coverage.
Is it weird if I would be *thrilled* to work with a manager like that?

People here have great arguments against tests. I agree that they’re not always useful. Aiming for 100% code coverage is a waste of time.

But if a manager wants easily measurable metrics to hit and they have the budget and bandwidth for it, why should I complain?

Writing tests is easy, predictable work. My rate is my rate and if this is how management dictates I spend my time, I’ll take an easy couple weeks and paychecks any day.
Basically everywhere. Honestly the texture of the meat is pretty unappealing. It's obviously always quite moist and squeaky, but I'm English so I'm used to a chunky sausage meat. I've tried everything from a proper Döner place, to a microwave pack, to a Jazz fair which has proper crispy skin and came with great curly fries, to the best reviewed one in Hamburg near the Reeperbahn, and some of those were really good, but the actual basic product of "squeaky homogenous German sausage" is generally just not a great thing. Yet somehow I always crave it, and have got it quite often.
I agree 100%. I'm not expert on the subject, but their economy hasn't been doing all that great as of late and deep reforms are definitely needed!
Are there any 5nm Intel processors to compare with? I think an AMD chip might have a more comparable performance profile.
Oh come on. "No comment" is always what a company says in a situation like this, where saying anything else might hurt them in a future lawsuit. It doesn't mean they don't care, it means they have lawyers with the bare minimum level of competency.
Twitter's only argument could be that this wasn't a mass layoff assuming the numbers check out, IIRC less than 50 employees at a work location (whatever that means with all remote work). Musk bought the company about 30 days ago, so it couldn't have given a60-day notice since. And I doubt that these employees were laid off "for cause", otherwise all layoffs would be for “not satisfactory” and avoid severance. Of course you're screwed if you're here on a visa that doesn't let you fight this.
China can't tank imports until they finish pivoting to their own internal, consumptive middle class. And probably not even then.

The plan the international community hoped for is actually somewhat working, the timeline for China's giant population to metabolize it was just wrong.

Large Chinese middle class = power = political risk to disrupting the economy = incentive not to rock the international trade boat's status quo.

The CCP is already seeing with the anger over zero-COVID that {middle class life} >> {good of the Party} for most of the population.

Unfortunately, China probably also learned from the USSR that the entire charade only collapses when you blink and refrain from using the military to crush civilian dissent. Which doesn't bode well for Chinese citizens...
[BSD systems do](https://github.com/openbsd/src/tree/master/regress/sys)
> I mean they kind of say in there.

Right, but like -- how do we know that's bad? Could it be that covering the ground is actually _better_ for certain species to thrive which has a net positive effect on the ecosystem (I don't know, but it's not clear from the passing mention that garlic mustard is out-competing other species.

The idea that we could return to a world where there are only native species in an ecosystem is totally insane. I'm not suggesting that we should let all native species die off, or be left to fight it out for themselves without human intervention. But focusing on presence of native species as an indicator for ecosystem health doesn't seem to be a helpful measure.
This is obviously about autotune's evil empire. Right?
Do you know why/if a sanitizer is not enough to catch these bugs at runtime (and during their automated tests)?
The problem is those free and open-source tools may simply stop existing and all the skills the students learned with those programs could become completely useless. Germany, somehow, is a decade behind most of the other Western industrial powerhouses in terms of digitizing. I think the constant flux and reluctance to just move on is holding them back.
I should have been more clear, 25% is their average annual revenue growth over the last decade. Obviously there have been good years and bad, but in 2021 they hit 37%, so the capacity for big growth is clearly not in the past.

Elon bought the company for $44 billion, so he too clearly agrees that the potential for growth is high.
IIRC from the benchmark M1 have some truly great single-core performance. Then again Apple stuff is so fucking expensive you can get faster for cheaper easily...
Copying is not and will never be theft.
New mathematical model could help avoid spattering squeezy sauce bottles
Hey, I wrote an article describing the difference between FAISS, which is a library, and Qdrant - a proper database: https://lukawskikacper.medium.com/i-used-faiss-so-you-dont-h...

TLDR: using a vector database for production systems really pays off, as library is hard to maintain in a long run
Ask HN: What are the most memorable code comments you've encountered?
Most of the code bases I've worked in haven't been well documented. In the few that have been, most of the comments have simply stated the obvious. Maybe once or twice a year I'll run into a gem.

What comments have you stumbled on to that are most memorable for you? For whatever reason - maybe they were insightful, maybe they made you empathize with the poor engineer(s) who came before, or maybe because it was past you who wrote it and you completely forgot about it.
> The vast majority of production failures in kernel code are due to race conditions and other timing-specific issues, which unit tests are extremely poor at reproducing in a way that mimics how the code is used in real life.

Is this not due to the legacy of a language that allows race conditions? Take Loom [1] in Rust which is a tool to test your concurrency primitives, ensuring that deterministically all interleavings are tested and verified to be sound. Then, when you expose a safe interface, you know that the only potential issues you have are user logic errors or not covering the entire problem space with your tests.

https://docs.rs/loom/latest/loom/
I totally agree. I use my Instapot all the time.

Another game changer for me is the Anova Precision Oven. Baking with steam and the ability to quickly and precisely switch between different baking methods is great.
A patch is the ultimate configuration mechanism. So in practice, everything is supported if the instance wants it badly enough.
> It is good to know that your base64 encoding function is tested for all corner cases, but integration and behaviour tests for the external interface/API are more important than exercising an internal implementation detail.

I think that this heavily depends upon the part that is tested or not tested. For certain parts in the kernel, such as the firewall, I truly believe, that such tests cases (including corner ones) shall be present.
Factorio is basically programming. It doesn't look like it, but it is.

Well worth trying.