skysight-inc/HackerNews huggingface dataset:
I think that would be clearer as "return a && !b && !c || d". Also, your second example doesn't directly correspond with the first, because condition 'a' is evaluated first.

The major problem with code that's "overly branchy", as in containing a lot of if/else, is that you're forced to go through each case when trying to understand how it works, and it often proliferates into even more branchy code as someone makes a bugfix (with another if/else) in one of the cases, but neglects to see that a similar if not identical change must be made to some of the others.

In other words, if/else cases like your second example optimise for micro-readability when what's often important in debugging and understanding is macro-readability.
Yeah - sadly it seemed "experiment tailored towards conclusions" as opposed to analyzing the reasons behind it. Especially if they had ones published by one author in one framework and one in another to compare.

The supply side and logistics could make it "mechanical" because it is known to sell well but much of it seems to be anti-popular rhetoric that anything widely liked must be flawed.

While there is a lowest common denominator drive from sheer weight of numbers (most money per person, targetting mean and below average getting good money per effort - frankly the higher brow crowd demand more effort) that doesn't mean they are automatically inferior nor those outside of its framework neccessarily advantaged. The converse doesn't mean "unpopular" are automatically better. Really popularity isn't that great of a heuristic either way.

To get to a larger point qbout writing everyone produces to some sort of motivation or incentive. Even "pure" writers doing it not for making money have at least an emotional connection - let alone attempts at gaining status or promoting ideas.
I'm starting to suspect social may have burned over. At least in pesent incarnations.
An onslaught of pills, hundreds of thousands of deaths: Who is accountable?
They're officially a library in California which gives them a ton of carte blanche wrt to copyright. As for the status of their particular actions, I think it's a lot of grey area.
It also means that the publishers by nature are publishing books that people want to read. No person gives a book company money unless the company is providing them some content they want.

The argument from the 1980s activists in congress seems to miss this point:

> E. L. Doctorow argued on behalf of PEN that “the concentration into fewer and fewer hands of the production and distribution of literary work is by its nature constricting to free speech and the effective exchange of ideas and the diversity of opinion.”

I don't really see what their alternative is here. People will always like dumb low cognitive effort stuff like Superhero movies. A group of novelists with a more refined taste in literature (than the average person) running independent book publishing companies is not going to change that reality.

The commercial book publishing companies target thousands of different niches. They're always seeking out new areas where there is demand, assuming it's not breaking any laws. That's basic capitalism.

I'd much rather have that open option than the government punishing book companies for not selling more books that some academic group of people think is more useful for society. Compared to what people would typically seek out.
It was also better before the influencers, celebrities, and (frankly) less educated joined. There's too much content now, and it's mostly low value. Deep, rich content and communities have evaporated save for a few vestiges such as HN. Even this lacks the camaraderie of the forums and news groups of the past.
Well, putting protocol fields in environment variables, un-namespaced, is one thing CGI hasn't gotten right. That's where FastCGI and SCGI come in.

Also, once in a while I begin thinking that PHP is a pretty nice language, certainly doing its job and very performant compared to Python or Ruby, even if PHP code resembles Java more and more. And I forget the numerous questionable semantic-breaking decisions. But then, bam:

> Warning: if PHP is running in a SAPI such as Fast CGI, this function will always return the value of an environment variable set by the SAPI, even if putenv() has been used to set a local environment variable of the same name. Use the local_only parameter to return the value of locally-set environment variables.
Huh - that’s confusing in the context of this example, but indeed tests fine on my system (nvi).

Since the “word” in question is “<div>”, I thought the \< was just an escape. I looked in various docs and the best I see in Tcl re_syntax(n) is \< and \> are synonyms for [[:<:]] and [[:>:]] respectively, which are constraints matching empty strings at the beginning and end of words, where a word a sequence of word characters... [a-zA-Z0-9_]

TIL, too...
No, there are dozens of distinct verifications; its presence is established essentially beyond the shadow of a doubt. It is anything but an assumption.

See for instance https://en.wikipedia.org/wiki/Dark_matter#Observational_evid...

Also https://www.reddit.com/r/space/comments/a8vgm9/how_many_of_y... has a good summary.
The correct modern usage is "Oh, my sweet summer child", anyway.
This can be perfectly legit, or not of course. How come such transfers don't attract irs or govt attention? I can't give my son more than the max annual gift of 15k without it being taxable. I've always wondered why international money transfers can seemingly ignore these rules. I expect the parents are somehow hiding that it's a gift to the kid.
Emacs equivalents are (by default) mapped to M-! and M-| with/without prefix arguments (so C-u / M-<num> etc)
This is one reason we choose to use Windows Storage Spaces Direct and the tranactional NTFS. They really are better.

https://docs.microsoft.com/en-us/windows-server/storage/stor...
"...when things were on an uptick"
And now it's trivial to do with CSS but largely out of fashion. Sigh.
Reduces server costs. Able to process data on client, including mathematical computation via We ebAssembley. Which in effect allows you to create "Web Apps," rather than just a news site, blog, ecommerce, etc... figma.com is an excellent example.

Not to mention that SPA have been used for video game UI. Rather than building that system from the ground up.

If your client's needs are to just display a static and do not dynamic updates from the server then ignoring the SPA approach is very wise.

Client side navigation handled poorly is just that handled poorly. And should be handled by the Senior Developer and not the Junior. As SPA is just another tool for a specific use case.
Telsa and Elon both explicitly told the SEC that Elon's twitter account may used for official company messaging, making that an unambiguous example.
Resilient File System (ReFS) Overview
> Every computer component can fail in arbitrary ways, including drives.
>
> If you’re not robust against that, then when things like fsync fail, then you’ll lose availability and/or data.

The fact is that often the I/O issues are temporary, and those situations are becoming more and more common (think running out of disk space with thin provisioning, networking issues with NFS, etc.). So it might be quite valuable to handle those issues gracefully, without essentially crashing the database (which is pretty much what PANIC does).

> Even though Linux’s fsync behavior is clearly broken, it is far from the craziest behavior I’ve seen from the I/O stack.

"clearly broken" might be bit too harsh, but it certainly makes it way harder to use.

> Anyway, the main lesson here is that untested error handling is worse than no error handling. They should have figured out how to test that this path actually proceeds correctly (on real, intermittently failing hardware) or just panicked the process.

That's true, of course. It's a sad fact of life that error paths are the least tested part of almost any code base. It's however also true that testing I/O errors is pretty difficult to do (especially before "error" dm target), and a significant part of the fsyncgate was that kernel was not reporting errors reliably. It's also true that the behavior is somewhat filesystem-specific (some keep the data in page cache but marked as "not dirty", some will discard the data, ...). That makes testing pretty hard.
It's clearly intended to be funny, but the reasoning is perfectly sound. If a particular kind of dark matter candidate existed, it would need to be distributed with a density that would result in occasional very obvious, very fatal collisions with people. Since we have no record of people dying due to inexplicably having large columns vaporized through their bodies, we can exclude this particular class of dark matter candidate particles.

The more serious component of the research focused on searching for these events in old deposits of granite.
The de-adification of non-commercial websites would be a great outcome!
It’s a culture difference: in China, it’s the victims fault for letting the perpetrator take advantage of them, while in the west it’s the perpetrator’s fault even if the process was completely legal.
https://www.familytreenow.com/
Fuzz Rising
The real difference is amazon is doing it for you, not that it isn't happening.
But specially made dog food has only existed for 100 years or so. Dogs evolved eating humans' food scraps.
Guardant Health Case Study
Embed data payloads inside of ordinary images or video
Yup. Was a lazy Google on that one. Here’s his blog entry on it: http://thume.ca/projects/2012/11/04/simple-accurate-eye-cent...
A little too soon for that haha
Ask HN: What programs can I get for free with my university enrollment?
I recently became enrolled in higher education, and I was wondering what software I could get with my EDU email address. Already got MS Office and I saw I could get Autodesk if I wanted.
Dillo has all the modern-web functionality of lynx, all the keyboard-driven capacity of Safari, and all the UI/UX appeal of an abandoned brutalist shopping mall.

Sure is fast though.

Other than quick site previews, I rarely use it.
Quindar Tones – what the beeps on the moon landing audio were
They might buy them but they don’t necessarily use them. A lot of the housing stock in Vancouver is vacant even if purchased, screwing up the neighborhood economy greatly.
Yes, I tried it just now on a random website I built in Vue. Any sane implementation of client-side navigation uses the History API[1]. It is indistinguishable from "real" navigation in the browser UI, apart from how fast it is.

If on the other hand, if you encounter code like the abomination below (which breaks cmd+click, peek and forward/back), you should not (imo) conflate it with actual client-side navigation. I suspect that's what some comments here are referring to.

<a href="#" onclick="loadContentIntoPane('contact')">Contact Us</a>

1. https://developer.mozilla.org/en-US/docs/Web/API/History_API
In this particular case I would just have included the starting < in the search and replace.
Look for a new job (possibly in a new city). That is the lowest risk way to change your world. If you interview, you may find that your current jobs has benefits you were blind to.

Another alternative that I pursued was taking a sabbatical. If you have the means, take a few months and travel. If you want to do some work, here are two organizations that can help with that:

https://wwoof.net/ (farming work)

https://www.bunac.org (short term work visas)
How to get shit done (& why motivation isn't enough)
Yeah, the two most common forms of cyber security I've came across are:

a) Don't know much, don't care much, don't really do much; or

b) Super paranoid that we're going to need really expensive consultants and buy really expensive products, and do lots of manual because automation is insecure, need to be on-prem, basically 10-15 years behind.

Neither really patch servers, but often the guys that care are so behind the times they're actually worse.
Linux kernel behavior is still the same. The error reporting issues (failure to report I/O errors in various cases) has been fixed on recent kernels, AFAIK.

PostgreSQL now PANICs on I/O errors during fsync, forcing a recovery.
Theming with React and Sass
I worry about Hong Kong protestors as it isn't like mainland China isn't in this for the long game. Mainland China will increasing integrate Hong Kong, it is an unstoppable force. I think the most prominent protestors should have plans to get out of the country.
This just seems to be a creative product page of a company specializing in hidden doors?

The prices they list are very discouraging but it's basically just their rates and it seems this company is targeting rich eccentrics.
Facebook loads pretty slowly for me.
>Because it's faster

Did you read the article? The entire point was that “its faster” isn’t actually true.
I disagree in many ways. If someone knew exactly what type of information can be infered based on the information collected and all the many ways it can be used against them they would care.

Let's say they knew Microsoft can share this information with third parties which might affect their credit worthiness,employability and other very real and immediate aspects of their lives? Let us say the quality and availability of goods and services might change if MS or a third party used this information against them? What if MS can use ML to infer very personal and private aspects of their lives?

By your logic 4th amendment search and seizure restrictions don't matter either because most people assume the government can search them anyways.

There is a reason you have the right to legal representation when accused before the law, you don't understand the law well enough to answer questions and argue on your own. Tech isn't that different, people don't understand it well enough without relying on factual opinions of professionals in the field.
Curious, how would you implement Facebook's infinite scroll with only static pages?
I'm having a hard time figuring out which side is the CIA's people. Maybe both?

I'm half joking, but also definitely wanted to plant that idea for the American readers. Wherever there's chaos and instability, the CIA is often there. (Even in nations with which the US isn't openly in a trade war.)
Google AI Education Resources
What were cgi script? Not sure that people have stopped using them. Old things don't always need replacing; some times, they still work fine (though you have to watch your security).
A 20 line function is suddenly 100 lines.

...and what's worse, that then gets broken up into smaller functions containing equally trivial-but-bloated code, and now you need to jump around even more to understand something that's actually very simple.

At the extreme end of the terseness scale are the APL-family languages, and the people who work with them have no problems reading or writing code like this:

https://code.jsoftware.com/wiki/Essays/Incunabulum

I think it really says something about the state of software development when you consider that a not-insignificant number of people who are perfectly fine with that level of density (and they are making $$$$), and yet there are others who will complain that even K&R's style is not verbose enough. IMHO it's a matter of education and attitude.
CoffeeMeetsBagel briefly added a video feature where you could record your answer to a question they asked each day. They had it for a short time before they completely pulled it. I wonder if the ROI in terms of handling video bandwidth to conversion to dates wasn't really that much better than just still photos.
Crypto Millions Lotto Launches Global Bitcoin Lottery
No, this is wrong. Microsoft tried it with Windows 8, getting rid of subpixel antialiasing for hardware accelerated rendering and the results were so bad that a recent update to Windows 10 began switching back. Unfortunately, Google did the same thing in Chrome and they still don’t get it and continue to insist that “it’s too hard to do it right” every time I file a bug about UI régressions that came about as a result.

macOS gets around this be aliasing the hell out of all fonts regardless of manual type hinting (or lack thereof).
The same drone can also capture or kill snakes. Poisoned mice have already been used to kill invasive snake species, so the drone can drop those. On-board weaponry would be more efficient, but I’d get chills systematically erasing anything using a swarm of killer drones....

The risk of off-target killing should also be considered. A semi-autonomous solution would have the drone beam footage of the snake and await a kill order from Florida man. Yikes.
Evolutionary processes aren't going to select for resistance to rare high-energy events. They are not common enough to significantly impact fitness and too drastic for small mutations to influence survival. Humans evolved from millions of years of hominid evolution on the African savanna, and have have evolved no immunity to lightning.
Thanks for pointing this out! I didn't know that C++17 had relaxed this restriction.
Nearly everyone save for a tiny minority overestimates what can reasonably be kept safe. A good rule of thumb is that if the data exists, it will leak.
You’re probably a really smart person. There are many problems in the world that need solutions:

Figure out the solution to boredom and share it with h others in your situation.

Or

Share your dev talents with non-technical entrepreneurs who are desperate to find a dev to work with.

Or

Figure out what really makes you excited and happy and do that.
From a quick glance, it mentions using a "memoized DOM" instead of a virtual DOM, which I think I've seen another new framework use recently. My understanding is it caches out major DOM states at compile time instead of computing them all at runtime, making things faster.

The tagline though doesn't really have anything to do with this
Didn't a similar group also show up at the 2014 Umbrella protests and beat up the protestors then too?

I wonder if it’s like Maduro’s socialist ‘colectivo’ gangs [1] in Venezuela that rove around on motorcycles and assault and even murder anti-government protestors without punishment from the state. But obviously less serious and violent.

[1] https://www.chicagotribune.com/nation-world/ct-maduro-venezu...

Edit: there were accusations that HK gangs were 'hired' last time when a large group of weapon wielding gangs assaulted protestors in 2014: https://www.theguardian.com/world/2014/oct/04/hong-kong-legi...
Except if you have a high end tech job in Vancouver that only pays 80k/year or less.

Unless you are already rich, it makes sense to get a T1 and head off south to Seattle where the houses are still pricey but the salaries are much higher.
It also launched during a time when most people watched video on a tube, hence the name. This may not be immediately obvious to people born after ~2005.
IKEA is a special case for New Zealand, the story goes that NZ slighted IKEA in some way a long time ago, something like being unwilling to provide favorable zoning for a flagship store, and this resulted in IKEA leadership blacklisting NZ. This is often given as the reason that no store exists even today.

Quite possibly not true, more likely is that the small population and logistics complexity makes it uneconomical to service, especially for a brand that depends on scale.

Apparently they're launching a store soon anyway.
> All of this can be explained with the Schrödinger equation alone

That depends on what you mean by "all of this." If you include the Born probabilities in "all of this" then no, "all of this" cannot be explained by the SE alone. That's the whole point of the article.
I've been really enjoying Puffer since I first saw it posted here to HN
This doesn't work as well as you think once you consider multiple endpoints and round trips. You're better off with something like GraphQL or server-side making the API ship views to clients.
That moment when I read this text and whenever it says 'Pg' I read "Paul Graham" so, in my head, the text says things like :

Paul Graham should PANIC on fsync() EIO return.

or

Paul Graham wrote some blocks, which went to OS dirty buffers for writeback
Judge told Tesla to release evidence in short seller trial. Tesla dropped case
Of the 7.4 million people who live in Hong Kong, between 338,000 (police count) and 2 million (organizer count) people took to the streets on June 16th alone. Here's a timelapse of one evening of protests (I couldn't find a palatable source so I rehosted it myself):

https://yukari.sr.ht/hk-timelapse.mp4
Growing up in the upper Midwest as a kid who spent a lot of time outdoors, I never saw or got bit by a single tick. Now they are all over the place. I've read that it's because of climate change making winters less cold and more survivable for them. Regardless, the change is stark.
Wow, this could be nice this fall for football.
Correct. It will apply substantial political pressure on Mitch McConnell, as everyone who would see a benefit (anyone making under $15/hr) is unable to if he won't bring it up for a vote.
There's still an issue if you insert something you've searched for first, e.g.:

trie<char16_t> trie;

trie.insert(u"a");
trie.search(u"ab");
trie.insert(u"ab");
As shown in the graph in your link, the double exponential has a sharper "elbow" and therefore it seems to me that if you start at the same y-value, then the double exponential will lag behind the single one for a period of time, which in practice might be any length.
No, someone flagged it before I added that.
You better specify what "SMP" means. By definition, Symmetric Multi-Processing doesn't have locality concerns, but that's basically dead, and Shared Memory Programming does, indeed, typically require attention to topology and thread binding -- frequently ignored, of course. I don't know the MPI standard well, but I didn't think there was anything requiring topology to be exposed, and it won't be in the absence of something like netloc, which is still experimental.
Yes, they are opportunistic carb eaters as a result of that evolution. The business of the low quality dog food abuses that.
We're in preparation to move to SoCal so we've been watching prices for the last year. The trend has definitely been downward for housing in our price range.
You can turn antialiasing off in Mac
> I'm half joking, but also definitely wanted to plant that idea for the American readers

Alex Jones, is that you?
Apple.com has a ton of static pages and then a mix of WebObjects apps and some other frameworks. There’s also a WordPress blog or two on there. A few years ago they messed up the Apache config and next.com worked as apple.com for a while.
Ah I missed that aspect in my skim. The consistency excess copies seems to imply that losing them entirely would be extra bad for survival enough so that redundant copies would boost offspring survival and dominate for human adjacents but not their more wild counterparts.

The domestification might even imply reverse order - that the ones with the starch genes were more likely to wind up in "dog" pools - say because they were attracted to starch and got closer to humans - and thus plenty of extra copies among their descendants. Meanwhile ones without were more likely to stay away and their descendants more likely to wind up in "wolf" pools where prevalence was lower.
> CGI is still a reasonable choice for low query rate and simple pages

By which you mean, "Almost every website in the Universe which isn't actively being DDoSed" with the understanding that essentially nobody can stand up to a modern, competent DDoS.

> Per Murphy's Law, of course, everything is fine until one day the internal app goes public and suddenly there are 500 queries a second.

Omae wa mou shindeiru. You are already dead.
If the links are not highlighted by default, then tab navigation is basically non-existent since I cannot see where I'd be redirected and I personally bother to write custom CSS only for the websites I visit very often.

Is there an actual reason to disable highlighting? It lowers usability and accessibility, but I'm not sure what do you get in return?