skysight-inc/HackerNews huggingface dataset:
> is it my program’s responsibility to check what happens to the bytes AFTER the pipe?

No, but it's not "after". Rather, it's your responsibility to handle backpressure by ensuring the bytes were written to the pipe successfully in the first place.

This isn't just about the filesystem being full btw. If you imagine a command like ./foo.py | head -n 10, it only makes sense for the 'head' command to close the pipe when it's done, and foo.py should be able to detect this and stop printing any more output. (This is especially important if you consider that foo.py might produce infinite lines of output, like the 'yes' program.)

I would argue this is not necessarily even an error from a user standpoint, so the return code from food.py should still be zero in many cases—a pipe-is-closed error just means the consumer simply didn't want the rest of the output, which is fine [1], whereas an out-of-disk-space error is probably really an error. Handling these robustly is actually difficult though, because (a) you'd need to figure out why printf() failed (so that you can treat different failures differently—but it's painful), and (b) you need to make sure any side effects in the program flow up to the printf() are semantically correct "prefixes" of the overall side effect, meaning that you'd need to pay careful attention to where you printf(). (Practically speaking, this makes it difficult to even have side effects that respect this, but that's an inherent problem/limitation of the pipeline model...)

FWIW, I would be very curious if anyone has formalized all of these nuances of the pipeline model and come up with a robust & systematic way to handle them. It seems like a complicated problem to me. To give just one example of a problem that I'm thinking of: should stderr and stdout behave the same way with respect to "pipe is closed"? e.g. should the program terminate if either is closed, or if both are closed? The answer is probably "it depends", but on what exactly? What if they're redirected externally? What if they're redirected internally? Is there a pattern you can follow to get it right most of the time? There's a lot of room for analysis of the issues that can come up, especially when you throw buffering/threading/etc. into the mix...

[1] Or maybe it isn't. Maybe the output (say, some archive format like ZIP) has a footer that needs to be read first, and it would be corrupt otherwise. Or maybe that's fine anyway, because the consumer should already understand you're outputting a ZIP, and it's on them if they want partial output. As always, "it depends". But I think a premature stdout closure is usually best treated as not-an-error.
I got the impression that this Mac Studio and their new 27" studio display form a replacement for the iMac and iMac Pro 27"

Overall I like the idea, because years after buying an iMac I still have a nice monitor, permanently attached to a (now) slow computer that I can't upgrade. With this approach I only need to replace the Mac itself as its age or my needs catch up with it.
Either way regions are "held at gunpoint" by your definition. It's either going to be from one government or another. For example just a few years ago:

https://en.wikipedia.org/wiki/2017_Catalan_independence_refe...

https://en.wikipedia.org/wiki/2017_Kurdistan_Region_independ...

The key is whether the referendum actually got held and there was a large enough turnout that it was meaningful. No one was stopping more observers from coming and overseeing it, including whether coersion was happening. And anyway, what difference would guns make in how people voted? Because I don't see how the soldiers could possibly know the way people voted in a closed booth. So even if there were people with guns out there, that by itself wouldn't affect how people vote. The most they could do is try to force people to the voting booth, as they do in Australia for example, or try to keep them from showing up, as they do in Southern US states.

And besides, when it comes to Russia or Belarus, it doesn't matter that the legitimate government is dominant in the region instead of "an invading force", you don't trust the outcome of the referendums anyway. For example, Belarus just had one a week ago, do you trust the results?

https://en.wikipedia.org/wiki/2022_Belarusian_constitutional...

Finally, a technical point: Russia had 25,000 troops in the Crimean peninsula, which it was allowed to have according to the Partition Treaty about the Black Sea Fleet, so it wasn't an "invasion" there: https://en.wikipedia.org/wiki/Partition_Treaty_on_the_Status....
I find more modern languages so much less exhausting to use to write correct code.

Modern languages do catch more programmer errors than C/C++, but the more general point is that there are "edge cases" (redirecting to a file isn't an edge case) that developers need to consider that aren't magically caught, and understanding the language you use well enough so as not to write those bugs is important.

The more experience I get as a dev the more I've come to understand that building the functionality required in a feature is actually a very small part of the job. The "happy path" where things go right is often trivial to code. The complexity and effort lies in making sure things don't break when the code is used in a way I didn't anticipate. Essentially experience means anticipating more ways things can go wrong. This article is a good example of that.
21y ex Ukrainian math olympiad team member killed by Russian shelling of Charkiv
How a dad became ‘Enemy #1’ to teachers in Loudoun County, Virginia
I was pretty good at detecting the fakes (video and sound), but made some mistakes with the real ones. But I've also relied on the 50% fakes prior which I couldn't use in a real-world setting. Idea for a follow-up experiment: Manipulate the prior and see how it affects people's performance. If you tell people it's just 10% fakes (proxy for the reputation of the source), performance might be much worse.
"the market says otherwise" its a lazy and thought-terminating refrain and we need to retire it. it teaches us nothing to say "they market says otherwise", universally we need to go deeper and actually understand why things are wrong. your god "the market" also hasn't run A/B tests on GPs hypothesis, so this is just bad science.
Yuliya Zdanovska, here in an old team picture:

https://euromaidanpress.com/2017/04/13/ukrainian-schoolgirls...
^this

In most countries Apple's market is the top 1%
Ignoring the return of printf is a "bug". For the hello-world example, you can simply pass the printf value to main: "return printf(...) > 0;"
"All models are wrong, some are useful" describes it very well for me. It still amazes me, how late I really understood this and how many intelligent people not fully understand it.
Cormac McCarthy is publishing two new novels this fall
Maybe hedgedoc fits your needs:
https://hedgedoc.org/
> That's a bit of a strawman.

I think that depends on your social circle.

https://www.bbc.com/news/uk-england-57853385 has some examples of people for whom this was clearly not a strawman as of 5 months ago.
Okay, what happens if something fails/dies? At least it's replaceable by the user. It's very common to upgrade the RAM capacity rather than buying it all at once. Many CPUs have stuck around long enough to see GPUs replaced. Hard drives get swapped out for faster/more space.

I love the idea of component machines, but at this time of my life, I would be just fine to never have build another PC. With that, these systems of plug in the cables and go to work are appealing. Having said that, it still rubs me the wrong way on how non-upgradeable these things are.
I assume they will do 2x M1 Ultra. There are limited quantities of LPDDR5x with 64GB per package. That is 512GB for M1 Ultra, 1TB for 2x M1 Ultra.

I think and assume they will continue to stick with LPDDR5 rather than standard DDR5 with DIMM slot.
Perhaps you detected them because you knew there would be 50% fakes? If you'd see one of these fakes in a CNN article, would you still reliably detect it? I think the role of the prior expectation should not be underestimated.
Well yeah, there is still unresolved issue(s) with at the very least the interpretation of quantum theory, if not the math. Before decoherence things were even worse, and that was much less than a century ago. The fact that physicists still haven't reached a consensus on what the theory means is very intriguing to many people. Although it's true that people probably underestimate just how much this territory has been trodden. The current quantum computing hype likely plays a role in it seeming "cutting edge". It may just be flavour of the month.
Clarence Ellis
> It cost $200 with 128GB of ram and a case included.

Now that is a beefy phone. What mobile SoC even supports this much RAM?
Where did you get $100/bbl from? It was $40-50/bbl a decade ago for some companies.

This source states an average of $40 today across all oil sands producers.

https://oilprice.com/Energy/Crude-Oil/Breakeven-Price-For-Ne...

Typically when oil prices drop (they were <$40 in early 2020), the oil sands companies put production on standby. It's like most oil exploration - it's either feast or famine depending on global prices.
This is true, however if we modify the program to print a 4096-byte long string instead of just the "hello world" string, then it's not sufficient again. And of course, the number 4096 is system-dependent.

So to really do hello world in C right, in addition to fflush, you also need to check the return value from puts. I've never seen any C tutorial do that though.
Cormac McCarthy’s tips on how to write a great science paper (2019)
It's not necessarily an error to print less than you intended though. The consumer might have simply decided that they didn't need the rest of the input. Whether or not it's an error depends on why the write failed to occur. Usually out-of-space is an error, whereas pipe-is-closed/has-reached-EOF is not.
Basically that: use Flight as default IPC mechanism, but when local, use a plasma’ish mmap facility (for zero copy).
so NATO will join the war if Japan decides to take the islands back?
Aww, I was hoping I'd get a score at the end to see how well calibrated my predictions were, so I didn't record my accuracy on my own. But I got nothing. Now I'm a bit disappointed. I can't well do it again because I suspect I would have vague memories about which ones were fake and not – especially the ones that surprised me, which would be the most informative of my level of calibration.

I did certainly feel like I learned as I went, though. Seems like the deep fakes are a bit more monotonous, regardless of the format. The real humans have more embellishment and imperfections in their tone of voice, phrasing, and facial expressions.
Indeed! The primary difference wasn't the processing power but rather the parallel capacity of the Cray to solve a completely different kind of problem.
Completely unimportant, but anyone else call them one to ones?

Where did this one on one thing come from? A one on one is a boxing match or a schoolyard fight, not an open chat.

8:2:1 is a ratio of cocktail ingredients. 16:9 is an aspect ratio. 1:7 is a steep hill to climb. To, by, and in respectively. The latter two would be weird choices but at least they’d be consistent with the syntax of x:y. “on” though?! Where did that come from?

Don’t say “Japanese poetry” :)
I can send you an adapter for USBA.
I don’t personally agree with that judgement. While the failure condition is at the OS level it’s still affecting the function of the program an in unexpected way.

Plus the whole point of STDOUT is that it is a file. So it shouldn’t change the developers mental model if that file happens to be a pseudo TTY, a pipe or a traditional persistent file system object. This flexibility is one of the core principles of UNIX and it’s what makes the POSIX command line as flexible as it is.
> That's already on the cards, as Trump so helpfully demonstrated.

How did the US act as an "enemy" under Trump precisely ?
> Mozilla and Google agree, because they'll all compile down to SPIRV anyways, except for Apple which will target Metal.

Nope, on Windows/XBox they will have to compile to DirectX, on PS3 to LibGNM and on the Switch to NVN.
One of things I always looked out for as manager (which I am not currently) was a change in feed-back I got. If it turned from open, direct and honest to tounge-in-cheek, carefully worded and limited, punctuated with various versions of "nothing to report" I took it as a sign something was wrong.

Obviously, this effect is much easier when you are not in a management position. Because of that I was usually borderline paranoid about these changes in 1:1s with my directs.

In small teams I found the way to have informal, spontaneous 1:1s very effective. The basis, so, always was regularly scheduled ones unless you just forget to have them.

EDIT: For sure every 1:1 is different, and every 1:1 with different people need to be run differently. Some people like to discuss private stuff, others want in-depth tech discussions. Sometimes 1:1s are over in 5 minutes, sometimes they take an hour. Be flexible, and never use anything said in a 1:1 "against" the other person.
My argument is based on having worked in performance based advertising for years and seen first hand that it works.

Anyone who has direct experience in the space has seen the never ending stream of the same pedestrian arguments from people who have no idea what they are talking about.

For most organizations with a professionalized paid acquisition team, the returns aren’t fuzzy or something that a CMO could justify if it wasn’t producing real returns. The campaigns I worked on drove millions of dollars in incremental revenue every month. Turn it off, the revenue stops. Not some obscure attribution question.
I've recently moved away from iTerm2 to Warp (https://www.warp.dev), and there's no turning back. These guys are onto something big.
... which might lead one to ask "do you worry about the risk of complications?" when hearing about someone who gets the scope 10x as often as recommended. The answer may be "well, even if the risk of complications is 10x, my risk of getting a disease the scope will catch still far outweighs it, so it's worth it. Or it may be "yeah, that is a concern, but it's mitigated somewhat by xyz factor." And both of those are interesting answers. Why the hostility to this conversation?
The interconnect area was already known from third-party die photos of the M1 Max https://twitter.com/vadimyuryev/status/1466526403331952644
Flint was during Obama.
putin, is that you?
Now let's run G-man Invasion!
I meant storage. It has 6gb ram
Ambience was missing: the recordings were dry. And the voice acting was quite bad. I've heard better Trump impersonators, and I'm not from the USA.
> why would our universe be like a computer?

Because information is fundamental.

Computers just so happen to be our best tools in the information domain.
Counterpoint - most of the arguments against paid acquisition from people who don’t have direct experience are a classic Dunning-Kruger example.
Location: Pakistan, Islamabad
Remote: Yes
Willing to relocate: Yes
Technologies: JavaScript,React Native, Redux / Redux-Saga / Android Native/ Kotlin/ Jetpack
Resume/CV : Available on Email
Email: hashirsaeed64@gmail.com
Senior Software Engineer primarily focusing on Mobile development.
Have been working for almost 5 years and can collaborate productively in asynchronous teams.

Currently searching for interesting full-time(remote) opportunities where I would be a good fit with my experience and provide the most value.
Sure. But declaring a validator to be a „unit“ seems a bit too fine grained. I think we agree you shouldn’t test everything.

var value=10
assert(value, 10)

Would be such a test. Totally useless. Just duplication of logic.
Totally agree. Voice assistants IMO are doing that thing that tech sometimes does: hinting at what could be great but failing to actually deliver anything useful.

One insanely simple thing that'd be useful to me: local tide times. Can Siri or Google do this for me? No, not a chance. Best I get is "here's a web page", ie just a higher friction version of the thing I could have done myself.

I'm ok turning my music up and down or choosing a song. Let's make these devices actually useful and then I might sit up and start using them.
Endurance: Shackleton's lost ship is found in Antarctic
I used to say, half jokingly, people need to learn to shut the **** up, myself included. Meaning just because you have an opinion you don't have an obligation to share it with everyone else. Me writing this comment illustrates that.
Big discussion earlier: https://news.ycombinator.com/item?id=30598841
I do. But then I’m writing a shell (like Bash/Fish/etc but more DevOps focused) so if I don’t handle all types of errors then the entire UX falls apart.
In 1:1s with my managers I was always happy to get the undivided attention of my manager to discuss status updates.
> I was recently horrified to learn that the baby glass bottle I had been using with my baby had lead paint on it.

I felt the same about the amount of arsenic, lead, and mercury, in baby food. Companies have gotten away with having dangerous amounts of them in the food they sell. It wasn't even limited to weird off brands but popular brands I probably ate myself as an infant like Gerber and Beech-Nut.

I don't have much faith n the FDA at this point. I would have thought "No literal poison in baby food" would have been the standard, but turns out the FDA allowed dangerous amounts. A congressional report found that the FDA did nothing to limit the levels of dangerous metals in baby food, and that they appeared to be doing it "to be protective of industry". Now the FDA has said they'll do something about it, but even their plan is called "Closer to Zero" when what we need is an "Essentially zero poison in baby food" standard.
It's somewhat fine if they provided the new Windows desktop experience. For example, Windows 8 was a challenge to support tablet (almost failed, but it's base of Win10). Regardless of whether the change is good, I can understand what they want to do. In Win11, they just broke it. Anyone happy by removing BT quick connect pane?
> look suspicious since the GPU graph tops out at ~120W & the CPU graph tops out at ~60W yet the M1 Studio is rated for 370W continuous power draw.

Interested to know what you think a reasonable PSU would be for A machine that was consuming close to 200W for processing...
Don't quite understand this. Bolstering yourself would seem awakward for the other person, while criticizing yourself would just be a bad look in front of the person who decides promotions.
Plot twist: 100 % of the material here was faked, only 50 % well done and 50 % not so well done! Now that's a test of how well people actually recognise this stuff.
Yes, so what if it is? Like I said the EU is not at war with anyone, so there’s no need for drastic measures which go against the principles of the union.

If you haven’t noticed, the EU considers press freedom quite important, at least if one were to judge based on the approach towards Hungary or Poland.
My kid has his times when he struggles. But then one day he picked up a Dr. Seuss book and read it out loud from beginning to end. He was two and I have no ideas when or how he learned to read.
Clockless computers don't have a global clock but they still have components that "tick".
Have you tried building trust? The tone of your comment here makes me think you haven’t. If you build trust with people, they’ll just tell you things. If you just say they can tell you things, no rational employee will believe that. And pushing people to talk about their weekend or other aspects of their personal life is downright toxic IMO. Again, if you build trust and rapport, you won’t have to ask these rote, off-the-shelf questions that can put people into a wary state of mind.
As someone who worked on the inside of the mortgage industry at the time
(software and db) there is no doubt in my mind that the crash would have happened even if gas was at $1.

Insane loans were granted then loans bundled, sold, rebundeled,sold and so on.
The more established banks that bought our loans did zero due dilligence,
they just boundled things up and sold them.

We usually only had the loans less than 48h.
Wells Fargo (one of the banks that loved our loans) usually max of 96h
usually less.

We would sell loans that had $1500 - $2000 payments per month to someone
living in an appartment just able to afford $400 in rent.

Towards the end, we started having mortgages pile up that we could
not sell, and so we had to actually service them.
I think somehow the boss managed to give them away to some other entity
because we had 0 infrastructure, software, procedures to do it.

The boss and founder managed to sell the business about 3 months before
the big bang.

I quit 6 months prior. Glad I did.
I feel guilty and ashamed that I ever worked at that place.
It did not even pay very well.
The sales people made enomous bonuses if they were able to make sales.

I had friend who stayed until the bitter end.
What I don't like is when I as the employer need to take the initiative to do the 1 on 1 and then do it with the feeling like I'm wasting my bosses time.
Feedback on yet another recipe and mealplanning website
Hey everyone,
I was wondering if anyone would be interested in trying out a project I have been working on for the past 2,5 years (www.mealsafari.com). I haven't opened registration to the public just yet so if you want to try the logged in features, just send me a quick message through the contact form on the site with an emailaddress and a preferred username and I'll set up an account for you.

Feel free to use a throwaway email, for now you just need access to it for the activation link and password resets.

Pain points I am trying to address:

- Not having to scroll through miles of life stories before getting to the recipe contents

- Easy alteration of recipes/menus from other users to suit your own likes (say you don't like an ingredient in a recipe, you can use that recipe as a base to create a variation)

- Easy creation of meal plans by using your own and others' recipes and menus as building blocks

- Minimal to none dark patterns and annoying popups/surveys/newsletters

Background: Initially I was going to make a small website (which quite frankly could have been an excel sheet) to store my moms collection of recipes. The idea was to be able to randomly select a recipe when we just couldn't decide what to cook. I guess my curiosity got the better of me and it ended up being one of my bigger projects so far, learning tons about IT infrastructure, devops and web development (mainly Drupal).

I would be more than happy for any feedback!
Two thirds of the volume seems to be dedicated to cooling. Assuming they’re not complete idiots, they must be doing something!
I think you would struggle, TBH. The m1 ultra will likely have geekbench scores equal to the 3990x ($5k). The gpu (based on double performance of the max) should be something similar to an RTX 3070 ($1k). 128GB RAM is going to set you back another $1k. 8TB of storage will be another $1k.

Then you have to add on motherboard ($1k), case ($200), cooling ($200), psu ($200).

Even if you cut a few corners, you are still over $8k for equivalent performance, and a substantially larger form factor. Yeah, you can upgrade, etc, but thats not really the point of the exercise.

That said, if you can think of speccing it another way, id be interested, as im looking for a decent workstation build that is x86.
>Linux has this fun device file called "/dev/full"

Yes it is. And it specifies the OS as well.
Willing to commit suicide… unless they’ve implemented a deadman’s switch, in which case it’s out of their hands.

For several years now I’ve worried that Putin is the kind of sociopath that would have us all die when he himself dies, even if by natural causes.