skysight-inc/HackerNews huggingface dataset:
When implementing lexers and parsers for language specifications, I have taken the approach of testing each token (keyword, number, etc.) for the lexer for each EBNF symbol. This repeats tests for common keywords and other constructions, but means I can see that the lexer handles all the tokens in each EBNF symbol. In this way, these tests are more BDD (behavioural driven development) in style, but without things like gherkin/cucumber. With this approach, I do full coverage tests for a given symbol/token, and just check the basic symbol/token case elsewhere.

I do a similar thing with the parser tests -- have a test for each valid complete symbol production, and then tests for as many error cases that the parser can handle for that symbol.

With that base, I can add additional tests for bugs and additional error recovery cases I implement.

I never see unit tests as a waste as they provide a set of regression tests that are invaluable for refactoring and making other changes to the code, like implementing new features or better error handling.
Madrid scraps clean air zone after six months
One reason would be that her media business is controlled by a corporation that could ban her without notice at any moment and without reason. A decentralized network would allow her more control.
any trick to make it look good on a terminal with a light background? not very readable for me.
It’s still selfish because she is sacrificing her children’s upbringing to help wrongfully convicted people.

Sacrificing some other person for a cause you believe in is certainly not a selfless act.
MIT Technology Review 50 Smartest Companies
About your 3rd point, it's even worse:

You forgot the network in time. Almost all our current productivity is made possible by knowledge, processes, culture, and tools created by dead people.

For the rest of us, the only reason you can "make million" (or billions) is because you are at a favorable location in the human network in space and in time, and you get to control a sizable section of that network. You didn't build that network, nor did you build the capacity of the nodes, and not the vast majority of the connections. How much a human can achieve is very much a function in that network. Even in science. Newton or Einstein, what would they have accomplished 1000 years earlier?

Most of what we produce we owe to dead people, and since that is so, we can relax about distributing those gains that the current generation mostly just inherited. Nobody needs to be worried that "something is taken away from them" that they "worked hard for" when they have to pay taxes. Put a "self-made" man in the middle of nowhere and let them keep the result of their "hard labor" tax free. They can keep their entirely self- and literally hand-made mud hut.

For the same reason those who control larger sections of the human network benefit more from government than those who do not. Because it is government of one kind or another that enables it. If there is no government those who want to be rich and powerful create one. Which is exactly what happened - it wasn't the poor, the workers and farmers who created government. It was the rich and powerful. First local lords, then kings, then Britain and their parliament, forced by the new economic upstarts, not by the peasants. And some "redistribution" down to the lower levels was only introduced to pacify the masses (people like Bismarck in Germany, who introduced a pension scheme, are under no suspicion of communism), to let the wealth increase continue undisturbed. Just like the bee keeper has to give the bees something to live on.
RE2 was used in Google Code Search in an adversarial context, and it handles the DFA issue by simply putting an 8MB limit on the DFA for a regex:

https://github.com/google/re2/blob/master/re2/re2.h#L601

I learned a few months ago that Rust's regex crate, which is based heavily on RE2, does the same thing.

There is perhaps something worth exploring there, but after reading the Cox articles, I can see that there are so many issues that come up in regex implementation, and this seems to be one of the smaller ones.

I don't think the "regex as untrusted data" use case is very common. That is, there are probably 10,000 programs that use regexes for every one that accepts regexes from users.

-----

Although, one thing I've wanted to explore is Regex derivatives. Supposedly that technique constructs an optimal DFA directly. You don't have to make an NFA, convert it to a DFA, and then optimize the DFA.

Cox describes it as a "win-win" here (in contrast to parsing with derivatives, which is asymptotically worse than traditional parsing algorithms)

https://research.swtch.com/yaccalive

There a bunch of non-production implementations floating around like

https://github.com/google/redgrep

https://github.com/MichaelPaddon/epsilon

(This technique was revived by the 2009 paper cited)

-----

Regarding the blog post, I have some material here. I gave about 10% of this as a 5-minute talk, and realized it's about 2 hours worth of material.

https://www.oilshell.org/share/05-31-pres.html

I still think the table toward the end is a good summary and perhaps worth publishing with some more context / explanation.

----

One interesting test of whether the message from Cox's articles got through is what style of regex engine newer languages are using.

I just noticed Julia uses PCRE, which is unfortunate IMO. I like RE2 -- it has a nice API, great performance, and a lot of features.

https://docs.julialang.org/en/v1/manual/strings/index.html#R...

Swift also has Perl-style regexes, but maybe they inherited it from Objective C:

https://developer.apple.com/documentation/foundation/nsregul...

So basically Rust is the only newer language that appears to have gotten the message.

The Oil shell will of course use "regular languages" rather than regexes, but that's natural because shell never had Perl-style regexes.

One thing I think Cox didn't explore enough is that most libc's appear to be using the "fast" good method, because they don't need Perl constructs.

I guess that would be a good follow-up article. To test GNU libc and musl libc on those pathological cases. I looked at their code a few years ago and they looked "right" (I've forgotten the details), but I don't think I ever did the test.
There is obviously some correlation between high insolation and high temperature, but peak temperature and peak insolation don't happen at the same time of day (peak insolation is solar noon; peak temperature often comes hours later), and insolation is far from the only factor that determines how much AC is needed.
AMD's CPU Market Share Quadrupled in the Netherlands in the Last 2 Years
German far-right group used police data to compile death list
> Unfortunately, for code pages, the "swap file" was the original .exe, so the changes to the memory page would corrupt the .exe, probably requiring it to be reinstalled.

Do you mean Windows modified user programs without warning? It seems like it was a serious bug.
Very much in the uncanny valley. I think it's because it's only the head and face moving, with the shoulders acting like Mr. Lincoln forgot to take the the coat hanger out of his jacket.
Kinesis makes really good keyboards. I like this one https://kinesis-ergo.com/shop/advantage2/
I am that child. My parents were very eager to make a great career. Today I suffer from the emotional neglect with some issues such as ADHD.

Being a father myself today, I do think kids can do with relatively little facetime. But the time that is devoted to them must be exclusive quality time that makes it clear you love them and that you are present. There are studies that have shown that if fathers take 30 minutes of exclusive attention for their kids every day, it has great benefits for the child‘s development.
Exactly. If he gets away with it, then the said order is useless.

Freedom from any consequences? That isn't a thing.
Unfortunately, they won't succeed. The way their homepage is designed suggest that they believe that their reputation and brands are enough to make people subscribe. Why is it not possible to click on a channel image and have a sneak preview? Their landing page is only good for people who already made the decision to join, not to attract new viewers. In other words, they rely on youtube to expand their audience.
The Changing Structure of American Innovation
Sorry, but men prioritizing their jobs over their kids has never been historically accepted.

Sole breadwinner is not by definition prioritizing job over kids. Working 80 hours per week when 40 hours could provide your family with enough, is.
Holy cripes, what a dumbo!
I would define online forums, newsgroups, and IRC/IM chat as predecessors to the current generation of social media, which are focused on the individual profile.

On social media you follow people, while on forums you follow topics.

From that understanding, I think HN is more of a forum, which is an online media format that predates what we define today as social media. (but it certainly similar to varying degrees, as are online media venues like Reddit).
Social media is hard to define so participants are more likely to cheat. Should be an internet strike which is "as simple as" going camping without your phones/computers for 2 days, which honestly would be great practice for a newly decentralized world.
Yes. HN is a form of social media -- it's a social media exemplar -- the exception that proves it's possible to have an open system for high-quality public discourse, even if such a system is hard to establish and even harder to maintain.

Paul Graham has said, "he hopes to avoid the Eternal September that results in the general decline of intelligent discourse within a community" [1]. Hacker News launched 12 years ago in 2007, it's a testament to Graham, the moderators, the algorithms behind it, and the community members that HN has been able to keep its system for high quality intelligent discourse from devolving over time.

If HN doesn't resemble most other social media systems -- so much so that people have to ask -- this is why. Establishing such a system is hard to do, and even harder to maintain. So far HN has been an exception, not the rule.

[1] https://en.wikipedia.org/wiki/Hacker_News
> but the underlying assumption is heritage for white southerners. It’s a dangerous thing to honor.

Actually, I've consistently been trying to make the point that the things being honored in this way do NOT include slavery itself. Yes, it's a weird point of view which involves a whole lot of willful cognitive dissonance on the part of those white southerners who celebrate their heritage today. Yes, it is entirely fair to criticize it on that basis. But it's not any more inherently weird than celebrating Washington despite him being a slaveowner, or celebrating the U.S. itself even though its expansion was accomplished by killing Natives. It's just not fair to be in denial about these nuances, and insist that "Southerners who respect their own heritage are celebrating slavery" in a way that others are not. (Note that one can fairly object to the Confederate flag on other grounds - it has always been an overt symbol of illegal secession, and a secession that was explicitly motivated by slavery - that don't quite apply to the statues of defeated generals.)

> What did the heroic statue of Forrest mean to them?

I'm sure that they had plenty of other things to worry about. And that, by and large, they wouldn't have wanted a South that failed altogether to reconcile with the North. Failed reconciliation after a defeat in war can be very dangerous - and if the "Redeemers" were willing to use paramilitary violence in our timeline as a reaction to a comparatively mild "Radical Reconstruction", can we even imagine how Southerners would have reacted to extreme levels of festering resentment? It would have gotten quite ugly, to say the least.
Or perhaps you'll feel comfortable and "at home" anywhere you happen to be. It's very individual.
OK, makes sense. And damn, 10 years is >>> a year.

So then, as a mere user, I gotta ask how so much of the Linux ecosystem -- and indeed, so much of the open-source ecosystem -- came to depend on such a fragile thing as the SKS keyserver network. That's kinda mind-blowing.
Maybe you don't even need to ask them to think of a number. The person whose name is sorted before the other person's name is person 1. And they compare their lengths instead of thinking of a number?
Fact-check: Does Amazon pay no US federal income tax?
Was OS/2 a viable alternative for daily DOS and Windows tasks?
You just made me watch some random, surprisingly interesting crafting dude, use string. On things.
> Simply go into to your blocklist settings

Whatever does that mean? Is that a browser thing or a firewall thing or something else entirely?
> On social media you follow people, while on forums you follow topics.

This is a very good summary, thank you.

How about Reddit? It does have a few “celebrities” but in general it is about topics.
AIUI 3 is the most common if you ask someone to pick between 1 and 5.

I was actually surprised to see 3 wasn't the second-most-common for a number from 1 to 10.
Machine Learning and Deep Learning Boot Camp, Get IEEE PDH
Eh? There already are decentralized social networks available to use. This doesn’t add up.

And as others have pointed out, what networks are eligible for this forced decentralization process? Should some networks be allowed to be centralized? Which ones, if so?

Let’s not be too hasty.
Okay what about celebrities? Charlie Sheen has tweeted some far out stuff.
It never held any power over me. I was always skeptical of it from the start. That’s why it is hard to imagine something like a social media strike. For many of us it has no power over our minds.
Man, these earnest wealth brags are really annoying here. There's was no reason to mention the piano, but you did.
What number are people most likely to pick the second time if you ask them twice?
The model could be extended by adding a penalty term to the objective. I guess the penalty would need to be nonlinear, as the current objective already minimizes the x_ij (for i != j) implictly? One could also introduce a fixed-cost offset for any nonzero redistribution amount, but that would change the problem type from linear program (LP) to mixed-integer program (MIP).
Presumably it's a setting on Pi-Hole: https://pi-hole.net/
With sufficiently good insulation (see passive houses in cold climates), the house should follow the outdoor temperature quite slowly and not change much over the day.
Do ACs in Delhi turn on only when it crosses 50 Celsius and do heating only starts in New York during polar vortex storms?
But you can use other energy sources apart from electricity to heat a household
I disagree with your redefinition of "crash". I remember the 90's quite well, and have spent lots of time supporting everything from DOS 3.3 on up to W10. That's not to say that there weren't those people for whom "crash" meant "OS reload". Usually when somebody said their computer "crashed" and they had to reinstall their OS I discerned a few possibilities:

1) the user broke their system because they were installing anything they could and are blaming MS for their troubles

2) the user has no idea how to fix anything so they default to a reinstall because they think it's easier than finding the fix. In a pre-Google/StackOverflow world, this may have been true.

3) The user was on a quest for absolute stability, and was superstitious about uninstalling/reinstalling drivers etc.

As for the "only ever just barely worked" statement, I strongly disagree. Yes, a lot of maintenance and good habits were required, but it wasn't outside of the realm of possibility to have a stable Windows ME. I know, because I'm one of about 5 people who ever liked Windows ME. I thought it was a decent OS, as long as you figured out that the Device Manager had 10 copies of every driver, unhid them, and removed them all and rebooted.
No, generally OS/2 ran Windows and DOS programs much more reliably than Windows could. But you couldn't buy a machine with OS/2 on it (except from IBM) because Microsoft had the market locked down, so it (1) cost money -- $100 was a lot, back then -- and (2) had to be installed over top of the Windows already there. So, only a few geeks had it.

Rumors about incompatibilities spread because people preferred to rationalize what they were already doing, and there was a lot of money in tuning and fixing messed-up Windows systems that would have dried up.
This isn't supposed to happen. Worst case scenario, the DMA-BUF is copied internally in the GPU from hidden memory to visible memory, and then back to the CPU.

Being able to export a DMA-BUF is necessary anyway for multi-GPU setups.

EDIT: fixed a s/GPU/CPU/ typo
True, I thought that a few hours after I wrote my last comment but couldn’t update it by that point and didn’t respond to it. Windows NT is the kernel, Win32 is the Windows subsystem that everyone’s used to (including kernel32.dll), WSL is a subsystem that runs ELF binaries and implements the Linux syscalls. It’s not yet obvious to me how much WSL2 is actually even a Windows subsystem, given that it’s running it as an actually separate OS.
There are already options for decentralized social media. So clearly the majority of people is not in favor of using them, or they would simply do so (without a strike).

Therefore, this is about a minority trying to force the majority of people to adapt to their preferences.

I can not sympathize with such a cause, even though I personally would prefer decentralized solutions.

It reminds me of the town that voted to ban Amazon - when they could just have shopped locally to begin with. Weird, really.
The quasi-tribal group doesn’t have to be actual relatives. Stay-at-home parents (mothers, really) in the neighborhood often played this role, even after WW2.
Heh, is this related to the sudden push by Wikipedia to Decentralize Everything?

Okay then, if we have a fully decentralized info network, which decision-making entities are installed as the prime movers? What contracts exist to operate such a decentralized governed network, facilitating elections and whatnot? (Assuming we want a “fair” and “just” decentralized state).

In other words, someone’s always gotta be in charge. Just a matter of who.
Fantastic book.
He appears to not be very progressive - the "culture war" bit being that, if he was, this may have played out differently. Similar things happen on Twitter for example. Doxing is ban-worthy when done by one person, but not when done by others with the difference being the political side these persons are on.
That's OK, since I can't afford Airbus wings (or Rolls Royce jet engines), large generators or railway locomotives anyway.

I realise you're only joking, but it's a very common joke, and I don't think many people realise manufacturing accounts for 44% of the UK's exports. This ignorance probably influenced the Brexit referendum, and continues to influence the politicians negotiating it.
Technically true for cooling as well, thete exist gas powered AC systems (and fridges etc). You could slso use mechanical sources such as water mill or windmill to power the compressor but there probably aren't commercial systems on the market.
I have two keyboards from KBParadise from 2016 with the Matias QC switches. I really like them both, but they've had intermittent (but sometimes very severe) key chatter issues. It's really too bad because they are great keyboards and switches.

Anyways I heard it was a fairly common problem around the time I bought them, but has since been fixed. Anyone have a more recent experience?
"Pick your sacrifice" applies here. I think you need to know where your red lines are in your career and family life. Having a schedule helps you keep on track.

Other than that, my Dad once said something along the lines of, "Life is a constant juggling act; you have your work ball, your family ball etc. However, your family ball is made of glass, so if you drop it, it will shatter and you may not be able to put it together again."
> He wrote 'Fuck Arbcon' in the entry for the arbitration committee. He had other warnings. He got banned for a year.

Should somebody go to jail for saying "fuck the DOJ"?
Yeah. It's weird because Lenovo's ThinkPads are at 1.8mm and 1.9mm (X1C and T4XXs respectively) for their integrated keyboards. It's not bad, but I don't think I'd pay money for an external keyboard that barely tops that personally.
I mean the last 3-4 presidents I could totally believe this.
You can try the project here: https://gitlab.freedesktop.org/mstoeckl/waypipe/
I feel that even if everybody who cared went on strike, the difference in daily visitors would probably be in the error margin.

I think most people who really care have already left the centralised social media or scaled it down to the point that a non-strike day is an exception.

I do not disagree with the message, but I seriously doubt that this will have any effect.
The social media strike, as organized on Hacker News, Twitter, Facebook, etc. I honestly don't think people have much interest in striking these days if they can't post it on social media, but maybe this will have legs. It's a little telling though that this really can't be organized any other way besides social media these days, and I suspect there will be a lot of people throughout those 2 days checking in on social media to see how it's going.
I agree but the ones who remain don't care.
Yes, you can get unpasteurized mozzarella, it is really delicious. Look, in Europe you can buy a type of cheese called casu marzu - literally "rotten cheese" - where during fermentation, they cut a hole in the top and leave it outside, so that a special type of fly comes and lays eggs in the cheese. When these eggs hatch, the cheese becomes filled with larvae who crawl through the cheese and digest it, as part of the ripening process. When you buy it, it's still full of crawling larvae. My point is, in Europe we make a lot of really weird cheeses. Mostly people survive.
He loves to experiment.
TFA and other news aren't reporting the takeover. There's some recent additional reports coming out now of the effects the takeover had on liquidity in the interbank markets.
Why do you think the kid is “sacrificed” by the parent pursuing meaningful-to-them work over attending a school event?
Hang in there! Excellence is dedication to completion, and by the sound of things, you are doing an excellent job.
Boeing 737 cost cutting measures might be responsible for fiasco?
This is very cultural too. Some places it's expected that dads take care of kids equally with mums.

I heard a great anecdote about a Manhattanite visiting Stockholm on vacation. Lots of men pushing prams all around town. "My goodness, look at all the young male nannies in Sweden!"
Local multiplayer game coming soon on Steam. :D
Apple releases iOS 13 macOS Catalina public betas
Right, so?

Where did the plants get the carbon from to build their organic structures?
This seems problematic if you consider yourselves unaffected thus uninvested.