skysight-inc/HackerNews huggingface dataset:
There is no judgment in what I said. DK is a fact of life and we will all experience it at some point. I know I have, and quite badly.

I wish when I was younger someone had told me "look, you don't really know what you're talking about, here's how things really work". If no one tells you, how long does it take for you to realize and how much time do you waste thinking you know what you don't know? Again, the author is at the start of their learning journey. I'm not saying they're a bad person or a hopeless case.

And finally, people should not be apprehensive about sharing their work in general, but I think they should be when writing articles that purport to teach others.
As someone new to JS, a friend of mine insists that I always use classes and inheritance, and that functional style / composition is bad. However, most of the newer libraries I read through all seem pretty functional, whereas the older ones are full of classes. Personally, I find myself writing everything with factory functions and composition because it feels natural to the way I think about code.

Am I wrong, and should I be listening to my friend? He has much more experience than me.
Yeah I think you are right -- the nongreedy match can be simply written as a more awkward pattern. I think regular language negation and intersection also help (which the rarer derivatives-based implementations seem to have). They are still regular and equivalent in power, but there's a richer set of operators for writing patterns.

I would also divide it into the "recognition problem" and the "parsing/capturing problem".

Recognition is just yes/no -- does it match? And notably that excludes common regex APIs that either return the end position (Python's re.match) or search (re.search). It is more like math -- is it in the set or not?

For the recognition problem, there's no difference between greedy and non-greedy, in terms of the result. (It does matter in terms of performance, which shows up in practice in backtracking engines!)

But parsing / capturing is more relevant to programmers. I don't remember all the details but there is some discussion on the interaction between greediness and capturing here: https://swtch.com/~rsc/regexp/regexp2.html

It looks like it can all be done in linear time and RE2 supports it fine.

So in that case maybe the 2 questions are closer than I thought. I have a very similar set of regexes that I use for parsing (my own) HTML, but I use one regex for each kind of token, and I do it with the help of an explicit stack.

I'm using Python's engine so I think it is better to separate each case, for performance reasons. But maybe with RE2 it would be fine to combine them all into one big expression as is done here, for "parallel" matching. The expression is a little weird because it's solving a specific problem and not something more general (which is useful and natural).
So to be clear: You wouldn't consider my food shortage example to be a "shortage", as long as nothing is preventing the market from raising prices to meet the demand?

Because if that's the case, then that's okay. We're not actually disagreeing on anything substantial, we're just using different definitions of the word "shortage". It seems like this is perfectly summed up by this paragraph from the wikipedia page you linked:

> In common use, the term "shortage" may refer to a situation where most people are unable to find a desired good at an affordable price, especially where supply problems have increased the price. "Market clearing" happens when all buyers and sellers willing to transact at the prevailing price are able to find partners. There are almost always willing buyers at a lower-than-market-clearing price; the narrower technical definition doesn't consider failure to serve this demand as a "shortage", even if it would be described that way in a social or political context (which the simple model of supply and demand does not attempt to encompass).

It would seem like calling the chip shortage a "shortage" is completely within the common usage of that term.
“The parts that don’t have a pin compatible substitute” is usually 80% of your total BOM cost. It’s not a helpful clarification.

Let’s take something totally ordinary like an STM32 MCU, and let’s ignore for a moment that there are now some clones on the market, with questionable compatibility at times.

Even though they’re unique parts, there is no way anybody sane would stock up on those for the lifetime of a product revision.

It was never needed and it’s ridiculous to plan for a black swan event like the one we’re experiencing now.

And here’s why: even if you had planned for a sudden shortage of an STM32, you’d still be screwed on some generic components. Because I’ve seen people get stuck recently because they couldn’t source certain generic diodes.

It makes no financial sense to always plan for the worst possible case. The whole reason distributors exist is because they are the buffer that moderates spikes in supply and demand.

The system has worked very well for decades. It’s much better to be right or wrong along with everybody else than to be wrong 99% of the time (and waste margins compared to the competition), and being able to say “I told you so” to the rest once.

And that 99% is not hyperbole.
The point of Linux is to have choice. Flutter doesn't take any options away from users, it just adds an additional one, and competition is good. Extremely strange article

>Flutter doesn’t make use of the standardized Qt and GTK widgets. This means that Flutter apps look out-of-place on Linux, especially on GTK-based desktops

the point aside that this ship sailed a long time ago when Electron apps gained in popularity and people don't really have this expectation anyway (Qt and GTK apps also don't look the same), Linux isn't macOS. There's never been some sort of informal requirement that applications need to speak the same design language set by one single standard or organisation.

Linux users use software built at Google, Facebook, by open-source communities, standalone developers or whoever else, even proprietary software if they want to and Flutter is open-source for what it's worth anyway.
You would have included eating to your list.
You sure are taking it out of context. He didnt imply you think before you do everything.

Even as Engineers we know that some of the problems we come up against in the course of a project could have been foreseen and tackled if only we spent some time to deeply understand the project.
Regexes are computer programs just like any other computer program. A long program, terse syntax, embedding one programming language in another programming language, etc. are risk factors for unmaintainable code, but are manageable in the same way that you manage the risk inherent in other complex computer programs.

I did always like elisp's "rx"[1] library for removing some of the terseness. Not enough to ever use it, of course, but it's an interesting idea.

[1] https://www.emacswiki.org/emacs/rx
IQ tests don't do that. They give you different scores for verbal etc.

It's useful to put it into one dimension though because all those different scores are quite correlated. A well functioning brain is usually generally just good at many different things.
I think that if it came out today it would probably be considered something like an adventure game, yeah.
I feel like Node being "async-first" is such an underrated feature, compared to its big competitors (Python, Ruby, Perl). I really don't some of the Javascript quirks, but Node is a great general-purpose scripting tool as a change of pace from Python.

Edit: I know we're not supposed to talk about voting on HN, but really? -2 for saying "hey maybe NodeJS is actually kind of OK for some stuff" is wild.
bcrypt already includes salt [1] to prevent the use of rainbow tables. Adding more things is probably not very useful.

Anyway, a 4 digits pin numbers have only 10000 combinations, that can be bruteforced almost instantly.

(On the other hand, sending it by email is not a good idea.)

[1] https://en.wikipedia.org/wiki/Salt_(cryptography)
In all of the recent cars I’ve been in, the navigation system wasn’t present but the screen was for CarPlay/Android Auto. I wonder if the screen is not there at all in these cars or just the GPS parts of the head unit.
The aliens might conclude that we have some taboo against giving correct values and instead write halves of everything. So they would come expecting us to have two heads, four arms, and four legs.
Maybe. Probably. But in practice no one really cares other than editors and pedants. I'd probably only bother if I was showcasing something to people from that particular entity.
No, I'm not the one claiming a modern Tacoma is as big as an old F150. Why is the burden on me to prove information presented as fact with no supporting evidence?
The brute force algorithm.
So psychology contains a broad range of subjects. Biopsychology (systems neuroscience) is under psychology as much as it's under biology. That's definitely a science. And Cognitive neuropsychology is similar.
Social, developmental, abnormal (mental illness), language development etc. Yes ok they are less of a science. But they still should be studied and how else should you do it?
Psychology is as much a science as biology is.
Papers finding that lockdowns had little or no efficacy
It's a mainly tax deferral/evasion scheme, far less a laundering one.
Dune itself is only few years old. And there has been quite a lot of work on consolidating ocaml.org as a clear entry point for newcomers. But that is still an on-going work.
I don't know if this question is an example, but people intentionally include "obvious" questions in surveys to check whether people are actually paying attention to the survey. There's a name for these, I just don't recall it at the moment—which shows you I don't have any survey-design experience myself :).
And it's so hard to find a 2 door. A giant 4 door with a HUGE cab, but a tiny bed?! What's the point of that over an SUV.

I'm buying a car for first time in a decade. I used to want to dirtbag out of a tacoma and have been looking for one but it's hard. Even a 13 year old one seems big - and also crazy expensive ;)
I heard somewhere that AMD speculated a bit less and cleaned up a little after a miss, which made exploitation a lot more difficult. I'm sorry I don't recall the source, might have been an interview with one of AMD's engineers.
There’s nothing technical about that, though. If there’s some data that a product needs which can only be produced by another team with an interface that does not yet exist, the alignment has to be at the executive level. Either the product with the need gets engineering resources from the other service, or it doesn’t launch.

My philosophy here is informed by regular attendance for years at the gmail SRE design review, where typically some guy from Search would come around and say something dumb like "send us every message for universal indexing" and gmail leadership would say "LOL no. fuck off." Then a few months later they'd come back with something better like "compute for us these privacy-protecting index fingerprints for universal search" at which point you can start to say yes. I don't see the value in immediately capitulating to what other service owners claim to need, especially when your first allegiance has to be to your own userbase.
> That doesn't mean the compiler can't do optimizations, but it shouldn't do things like prove code as UB and fold everything to a no-op.

UB doesn't just mean the compiler can treat it as a no-op. It means the compiler can do whatever it likes and still be compliant with the spec.

From the POV of someone consulting the spec, if something results in UB, what it means is: "Don't look here for documentation, look in the documentation of your compiler!".

Many compilers prefer to do a no-op because it is the cheapest thing to do.
But there’s no point in doing that. After a leak, you can assume the attacker already knows customer ID and date of birth along with the hypothetically hashed PIN.
Brute-forcing the real PIN would take a few microseconds. So why even bother?
Most wealthy people do not feel wealthy though. This includes millionaires.
Heap¹ is virtual-first and actively hiring (not to mention, scaling like crazy). I have colleagues in North America, Europe, Asia, and Australia. We have an excellent engineering culture and need more hands on deck. :)

Hit me up (email in profile) if any of the roles listed here² look interesting to you.

¹ https://heap.io/

² https://grnh.se/d7ce9bfc1us
I don't care if they're fake, I still think it's rude to leave me hanging here.
No, this is the result of people like Neill Ferguson forecasting that COVID would be multiple times worse than it turned out to be, and Governments and the media believing him.

For example this report from March 2020 was highly influential and predicted 2.2 million deaths in the US in an 'unmitigated epidemic' scenario:

https://www.imperial.ac.uk/media/imperial-college/medicine/s...

When in reality the official COVID death count in the USA was 580,000. And meanwhile the best public health response seems to have been... to do nothing, given that Sweden has a lower COVID death toll per capita than countries which did lockdown and use masks, and is overall merely #27 in the world for COVID deaths per capita:

https://www.statista.com/statistics/1104709/coronavirus-deat...

With deaths there in 2020 being only 6% higher than 2018 (and deaths in 2019 were 4% lower than 2018, suggesting mortality displacement explains much of that increase):

https://www.statista.com/statistics/525353/sweden-number-of-...

These sort of mega-flus come and go once a decade (look at 2009 Swine Flu, 1993 Flu, 1988 Flu, 1976 Flu, the Asian flus of the 50s and 60s - all basically forgotten):

https://swprs.org/wp-content/uploads/2020/10/sweden-monthly-...

But there were political factors in 2020 (a major re-election year in the USA) which drove the completely unusual and unjustified lockdown response. Its unfair to blame JIT manufacturing.
Interesting. I always imagined supply chains as a flow in one direction, with each further step of the chain making more complicated stuff. But your comment made me realise that supply chains can be more like a loop, with the more complicated components going back to make the earlier steps more efficient.

And a semiconductor factory requires lots of semiconductors themselves. It's like bootstraping a compiler.
That already exists: https://github.com/seemoo-lab/opendrop
One thing I wish Windows developers did more was bundle Busybox, a 1.6mb binary, to run shell scripts with bashisms, rather than use batch files, powershell or other alternatives.

If Microsoft had only put all the PowerShell for Linux resources into Busybox.

MSYS2 is also pretty comfy. But that audience is probably better served by running WSL2.
Look no further than human babies. There is no single point in their lives that you can definitely say that "hey exactly now (s)he is a complete human but 1 second ago (s)he was not". It is a continuous progression
Sure, but Cargo and go modules/vendors are composable too but there’s still a forced convention that doesn’t allow you to place your files wherever you want.
It infuriates me that we basically had this as a feature, lost it, and have to sort of reimplement it with an almost illicit feel.

I can recall in the mod-late 1990s when Mainstream America was starting to go online for the first time, everyone was training their kids "never give out your real name." From that simple bit of stranger-danger paranoia, we built a lot of communities as psuedonymous by default-- your AIM "screen mame" was rarely your given name, you could have different usernames on each forum, your email address probably referenced your favourite sports team or anime character.

This inherently constrains aggressive "passive" personalization. Without an obvious canonical identity, you don't want to try to cross-profile too aggressively, because user "hakfoo" on site A may well be different from user "hakfoo" at site B, and you had to assume that any ID you tracked was limited or transient: when you go off to college or apply for a job, you're probably not going to want to be slapping "PonyGirl1987" on your resume.

I wonder if it's that the algorithms are limited to being one-track or if they're overoptimized to being one-track though. I assume they have a profile somewhere that looks like "12% coin collecting, 31% travel to Paraguay, 9% 2004 Ford Focus Repair, ..." and then they offset that data with what content produces the best revenue/engagement/metric of the week. In the process, many secondary interests simply get demoted to the pont you see nothing but tire change tutorials.
> To me it is interesting that I did not hear a single story about China launching the core part of their new space station.

You could've learned about it on HN: https://news.ycombinator.com/item?id=26977471
Science itself isn't science either.
In a similar way, when I had just graduated as a Systems Engineer, I couldn't find the kind of work I wanted, so I started as an AutoCAD drafter for a big construction company that was building a toll highway.

My job was very easy, basically drawing the measurents engineers on field took daily, so we could plot them in blueprints, and store them. The project seemed to stall, I changed jobs, and years later the highway started being built. I hope some of my drawings remained, because I've used that highway a lot, and would love to think that I put my grain of sand.
HT enables some side-channel attacks due to its architecture of "let's allow two threads to share the same pipeline and use the unused parts to allow more work to go through".

In practice this allows some attacks to attach themselves to the same pipeline with the target process and nibble required information slowly, but surely.

IIRC FreeBSD disabled HT out of the box at the kernel level for this reason.

I'm tired and it's late here. I may worded some stuff wrong or plainly misremembered it. Please feel free to correct.
The problem there is that subject well-being is time-variant. Of course when I ask you at 3 week intervals "how are you feeling?", I'm going to get different answers. If I ask you 3 seconds apart, though (ignoring you getting annoyed at the question), would you not expect consistent results?
How is this relevant to the poster? This just feels like your own pet peeve tacked onto the parent comment. I don't think we really need to start the culture wars on an article looking at anthropological records and a post about historical misconceptions.
Do you really think that harming 2 people for every 1 you help is obviously the best course of action? (It’s not obviously better to me, though you point out some ways that it might not be as bad as that framing suggests.)
Lol if you have tons of free time on your hands. I'd like to see your replacement for gnuplot that has all the same capabilities. HackerNews will be awaiting your contribution!
No. I am using Clojurescript for frontend. What I meant was that my strong point is server side programming and I lack experience and time to master all the nooks and cranies of programming in Javascript.

I built a voice broadcasting service as a side project in Clojure, built on top of freeswitch and Datomic. From low level library (freeswitch-clj) to API server and frontend SPA, all in Clojure(script). The whole system is approximately 32K SLOC, written over 3.5 years. I have tried similar projects with other stack, mainly with PHP+js and python+js. None went as far as this one. Although we are yet to make a profit, I am very satisfied with the whole development process and subsequent maintainability offered by Clojure. In frontend, we are using reframe + antd react UI library, along with other necessary glue libraries from npm.

Project website: https://www.dandydialer.com

SPA: https://app.dandydialer.com

API: https://api.dandydialer.com/public/swagger/index.html

Open source Freeswitch event socket library: https://github.com/titonbarua/freeswitch-clj
All those essays and fancy problem solving techniques and hacks are good. But they were also invented by people that sat down to think.

I don't know for you but I know that when I slow down and tell myself to relax, start poking at the problem from different angles things go well. I dont know how it happens. The brian reaches a point you even continue solving the problem while sleeping. There might be hacks for that but with the right intention and time it mostly happens for me.
Pretty impressive projection and pompousness you have there.

Fundamentally, society is a mutual agreement of individuals. Those individuals have needs.

If someone feels a need to provide for their children - which could include perhaps being able to afford a good education without putting themselves in debt - and they're willing to work and save for it (which is fundamentally where most inheritances come from at some level) rather than blow it on cocaine or give it away to strangers, why not?
I want a job at a place where I can noodle around with <my hipster technology of choice> all day, but I'll settle for one that asks me to actually ship stuff, and pays the bills.

Whether or not their HR department is ran by a licensed phrenologist is a distant second concern.
I think OP is broadly correct but doesn’t specify cause and effect. Elon is not a master promoter who takes his companies and crafts compelling narratives around them. Instead, he begins with compelling ideas that he considers worth his while and then crafts his companies around them.

An adjacent concept you hear (from YC among others) is that big problems can actually be more likely to succeed than niche problems because they can more easily attract capital and talent.
> The phones were seemingly designed to hide criminal activity, with end-to-end encryption, disappearing messages and no gps data. Subscriptions were paid in Bitcoin.

Some of this is unusual (no gps) but the rest is standard, no? iMessage is e2e encrypted and lots of platforms have disappearing messages.
Hi, I would be super interested in any evidence you could provide that ransomware authors won't target victims in future ransomware campaigns.
exactly, looked into this heavily years ago and this is spot on. These towns will basically never turn into anything worth investing energy into and most have absent local governments.
Melinda Gates Was Meeting with Divorce Lawyers Since 2019
What if that's just the speed of the ability of the change in gravity to have an effect, rather than the gravity change's actual speed of propagation
https://archive.ph/881M1
Not really. Falcon 9 is more sophisticated than it looks at first glance. Merlin has extremely high performance when compared to earlier gas generators... it has a t/w of 200 compared to the ra-27s 100 or the f-1s 95. The alluminum lithium alloys that give the rocket such a low dry mass date from the 90s. The avionics in falcon are revolutionary, and couldn’t have been possible before the early 2000s... a lot of little things like that.
I still don't understand why someone like Elon Musk would encourage financial bubbles, what is the missing link here?

I don't think he genuinely wants the people who follow him to be ruined, so I assume he really believes these prices are sustainable in the long term.
Is there any realistic estimate for how much cheaper SpaceX will be, compared to bringing cargo up on traditional rockets? I've seen Musk claim something ridiculous like it's 1% of the cost of legacy systems but guess that should be taken with a grain of salt.
> If that measurement includes questions such as, "Do others find you easy to get along with?" then of course there's going to be a negative correlation with loneliness, because you've essentially defined it that way.

Lack of agreeableness may drive others away, but if disageeable people also want less socialization, they might not be more lonely than agreeable people.

I personal think I'm pretty agreeable, but it would take a lot for me to feel lonely, so even if I were very disagreeable, I imagine I'd still have enough people around to suit me.