skysight-inc/HackerNews huggingface dataset:
On my 2015 Mac, both Docs and Maps perform significantly better on Chrome, and I keep it around for these 2 use cases.
Thank you for such nice words :-)
The article does seem to nitpick a C++ design and then highlight the same feature in Rust. The way getline failed there is not "accidental" but the design of fstreams/getline, so that "less-careful" programmers don't have those corners here.

Thing is, all of the solutions to the issue here would be a real PITA if done as one function as both examples are. That is why example code often skips checks to allow the point of the article to be highlighted and not hide it. This is more true with filesystems related code as filesystems are not reliable. One example of how many corners filesytems have is the unit tests for sqlite, they are amazing.
I don't think that the Rust version is as different as the author seems to believe.

For example: the author writes "What happens if the file has been replaced by, e.g., a pipe or other not regular_file?" But it seems to me that the same problem -- replacing the file which is regular during the directory walk with the pipe exactly before the said pipe is opened -- can exist in Rust version too.

It doesn't matter how the syntax looks like, I suspect the equivalent system calls are the same, Rust will also walk the directory at T1 obtaining metainformation, at T2 open the file, even if it is at that moment actually a pipe, and then at T3 check if the metainformation obtained at T1 is a regular file ("file" in the source?), which could still be that? That says to me that the both version can suffer from the same bug.

Luckily it's something that's not going to happen too often in practice, knowing how typical programs don't use the same file name for a pipe and a file in rapid succession.
Turning a maybe into a yes after the YC interview
Was this written by an AI
I'm not going to continue this discussion as you're unwilling to understand that we're discussing free vs non-free as in non-chattel-slave vs chattel-slave, a.k.a. the ownership of another human being. The state does not own prisoners. Prisoners continue to have a plethora of constitutionally protected rights. Prisoners are counted in the census.
I think you are taking entirely the wrong approach here.

Pressing refresh on the front page causes TWO HUNDRED AND SIXTEEN requests for about 7MB of resources.

The only meaningful content on this page is a list of 20 or so links.

You don't need customer feedback here, you need some basic engineering principles and a tiny bit of pride.
AWS was built despite Google. Steam was built despite Google. Netflix got built despite Google. Even DuckDuckGo was built despite Google.

The European telecommunication companies could have built another search engine. Via DNS, the telecom companies had all the server contact knowledge that Microsoft is prying from users' memory with their data collecting.

There was Cliqz, a European search engine, that got dismantled due to Covid, without anybody offering some emergency funding to keep it going.

If a EU firewall is installed, millions of jobs will be created because everything will be done manually again. European companies had the opportunity to create competitive companies, but they didn't. Why should they create a good-enough Google if Google is banned? More likely, they will create a worse Altavista, and they are cut off of all the innovation that builds on Google.

The next unicorns, they don't rely on Google's blessing. Everybody can build them, even a company in Europe. Using their developers to copy Google would be a waste of talent and opportunities. China has to do it to control their news, but why should Europe?

After all, there are no American companies demanding the shutdown of Google just so that they can create the next innovative products. They just create them. If American companies can innovate despite Google, why can't European companies do the same?
Twitter and Google are not the same... At all.
Again, it’s easy to tell yourself that Americans are just irrational, harder to reconcile that with the facts. It’s not just a minority that’s richer and more comfortable: https://www.pewresearch.org/global/2017/04/24/middle-class-f...

A middle income household in the US has $15,000-25,000 more per year in disposable income than a middle income household in France, Germany, Spain, Italy, or the UK (comprising 70% of the EU population).

You can say that some of that goes to employee-paid premiums and things like that, which are excluded from the OECD analysis. But for households with employer-paid health insurance (which is the vast majority of middle income households), the typical out of pocket costs for those things is a fraction of the income differential: https://www.commonwealthfund.org/sites/default/files/2019-05...

The median spending on premiums and out of pocket costs in the US is $3,700. And note that European countries also have out of pocket expenses of $500-1,000: https://www.oecd.org/health/health-systems/OECD-Focus-on-Out....

So at the end of the day, a middle income American household with employer-paid health insurance has $12,000-22,000 more in their pocket each year. (You could adjust for other social services, but those tend to be a drop in the bucket by comparison. For example, the average student, of the minority of Americans that graduates college, is $30,000. Thats a one-time debt, compared to a lifetime of earning thousands of dollars more.)

Fox News manipulating people into “voting against their interests” is mostly a myth. The poorest people do in fact vote Democrat. If you look at profiles of Trump voters, they tend to be non-college-educated people who are doing well in places with low cost of living. In my county, the guys that own a little contracting or construction company vote for Trump. This is entirely in their interest. They would not be personally better off paying a lot more taxes to get marginally more benefits. I spent several weeks in East Texas last year. This is Trump country. It’s also quite prosperous. The men work in the oil industry and the women work in healthcare. They have big trucks and big houses and shiny new stores and restaurants.
https://en.wikipedia.org/wiki/Theo_de_Raadt

The guy who founded and does a fair bit of the work. Interesting skim.
Did I understand this right, that they stopped your servers because you spun up some dedicated CPU instances? Isn't that what you're supposed to do?
«I personally know someone whose father likely died due to being unable to access health care in a timely fashion, as well as someone else who died of cancer after their chemotherapy was postponed»

Without lockdowns these people would probably not have been able to access health care either, because of, well, the pandemic.
My (apparently unpopular) point is that non-participation affords no solace.
The type of lockdowns we are seeing now (closure of nightlife and large events) is markedly different than before.

And those drastic measures from back in March and April were only because, at the time, hospital ICUs were being overwhelmed and doctors were dying of complication from SARS-COV-2. I don't think anybody is arguing for us to go back to that type of measure.
If these things are good for you as an individual (cheap, convenient), why would you want the government to step in and mess them up?
I agree about the buzzwords.
We have deployed a core service developed with Temporal recently and it seems to deliver on its promises.
I am looking forward to using it more.
Once it 'clicks' you begin to see how the workflow model matches many business processes, which cannot be handled within a single request, or an event, very well.
Personally, I turn my ring tone off and never answer phone calls. I set up a VOIP number that I give to friends and family, so it rings through on my PC, not my phone.

Almost nobody calls me directly on my cell these days. I just assume anyone calling my phone is spam. The few who aren't spam can leave a message.
"for most people a web server and csv will serve the first thousand customers"

I hear this kind of thought-terminating cliche a lot on here and it makes absolutely no sense.

If # of users is a rough approximate of a company's success and more successful companies tend to hire more engineers ... then actually the majority of engineers would not have the luxury of not needing to think about scalability.

With engineering salaries being what they are, why would you think that "most people" are employed working on systems that only have 1000 users?
Quality of a specific program (that is not a good C++ program) is hardly a reflection on the quality of a language.
And so does openwrt, since you'll notice that that CVE was fixed.
Some programs have different flags and behaviors between Mac OS and linux. This has bitten me quite a few times. Even on Linux there are often competing versions (BSD and GNU version might have different flags for example).
UnifiedNlp for the win :)

https://github.com/microg/UnifiedNlp
Why the weird misspelling?
Yes, there’s nothing wrong with C++ with very good programmers who know the language well and what they’re doing.

Unfortunately not every programmer is or knows their limitations.
She’s not saying this, she reports that hardware engineers are saying this. Which, if generally true, is sad.
Unrelated, this is an arm64 thing.
You can try, but it would likely be at least 10x the length of the C++ (or rust) program.
Even if it does, there are people who think that keeping style information is historical inertia, and that, if it were invented today, the default would be to strip style info from the text, moving “paste, keeping text style” to the more complex key combination. I think I agree with them, but fear a bit that some users might never discover that style can be pasted.

(some links showing those people exist: https://havecamerawilltravel.com/photographer/set-paste-matc..., https://ux.stackexchange.com/questions/30821/why-doesnt-past..., https://www.houkconsulting.com/2020/01/paste-text-without-fo...)
Not yet, but planning to. I don't expect problems, but I'll defnitely report any issues if they arise!
If this isn't anti-competitive, anti-trust behavior I don't know what is anymore. Obviously, my opinion does not matter and courts would have to decide that. But I've been saying it for years. If you care about the open web please stop using Chromium browsers.
Arguments are to be avoided: they are always vulgar and often convincing.

-Oscar Wilde
Got to agree with this. You see European football fans make dehumanizing monkey sounds and gestures at black and brown players. I don’t think I’ve ever seen that in American sports.
I've heard of Camunda from reading this excellent article [1], but I havent' looked too deeply into it yet.

BPMN vs code is something we have considered. Our workflow engine works more like state machines as code, which is kind of the worst of both worlds. The business processes get fragmented into logic for each state, and mixed with imperative effects, so its neither easy to see the process nor maintain the code.

The nice thing about BPMN is that it's probably a bit more learnable by the subject matter experts who ultimately determine what the correct business process should be. However, having seen some pretty monstrous process flowcharts, my guess is that it probably doesn't scale past a certain level of process complexity. I suspect that workflow-as-code is ultimately the more scalable option.

[1] https://www.infoq.com/articles/events-workflow-automation/
Like Parker.. the design is based on the nose of jet planes. I am horrified now as I remember how ..as a child..I used to play with my grandfather’s MYU..lidless and nib tearing the air while nosediving.
Nokia wins NASA contract to put a 4G network on the moon
Google disobeys their own standards in MUCH worse ways. This year they are pushing a reduction in Cumulative Layout Shift (CLS). https://web.dev/cls/

But they purposefully use CLS in Search to increase clicks on Ads https://twitter.com/andyhattemer/status/1262564268890820609
In other news of things that are completely obvious...
For a stoic you sure seem to be emotionally invested in other people’s emotional reactions to even further people.
Check out the release song!

https://www.openbsd.org/lyrics.html#68
People in the (very small) poetry world used to know the Atlantic as one of the premier places to have a poem published. If you pick up a physical copy there are two or three poems and those are guaranteed to be by someone huge in the American poetry scene at the moment.

In the last decade or so things have changed, online has boomed, spoken word/slam poetry took off and left it's mark. And now the markers which signify status in the poetry world are shifting. And for the first time in a while I was actually reading the Atlantic for the articles (online) and surprised to find how much of it was, as you said, partisan, ideology-first, logic-last type reporting.
What kind of shit company culture do people have where you need threats to implement a simple, clear-cut technical decision?
This is a good point: opting out of reality is a worse strategy for happiness on a longer timescale. However, reading the 24-hour news cycle and being aware of the real political landscape is not perfectly correlated; I'd argue it's 50% overlap at the upper bound and sub-ten % at the lower. Furthermore, reading the news cycle and being politically active in a way that affects your, your family's, and your "heirs'" wellbeing is probably almost negatively correlated.

Any political wins made by groups exploiting and dominating mainstream media (Trump) are explained by the fact that the barrier to entry in political action is so low—just getting a few people to vote is politically effective because almost everyone is just watching the news instead of doing anything real. Meanwhile Trump's team meets with money and accrues powerful stakeholders by annexing their agenda, building support in institutions and markets.

So ignoring political news and pursuing interfaces with actual nexuses of power is far more politically effective than the hundreds of people with twenty tabs of The Atlantic open and the WSJ draped across their lap like a religious shawl every morning. Go out, meet politically active people in your city, email representative staff, make friends with people with money and vested interests that are vulnerable to political changes.
That's because the sync.
Yout Player is the new way to watch playlists from YouTube on Desktop
And npm style of libraries, which does very little to improve quality versus C++.
What is the Chomskian approach to news?
> dozen/hundreds of hours spent trying to reach a decision that was actually never reached to avoid hurting someone's feelings.

This entirely misses the point.
Is there any code in the book? If so, are they fairly short snippets, or do you build up longer scripts and projects over the course of a chapter or more?
Unfair Advantages to Exploit with Brain Supplements
This bill is pretty smart (agreed about the limit though, I'd even put it at 1M MAU). Could it be we're finally at a point where Congress is listening to competent tech lobbying instead of just megacorp media/tech companies?
The Rust version in fact doesn't have that problem. It opens the file, then checks the type of the open file.

You could do the same in C++, but in Rust it's the default. So...
I would guess the OP is making the argument that as a single-mover he wouldn't see much benefit. But where institutions and governments intervene, they can encourage competition, and so improve the state of the lesser player, in addition to potentially crippling that of the dominant one.

An example to which I could relate in terms of this line of thinking is plane vs. train travel. Were subsidies to flow towards the train rather than the plane, it would make it more affordable for me to the environmentally better thing. However, as things stand, I frequently find it hard individually to justify the often much higher cost AND longer duration of the train over the plane.
Including sites like Gab and Bitchute?
Variation in laws and norms is a valuable teacher, and there's a lot of shallow faith in the civic religion, agreed on that much. I'm kind of too lazy to argue with you here about the rest.

The affordances of social media could be much better designed for preserving the memetic edge the more true ought to have over the more false; OTOH the way Twitter and Facebook are going about this attempt at reform is heavy-handed folly that's already backfiring. (http://www.islandone.org/Foresight/WebEnhance/HPEK1.html from the 1980s shows by example that it is possible to think ahead about societal consequences of the design of communications media. That particular paper focused on more scholarly publishing, but it's not like that's unimportant either.)
> The important part of a new rule or law is that we accept the trade offs. I’m not convinced we’ve reached consensus that we all need to be wearing masks but most are obliging.

The key factor here is that there are very good and obvious reasons to wear a mask, while the trade-off is a minor inconvenience. It's arguably less effort than shovelling snow from the front of your house.

If the vast majority of us are obliging due to the hope that it has an effect, with little to no negative effects, why are people making this a hill they want to die on? Worse still, why are people making this a hill for others to die on?
True, but I think a better argument can be made that an addon website is an integral part of the brower itself, as opposed to an unrelated website like Search or YouTube.
I don't understand this article.

I think there is no language level feature in Rust to prevent TTCTTOU. TTCTTOU can happen in both c++ and rust.

for example:

let f = File::open("username.txt");

/*what if the file is deleted here?*/

let mut f = match f {

Ok(file) => /*what if the file is deleted here?*/ file,

Err(e) => return Err(e),

};

/*what if the file is deleted here*/

I mean even if you write it like: let f = File::open("username.txt")?;

it looks atomic, it is not.

the c++ example, on the other hand, can do a filtering too, using:

http://www.cplusplus.com/reference/fstream/ifstream/is_open/

I mean Rust forces you to do error handling, which is nice. But that's not enough for preventing TTCTTOU. I don't think the first example is a strong argument.
It is. And there is no innovation behind the lock-in effect and the "build processes around SAP workflows for maximum efficiency" meme.
Ask HN: How do you stay up to date as a JavaScript engineer
The JS language and its eco system move so quickly. What are some fun and novel ways you have found to stay on top of the latest JavaScript developments?
Book: 200 Python Exercises, an Introduction to Python
Firefox has been great for me lately. I use iOS, so I can have password synced cross platform, and I honestly feel like Firefox performs better than Chrome on my PC. Chrome eats up RAM, and it runs in the background unless you manually configure it otherwise.

I won't try to sell anyone on it, but it's awesome. Politics and Mozilla's laughable behavior aside, it's still a damn good browser.
A Critique on Intellectual Property
They said the same thing when Maria Sharapova beat Serena Williams.
I'm using Safari by default simply because Chrome is a CPU hog on my machine and I can notice my PC heating up considerably faster when running it.

I considered Firefox and tried to switch for a month before but the recent reorg + the stuff about their top officer pay makes it seem like it's a cushy position some people entrenched themselves in and the org is completely lost - the browser experience was inferior and I don't have sympathy towards them so why bother.

Chrome has plenty of forks so I try to run those on other platforms.
Any quotes to share?
Before I'd ever heard of the concept of a "workflow engine", I looked into step functions, thinking that was exactly the solution I was looking for. But when I started studying them, it was apparent to me that they suffer from the exact same problem of fragmentation of logical processes. In my ideal world, the breaks between steps in a process look much more like `await`s in a process that is modeled by a single function, and not like a hard split between steps.
And more likely to have an ablative heat shield on the side pointing at you. Adding a little heat to a thing already being heated a lot by the atmosphere isn't as effective as blinding a spy telescope aimed at you.
Yes, here's another example in London where a low quality black and white frame was used to see if a bus seat is empty. https://www.standard.co.uk/news/transport/bus-cameras-set-to...
But I don't care, as a customer, if my auto mechanic has the best most awesome toolbox. Just that he got the job done.

Engineering tools are only porn to people who can appreciate them. All the customer cares about is "does the damn thing work" and "I want it to cost what I think it should".
Maybe my comment isn't clear when viewed in isolation, but I was (and I believe OP was) talking about rewriting href of a tags, or in the case of bare links, rewriting the text altogether. So adding a data-saferedirecturl attribute and using that in the click handler is entirely different. Btw the data-saferedirecturl attribute is not found in the email bodies when downloaded via IMAP. I didn't check Gmail's REST API but I assume someone else has checked that too with a client using that.

I mean, given the linked screenshots, the accusation is very clear, and no one has thus far reproduced anything close to that.

(Incidentally I'm no stranger to Google redirects. I don't use webmail normally, but I did write an extension to remove the redirects from Google SERP...)
> says person commenting on a news aggregation site

This story didn't contain anything actionable that changes your decisions either, and yet you still read it and spent the time to comment. I don't see a substantive difference between reading HN and reading following political news. Nearly everything on this site (not even just this piece) will not affect your ability to accomplish your goals in anyway. It's a distraction at best.
We should redesign the news. What would it ideally be like?
I think the problem isn't the news, but the obvious injustice that politics gets away with.

In germany, the minister of transportation lost the taxpayer 500 million euros, with a publicity stunt to bolster his party in a local election.
He is now lying in people's face about it, everyone knows it and he does not have to step back.

Instead, they wrote a fluff piece about him, because he managed to buy some masks for the nation by using some connections from his home town. The article that came out two weeks later about these masks being fake and another million euros lost was for some reason behind the paywall of the online newspaper.

It's not the news that makes people unhappy, it's the blatant bullshitting we have to endure.
Whoa. I had no idea grids were so powerful. This is pretty much endgame in layout. Is there a similar system for iOS and Android? Don’t think auto layout or constraints work this way.

https://caniuse.com/css-grid
It isn't non participation though. You can participate in politics (local, state or federal) without consuming the 24/7 news cycle. The "news" is usually pushing doom gloom and fear no matter which side of the spectrum you are on because that gets the clicks. Rarely do political issues have meaningful developments everyday so continually checking not actually enhancing your ability to participate.
It's generated by a Python script [0] from a list of URLs, but the input list doesn't seem to be included in the Chromium source (only the binary output of this tool).

[0] https://github.com/chromium/chromium/blob/615d5eed47c10d8890...