skysight-inc/HackerNews huggingface dataset:
Life happens. And no being fired is not life and death scenario. If you want healthcare you need to find other work. If you can’t find other work then move to other places. If you can’t move to other places then you need to question what made you got into this hole of dependence to your employer from the first place.

If you are skillfull and bring value to your employer why would the fire you and why would other employer won’t want you?

Layoffs are great. They weed out the unproductive ones.
Surprised no one's mentioned "one-pot pasta" recipes yet, where you cook veggies / sauce, and just drop raw pasta into the pot while the water is cooking off.

The pasta comes out starchier since you're not throwing away the starch water, and it tastes great, but definitely "different" from a "real" Italian pasta dish. Still great though! Italians view this as sacrilege but it's great fwiw.
The other way is to have a constant current source, this gives you much better control versus the voltage source.
While traveling through Europe, most AirBnBs had electric kettles and they all had gross scale deposits in them so I ended up boiling water in a pot.
Oh this one is easy.

You know which US party is on the side of "abortion is fine."

As to "spiraling deficits", take a look at the US deficit per year[0]. Where the Bush Administration caused the massive doozy of the 2008 recession where deficits spiked. And then the Obama Administration, upon inheriting that mess, reduced the deficit every single year until 2016. Then, the deficit increased every year under the Trump administration.

You would be Democratic party "left wing" by both accounts.

[0]https://www.thebalancemoney.com/us-deficit-by-year-3306306
You don't need to cook Couscous and it is often pre-cooked in retail. In fact, that's how one prepares Taboulé. For Pasta it is absolutely not the same thing at all. Uncooked pasta isn't good for your stomach. If you don't want to cook pasta, then buy instant ramen, they are already cooked.
What would you advocate as the best metrics across those domains?
The students (and families) take on the debt.

The government backs the debt.

The schools get cash.
> Apparently "A11y" stands for accesibility

This has been a common term since a few decades ago. No need to be snarky if you don't understand something.
If you thought there was honor amongst thieves, I can assure you that there is none amongst politicians.
Dell's XPS series is notorious for being both expensive and exhibiting coil whine. It's not about the price of electronics, it's about what the consumer cares about for the given price - size/weight/other fancy features/coil whine/etc.
I'm too busy to explain it. But in short, the facebook/instagram (and youtube) algorithms are built to optimize:

1. Content that is profitable from an advertising perspective

2. Censoring certain content/only showing major/authoritative sources.

TikTok changed that by allowing grass roots content to go viral, which from an algorithmic perspective is less profitable. But that doesnt matter, its backed by the CCP. Theres alot that goes into why tiktok is better, and alot of it is monetary/business related, not computer science.

But beyond that, FB/Google just got lazy and stopped pushing for new things. Wildly successful and presumed monopolies, they left a massive product gap (allowing grass roots content to go viral), which TikTok filled.
I wonder how I’m making my Chemex every morning…
What are you on about? Go re-read the press release. They said the exact opposite.
Semi-related: What's the deal with all the empty land between SF and San Jose? I get that it's mountainous, but it seems like at $2,000,000 for a tiny parcel of land someone could figure out how to build on it

Maybe I'm misunderstanding, but it kinda looks like a national forest or something when you drive along 280
I boil water in a kettle, then pour it over raw oats into a glass jar (e.g. peanut butter jar) enough to "wet" everything without covering the oats. Ten minutes later and the oats are perfect
Yes. It uses 1 as the start of an array.
The questions at the end don't ask whether you think the moon landing happened they ask whether you could tell if individual components of the video were faked or real.
China posts 6 month high Covid count
Meta is preparing large-scale layoffs this week
Amazon is much easier from a raw algorithms perspective, but much harder from a behavioral interview perspective. I used to work at Amazon and conducted over 50 interviews. Amazon selects for a different personality type than Facebook. It's also true that alot of interview rejects at Facebook get into Amazon
Not sure what the death rate has to do with anything in the context of zero Covid. Are you implying the deaths are ok? Personally I think we should lower the number.

Or is the idea that since people are going to die anyways there’s no need to try to save them?
> But, I wonder; are these the same people (managers) that were making decisions that allowed the company to loose $4 million a day?

Twitter is losing US$4 million a day now, with the added interests Elon has to pay back on his US$ 1 bi loan to buy Twitter. So using this claim as a justification is exaggerated, by the sheer fact that most of that US$ 4 million figure is from Elon's own creation.
Doubt Apple will let that happen. That will look very bad security wise.
> > Signed integer expression simplification [...]

> This is easily addressed by allowing (but not requiring) implementations to keep wider intermediate results on signed overflow, to a unspecified width at least as wide as the operands.

> > Value range calculations [...] Loop analysis and optimization [...]

> Allowed but not required to retain excess bits on signed overflow.

What does that even mean? That the code would have different behavior with a different compiler, different optimizations or when you slightly change it (depending on whether the compiler chooses to keep wider intermediate results or not)?

If understand you correctly, then depending on the values of x and y, `(x+1)<(y+3)` would have a different result than `(x+a)<(y+b)` when a=1 and b=3, because in the first case you would be simplifying the expression but in the second case you couldn't.

That would be quite surprising, to say the least.

> No, they're done using size_t; that's what size_t is for.

for (int i = 0; i < 256; i++)
a[i] = b[i] + c[i];

So you've never seen code like this? Not all arrays are huge and for small indices people usually go for `int`.

Also, when doing arithmetic with indices, you might need to represent a negative index, so `size_t` wouldn't work. You'd need to use `ssize_t`, which is a signed integer which would benefit from these optimizations.

But even then you might use an `int` if you know the arithmetic result will fit.

> No, the fact that i (of type size_t) < length of a <= size of a in bytes <= SIZE_MAX ensures that a[i] and a[i+1] are adjacent.

Not if `i` is a signed integer, say, `int` or `int8_t`. Which is the point of the optimization.
Yeah, when you hear of someone who's been accepted to Duke deciding to pursue their studies in the NFL instead, give me a call.
> people I don't admire or don't feel represented by

I share this sentiment and can't figure out why politicians aren't better stewards of the peoples' interest. The primary philosophy guiding me at this point is bias against incumbency, on the premise that including more citizens in the political process is worthwhile, like voting.
> Unemployment rate is a measure of slack in the labor market, nothing more. It says nothing about an individual’s experience.

Unemployment rate is simply the ratio of two patterns of individual experience (not employed and actively looking vs that plus currently employed), published after the fact.

> 5% unemployment means there’s a rotating set of job seekers that comprise 5% of the labor force.

5% unemployment means that (at the time covered by the report) for every 100 people either not employed and actively looking for work or working, 5 fell into the former category.

It absolutely doesn’t tell you how much of that group is “rotating”.
They do exist, but Duverger's Law ensures that it is mathematically impossible to have a stable system with more than 2 parties.
I don't think anyone is arguing that C++ is more difficult to use than Python, and much less safe. The question is how does python stack up to Java or C#? As you can see in this thread and many other discussions on this forum and elsewhere, people with experience working on larger systems will tell you that it doesn't.
Your followers migrate, but your posts and any interactions on them don't. And for good reason, of course! But I do understand where the author is coming from: if you've put in a lot of effort in your posts thus-far, it does still feel like leaving a lot behind when you switch servers. Your post history is much more of your identity on social media than your followers are.
> But some sets of data and some operations on them that fulfill some formally stated requirements are just an abstract algebra, aren't they?

Not quite. A variety of algebras (which is usually what people have in mind when they talk about "algebraic structures" in general) is a collection of operations with equational laws, meaning that they're of the form "for all x_0, x_1, ... (however many variables you need), expression_1(x_0, x_1, ...) = expression_2(x_0, x_1, ...)", where the expressions are built up out of your operators.

Fields are the classic example of a structure studied by algebraists which is nonetheless not a variety of algebras: division isn't described by equational laws, because it's defined for everything except zero. This makes fields much harder to work with than e.g. groups or rings, in both math and programming.
What would you advocate as the best metrics across the domains of literary merit and moral fiber?

It sounds like you need to read Zen and the Art of Motorcycle Maintenance.
I think the advice fits fairly well with what you're saying: presumably a person works on projects they are passionate about and they learn about things they are interested in.
> What makes Harvard better

Even dropouts make more money after being there, not to put too fine a point on it.
China isn’t using modern treatments or vaccines so that’s irrelevant. Go look up how many hospitals are in China. China is extremely poor.
Sure, I follow. At the same time, we've still got tons of all-cash buyers in the Bay Area. Those $6.5m+ POS properties are still selling like hot cakes (surprisingly).

Outside of SV, I expect you'll see such a drop.
Yes, but not ones where you're fenced in with barbed wire and can't leave.

I thought the concept of company towns was more financial and economic slavery, eg your company gives you a mortgage to a buy a house from the company, all near work so you can work long hours, and you're essentially an indentured servant.

But this is actual slavery, these people are literally locked in and can't leave except by crawling over barbed wire fences.
This is an old article but it's from the current year. Perhaps (2022) can be added to it or is there another way to point out that it's an old article from the current year?
Because that is an offical EU domain. Email coming from that domain is official EU correspondance. If the EU wanted to run a mail system available to all EU citizens, it would make more sense to register "civitas.eu" or some similar domain and provide it there.
Nice, love to see posts where people give their experience like this. It's a rare thing.

> the Cargo compiler

Really small thing, cargo is a build tool, not a compiler. `rustc` is the main compiler, cargo wraps that and provides helper utilities for stuff like package/ project management.

> Detecting an out-of-bounds access at compile time requires a deeper analysis of the code that would significantly slow down compilation time (which is already too slow IMO).

The compiler actually is likely doing this stuff already because it's trying to optimize away any branches. I bet it already can see in these basic examples that the panic is unconditional. There are crates that leverage this fact, like `no-panic`, to try to see if your code is panicking.

Also worth noting that "panic" is kinda like a runtime exception in Java and it can be caught. In fact it's automatically caught at the thread boundary - that's going to just be the main thread in your example.

> This section is about a recent behavior I observed where our team woke up to one of our crates’ (dependencies’) dependencies starting to panic in production under specific conditions

Bummer! Especially for a crate as popular as reqwests. My suggestion would be to assume any code can panic and build around that. That means a few things.

1. It means to test your code. Integration tests are great for catching bugs like this, even a basic smoke test would likely catch it.

2. Use a control plane that will automatically restart services, monitor their health, and reverse deployments if they don't get healthy soon enough.

Ultimately, no matter the language, crashes happen. That said, I get that it's frustrating and no one likes a panic.

> A quick idiomatic alternative to dealing with this problem could be overriding Rust’s panic_handler but unfortunately this is only possible in #![no_std] projects.

FWIW people are thinking about how to solve this for the std case.

https://tmandry.gitlab.io/blog/posts/2021-12-21-context-capa...

One option is capabilities. This is kind of like what `unsafe` is - in order to call 'unsafe' you have to be in an unsafe context.

There are other options as well. Anyway, the point is, I hear you and so do others - understanding where a panic might occur is definitely of interest to rust devs.

> Program binaries can be huge

Indeed, but not really inherently huge. You can get quite small - I suggest stripping your debug info, that's a ton of the space.

> On a more personal note, I wish to be more involved in shaping Rust’s future by making contributions to its software while keeping learning its concepts and intricacies.

Honestly, this is a good start, it's always important to let the people behind the language know what's working for you and what's not.

My final suggestion would be to consider asking for help in either the Rust discord, subreddit, or user forum.
Sorry, I indeed switched to a wrong browser tab and skimmed instead of reading when started this discussion. Please disregard the quicksort discussion.

I still think that it's normal for programs to behave weird when the input parameters are getting close to INT_MAX. Sometimes it's unavoidable. And if it's not specified in the function docs, you should go and check the implementation as a programmer. For binary search it is avoidable, so the criticism of the linked implementation is fair.
$8 should be plenty sufficient to cover some sort of identity verification service -- assuming possession of a distinct US credit card number isn't sufficient on its own. (Could make it so if you mouse over a checkmark, it displays a flag based on what country the payment for the account originates from.)

Additionally, I don't believe bot detection is an inherently hard problem. And if every bot detected means the bot creator has to pay another $8 for their next bot, then bot detection becomes profitable for Twitter.

I doubt this ends up being the cheapest way for Russia to influence US elections.
This comment comes off as extremely patronizing. All they were saying is that vim is a step backwards in workflow, for them.
I don't know much about DNSSEC, it's something I enable to get a green tick in whatever tool I use on the day to check that I configured DNS correctly.

But HTTP without HTTPS is useful if you need to go really fast, same goes for taking DNS out of the loop and going straight to the IP.

The way I see it, it's all about your threat model.
Who/what are you defending against.
And at the same time completely expected as per Goodhart's Law.
Good grief! Logistic regression! Back when I was studying such things and saw that it looked fishy and I tried to forget it and was fairly successful!

For just regression, there are some supporting arguments, even with minimal assumptions. For logistic regression?

Apparently they controlled on lots of variables -- commonly that is fishy and tends to need a lot, too much, data. For data they had

(5,105 cases and 6,535 controls)

Good grief!

From the NIH reference you gave,

"... Globally, lung cancer is estimated to account for almost 1.4 million incident cases of cancer each year and has been the most common cancer in the world for more than two decades (Parkin et al. 2005). "

Good grief.

All of this is only because I typed in

"Smoke from a wood fire? Ah, smells like home at Thanksgiving or Christmas!"

It still does! Hmm, maybe there will be a movement to outlaw new fireplaces and to brick up old ones!

Uh, at the beginning of

https://www.youtube.com/watch?v=K6bRBQL_j6o

of a guy posting video clips of his work on building post frame building, there is a picture of his huge living room with his little wood burning furnace and its tall smokestack rising to the outside. Such furnaces tend to try to be nearly air tight, but likely there will be enough smoke in the house to smell like Thanksgiving or Christmas! Then the main smoke does go outside -- hmm, maybe all of Iowa will be afraid???
> any instance will shut down sooner or later

Just another thing for users to be worried about.
The water does not stay at the boiling point when you put the pasta in if it’s a small amount of water. That’s why instructions always say to return to a boil.
Your experience is exactly what I am describing. Exacting customers imply boutique pricing, and even customers of relative means aren’t in thousands per component to get what they want market segment…I mean for sixty grand you can probably get someone to build the $2500 PC you want.

A note on gaslighting:

If Bob hears something and Alice doesn’t, it is normal for Alice to doubt Bob’s claims…though that isn’t ideal, it isn’t really gaslighting because when it comes to sound quality some. people can hear a difference in a demagnetized audio CD and others on gold plated conductors for digital audio.

Without a relationship with some degree of intimacy, defaulting to the predominance of one’s own experience reinforced by the consensus of public opinions is not unreasonable.

YMMV.
Constant current LED drivers usually use PWM for brightness control. They still have a low value shunt resistor to set the fixed current limit. Making a system with variable current adds much more complexity.
Yes, exactly. I know people love to hate on USBC but PD is generally excellent. I've often been in a case where I don't have my macbook charger but my 18W PD phone charger can keep my macbook going (and actually charge it quite slowly overnight).
Meta’s reportedly planning to lay off ‘thousands’ of workers this week
That might just be selection bias though. If you only accept the top 1% then even if they don't graduate they're still far above the average person. Ie they're more likely to succeed whether they went to Harvard or not.
I saw brand new ones for $1,400 not sure what the MSRP is though....
I recommend doing your own blind test. There is no noticeable difference for me.
Poke, probe, prod... See what changes, till you get a better idea... I mean what else can you do when there no comment/documentation and your dealing with something like:

function C($a, $b, $ba, %bb, $c, $d = NULL)
{
//insert random garbage with eval statement..
}
In practice, not really.

The key difference is that digital signatures allow revocation-of-trust to be an effortless, automatic and delegatable process. As opposed to the current process that involves individual (and intrinsically limited) knowledge of who can be trusted. Frequently one doesn't even have provenance information for a media item, which is a prerequisite for making a trustworthiness judgment call.

The "hocus pocus" is literally the point that distinguishes this scheme from the plainly non-working system that we have today.
but if you did, you stated it'd be closer to the truth than me calling terrorists worse than big oil. and you accuse me of hyperbole!

look, lets say you are right about the seriousness and evilness of big oil. the reason the eco-terrorists are worse than them is that instead of making it more likely to effect the changes you want, they are hurting your own cause. disrupting thousands of peoples lives, endangering and killing people is not going to get more people to help you. the people doing these stunts are not helping you here.
Do you mean off to the side of I-280? It's government protected nature park reserves at the northern end, and the Santa Cruz Mountains to the southwest.

One of the perks of living in Silicon Valley; you can get out of the office and go hiking or biking in nature
Or just cook your pasta in the sauce.
You don't know what you don't know.

A big part of education is studying what you don't necessarily want because it helps inform your intellectual interests.
Even in neovim you can select a region first (via 'v') and act on it later. E.g. to change till the end of the word: 'vec' (where idiomatic vi would be 'ce'), to delete the content of a block: 'vibd' (idiomatic: 'dib'), etc.
> Most of our population isn't gung ho about going off to die somewhere

This is the media's job: if the US accepted 1M covid deaths, it can accept a similarly massive death toll in whichever military confrontation the US might want to embark on next.

> instead must partner in alliances

The numbers are different, but the same incentives apply to China. That's why they have also been putting a lot of effort into making friends (funding infrastructure efforts abroad, covid relief, belt and road, etc.)
> a valid perspective

I don't think that arbitrarily confining the population (under the threat of violence) is a valid perspective.
I also like the N-1 strategy for things that are released often. I also like going with the most recent release for things that are released every 3+ years though
In the near term with a recent-enough BTF-enabled kernel, bpftool should be enough for an "ambitious" user to understand what objects are being run on a system.

Unfortunately, "ambitious" here meaning enough to actually understand more than just what eBPF is but also the significance of each hook, what effect the bpf program has (most eBPF programs are GPL-licensed), and which processes have access to these objects.

This is not easy, especially considering that the shape of eBPF changes with each kernel release.
My immediate response to hearing someone is an artist is not to look them up on the rich list and ask how many servants they have, either.
Is that just running `cargo check`? There's a pretty solid profiler that I've used before to identify slow parts of a build and address them.

https://blog.rust-lang.org/inside-rust/2020/02/25/intro-rust...
Optical media like CDs and DVDs use a similar interleaving scheme, allowing for large amounts of errors to be corrected; in fact, even during normal operation with what appears to be a completely clean and perfect disc and drive, read errors are always occurring but corrected silently so there is no loss of data:

https://en.wikipedia.org/wiki/Cross-interleaved_Reed%E2%80%9...

https://en.wikipedia.org/wiki/Optical_disc#Surface_error_sca...
Thank you, hugs to you too :)
>The fact that Google knows everbody can switch away from Gmail without any real downsides for sure keeps them in check

They do? Changing your email address across every service provider you use is a colossal pain in the ass, and that's when they let you change your email address.
Perhaps, but once you're as big as FB, you should be able to guess that your growth rate will inevitably slow. No company that big keeps growing at the same rate, or they'd take over the entire economy in short order. AT&T, GE, IBM, Dell, Microsoft, all had their growth rate slow as they got big. If FB was hiring on the assumption that it wouldn't happen to them, they were foolish to do so.