skysight-inc/HackerNews huggingface dataset:
I feel you. My macbooks have always reached the point of feeling very cramped for storage and I find myself juggling for disk space more often than I'd like. This is mostly because I simply won't pay an extra thousand dollars - what Apple charges for maxed storage in my currency.

I recently ordered a Framework laptop. It's yet to arrive, but I'm already excited about the fact that I could just order a very large, very fast, top of the line NVMe drive from a PC parts vendor for only a few hundred dollars.
Show HN: The World Is on Fire
Web Development Trends in 2023
This is exactly the same point the previous poster made. Sure we don't know the real hidden motives of Russia or Putin, but you could say the same for the US and Biden. So ignoring crazy random guesses, you can say that all things being as sane as you'd hope they are, Russia destroying their own ability to say "if you agree to this or that, we will turn back on the gas flow you need to provide affordable energy to your citizens" would be pretty foolish.

On the other side, Ukraine destroying the pipeline and making sure EU members don't give it to Russia in order to restore the flow of gas makes pretty good sense.. as long as you don't care about the EU citizens.
I value your points because they are the same concerns I would have being a CTO of a company. Ultimately vendors don't yet care enough about this problem to invest in it and I think ultimately that's a mistake because while we have standardisation at the Cloud infrastructure layer, we're missing everything above it. The cost of development to an organisation in these services is quite frankly astronomical. You've got hundreds of devs rewriting identical CRUD services or proxy shims to existing SaaS across the entire industry. That's millions in capex just being burned.

In relation to being a CTO of a small startup, yea OSS maintainer risk is tough. You want to use projects that are used by hundreds of companies and actively maintained. In my case, I am the primary maintainer and it's used for a cloud service called M3O - https://m3o.com. I think it will take a while before we're in a place to warrant more buy in but my hope is eventually it'll get there or at the very least people will come to use the APIs serviced by M3O.

On architecture, I mean you're quite literally talking about software "build vs buy" tradeoffs for the entirety of all software you ever write. In this case, do I integrate something else or write it myself. I think that comes down to the same assessment of whether you should offload to some other piece of software versus your own. When it comes to domain specific services this is always tough yet we see the adoption of the likes of Twilio for SMS, Sendgrid for Email and Stripe for Payments so I'd argue we're getting closer to blurring the lines now.

On cost, you can use the hosted offering - https://m3o.com - but at this point the reason I'm sharing the open source services is really because I think that adoption curve to a cloud service takes a lot longer especially with domain specific services. I would argue these services while on the surface appear a commodity, the development time and integration cost of using bespoke independent APIs or services has a much higher cost. Everyone internally ends up writing proxy/shims to SaaS products to try eliminate this risk for themselves. I just think we should standardise a lot of our business logic service consumption.
On a 16GB 8c8g Macbook Air M1, the PyTorch implementation takes about 3.6s/step which is about 3 minutes per image with the default parameters. I wonder how faster this would be. If there's anyone out there with a similar system and wants to compare, could you please write your findings?
Not if you use a hash set. This is expected O(n) time to de-duplicate an array of integers while maintaining the original order (more explicitly written than I normally would in Rust for didactical purposes):

let mut hash_set = HashSet::new();
let mut len = 0;

for i in 0..arr.len() {
if !hash_set.contains(&arr[i]) {
hash_set.insert(arr[i]);
arr[len] = arr[i];
len += 1;
}
}

arr.truncate(len);
Not really, it's more that I regularly make typos in all forms of writing (even handwritten). It's not usually misspellings but rather whole lexemes that go missing or are swapped.

fwiw, I TA a course taught (partially) in OCaml and work regularly with a large OCaml project as part of my thesis.

Parser generator errors are just a personal pet peeve of mine, I grew up with (mega)parsec (Haskell), where decent errors are out-of-the-box and great ones are easy.
For real my ex is a union welder and she made stupid money during the pandemic. Construction is considered essential and she got mad overtime with all the people out sick. They basically took zero safety precautions and she gave me the pleasure of being one of the first 100 people to catch covid in my city of ~200,000 people.
I don't quite understand the benefit of mixed precision.

It seems like using high precision is useful for training, but if not training, why not just use float16 weights and save the memory?
They mentioned editing documents
> the Marshmallow Experiment

“The original marshmallow test, it turned out, had a flaw. Exclude some children from better-off families (which seems to make them both more willing to delay gratification and more likely to succeed in later life) and much of its predictive power suddenly disappears.” — quote from an economist piece.
If you think California is dry now, you ain't seen nothing yet. It's going to get a lot dryer. Plan for it, or regret it.
That's not nearly enough.
I just highlighted the fact that OpenSSH (which was an inspiration to the Gemini people) finds this an issue and have devised solutions. You and everyone else are absolutely free to not to trust DNSSEC and deal with the pitfalls of TOFU-over-internet in some other way.

Though in theory, just using SSHFP+DNSSEC and those operators being malicious shouldn't degrade SSH's security, it should only hinder the same TOFU. In which case I suspect people would fall back to the Web PKI to look up the reason for the mismatch.
You are flat out wrong, and I cannot see any way to make this clear to you. Perhaps this is a language barrier problem?

> if you couldn’t pass mutable arguments you would cripple the language

This is not about passing mutable arguments. This is about having a default value for a parameter be mutable (unreliable).

Yes the arguments in Python functions are mutable. That's not unexpected. What is unexpected is that the default value assigned to a non-provided argument is not consistent. In my example I show that the parameter "visited" has a default value of [] if no argument is passed in.

Off the top of my head, Ruby, Javascript, and Swift offer the ability to have default parameter values, and they are all predictably immutable (defaults). Python is the odd one here.

I will say no more about this here, because I'm beating a dead horse.
I wonder if Europe is seeing a similar trend. The factory I work for laid of 3/4 of its personnel and moved most production to our sister factory in another European country(with similar labor costs). I just assumed times were tough overall.
> women generally perform more unpaid labor

If a couple is married, it is not effectivly unpaid if the other part can work becouse of the unpaid labour.

The main problem I see is that the woman's carrier might suffer which would be a problem in the event of a divorce.
Ah! Finally it clicked! Thanks for the nice example in your comment.
Data Centric Manifesto
There is no way that this is possible. Niemann's performance has such a wide variance between:
- his best days, where he is pressing for victory or easily winning against the very best players in the world (not only Carlsen, but also Aronian, Mamedyarov, Firouzja), and
- his bad days, where he plays like an average grandmaster.

Someone who can play as bad as Niemann does on his bad days could never beat Carlsen legitimately in my opinion.
No, not an assumption. Also, good for you.
Breaking Points has called out this article for its BS. We are simply returning to pre-pandemic levels in terms of manufacturing. There is no “boom”
But think of all the money she made.
In my (limited) experience, smaller housing associations seem to show more care and attention than larger ones. It shouldn't be that way. As to the quality of subcontractors - I have good experiences and bad experiences. I always give feedback, even when not invited to do so.
Hah! That's awesome.

I'm not sure how well it would work in practice, since you're depending on alloc() giving you uninitialized memory—if it zeroes it, then it's back to being O(n). But that's kind of an unfair quibble.

And of course, it adds a branch to the lookup. Still O(1), but you'd need to check which buffer to find a given index in. Really not a problem here since as you say, the whole point is to bound the latency, not minimize it.
This comic seems relevant:

https://workchronicles.substack.com/p/comic-prevention-vs-cu...
Totally agree on this, love the full-featured -- but still very clean and fast -- interface. Been happily giving them some of my money for almost 10-years.
That's usual here too, but the people who want your debt don't care too much about the proper ways, so in practice knowing the number is enough.

I did it myself - simply called a bank, told them my number and the basic info and that was it. The contract arrived by post (to an address completely different from my official permanent residence), I signed it and uploaded a photo. I was surprised but that's how it works out in practice.

Fortunately we don't need ID to get a SIM here.
It works pretty well within their own parties. That is, it helps those people keep control of their parties, even if their parties lose control of their countries. For career politicians, the former is more important.
I've had the reverse experience on upwork: the client is asking for bids on a project but when you google their name and location it turns out they're in jail. When we had a zoom call their name was different.. I'll have to cancel the project i guess.
I also have Eee netbook. It's so old that it's keyboard stopped working. I bought another keyboard from the same model but changing it didn't help. What do you mean with "flex killed"? Could the same happen to keyboard controller on my piece? Is it possible to fix it with simple soldering new solder?

Also I would like to buy this OP mini laptop for my six year daughter... I wonder when it will be ready for production... She might be 8 then. Maybe better Raspberry Pi 400 (but it needs external screen and that is a downturn)? What do you think?
Not sure how to approach that comment really, I don't think it matters if the pattern used is microservices or not, the basic premise that we're still way far off reusability of software that's basically identical across thousands of orgs stands. Most devs are rebuilding identical software stacks to serve a very small different business layer product. There's probably 80% of software that we could open source as reusable building blocks. Do they need to be microservices? No, but if the logic was in libraries and we had to reimplement per language it would be really a waste of time. Could we package this in some other way? Someone please show me that solution because I'll stop talking about microservices and go use that. Ultimately from what I've seen at companies like Amazon, Google, etc is reusability is about services development exposed as APIs with common libraries, frameworks and platforms for that development/deployment, itself, that's it. Its not buzzwordy, but microservices encapsulates that model. Amazon/Google, etc are just hundreds of small teams all using a shared model of development, so the argument that you don't need microservices at small scale is not the issue here, it's that we outside of orgs don't have this level of reuse that they do, so we waste most of our time spinning our wheels building the same software, where as if we had a set of reusable building blocks or APIs on top of cloud infrastructure, we could actually then go solve even more interesting ideas rather than it being something only possible at massive orgs.
It does not necessarily add a branch to the lookup, look more closely: all current data exists in buf in its entirety. It is duplicated into next_buf.

This might be problematic depending on T in C++ as it would need to invoke copy constructors. In Rust all types can trivially be memcpy'd into another location if you own it, so this design would be entirely valid (as long as next_buf is not publicly accessible at all, and we do not provide mutable access to the data). EDIT: after thinking a bit more, due to interior mutability you can't provide access at all, or you would need to invoke a branch like you said in Rust.

If you want to provide mutable access to a piece of data and/or avoid copy constructors in favor of move constructors, then, yes you would need to do a branch.
Maemo is being rebooted, based on Devuan, for N900, PinePhone and other devices, https://news.ycombinator.com/item?id=32699853
Perhaps you could go a step further and say that, whatever the regime, these institutions that decide who is healthy and who is sick, who is sane and who is insane, can never be neutral. They are always also instruments of (social) control. Michel Foucault is probably the go-to guy if this topic interests you[1].

1. https://en.wikipedia.org/wiki/Michel_Foucault
The GJK Algorithm for intersecting shapes (2021) [video]
The first time I encountered a "riddle" type interview question, I'd already held 5+ jobs and I nominally had 8 years' experience in IT.

The job was for a Unix sysadmin job in academia. The interviewer described a room with two lightbulbs in it, and a room down the hall with two switches, and I was supposed to figure out which switch controlled which bulb without going back-and-forth so much.

I was stumped & didn't really know how to proceed, so I just gave up. They hired me anyway. Afterward they explained the answer to me. Start with both bulbs dark; turn on one switch, wait a few minutes, then turn on the other and touch the bulbs. The hot bulb corresponds to the first switch. (This only makes sense in the age of incandescent bulbs.)

I thought it was nice and a clever touch to see whether a candidate can think outside the box, and of course I was grateful to be hired even though I couldn't do so.

Oftentimes I'll report for an interview and it's more like a preliminary onboarding and tour of the premises. Sometimes a company has already made that hire decision before they call you in-person. This might raise a red flag for you, if a company is so desparate to put you at a desk that they don't even make you run the gauntlet, so think about it.
The Farewell Dossier (2007)
As someone with diving experience I laughed at parent comment's "anyone with scuba gear" assertion too - a classic example of "I'm an expert at everything because I'm a smart programmer who makes $200k a year" arrogance that is endemic here - but you're right next to them.

- The timing of the explosions doesn't require "multiple coordinated teams." It requires timers. Or, as is common with naval mines, an acoustic arming/triggering signal.

- Commercial diving happens several times deeper than 80m. Hundreds of meters, in fact.

- Saturation diving techniques mean a crew could be brought to the working depth inside the ship's chamber, transferred to a diving bell, dropped down to the pipeline, do their work, go back into the bell, be brought up into the ship, transferred into the ship's decompression chamber, and decompress.

- You're assuming such an operation would be based from the surface. If a nation-state was involved, who says they arrived or departed by surface ship? The Jimmy Carter is for exactly this sort of stuff. It was practically a sport for the USSR and US to tap undersea communications cables. We had the capability to do that without being undetected (including from systems that are designed to detect faults and tampering, but also deal with the cable armoring, as well as avoid very high voltages used to power in-line amplifiers) more than fifty years ago...but you think slapping some explosives on the side of a pipe is technically challenging to a nation-state, or even a commercial diving company that does oilfield work?

- You assume that explosives were planted by divers, and not, say, a submersible (see: Jimmy Carter) or ROV. In fact, you're assuming explosives were planted, and someone didn't use a smart torpedo of some sort.

One thing, though: I agree with others that it seems unlikely Russia would do this to themselves when, you know, they can just not supply gas into the pipeline.

One possibility: after Russia threatened using nuclear devices, both pipelines were blown up was either done to send a message - or as direct punishment for the fairly unprecedented threat to use nuclear weapons.

It also has the side effect of taking any 'heat' off EU politicians to cave if energy prices soar and/or if people freeze in their homes. Russian gas is for the moment very much off the table. If those pipelines can be repaired, it won't happen overnight, or cheaply.
I'm sorry, have you engaged with the benefit system at all or are you basing this entirely from articles you've read? This all reads so incredibly backwards as someone who's assisted a disabled person through this process.

> The system's own claims of fraud rates can't be taken seriously; claimed fraud rates were low before the big re-assessment but abuse was sufficiently widespread for it to become a major political issue anyway.

The system's own claims of fraud rates should be taken much more seriously than widepsread political opinions, the history of the UK wrt "Benefit Street" etc mean that there's a big juicy voter wedge there, the numbers from the actual institutions tell the story much more evenly than the politicians do.

> Looking it up, the overall rate at which decisions in the UK were appealed against was ~40%. About 60% of appeals were denied. If you wanted to you could therefore consider that the fraud rate was 24% towards the end of the program. But in the earlier days the fraud rate was more like 75%! That's a high fraud rate by any definition, but even so is certainly an under-estimate. The people in question are unemployed, they've got time and there are no downsides to appealing. Meanwhile the appeals authority is, again, entirely un-incentivized to deny applications beyond the fact that if they never did they'd be replaced. We should expect a massive false negative rate on denials.

The rate that the appeals pass or reject does not map to the fraud rate, some applicants lack the agency to appeal and those who can appeal often can't do so repeatedly. The profoundly disabled are screened out at this point - this is where those "My dad was ruled fit to work and died of cancer the next week" stories crop up from.

> The original system ATOS used was check-box and computer driven for that reason: it's much easier to design an objective and fair system when you're not in front of someone who's crying and saying they're in pain."

This was widely, infamously abused to deny people benefits.

This "objective and fair" system marked my husband as capable to work a full time job because he could climb a single flight of stairs with my assistance, ATOS staff were encouraged to deflate scores and deny benefits. It was not objective or fair in the least, it was a rigorous exercise in accelerating toward the minimum number of people receiving benefit awards from that ATOS examination site.
No one remember how Telegram likes to reinvent the wheel with their encryption and raise subtle implications that Signal is magically backdoored?

For starters: https://nitter.net/durov/status/873870658874355713
This started shifting in like 1990, with the crazy self-inflicted bitchvictimization of McDonalds's acting so pathetic because they scalded a woman causing 3rd degree burns. Ended up killing her because she couldnd't stay interested in life after all the humiliation from every angle. Died in part of her injuries. Poor little McDonalds' guilty as shit gets its poor account SUED (they always like ejaculated that word, way too much emphasis, highest accusativity) a 78 old lady who did literally nothing wrong. Corporate America also started spreading rumors of lawsuits like a man shooting a burglar and he falls down the stairs, sues for bad stairs. In Latin America! There were TV shows about "stupid lawsuits"! And of course highly interested in juries getting losing money by being juries, and resisting the courts catch up with inflation. Yeah.
> How can there possibly be 33M USD properties per resident anyway?

$1B/300 is $3M.
> Smartphones have been "pocketable PCs" for more than a decade already, but are dumbed down because their inputs and outputs are limited.

I wish it was only about the i/o: pocket Bluetooth keyboards, mice and other i/o devices would be just a few bucks away. No, the problem is rather that phones/tablets use crippled dumbed down and tight closed operating systems that offer only a small fraction of the power a real computer offers, not to mention the huge privacy and security issues involved. Having the same hardware performance and storage of a good laptop means nothing if the OS doesn't offer a way to use it in a transparent and trustworthy way.
My point is that cars made by Toyota don't break down like the cars made by other companies do.
Also the deployment makes much more sense in the web. Users are always in the latest version of the software with no install / update shenanigans. This has other implications as well. The application may change internal formats since it doesn't have to worry about older instances of itself etc.

And if you build an updater in your app like chrome / firefox then it needs to be disabled for Linux distributions that have their own package manager.
I gave you this link as a source for the statement of the Ukrainian envoy in Germany about Bandera being like Robin Hood.

Perhaps, you will like Israeli [0] and German [1] news more.

"The statement made by the Ukrainian ambassador is a distortion of the historical facts, belittles the Holocaust and is an insult to those who were murdered by Bandera and his people," the Israeli embassy said.

Polish deputy Foreign Minister Marcin Przydacz wrote on a local online platform that "such an opinion and such words are absolutely unacceptable."

And if you want historical information about Ukrainian Insurgent Army, I gave you wikipedia link in another comment here.

[0] https://www.israelnews.net/news/272606794/ukrainian-envoy-li...

[1] https://www.dw.com/en/ukraines-envoy-to-germany-irks-israeli...
Not M1 comparible but I'm working on testing various GPU vs M1 comparisons, with a few accessible cloud providers. My impression is times should be the same, but it's nice to hear other real-world stats for M1 with SD. Makes me really want to rent the Hetzner M1 now.

Which repo or build are you using BTW, is it the one related to this readme?

https://github.com/magnusviri/stable-diffusion/blob/main/REA...
I like how it teaches me things about Python that I didn't know. Just in the example, I didn't know about Path.read_text or str.startswith(<tuple>).
But implicit nulls are a big pain point (in both Java and Go). And its very hard to fix for Java (and no plant thus far).