skysight-inc/HackerNews huggingface dataset:
> This is because the matcher itself must take ownership of the expression, and destructuring is an ownership transfer.

It doesn't, you can bind by references. It's more fiddly but nothing precludes the combination of at-patterns and sub-pattern matchings, though it's not stable yet there's a tracking issue for at-and-sub-patterns: https://github.com/rust-lang/rust/issues/65490 and it works on nightly: https://play.rust-lang.org/?version=nightly&mode=debug&editi...

There's also an issue for patterns combining by-ref and by-move bindings: https://github.com/rust-lang/rust/issues/68354

Also… does Swift even have as-patterns?
Looking at you, AWS.
Your statement about char I disagree with. A char is a byte, as you say. But that means it has numerical value as well. I could have a "identityMatrix" function that takes a char (because I decide I won't have matrices with a dimension > 256); it would be O(n^2) in operation though. In fact, I could have a 3 dimensional identity matrix creation function, and then it would be O(n^3). I could have a brute force generation of all possible permutations of the numbers 0-input, and now it's O(256!). The input of the function does not tell you anything about the complexity of the function (though it may tell you the max value of N. But, for instance, a function of O(n!) is almost assuredly going to be far, far worse than one with O(1), even if the size of N is maximally 256).

All that aside, I agree that the OP is O(1). It does 5 comparisons. It always does 5 comparisons, regardless of the input of the isVowel function. Yes, includes, evaluated out of context, is O(n), but you know something about the context it's used in to be able to give isVowel a tighter bound. That's usually what the goal of Big O is; not to define ~a~ bound, but define the most conservative.
Assuming session ID's are tied to individual users and looked up via a "SELECT * from sessions where id='?'" type query, how does this even happen?
Women Dropping Out of US Workforce at Fastest Pace Since Covid Pandemic Peak
See the <a href=“ https://en.m.wikipedia.org/wiki/Oil_drop_experiment”>Millika... Oil Drop Experiment</a>, particularly the section “ Millikan's experiment as an example of psychological effects in scientific methodology”
Oh please.... Most don't want to.

(Presuming you're in US and generalizing) Being on NH you probably earn 2x the median US income. Do you own an American made luxury vehicle, that you probably can afford to lease or buy on credit? Probably not. And I bet it's because you don't want to.
@johntfella: why?
All fundamental theoretical physics starts by building a model idea and exploring what the possible consequences are in a mathematical way.

The goal is to model the real world, but it's far too difficult to go straight from a fundamental model up to the world observations to find out if the model works.

Doing that "work out the consequences" work can take decades, and a lot of people.

So models are built, explored, their consequences worked out, and if they match something interesting in other more well-established theories, then the models are looked at with more interest and developed further. If not, the models are tweaked or thrown away.

You could call it a branch of mathematics, but in a sense all theoretical physics starts out that way, so we just call it theoretical physics when the goal is to model observed reality while providing a useful underlying model.

Browse the papers on arXiv.org or any theoretical physics journal and there's a lot of exploratory model-building like this. It's very common.

Graph-space models are also not unique to Stephen Wolfram. Several physicists (paid ones) are exploring these models as an approach to reconciling relativity and quantum physics. In a sense, this is what deriving from observation looks like: We've observed relativity and quantum, and we still haven't figured out how to understand the logical consequences of both together, so exploring theoretical underlying models like this is necessary to understand current observations.

The article's theory is not "philosophical" or "metaphysical" theory where nothing can be tested in principle. He explicitly talks about measurable effects differing from other models, albeit with many difficulties and potential intractibility due to computational limits.

But the point is there are, in principle, observable differences, making it more than just a metaphysical model, and if it's intractable to access them we can't figure that out without studying the model further. Even if we can't, there not being able to may have consequences as well (like the way the Heisenberg uncertainty principle turns out to have logical consequences, not just preventing measurements).
Yeah, you could just telnet into it.
Me? I've seen it down a couple times before, and when it was, I just Googled for another copy of the article instead of posting "Wikipedia is down! OMG the world is ending!" all over the internet as people do when AWS is down.
It is a way of virtue signaling.
We were significantly more productive with Trello as our project management tool (and this was way before, when checklists were a major new feature) than anything since. We’ve tried all the major ones.

Unfortunately Trello did not satisfy management because it didn’t easily give them metrics that serve little to no purpose other than changing the team’s incentives from encouraging a great product to meeting metric targets.
Nominal wage is almost meaningless. Using something simple but meaningless instead of something meaningful but harder to calculate is nonsensical.
Probably even a bacteria, and even an organelle inside one, is doing computation that a memristor can't. Comparing a memristor with a neuron is laughable.
Isn't that a tad different than discovering an active security hole?
The submitter correctly rewrote the title, because the article's own is linkbait. (From the site guidelines: "Please use the original title, unless it is misleading or linkbait" https://news.ycombinator.com/newsguidelines.html)

The submitted title was "Warren Buffett says the most successful people say no to almost everything", which seems reasonable to me. The word "most" conveys what you're saying—in an abbreviated form, but that's how titles work.

However, I've changed the title to the quote now. We often do that when the article is a quote.
Fun fact: income for every citizen is publicly available in Norway.
I was curious, but it was more a joke :)
In the context of the USA:

We are net exporters of all the major staples. At the very least, we can ratchet down subsidies until we are no longer a net exporter of agricultural products; that level of production is sufficient to handle all our essentials.

> If you rely on importing your food and shipping is disrupted due to war, you're screwed.

The biggest exporters of agricultural products to the United States are Mexico and Canada, which also have plenty of excess capacity. Even in the unlikely scenario that some geopolitical rival manages to shut down trade across the Pacific and the Atlantic, we wouldn't be in a place where we have to worry about our food. If somehow our rival also had the capacity to shut down transit of goods across our land borders, they also have the capacity to shut down domestic transit of goods. I.e., even having self sufficiency based on farms in Iowa wouldn't help feed anyone on the coasts.
Clearly something went wrong

> It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system.

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

> flatpak(1):

> ... isolated from the host system ('sandboxed') to some degree, at runtime.

http://manpages.org/flatpak

> One of Flatpak’s main goals is to increase the security of desktop systems by isolating applications from one another. This is achieved using sandboxing and means that, by default, applications that are run with Flatpak have extremely limited access to the host environment.

https://docs.flatpak.org/en/latest/sandbox-permissions.html

And a lot more

https://www.google.com/search?q=flatpak+sandbox
Google Warns about Root.cern
Well Said pritam. I am also from India and i see many of my friends run away for free thing. eg: Till September 30 They used google meet for their online classes and now they are searching for another free alternate.
It is very sad to see this culture of spamming and gaming. Infact this is one reason why many Saas Companies dont prefer India as a matured market as they will use the free system and wont ever upgrade to a paid plan.
Same here. What's was funny about losing my sense of smell is that unlike vision or even hearing, it's hard to remember how strong things were supposed to smell before, so it was also hard to know when it was fully back. But at around 1 week I smelled a raw leek and got a whiff of something and then within about 2-3 weeks, it wasn't noticeable anymore.
It also serves as a flag that allows people to identify you as having bought into the general set of practices which strive to change our culture to support trans and nonbinary gender ideology.
This is a well written piece. It describes an issue that, while you could say there are more important issues, is certainly the most important issue in tech.

However, there is an issue with it that prevents me from sharing it, and that is the comparison of current social punishments for speech to lynching. I think there are many people who could be won over by the line of argumentation made, but will immediately tune it out because of that comparison.

In the American context, lynching usually refers specifically to a campaign of violence and murder against black people. In the debate about consequences for public speech, a common argument is that public racialized abuse should face consequences. I think that this will immediately turn off skeptical readers who may be receptive to the message.
> undocumented workers are fodder for exploitation

So do the right thing and make their migration legal. That is what people mean when they say they want more open borders.
I'm not sure if it meets your 20 year criteria, but science believed that peptic ulcers were the result of over production of stomach acid when one researcher proved that a bacteria was the cause of the majority of them. He had to buck general scientific consensus
> Do you go to your doctor for an annual checkup?

Doctors will rarely subject anyone to thorough evaluation for things if they aren't over the common danger age and don't report specific symptoms. Your typical annual checkup for people not 50+ is a fairly generic blood panel and very little else. After 50 they may add, what, a prostate probe for men?
Perhaps it's a generational thing because I don't see a problem with what happened, at all.
I had a genuine case of anosmia after recovering a regular cold. I could breathe clearly through my nose but had absolutely no sense of smell. Couldn’t smell gasoline or anything at all. It lasted for weeks and one day my sense of smell suddenly returned.
No, users. I just had to log in, despite recently being active. I guess this is why.
Many people with documents don’t cross borders and start anew.
> Marriage on the other hand is very personal - it would be ridiculous to expect people to marry into other races/castes/ethnicities as the norm - it never happens that way in any part of the world no matter how advanced - people generally prefer the partnership of people that they share most in common with.

This mentality is the exact point GP is trying to make. If your preference is for people of your own caste/race/etc. then those divisions will be reinforced. I don't think anyone here is saying that you shouldn't marry based on your own preferences. Just that people not considering caste as part of marriage decisions would be a good signal that caste is losing relevance.
COVID causes brain damage, leading to loss of sense of smell.

https://www.health.com/condition/infectious-diseases/coronav...
I feel like the "Jobless and living with parents" pejorative is missing the mark.

Jobless -- So what? If a country has figured out how to provide for its people w/o jobs, so what? For example if we had perfect AI-robot slaves we'd all be jobless. Would it be a problem? Maybe we should ask people why they want a job, maybe what they want to do doesnt require one?

"Living with their parents" - Again, so what? Much of the world and across much of history this was just how it was. No one denigrates someone 0-20 for living with their parents, why should a 30 yr old be denigrated for the same. Plus, for many of us so lucky the same scenario, with opposite take, will occur-- our parents will move in with us later in their life and we'll "live with our parents" again. Plus when you add that median sq foot of homes (at least in USA) is rising, you can comfortably live with more people in "home". With double master bedrooms more common and more square feet we're blurring the lines of what a single home means. Some houses are so big that you could just put a dividing wall and a separate entrance and you'd have 2 homes...
Preferred gender pronoun:

>Preferred gender pronouns or personal gender pronouns (often abbreviated as PGP) refer to the set of third-person pronouns that an individual prefers that others use in order to identify that person's gender (or lack thereof). In English, when declaring one's preferred pronouns, a person will often state the subject and object pronouns along with the possessive adjectives—for example, "she, her, hers", "he, him, his", or "they, them, theirs"—although sometimes, only the subject and object pronouns are stated ("he, him", "she, her", "they, them").

https://en.wikipedia.org/wiki/Preferred_gender_pronoun
Package format does not make an os. Codebase does.
> You can bind references to what you are matching with @name.

Given what they're saying I assume they're trying to match both the entire value and the sub-values e.g.

xs@(_:xs')

in Haskell. Stable Rust currently lets you use at-patterns and perform assertions on the sub-pattern, but not match there.

> You also don't need to take ownership of a value. You can match on a reference to it with &.

`ref` is what you'd use in a pattern though, `&` would deref' a reference so usually it'd be to Copy a Copy type which is provided behind a ref'.
Is a there a good collection of Idevice apps somewhere that we can take and compile and use for this purpose? I am starting to go down the path of making my own simple versions of popular apps like Twitter or pulling the backend apis of other apps for stores all in an effort to remove as much tracking as I can while still keeping functionality.

For example, there is a popular convenience store app that gives discounts on items such as coffee but in addition to the standard tracking, I also discovered code that indicates they are using bluetooth beacons to do in store tracking. Instead I am pulling their api to fetch the deals so I can ditch the app. Would be great if there is an existing collection so I can ditch more official apps more easily.
Having not encountered this theory of space-time,

I am somewhat surprised that it does not at least as far as I have read in the linked article, explicitly state that this model is 100% consistent with and I assume a consequence of assuming that we live in a simulation.

I.e. it would take a really light editing pass to change the description given of space-time from a proposal about the physics we live in,

to a prescription for a fairly obvious means of building a simulation that runs on some kind of discrete computation engine.
Storing copies of a TOTP secret is as good as just having 2 high-entropy passwords and saving multiple copies of one of them in clear text, which is not more secure than having 2 high-entropy passwords and not storing them anywhere, and which is equivalent to just 1 doubly-high-entropy password not stored anywhere.

The fact that you can store copies effectively defeats the purpose of 2FA.

One of the reasons to have multiple YubiKeys is that if I lose one on the street I can just login to all my services with my backup key, disable the lost/stolen key, and buy and register a new key.

Whereas if someone got a hold of your TOTP secret, ehhh ... you might not necessarily know for a while.
I live in a major wine producing area. The dirty secret here is the number of wineries - some of which have scored high ratings - that buy bulk grapes and put a label on the bottle. So, hey, make wine in your basement, why not?
Logging people out seems like a hella low price to pay to pay for a potential security issue. Of course, hats off if you hold your engineering organization to such a high standard for normal changes.
There is some non-edit dynamic stuff too; some templates are written in lua

These templates can pull information in from outside of the specific Wikipedia instance, like retrieving properties from Wikidata.

Edit: I guess I was wrong, seems like lua modules are only evaluated when there's a change to a page incorporating them:

>The programs are run only when the page is "parsed" (when it or a page it incorporates is changed or previewed), not every time you view the output.

https://en.wikipedia.org/wiki/Help:Lua_for_beginners#Input
That cat is already out of the bag. How many Ubuntu users have custom software sources enabled; how many of them are installing games from Humble Bundle that come as their own `deb` packages with statically linked assets? GoG installed Linux games don't even use the package manager at all.

Heck, there's a decent amount of Linux software being distributed right now as `tar.gz` files with an install script that just extracts the folder someplace and then modifies the user's path.

Flatpak improves on all of that.

It's one thing to look at the Linux security model and say that OSS authors should coordinate with distros, but OSS authors and general Linux developers already don't do that today. So how is Flatpak making that situation any worse?

Developers were already abandoning the sane security model. Flatpak is a response to that trend, not the cause of it.
And if our culture doesn't already support trans and non-binary people (ideology? no, it's people we're talking about), then that seems like it'd be a good thing to change.
USB Redirector or USB Redirector RDP
incentivespro.com
Westphalia is a blip in history. The world has gone through cycles of war and peace, borders or no.

Meanwhile, there are more separatist groups than there are countries, and some of them enjoy blowing things up. How did borders work out for the Middle East? How did they work out when the USSR disbanded? Etc etc.
The stresses of university already propels you into adult hood, and by living with your parents, the extra money you save on housing will set you up better for when you do move out. Living with your parents is not the definition of childhood. The definition of childhood is not realizing rent and food cost large sums of money, or that credit systems allow you to purchase rent and food without money, or that houses can be bought with the bank's money. I'd go one step further to say childhood ends when one realizes the fictional settings in books and video games are just linearly connected thoughts etched into their respective paper or magnetic mediums, but that's another topic.
It's important to note that these charts apply to the nation, not individual cities. The rent has increased 5x since 1990 in Boston - wages are up 2.7x:

* Boston Rent: https://fred.stlouisfed.org/series/CUURA103SEHA

* Boston Wages: https://fred.stlouisfed.org/series/MHIMA25025A052NCEN

The same is true for almost every major (growing) city beside Houston & Dallas.

Combined that with the fact that income taxes are higher at these "higher wages" and that student debt payments are up 4x just since 2007 - who knows how much since the 1990s - and you can start to see why things aren't so rosy for young professionals.

* Student debt: https://fred.stlouisfed.org/series/SLOAS

If you look hard enough, you can find any chart to support almost any opinion. The point of the "anecdata" was to get people to look at a certain side of things. Particularly for people living in HCOL cities that aren't "highly skilled".
This is awesome! I've also been doing development on an old Mac 512k (upgraded to 2MB). It's pretty wild and super fun.

Until recently I was using Think C, which was great, but recently I've switched to Think Pascal. It's true what you read on the old forums, Think Pascal had more love put into it. The editor is better, the errors more helpful, and little things like remembering which files you had open in a project make a big difference.

Shout out to the Mac 512k Blog[0], which has some great content as well.

(Edit) Also for anyone else looking for helpful online resources (beyond tutorial books and Inside Macintosh, which are essential), preserve.mactech.com has tons of great old articles.

[0]: https://macgui.com/news/showcat.php?id=8
Did not know VxWorks is so prominent in space programs. I'm used to seeing it when trying to talk to backend storage arrays and the like.
> Use some of that saving to support the web.

Or don't. I don't get mad when people write bash-specific scripts that won't work on all POSIX compliant shells. This seems analogous (though admittedly non-compliance to web standards has a larger impact than non-compliance to shell standards). Perhaps Chrome removed enough barriers for the tool to exist at all.
What does compiler mean here in the context of Javascript?
Aside from the last, this is all very standard stuff, I don't mean for Rust I mean for language with sum types in general.

> - switching on tuples (not wrapped in a var): this prevents doubly-nested switches, which I've always found to be a problem in control logic

match t {
(Some(a), Some(b)) => a + b,
(Some(a), None) => a,
(None, Some(b)) => b,
(None, None) => 0
}

> - unwrapping optionals

match opt {
Some(v) => v,
None => 0
}

although it's common to use HOFs, the `?` operator, or `if let`.

> - matching against an enum's associated value, and unwrapping it

See above.

- using `where` clauses as part of the pattern

match opt {
Some(v) if v > 5 => v - 5,
Some(v) => v,
None => 0
}

> - matching against type casts

Rust doesn't really do subtyping, so that's not a case which would come up. I guess the closest would be matching on the result of a downcast_ref (https://doc.rust-lang.org/std/any/trait.Any.html#method.down...) but that just returns an Option so there's nothing special to it.
You could generate the key(s) on a (airgapped, if so inclined) computer, push to multiple Yubikeys (though other brands are available, let's not let it become a 'google') and then delete the private key(s) from computer.

Of course, it depends what you want to defend against with your backup - this works fine for a broken OpenPGP smart card (;)) but in the event that it's lost or stolen.. well the best that can be said is that it gives you some window to create a revocation cert, login, and change the single registered FIDO device to a (third) newly provisioned one (or your second one, the backup, provisioned with a new key after logging in).

Or you could use a different method as your backup (IME if they only allow one they do at least also have backup codes, app-based, etc.) in order to login and change the device to the backup provisioned with a different key. (So it can be generated on the device in this case.)