skysight-inc/HackerNews huggingface dataset:
Regular expressions are virtually always easier to read because they're so much terser. I unroll a fair bit regular expressions because they are typically an order of magnitude slower, and it's almost never an upgrade in readability.

Compare for example something trivial like

[a-f0-9]{32}

with its unrolled form

public boolean hashTest(String path) {
int runLength = 0;
int minLength = 32;

if (path.length() <= minLength + 2)
return false;

for (int i = 0; i < path.length(); i++) {
int c = path.charAt(i);

if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f')) {
runLength++;
}
else if (runLength >= minLength) {
return true;
}
else {
runLength = 0;
}
}
return runLength >= minLength;
}
API First: The New Way of Developing Software
>it's a solution to a problem that few teams actually have

It's more efficient. Why prevent people from reviewing your commits and avoid merging until your feature is 100% complete? With TBD people on your team are able to review changes as they get completed and you can merge them in to avoid future confilcts and to allow others to benefit from your changes too.
That stink has been etched into my mind ever since a night ten years ago when I spent an hour waiting for someone at a Shanghai subway station that was within wafting distance of a stinky tofu stand. I still have no idea how that stall owner avoided getting lynched by half the commuters that had to pass through his cloud of putrid miasma.
Just a tip, after

make menuconfig

run

make -j kernel_menuconfig

To select some additional options for the kernel, then

make -j $(($(nproc)+1))

That can be a bit faster nowadays.
Incorrect, it was 320k$ in 2021

You can filter out by other characteristics here:
https://igotstandardsbro.com/
Penguins still fly, they just fly through water instead of air - if you look at a video of a penguin swimming, the motion is exactly the same as flying, it's just the wings that have adapted to the denser medium.
There was a recent paper published in Nature that shows this. Only observed in people who had breakthrough infections though
I agree. The design is brittle and very weak. If apple doesn't support those standard protocols it won't even bring any benefits. I love lighting. It's slow at data (if you use it to transfer data lol) but it's a robust physical connection.
No, but don't keep doing it that way for new software, or even new files. You existing config file is in ~ because it's 30 years old. Fine.

If you get to the point where you need another file for something, put it in a directory under .config so whenever you need to add even more, you don't keep cluttering my home.
I doubt any of those payment providers mentioned does not take the chargeback fee on a credit-card dispute.

Anyway, they might handle customer-communication with the merchant better.

Stripe offers nothing. If the customer could "contact" the seller, everyhting would work out better.

Just think - you have only 11 CHARS(!!!) to describe your service, thats what the customer sees on his monthyl CC bill. I am unable to describe it to everc customer in 11 chars, so 1 out of 1000 belives it was fraud because people do not remember what they bought online.
> Financially this has been a heavy burden.

Financial burden is something I would take upon me. But financial burden at the moment of experiencing it feels more like an existential burden. After reaching the light at the end of the tunnel it becomes a mere financial problem.

> I may or may not make it.

What does that mean? That does sound rather existential. But then again I probably understand what you mean. It's a dire and stressful situation to be in.
>>He must provide 2 years warranty selling to regular consumers.

It's a myth that dominates the internet on some reason. There is no such EU-wide law, never was(although some individual member states do mandate that).

The EU law that does exist is that the seller is responsible for the item they sold, for electronics item the period of time is actually 6 years, but the seller must cover manufacturing defects. But here's the kicker - in case of a fault appearing within the first 6 months, it's presumed to be a manufacturing defect and the seller has to replace/repair the item, but any fault after 6 months you(the buyer) has to prove that the fault happened due to a manufacturing defect. If your laptop randomly dies after a year the seller is not under any legal obligation to fix it, unless you can prove it died because of a manufacturing problem.

So no, there is no 2 year warranty in EU the way many people expect the warranty to work. There isn't, and what is there is not the same as a warranty.
but muh "we must reinvent the wheel because look at these poor multi-billion dollar companies. how will they pay for their CEO's planes"
A Day in Pompeii
I suspect these two pools of employees get compensated vastly differently.
Nope, I expect the people making these decisions who are responsible (and paid extremely well) for the financial health of the company to be doing an exhaustive due diligence when it comes to budget. The only real question is do any of these executives take responsibility for their actions. That question has ultimately been answered over the past couple of weeks so why bother asking...
> The main issue right now is that all the flight schools are booked up

Why is this?
You are so funny for thinking that. What existing employees earn is irrelevant. It is as simple as you need X now and it costs Y. Without X you possibly don't have a company anymore which costs 10 000 times Y.
The vaccine doesn't provide immunity. It doesn't prevent transmission, just lowers it. This is well known. It may lower sickness severity in older population. It also only lasts 2-3 months.
So this is great no? I’m happy windows and osx exist
Sorry, that is not correct.

EU law defines that the consumer is given a minimum 2-year guarantee as a protection against faulty goods, or goods that don't look or work as advertised when buying a product from a trader in the EU (incl. Norway and Iceland).

The application of this is a bit more complex, as the definition of a "faulty good" is a product that failed due to flaw in its design ("defects presumed to have existed at the time of delivery"), and after the first year YOU as the consumer have to prove that this fault existed when the goods were delivered.

Moreover, legally this guarantee has to be given by the *trader* selling the product to you, not even the manufacturer of the prouct.
If you import the component from outside the EU the law doesn't even apply, as you have formed a contract with a trader not bound by this law.

But in this case it's all irrelevant because the item sold is basically a spare-part, not a consumer end-product. For spare-parts and components that legal guarantee for consumers doesn't apply.
> even fewer EU regulations apply than in Norway, for instance

Automatically, but many if not most commercial regulations get incorporated, in this case the warranty legislation also dictates 2 years

> than for something like Brexit
I would say the difference lies more in the renegotiation than in the cutting. EU membership doesn't get renegotiated often, while treaties between EU/CH are expected to be renegotiated (although that has a whole host of challenges and doesn't happen nearly as often as you'd expect)

But nullification is a similar impact and a similar process as brexit because most of these negotiations had a guillotine clause which tied them toghether

Brexit was a remarkably straightforward process, you send a letter and at the latest two years later you're out if you don't ask for exception

It was the headless chicken phase when the UK was trying to negotiate without having an internal consensus on what they wanted that was convoluted
Same, but I don't care much about Team Blue vs Red. The Intel-driven power saving fiasco of the latest generation of Framework laptops is enough to keep me away.

I should not have to add weird kernel parameters or modules for my laptop not to burn through its battery during sleep.
The US economy added 500k jobs last quarter, so there isn’t really a social crisis
Nothing, but you have to do it right. If you look at Linux, you'll notice there is no central git server with a master branch that people push to. The most stable development branch (in addition to the LTS branches), is whatever Linus Torvalds has chosen to merge to his personal master branch. He cuts a new release from there roughly every two months. Whatever is on that branch is the next version of Linux.

That's integration branches done properly. Linux releases are cut from that branch. Literally everything else is an integration branch and it won't get pulled (you don't get to push) by Linus Torvalds until it merges cleanly and passes all the scrutiny that he and his people apply to incoming changes.

Very few companies work like this of course. So instead you get people working on their pet branches and ignoring upstream changes. It's stupid. All you are doing is deferring integration work. Integration work scales exponentially relative tot he amount of change. So, the longer you wait, the worse it gets. The flip side is that having branches means you can distribute the integration work across those branches. And if each branch only has a small delta relative to the main branch, the collective integration work load decreases. The way you keep the delta small is by pulling upstream frequently and staying on top of the upstream changes. If you fall behind, it becomes a problem. And it's exclusively your problem.

Linux doesn't have issues with integration work on the main branch: you are either compatible with upstream and ready to merge or you won't get pulled in. It's that simple. That's why Linus Torvalds can release a stable release regular as clock work. You don't get to stamp your feet and whine about how important your branch is. You do the integration work before your changes are pulled in and it's exclusively your problem to make that happen. So people, integrate upstream changes often and Linus keeps unstable changes out of upstream. They front load all the integration work before anyone even talks to Linus Torvalds. Done right, this scales to an ecosystem with thousands of contributors from a multitude of companies across the globe. It works by distributing the integration work across the ecosystem.

This can work in large companies too. But you have to do it properly and with intent. Pull requests are pretty popular for a good reason: they work the same way. If you have to have long lived branches, somebody needs to worry about those staying in sync with upstream. If that doesn't happen, you have a problem waiting to happen.
Hmmm, but it hasn't gotten past Phase I after almost 8 years? An HSV vaccine would be a real moneymaker so I find it hard to believe that there isn't enough money floating around for it.

A couple of mRNA HSV vaccines appear to be at the Phase I trial stage.
As I've mentioned, this is a perfect chance for new startups to thrive. The economy is doing well, and all these potential co-founders and employees are available simultaneously.
https://lawcomic.net/ — goes into digressions about english common law and also the history thereof.

A warning on this topic: it is easy to fall into the trap of thinking you know more than you really do.
> People boating out of France to the UK are, by international definition, not refugees.

Which international law do you think does that? (I'm assuming from your username that you're a lawyer; I'm not, though I do try to read the texts of statutes sometimes).

I remember hearing a lot about the Dublin Regulation, but that's an EU rule that no longer applies because of Brexit: https://en.wikipedia.org/wiki/Dublin_Regulation

(I tried reading the legal text for this even though the UK is no longer in it, but a casual skim didn't get me anything that did what it's usually claimed as doing, the claim being that it requires asylum seekers to claim in the first safe country).

> There are resource and fairness issues that emotional appeals won't make go away.

This particular point I vehemently disagree with. The resource and fairness issues with regard to these people is, IMO, caused by their demonisation in the public eye and as such will be fixed by emotional appeal.

This is because their status legal status means they are by default actively prevented from working and covering their own costs, and this only has some limited exceptions: https://www.gov.uk/government/publications/handling-applicat...
Nothing new here. This goes back to at least as far as the ideas behind OOP.

Maybe I'm becoming a grumpy old man, but it seems that most of the new shiny things are just reinventing the wheel every year.
I see so many people thinking AMD is a better option. I see only downsides besides better price point. Why do you prefer it over Intel?
Nice rant but the answer is simple - incentives.

Seems like there's not that much demand for what you would like to see.

Crappy, barely working, software now is better then 1 year delayed perfect one.
How about we treat adults as adults and let each one decide for themselves?

Everyone has an opinion on remote work and I’m fine with it, my problem is when PHBs mandate work from the office and make that decision for everyone regardless of personal preferences and situations.
Could you ELI5? I was just looking into this question but I’m not familiar with the various medical examinations. What are the differences between regular, special and basic?
The SSD is much faster too; though only a few games benifit (SD card is still fast).
I don't think you're accurately disputing what I said.

Bitcoin went through a period when transaction fees were very high, and wait times were unreasonably long. During this period, they essentially lost all their users who were using Bitcoin for retail-type transactions: moving money across borders, sending payments to friends and family, making small illicit purchases, paying sex workers, etc.

Some they lost to Monero and other altcoins. Some went back to traditional finance. Some went to new non-crypto fintech. Those people did not come back to Bitcoin (they may have held some, but no longer use it for transactions).

The lower prices now reflect not only that some of the issues were resolved, but also the vastly reduced demand. Today, the vast majority of flows are related to speculation, or the use of Bitcoin in other parts of the crypto economy.
Fun fact: Apple still doesn't provide two years of warranty in the EU, unless you PAY for it via an Apple Care extension.

EDIT: Weird how this gets downvoted. Let me quote for example from Apple Germany's webpage [1]:

"The limited Apple warranty covers your iPhone for 1 year from the date of purchase against faults due to the design and manufacturing of the product [..]
Depending on the problem you might be covered via AppleCare+"

[1] https://support.apple.com/de-de/iphone/repair
My point is, guns are not a good example of "bad things happen rarely when people have things capable or badness"
I did in fact directly respond to your argument. Whether you like my response is another thing.

> why must they scheme and plot together?

Because it is effective.

> do delivery drivers that demands aircondition have a divine right to get their way?

Nope. But they absolutely do have the capability to organize. And if they decide that organizing is in their interest, they will do so. Although I do believe unions are generally good, this is not about right or wrong. This is about interests. It is in the interest of the business to pay the workers as little as possible, and it is in the interest of the workers to find ways to raise their pay and other benefits. They can choose to negotiate as individuals or they can choose to form a union.

You seem to be grasping for reasons why they don’t need a union, but I don’t find your position tenable. If there were truly no difference between having a union or not having one, then unions would never exist. The truth is there is a long history of unions and we wouldn’t have the 40 hour work week, paid maternity leave, and other benefits if it weren’t for the hard work of union organizing in this country.
OK but then how is this message any less snarky? You even italicised your quote like a proper criminal!
There's also an absolutely ridiculous number of companies in this very same startup space, each with a different sports niche but all with a business model that seems just shy of questionable wrt to exploiting peoples' dreams.
I feel like the original “curated links” model of Yahoo search (which was supplanted by Google twenty years ago) is actually prime for a comeback. Has anyone at Yahoo commented on this?
Yes, the space sucks. I'd spend significant money on a USB-C charger, but Bosch doesn't offer one and there's no third party vendors. One thing that might be of interest to you, depending on where you travel around might be this: A standardized charging cable that plugs into existing charging stations https://bike-energy.com/ueber-uns/, so you only need to carry the cable. Some adventurous folks even hacked up a cable that plugs into car charging stations.
Rust can dynamically link to/like a library written in C if you really want it to.

https://doc.rust-lang.org/nomicon/ffi.html
Nah that's not good enough. It might be electrically compatible, but is certainly not physically compatible. And if it was "compatible" according to framework's definition, why would they add a compatibility warning at all?
> And I've never seen someone comment, "I'm pro-office because I have no social life."

It’s not that surprising because it’s difficult to admit to oneself.
Maybe divide and conquer?

It would be a huge risk if, lets say, google core tech would be in hand's of 10 people. Let's assume it is possible. You don't want it, since too much power in few hands.
If your mouse is the only device in your house that takes a lightning connector, why are you frantically trying to find the cable every time it gets low? Just keep the cable by your mouse. It’s not like you are using it for anything else. And why “frantically” anyway? The mouse gives you loads of warning before the battery goes, I routinely use it for hours after the warning. This is not an emergency.
I wonder why not reimplement coreutils as library functions, to be used within an ad-hoc REPL. It would be much more flexible and extensible.

AFAIK, originally the reason why they were made as programs was that the available programming languages were too cumbersome for such use. Now we have plenty of experience making lightweight scripting languages that are pleasant to use in a live environment (vs premade script), so why give up the flexibility of ad-hoc scripting?
Not an iOS developer; what does available mean in this case? Are you talking actual OS support, or simply that Apple has never approved any app attempting to do it? Because Safari obviously does it so my thinking is the OS must support it, but I guess Apple has a policy not to approve it.
Can you expand on that first line? What is the problem that's inherent in monetary policies?
For the avoidance of doubt, my point isn't that the parallel drawn is poor ... just that if we're selling the idea of "good outweighs the potential bad" then guns are not a good example for selling that angle.
I think to start a marketing agency it helps to know marketing.
I'd argue that cloning their intranet site takes this up a notch from regular phishing
I'm still catching up on the Oxide and Friends "birdsite"/"discord" recordings/podcast, and look forward to listening to this one in a few weeks (I save them for my walks in the big blue room).

In a time when tech is imploding under the weight of its own hype, the amazing retrospectives, history lessons and low-level hardware/software lore contained in that podcast has been the highlight of my days every. Single. Time.

It reminds me that there is a side to this industry that is still actually solving real problems (from testbench design to firmware/software supply chain and attestation) instead of just throwing GPUs at a problem and virtualizing an infinite number of monkeys to generate Shakespeare sonnets.

In these days of layoffs done to compensate for hyped investments and lack of strategic focus, it is a shining beacon of... actual engineering.

A minor sidenote, for those who probably care more about software: The podcast drew me back to Rust because, all of a sudden, here were these people who actually _reasoned out why_ it made sense, and had decades of expertise that allowed them to spell that out with actual examples.

But I really stuck around because of the low-level hardware discussions, and the history background (I just listened to the Optane episode yesterday, and although I knew some folk at Micron and understood why it had failed in general, the discussion was amazing).

(I'm a telco/hardware guy drifting inside the bowels of a cloud/software behemoth and dearly wish I could burn to the ground all the paperwork, ceremony and "strategic investments" that surrounds me and just go and do interesting stuff, so forgive me if this seems a bit much. If I can stay up late enough--I'm in Europe--I might try to join on Discord some day.)
Except that's a false dichotomy and that money would go to the shareholders instead.
I think the italics was just to indicate a direct quote?
From my side there are three feelings that fight in me:
1. it's incredible how this AI performs drawing and writing
2. will it take my programmers work?
3. what if this AI makes a mistake?

I think putting AI inside everything will give us opportunity to experience first-hand what is a local extremum of multidimensional function and how it differs from global extremum. Our paper gets eliminated because some AI-based curriculum vitae review glitch. Our car lost a wheel because computer vision failed (or lose our heads like that one owner of Tesla )... Most scary for me is that we are starting to build more and more things of which we wouldn't be able to understand the inner workings. Hence there might be an intelligence crisis creeping slowly into our civilisation, and then bam... like in Andrzej Zajdel's Van Troff's Cylinder
It's an active volcano, you need to run power lines, the ground shifts, and it can blow any time.

It makes sense to make your own power for yourself and you can sell it back to the grid.
Google hasn't been what engineers think Google is since at least 2008. Probably a few years earlier.
Ability to safely bring down a plane does depend on availability of engine power, however, as lack of it can greatly cut off possible options not to mention engine can fail in such a way that you won't be able to recover before stalling.

FAA doesn't force them to use older tech, anyway. It's just that a lot of smaller planes coast on grandfathering of older engines. Believe me, a lot of CAAs would simply love it if they could force removal of carburator-based engines outside of museum planes, because carburators are one of the core causes for engine-related crashes in GA, and requiring injection based systems would reduce a whole subcategory of accidents.

Thing is, FAA and other CAA are only requiring that you do follow through sometimes ornerous but generally sane testing requirements if you want to bring a new design. This causes considerable up front issues for new designs, but there's a reason why there's much less complaint about it than one would imagine - the ornerous rules are for when you want full certification for the plane, not any of the lower classes. TFA author was trying for full certification, so that the resulting plane would be fully usable without special allowances for flight training for PPL(A), not any of the lower-category licenses. For just flying once you have a license, the requirements are less steep. [1]

[1] My father is currently rebuilding a crashed Cessna 152, question of how deeply tested the engine will be (and thus whether the resulting type certificate would allow PPL(A) training) were discussed a lot
They don't. Major companies laid off 10-20 percent of their total workforce in recent months. So, they actually don't need that much employee.