skysight-inc/HackerNews huggingface dataset:
Taking a set of regexes and compiling them all into one automaton is exactly what RegexSet is: https://docs.rs/regex/latest/regex/struct.RegexSet.html

However, when you're talking about thousands of regexes, that's going to be a very large automaton. Probably impractically large. It's not NP-hard. It's "just" impractical.

Using heuristics to whittle down the set of possible regexes to match---likely using literals extracted from each regex---is exactly what you want to do for a problem like this. If all you have are literals, an Aho-Corasick automaton is feasible to build for 90,000 entries. Aho-Corasick, in my experience, doesn't really start to break down until you eclipse 1,000,000 entries.
People geotag their own Instagram posts, you can just search Instagram for photos in Times Square and get loads.

If you only want to do this for a few photos, you just need to (eg) record the Times Square webcams for a couple weeks, then find a couple of recently tagged Times Square photos, make a good guess as to time-of-day and exact photo spot and scrub through your recorded footage from those times until you see someone in those clothes with that pose. It'll take a little while, but with this project you only need to do it a few times.

Keep in mind that the person doing this has all the context from the Instagram account's other photos and captions. Perhaps the same Instagram account made it really obvious what day this trip was happening, which would narrow it down enormously. We don't have that context, but the artist putting this project together has a free choice of which photos to investigate, and in Times Square or in front of Wrigley Field you can surely find some Instagram posts where it's obvious from the surrounding context what day and time it was taken, EXIF data aside.

And that's assuming the artist didn't just hire these people to show up at Times Square at a convenient time for him to press "record" on the webcam.
Elites do tend to be... elite. That's not what I was objecting to. My contention is that this has little to do with corruption. Rather, the government happens to be a bloated, inefficient bureaucracy. Regular people have little interest in navigating it, while the rich can pay others to do so.

IMO, the biggest problem is that people are increasing confusing politics for entertainment, so you get a lot of noise that doesn't translate into policy. I view vague disdain towards things like lobbying as one such example of such noise. It's always, "a corporation got something that I don't like. Must be legalized bribery!" There is never any discussion to the myriad regulations of lobbying or even have any clue how it operates. People don't even realize that lobbying money is primarily an operating expense that pays for the work of lobbyists.

I found one section in the paper you shared interesting:

> A possible objection to populistic democracy is that average citizens are inattentive to politics and ignorant about public policy...

> But we tend to doubt it. We believe instead that—collectively—ordinary citizens generally know their own values and interests pretty well, and that their expressed policy preferences are worthy of respect.

This was written before the massive wave of populism. We got Trump and his attempt of protectionism. The UK got Brexit. Both were overall opposed by the rich as the largest corporations are multinational. Neither achieved the goals that the populists were hoping for. Later, we got the stimulus checks and student loan changes, but both of these were easily hijacked by lobbyists thanks to the economic ignorance of the the population. Small business owners managed to convince people that PPP forgiveness money would go towards keeping people on payroll. Universities and lenders are delighted that forgiveness and income-based repayment will increase the willingness to pay for tuition, which would make them more dependent on private loans.

> There are rich people who are in favor of anti-abortion.

Not really. You have rich people who are against abortion as the means to achieve an end. An example of this is Trump coincidentally becoming against abortion when has he was preparing for his presidential campaign. You don't see any billionaires as dedicated as Buffet is to pro-choice.

> How about you look at the comment that I was replying to. Rejecting federal-level political corruption as “not endemic” since it’s not petty bribery is ludicrous.

The comment was saying that corruption isn't endemic in America... because it's not particularly endemic. There isn't a fundamental difference between petty and federal corruption. If you can pay a police officer to forgive a traffic infraction, a billionaire can easily pay the entire police department to look the other way when they hire thugs to block a polling station.
Software engineering changed my life
I’ve been a vegetarian for similar length of time (30 years give or take) and have also always wondered why fast food places only seem to do “fake meat”. My local Subway did a trial of falafels and it was amazing. After about 6 months they went back to the (imo) gross soy protein veggie pattie’s. Anyways, I always thought most fast food places could basically replace their meat with falafel’s and 80% of vegetarians would love it, but none seem to have ever done it. I’m sure they do focus groups and have figured out the fake stuff sells better, but I think with a bit of marketing about it not being “fake” it could do as well, if not better, than the imitation meat stuff.
Thanks. I just recently started building it.

Understanding small, elegant algorithms (enough to make tiny fixes) is something I consider fun. Hopefully it's fun for others.

Imagine the book Hacker's Delight, but turned into a simple debugging game. That's the concept.
I had a professor who did that. He'd write a solution to the assignments he was giving us, and then spend another 5-8 hours on it trying to make it fit on a single overhead slide.

He was a much beloved professor.
This comment reminds me of the crazy spammer who used to frequent Slashdot, always with a long comment about how to use hosts file and how it is superior to every other method of blocking content.
You’re probably right. Just seems like an unpleasant way to live. There’s assholes out there, but generally speaking I try to not let them live rent-free in my head.
The discussion of cats’ contortions reminded me of Mark Rober’s endearing YT videos analyzing how squirrels managed his backyard mazes.

IIRC, the first one takes a close look at how quickly squirrels lock in on their destination after being launched into the air.

https://youtu.be/hFZFjoX2cGg

https://youtu.be/DTvS9lvRxZ8
I'm wondering if this is an issue with coverage. In southern Michigan, I've only observed Starlink getting faster, but anecdotally it looks like a lot of people are having issues.
Yesterday I spent the day volunteering at a gathering of homeless services, handing out food to anyone who needed it.

Today, I went to a British Museum exhibit with my partner.

Tomorrow, I'm going on a 12 mile hike in Surrey with some friends.
> "if we give them this win, they will want more and then we don't know where it ends"

Funnily that's what Metternich and similar reactionaries in post -Napoleonic Europe thought, and they were terribly mistaken. It just resulted in a lot of pent up anger and issues eventually exploding in revolution (which failed, but still).
McD India has great options. Some of these chains are actually much better outside the US.
Agreed, as it seems he's complaining that other wanderer's don't exist to entertain him.

I enjoyed the article however. Random encounters end up with random connections, experiences, joys. It is one of the great parts of life.
I can't access the linked page without accepting cookies.
It is not new, it’s been ages since some developers try to show off by bringing “cool” one liners to solve problems. Stretching operators, bringing up imaginative uses for lambda expressions or kind of abusing parts of the language to make some other teammate or reviewer, What did you make there?

I believe, definitely, that they are quite intelligent people that know a lot about the language or maths, but definitely they are not usually making the smartest choice, because you should use “languages” in order for the people to understand you.

So you can call those: “50 cent expressions”

They help no one but their ego…
Sure, that makes sense. I still wonder what an oligopoly on legitimate violence looks like. The closest thing I can think of is the sweatshop system, where each sweatshop has coercive power over its workers, legitimized by the idea that the worker chose to join a particular sweatshop.
> that wouldn't actually save us money, because those subsidies weren't structured as CfDs.

Ah, maybe I wasn't clear, I'm not thinking about generators who get subsidised, I'm thinking about the effect of the generation landscape on market prices. Even when there aren't enough wind generators to mean we don't need to buy any gas having more wind allows us to get better prices for the gas generation we need.

Right now there's about 7GW of wind power online and about 15GW of gas turbines. Lets ignore for now the fact we're just selling most of the wind power to our neighbours, that's 7GW which could otherwise have been supplied by the gas turbines. 7GW worth of higher gas turbine price bids were ignored because (of course) bids for wind power are basically zero.

What if it was 15GW of wind and 7GW of gas? The auction still hinges on a gas price, but now it's not the cheapest 15GW of gas, it's the cheapest 7GW of gas. If I built my gas turbine station on expensive land and thus I want higher prices to recoup my mortgage costs, I need to choose, take a loss with a lower bid or risk bidding too high and getting nothing until next auction ? Overall the effect is lower prices with more wind generation.

I agree that CfDs are the right mechanism by the way, and it shouldn't be tricky to find me talking about that long before gas prices shot up, and even before COVID, although you might not find it before Putin stole Crimea because I don't think I knew how this worked back then.
Google itself has moved on from Angular. They invented Lit, the anti-framework, which has far less scaffolding and cruft and is based on browser standards.
> It’s staggering how much negative feedback software engineers get from software (compiler, CI, tests), people, and the whole organization. And positive feedback often comes once a month when things miraculously go well.

It's not that the engineer is wrong. It's that the engineer is told they are wrong.

Positive feedback for doing things well, which go unnoticed, is unfortunately common. We could all train ourselves to recognize the small successes and thank each other when they occur.
It does look like AGI will happen quite soon.
Neither of those require centralized governance (see Handshake, see Uniswap v2) and you can get anonymous voting on-chain as long as you have a registry of voting weight (see a variety of ZKPs).

It amazes me that on this forum for technologists, so few are familiar with the technology... and still try to tear down crypto so passionately.
Sorry if I come across as a little rude here, but, it's never going to be the same. Never, ever. The problem is people keep using it as an excuse now, "well I'd be vegan if there was fake meat that tasted like the real deal".

At some point people are just going to have to admit either they're selfish and want to keep eating meat, or they really do want to stop eating meat and just do it. It's just a human thing to try and find excuses.. I do it with going to the gym and going swimming more.

Also, as a side note. If you don't buy meat OR fake meat, it's cheaper. There are hundreds of cuisines around the world that don't depend on meat.

Sorry but it does wind me up the mental gymnastics people do to justify continuing doing something they know it bad.
> Most home processing methods like boiling, cooking, and frying potatoes have been shown to have minimal effects on solanine levels. Boiling potatoes reduces the solanine levels by only 1.2%, making it an ineffective way to decrease the concentration of glycoalkaloids in potatoes.[23] Deep-frying at 150 °C (302 °F) also does not result in any measurable change. Alkaloids like solanine have been shown to start decomposing and degrading at approximately 170 °C (338 °F), and deep-frying potatoes at 210 °C (410 °F) for 10 minutes causes a loss of ∼40% of the solanine.[24] However, microwaving potatoes only reduces the alkaloid content by 15%. Freeze drying and dehydrating potatoes has a very minimal effect on solanine content.[25][26]

> The majority (30-80%) of the solanine in potatoes is found in the outer layer of the potato.[26] Therefore, peeling potatoes before cooking them reduces the glycoalkaloid intake from potato consumption. Fried potato peels have been shown to have 1.4–1.5 mg solanine/g, which is seven times the recommended upper safety limit of 0.2 mg/g.[18] Chewing a small piece of the raw potato peel before cooking can help determine the level of solanine contained in the potato; bitterness indicates high glycoalkaloid content.[18] If the potato has more than 0.2 mg/g of solanine, an immediate burning sensation will develop in the mouth.[18]
That's a good question. One is to be a good note-taker. Another is to deal with community-first and work your way outward when it comes to business, buying things. Your local butcher or farmer knows you better than any Amazons or delivery services and will generally accept cash. A good alternative to modern banking is a credit union, which are owned by the community and run by community members. Time is another consideration; phones have influenced culture in a way that makes this generation crave immediacy, and similarly people's schedules are tight for most of the day. Plan ahead to be punctual and make time for things like finding your way to a new place, or extra time needed to use a printed boarding bass.

Does that help answer your question?
Saul Kripke, Philosopher Who Found Truths in Semantics, Dies at 81
Ignorance is the norm until the information spread reaches critical mass.

You could help spread ideas you consider worthwhile (presumably the ones you mention) by providing concrete links to the things you are talking about, especially information on how to properly take advantage of them. I've never heard of Lit and/or bare metal, and don't know where to begin.

I also consider myself proficient in React and Angular.
Yes, that's how GitHub calls it, but by calling everything a fork the term loses its meaning. By this definition every Chromium browser is a fork, which is just ridiculous. Edge's developers don't think of Edge as a fork
https://archive.ph/yBCnD
Like naps when you need them. Remote jobs are maybe more likely with SWE.
Give mysterious things room. In this case the most mysterious is [-3:]. That, together with the split, should have it's own line or maybe even multiple (function declaration, comment).
That was my dream card for a long time. A Voodoo 2 (3D only, no 2D output, had to run through a second card, wow) overclocked to hell lasted me a good number of years until I upgraded to a GeForce MX 440 lol
The big difference is you actually have to actually pay attention to your protein intake. If you just eat meat all the time, you can be pretty confident you'll get enough protein with maybe a tiny bit of supplementation. Convenience, in a word.
I meant the app. Might be bad on the website.
Precisely your 3rd sentence is how I would interpret the comment.

“Can we please X?” succinctly conveys a lot of meaning.
> No, not at all. The web was specifically designed so that the client chooses which parts of the available content to load, and in what way.

It was designed with this technical capability. But the social contract was always that you went to a site for it to tell you what to display. And we have many very nice, very non-standard sites because of it.

There is nothing wrong on blocking part of that content, but everybody's state of mind is that by default, any site content is expected to load.
Sure, if the computer can figure out what a given fragment of code is supposed to do, so can you (a sufficiently clever programmer). The question rather is, do you spend 20s reading a comment or 15m to solve the riddle?

There's a real danger that comments aren't updated when code is, particularly if 3rd parties make those changes. This is one of the corners where there will never be a single answer which is right in all circumstances.
Playing jump blues at the North Bend Blues Walk (https://www.northbendblueswalk.com/).
I like how this article explains that "clean" must be "readable for humans". However, the concerns raised are only superficial. It's much more important to get the larger scale structure right. I recommend drawing diagrams and explaining the architecture to humans. Then again, I'm not saying overdo it, because some things are hard to draw, some are hard to explain. In the end, it's important to get a complete understanding of a certain module, and the code should then be relatively easy to write.

I have learned to take a step back when I find myself having a hard time to get the code "clean". Often I put that thing to rest if possible, maybe for days, months, or even years. There could be a simple solution that solves 80% of the problem, and that can ease the pressure coming from the stakeholders. If it kind-of-works and can be produced in a short time, that is much better than going down a rabbit hole for months, coming out at the other side (probably burnt out) with a solution you can't deploy because it's too complicated.
The good news about professional programmers is that they're capable of learning. Ada is not a hard language to learn, if you have some familiarity with procedural programming (which 99.99% of programmers do). Considering the amount of time spent on safety-critical systems, there's enough time to train up a new hire that only knows one language on Ada, assuming they're actually a competent programmer.
Great, now we can get the unreleased code for this paper and use it with the unreleased code for generating animations (really impressive stuff by Sebastian Starke, presented at various SIGGRAPH) and build a videogame generator.

I wouldn't even mad if it were a paid product and not free code, just release something to the world so we can start using it.
> draw heavily on language skill, but also on deep cultural competency

I think high-level language skills includes deep cultural competency.

I think the improv suggestion is a good one. I was going to suggest doing a stint at stand-up; there are comics working in the UK who take advantage of their foreign accent (and thicken it up), but can do the timing and prosody, and can sell the joke very successfully. In a way, I think these comics have nailed British English in a way that a foreign speaker with an immaculate English accent, but no sense of humour, can never approach.
Your recommendation is that people eat 18 tablespoons of peanut butter a day to get their protein?
It takes me 5-10 seconds to get to the meat of a webpage these days.
Not only can people like multiple things at once it is apparently incomprehensible to large swaths of Hacker News that people can like things that others do not.
My problem with all of these fake "meats" is that they don't taste like meats, they taste like vegetables and fruits that have been handled to the point of not being enjoyable to eat. I'd rather just eat well prepared and cooked vegetable dishes like what you can get in many nations and cultures around the world than these fake "meat" products.
I’m interested in hearing more about your Socratic approach to management. Could you elaborate on that a bit?
Are the same individuals are telling you both of those things?
But it was all right, everything was all right, the struggle was finished. He had won the victory over himself. He loved Big Brother.
It takes some deliberate practice and being able to create decent contexts within your code.

It's not a trivial problem but it's not a hard one. It's just that most people don't even try to dedicate a sliver of active brain power to the task because they don't deem it worth it even if they claim to agree on the importance of readability.
It's right in the wiki.

https://en.m.wikipedia.org/wiki/Potato#Toxicity
I don't necessarily agree with the step of putting the code in a separate function; that often works, but just as often makes it so that the code can't be read top-to-bottom anymore which hurts readability.

In this case there's, I think, a better alternative; the equivalent-ish code in Ruby for the example code here would be something like this:

values = s
.partition('?')[-1]
.split('&')
.map { |key_value| key_value.partition('=')[-1] }

You can write these nice functional pipelines where you just read the code top-to-bottom and see step-by-step what is being done to the data on each line. You don't have to jump up-and-down around the code when reading it, and you don't have to keep too much context in your head when reading it.

This is one of the reasons why I vastly prefer Ruby over Python for most data processing tasks. I wish more languages would support this style of programming.
Indeed. I wrote a whole series on it. I don't post this every time I comment, though. :-)

https://link.medium.com/RpKPYCuwAtb
I ran numbers from the BLS on occupation data a few years back. If you look at the number of programmers 25-35 in 2000 and the number of programmers in 2020 aged 45-55 you see a real and substantial decrease in absolute terms. The decrease is much larger then other professions, so its not attributable to a cohort just exiting the workforce in general.

There is also a massive increase in the number of 25-35 programmers in the same time period.

My interpretation is there are definitely forces that push against older programmers staying in or re-entering the profession, but they aren’t as severe as they appear to be just looking at the raw numbers. Generally, programmers who want to remain the profession are going to be about to, but it is harder to be a programmer over 40.
100%. This became clear to me when I started commuting by bike. Cities are built for cars not people.
Once I read something along the lines of “every programmer goes through that phase were we wants to show how clever he is, by writing whole programs in one line. Until he understands how stupid that is”. I do not have the source, regrettably.
Obsidian is an absolute dream, I know. I do still use it for college/research projects (basically anything information heavy), but I've found it to be a bit of an overkill in most of my daily use cases <- one of the reason why I am working on this tool.
0.556 cm ;)
Laser is thought to refer to some product derived but not entirely made out of this plant. I can't find the source right now, but I remember reading a theory that argued that the plant never actually went exctict. Instead, the technique for producing the flavour of laserpicium the romans loved (it was also produced in Greece and elsewhere, but it was somewhat different) was simply lost after they took over the productions in Cyrene.
Easy to listen to Baudelaire talk about being a flâneur, but also he was living in an apartment on the Île Saint-Louis, in the 4th arrondissement. It doesn't get much more central Paris then that.
Yup. There's a great video of someone driving in .. I want to say the smokey mountains, talking about how well FSD is doing in his Tesla. Casually driving, chatting with his wife in the passenger seat.

Until it.. out of nowhere, crosses the double yellow lines around a turn and is barreling straight towards a cliff. 3 if not 4 of the cars wheels crossed the double yellow lines before the driver was able to intervene and basically save their lives. Had their been oncoming traffic, there may not have been a driver alive to post the video after. Another 1-2 seconds and they would have been been over the cliff.