skysight-inc/HackerNews huggingface dataset:
Mocks are especially useful when you want to test code heavy with dependency injection.

I like to say that normal tests where you test by passing in params and assert the result is outside in testing.

Mocking is inside out test. Follows naturally from dependency inversion of di. You want to assert your function is making the right calls/params to it's dependencies interfaces from inside.

In your contrived example there is not much value in knowing whether "ns:key" or "key" was used. But if you those are params to some external RPC suddenly this actually becomes pretty useful.

Providing working fakes for every dependency isn't always realistic.

Should I really spend time building a fake of Stripe. Or should I just assert the request I am making to it are the expected ones.

TLDR: I only saw the value of mocks when testing DI server code with many external service dependencies.
US-China competition to field military drone swarms could fuel global arms race
It’s interesting how, most if not all, hospitals have switched to use Mychart https://www.mychart.org!
I disagree. I think it’s specifically because of Elon now. Blue lets you post really really long tweets. Thats potentially interesting and useful. But Elon has abused and changed and reverted what “verified” and “blue” means so many times that I think that’s where the objection to involuntary signaling comes from. Even this change is specious and not about the product… it’s about his continuing sad attempts to increase revenue, and perceived usage levels.
Even if you measure that way... again... most software industry businesses fail/disappear from the market. Outside of the largest companies, their business solutions tend to be transient.
I’m blown away by these responses. I took adhd meds and did not get a whiff of a high, but chocolate and even maca I can detect as getting me high.

Now I wonder if people with adhd with different etiology are just “treating” it by getting high.
I've been a long time user of devenv.sh and can definitely recommend it as a nice wrapper around nix.

I often want to have some packages/tools installed when I'm working on a project and docker isn't always the right fit, which is where devenv comes it.

I basically use it as a generalized version of venv.
People have dirty, dirty hands.
Gave me [2,1] which is not possible
The newer ADHD meds are not stimulants and are not addictive.

Maybe ADHD has "boomed" in """popularity""" because a disorder that used to be diagnosed as hyperactivity and a deficit of attention actually turned out to be a quantifiable problem with executive function which exists in a known part of the brain, can be quantifiably treated with medication and therapy, and if untreated results in very confusing problems with emotions and motivation for as long as you live.

It's not as if ADHD doesn't exist. I'm speaking off of what was apparently state of the art 10 years ago. https://www.youtube.com/watch?v=YSfCdBBqNXY

I'm hoping today, in a matter of hours, to get prescribed one of these new non-stim drugs, because the stuff described in that video very much matches my experience.

Maybe thinking that ADHD is made up has boomed in popularity because of the South Park and King of the Hill episodes that downplay it. Imagine learning medicine from cartoons.
I'd stop it at "because of knowledge"
? Yes, food and energy are vital to national security, that's why we have stuff like farming subsides. But that's not the only thing that goes into an economy. No one cares that China dominated in polyester production. It makes total sense to guard certain key industries.
> residue ... smells absolutely vile.

I use a timer to stop the distiller before the water boils dry. I recommend you do the same.

> I went with [distillation] instead of a filter after finding out most filters use plastic mesh screens, that actually increase the amount of plastic in the output water.

Same here. Brita and RO use plastic cartridges and housings. My distiller is nothing but stainless steel and glass. You can't beat that level of reassurance about the complete lack of microplastic contamination.
What are they going to use? RISC-V?
> The t-shirts are weird and made me lose a lot of faith in their org. The way I look at it is instead of making their products better, they flushed a bunch of money down the drain for t-shirts and its offensive to paying customers who are paying because they enjoy the product and want it to become better, they don't want a t-shirt.

Kagi founder here and I want to clarify the train of thoughts around Kagi printing and giving away 20,000 t-shirts for its users.

- Kagi is not a typical VC funded startup.

- It is company I bootstrapped by going all in (meaning I put millions of dollars of my money into it).

- After all these years building it, we are lucky to have such incredibly passionate user community.

- That community is 100% responsible for Kagi's growth as a business through word of mouth (Kagi does no paid advertising).

- We are also famously taking a firm stance against ad-tech, so conventional advertising is not something I want to do.

- To do something as crazy as to start a company that builds a paid search engine and browser you obviously need to be thinking out of the box.

So combine all of this together and I thought that sending a t-shirt to all the people who supported us along the journey made a lot of sense.

The only thing I did not count on is how difficult will be to pull this off as I did not want to settle with less than premium quality for these t-shirts. As a result they will be delayed (my best guess is July/August) and I apologize for that to our users. In hindsight, we probably should have opted out for something easier to pull off (someone mentioned a billboard on 101, that would certainly be much easier).

This did not jeopardize Kagi's finances in any way at any point, nor I would do anything like that ever (as I said I am all in and have everything to lose, so I run a fiscally responsible business). In fact, Kagi has turned profitable recently.

This has also not impacted our ability to hire (we went from 10 people twelve months ago to 25+ now) and it did not impact our ability to ship a great product (check Kagi and Orion changelogs). I would venture to say that most Kagi users agree that Kagi is getting better and better every week with great speed.

So would I do it again? Well let's wait and see what we have in store for hitting 50,000 members mark :)
This reeks of being contrarian for the sake of it. Surprised it didn't come from some 37 Signals related publication.
pavlov wants some strange and wants you to be okay with that
It generates templates derived from the `docker init` command that you can use to create images!
> I wish the rich monopolize it. You really think some foreign person is key - then bid $1million/year salary to that person. You want some cheap labor, then only bid cheap and risk not getting them.

I don't think rich industries should monopolize it, but I definitely think they should be forced to pay more.

My personal favorite solution to the H1-B problem is to keep the quotas but remove the indentured servitude aspect. You really need this person? Sponsor them, then treat them well and pay them enough to want to stay with you. Otherwise, they can just leave and get a job like someone with a green card.
The generation this article is concerned about killing themselves didn't live during that time. They have no frame of reference for how things were worse back then and are better now. The only thing they now is that things are bad now.

In fact, saying that "we had it way worse" is probably a sentiment that leads to people stuffing their feelings because "what do I have to complain about" until it gets to the point that they off themselves.
Cell phones use a variety of wavelengths to communicate, topping out in the gigahertz range for things like Wifi. It's impossible for light in that range cannot to cause cancer. It's literally less possible for it to cause cancer than visible light. (Which is in the terahertz range)
...What? There is a spectrum of importance to national security, food and energy are very much on the side of more important, so not sure why you chose those as an example. It's extremely reductive to say any country that imposes limits on trade for its own strategic benefit is an autocracy.
That's a very broad brush you're painting with.
Secret Behind Airbnb's Billion-Dollar Empire? Spamming Craigslist
> Many things will only function well with 4 or 8 GPUs

What do you mean?
Awesome work. Would be cool to make a really long one and tape it all along the links of an industrial robot arm and see if you can train a neural net to predict the location of the end effector (which you would already know precisely from the angles of the linkages) from the readings of your sensor.
>I get the embrace-extend-extinguish concerns, but there almost seems to be some desire to want to keep Mastodon small and fragmented for various reasons.

Much of the culture on Mastodon is anti-capitalist or created by marginalized communities that explicitly fled the mainstream web due to its toxicity and commercialism. They now see a Meta owned corporate behemoth showing up to assimilate them and flood them with all of the garbage they tried to escape.

It's very similar to the fear a lot of Hacker News users have about "turning into Reddit," of cultural contamination and Eternal September. It isn't entirely fair but it is understandable.

> I'd love to be able to have a single place to follow both using a single app and (importantly) using a single handle

For Mastodon, the only solution in this regard seems to be to host a single-user instance, which you can find inexpensive hosts for. Then follow whomever you want, block whomever you want, and add a couple of relays. I agree that identity management is one of the biggest flaws in the protocol.

Then again, centralized identity increases the possibility of tracking, harassment and centralized control over platforms so it can be seen as a feature and a bug. I kind of like Tim Berners-Lee's Solid project[0] conceptually, but I don't know what implementations are out there, if any. It would be nice to just host a data file somewhere, maybe with a pgp key, and be able to use that as an identity across implementations.

[0]https://en.wikipedia.org/wiki/Solid_(web_decentralization_pr...
Interesting, didn't know that! Wonder why they don't.

My issue here is with wheel events. They look identical for trackpads and mice, so I can't code for different behaviour.
How did you make this observation? There's more than 500 thousand H1B holders, how did you analyze them to end up with this claim?
In Italy I saw a replication of Fra Angelico's Annunciation as a sculpted relief intended for the blind.
The Barnes And Noble Union Fight Is Spreading
> The DOE is doing the work because desalination takes huge amounts of energy, and they're looking at ways to reduce this.

Everything that happens takes energy. Is the DoE going to try and be experts in all of it? They'll have the broadest mandate in history. The consumers of the energy are in a better place to direct the research.

But hey, the US is adding a trillion dollars in debt every 100 days, so the DoE may as well do this thing. There isn't enough money in the pot here to have a serious argument over it.
There’s a couple of big problems with the heat-pump industry in the U.S. First, people get their advice about HVAC from the tradespeople, who are way behind the curve on heat-pump technology. Second, and relatedly, the trusted American HVAC brands are far behind China and Japan and Europe on heat pump technology, especially cold-weather capable inverter units.

I had our heat pumps replaced here in Maryland in 2019-2020 with mid-range Amana (rebranded Daikin) units. Decent efficiency, but output drops to half at 10F. The guys who recommended the system, a trusted local business, didn’t even tell me about that. Even in Maryland that means waking up to a cold house several weeks out of the year. That means we needed to keep our oil-based backup heat in place, which is a huge expense to maintain. (Also, our HVAC guys didn’t know that the communicating Daikin units can’t control external auxiliary heat, so they just left things with no backup heat whatsoever.)

After educating myself about this, I wish we had installed one of those Chinese inverter based units, like the Gree Flexx. But if I asked my HVAC guy about that they’d stare back blankly. And the folks who do know what they’re doing can charge whatever they want. The price of getting a mini-split installed here is several times the price of the unit. The $16,000 we spent just a few years ago for two condensers and air handlers looks downright cheap compared to what it would cost today.

Regarding your floor, we have a similar situation with radiant heat in our basement slab. I’ve been looking to ditch our oil boiler, but there’s basically no heat pump options that are widely available. (I don’t want to install some imported Chinese air to water heat pump that the local guys can’t fix.) With heating oil prices being over $4, though, I’m looking at just biting the bullet and installing an electric boiler, which is at least something I could probably fix myself.
The 2-3-4 right triangle. What's the problem?
Neil Gaiman: Why our future depends on libraries, reading and daydreaming (2013)
That won't be that cheap for long though (and I don't see that as a bad thing either)

Looking at Huawei or Xiaomi goods, the quality is there and the prices are also getting noticeably higher accordingly.
Keep in mind that this website is a small part of a VC incubator that is very deep in the interests of finance Capital.

People are taking issue with the claim that media apparatuses are controlled by Capital, but its literally true. The profit motive requires any media source to optimize based on what is profitable while also handing over editorial control to the owners of these media companies.

If the main sponsor of a small town paper does something egregious, is it in the paper's interest to report on that if it means losing their funding? Of course not. That is the mechanism for control of media. Like social media censorship for ad placement, any media falls victim to the preferences of their patrons.

For example, why do we constantly see articles like "Millenials killing X" or "Gen Z killing y"? Because it get clicks. It doesn't inform anything on the systems leading to these trends, that wouldn't make money. Making people mad makes money, but if you make people mad about actual issues, the beneficiaries of those policies wouldn't appreciate the added attention on those issues. So we get articles that gets us mad about nonsense. Not because "They" want us distracted, but because it makes money to make people mad, but you have to pick outrage mine with a longer lifespan. If you make people mad regularly about the broken healthcare system, they might lose their sponsorship from Aetna or BCBS.
I can't speak to the t-shirts. I was on duckduckgo before Kagi and also can't imagine returning there. I don't know what they're doing there but it's not improving. And yeah I am so with you on 2).

It seems like (again, t-shirts aside) Kagi is throwing a bunch of stuff at the wall to see what sticks. I hope they're having fun because I sure am.
So assuming you utilized this with (4) x 4090s is there a theoretical comparative to performance vs the A6000 / other professional lines?
How we built JSR
companies that run these things care - they run at huge batch size and are compute bound in the limit
If it were up to me there wouldn't be an h1b. People would be admitted via a points based system like Canada (but stricter) and would then be on a green card path and be granted perm residency after 5y, citizenship after 10.

That's of course my pie in the sky 'we can get congress to agree on things' version. If I were president, I would simply make the h1b go to the highest bidder, so the people that enter the US are, supposedly, the cream of the crop. Yeah, that would make students return home vs someone with more skills and experience. The whole point of the h1b is to bring over people with skills we can't find here in the US.
What's the point of not living paycheck to paycheck if interest rates are low and inflation relatively high? Holding cash just wastes it.

(Note: this is not my personal viewpoint and is not financial advice. It is asked to fairly portray a counterpoint which most people must hold, even if only implicitly.)
What are the productivity advantages over using Docker images?
I take it this is mostly useful for compute workloads, neural networks, LLM and the like -- not for actual graphics rendering?
We got a heat pump installed alongside the gas system, since it's still working.

I would love it if there were a service or some code to look at 1) gas prices 2) electricity prices 3) how efficient the two systems are and switch back and forth depending. Like... if it's -10C out, run the gas. As it gets closer to 0C, switch over at some point.

If gas is flat out always cheaper, you could still put a cutoff point where you're willing to spend a bit more because it's better for the environment.
Pay is only "high" as it relates to the experience level and the location.
I'd suggest working in the pits of blue collar work for a few years before deciding on what "average intelligence" is.
My read was that if you want to engage with people who are deep in a conspiracy theory, you need to examine it to find the source.
Literature is not really art appreciated through vision. It is a mental exercise. Reading by seeing the text is just one form of uploading the text into your brain; Braille and audio are two others. The layout and appearance of the text can add to the experience, but this is mostly¹ not required except to make reading the text as relaxed and comfortable as possible.

For a blind person sculpture can surely be as engrossing as for a sighted person.

1: Notable exceptions exist; e.g., House of Leaves.
For example, if you want to run low latency multi-GPU inference with tensor parallelism in TensorRT-LLM, there is a requirement that the number of heads in the model is divisible by the number of GPUs. Most current published models are divisible by 4 and 8, but not 6.
Decentralizing the Electric Grid
Right! The problem is before the heat gets to the room it sits in the milk for a while and raises it to temperatures where bacteria like to be.
Indeed, I see you're point.

We americans have been living beyond or means and much better relative to the rest of the world, and the world is starting to equalize. Makes sense.
What's different to the war years (hot and cold) is the absence of hope. In those cases there was unity that things were bad and we were all going to fix them.

In our times the answer is 'things are bad and the system is working as intended'.

I read some harrowing pieces about the AIDS epidemic and the hopelessness that came from the dismissal of the rest of the world and it felt similar (worse obviously).
What are the cases where Nix is a better fit than Docker?
I got a little more than halfway through the post before I gave up. I honestly don't know of any other tech endeavor that is doing so much good only 16 people. You can diss their CEO all you want, but their product is heads above the rest.

And it's not just recycled google results. It's google's API, which means that it brings back into the light what google was best at before they decided to monetize it with echo chamber algos and toxic ads. I can find it in my heart hate Alphabet and yet pay to mainline their best product with a sprinkle of other vitamins and minerals like Wolfram.
Interesting that they use Rust for most things, rather than Deno. I would've expected more dog-fooding on their part.
Depending on your definition, there are anywhere between five (the classic) and upwards of twenty senses - e.g. is the ability to sense temperature a part of touch, or a separate sense?
I took a quick look, and Indianapolis (my old home town, and first place I looked) is rife with ‘em. Nicer than my much more expensive house in Redmond, too.

So if you’re not seeing them, I’ll bet you’re not looking very hard. Or you’re looking on the coasts.
You got a link to that? I REALLY want to read about it!
It's more difficult to split your work across 6 GPUs evenly, and easier when you have 4 or 8 GPUs. The latter setups have powers of 2, which for example, can evenly divide a 2D or 3D grid, but 6 GPUs are awkward to program. Thus, the OP argues that a 6-GPU setup is highly suboptimal for many existing applications and there's no point to pay more for the extra 2.
Actually I am wanting to learn something about Chinese music but I have yet to really get started. What I like the best now are some flute recordings done in 5.1.

My favorite foreign language album right now is

https://en.wikipedia.org/wiki/Mwng

I never get tired of listening to it. I do find though that the cognitive load of handling languages I half-understand is pretty high which is not a problem for Welsh but more a problem for Japanese or German and actually was really bad when I was watching an anime subtitled in German.
Slime is pretty popular as a touch based art form. Same with fidget toys.
A heat pump water heater seems phenomenal to me in an Austin attic. And I use the cold air generated to cool a wiring/server closet. Win/win.
Flying Shuttle
https://github.com/ad-si/tu/blob/main/src/main.rs#L37

I'll definitely be using this but I'd suggest replacing print with println.
I think everyone keeps misunderstanding my comment, I never wrote '4oz gloves are bad and they create more concussions". What I did say is that modern One rules with 4oz gloves and punches scoring equally as other weapons encourages a style I don't like to watch. You have less guard to work with in smaller gloves and you see a lot more straight attacks to the head. One rules I feel encourages more brawling and repeated punches to the face because blood and damage draws a crowd. They are trying to draw an MMA crowd and often even pass out KO bonuses to encourage that style. Just compare two Rodtang fights, someone widely known for his Muay Mat (punching) style, in One with 4oz gloves versus a bout in 10oz gloves [1][2]. I prefer watching the larger gloves, it's just personal preference, even though Superlek is keeping a lot of distance in the One bout since he's known for attacks at kicking range.

But I disagree that gloves only protect the hands, as gloves protect the face and head too. There is more volume in my guard in larger gloves that allow me to protect from head attacks while wearing larger gloves.

Anyway, if you watch fights from other promotions that have more traditional Muay Thai rules (even if it is still entertainment Muay Thai), you see a lot more attacks to the body with kicks and knees. I just find the more traditional style to be more artful.

[1] https://www.youtube.com/watch?v=xZtadif15WU

[2]https://www.youtube.com/watch?v=VFv4mpUPvBc
These are part of the chip, thus microscopic and very inaccessible.

There are some good images here[1] of various such fuses, both pristine and blown. Here's[2] a more detailed writeup examining one type.

It's not something you fix with a soldering iron.

[1]: https://semiengineering.com/the-benefits-of-antifuse-otp/

[2]: https://www.eetimes.com/a-look-at-metal-efuses/
Why does it seem to these tools have converged on the bot-makes-PR implementation? Why not a tool that bumps dependencies and let’s you propose yourself? I can’t use one of these tools because the integration is GitHub-only.