skysight-inc/HackerNews huggingface dataset:
For me it's the other way around. A for loop is a general purpose solution that changes continuously with the problem: whenever I need to gather some extra data, just add some hairs to the for loop. The time complexity is obvious, so is the space complexity (how much data is in memory at any given time), and it's easy to pause and debug. But if you have a bunch of FP combinators and recursion schemas, when the problem changes slightly, you have to unfold the whole origami crane and re-fold it carefully again. It's what James Hague called a puzzle language.

The puzzle nature of FP can sometimes prevent the simplest solution to a problem. For example, try writing a function that accepts a list of N numbers between 1 and N and returns its histogram (list of counts of each number). There's an imperative solution in O(N) time with one for loop. But in FP, I'm not sure O(N) can be achieved, and even O(N log N) requires tree-like data structures that aren't needed in imperative.
List on the left column behaves well if scrolled via scrollbar. It goes nuts when trying to use the entries at the bottom if scrolled with mouse wheel.
Crocodiles Went Through a Vegetarian Phase, Too
Yep, Microsoft too. Apple supporting the standard would be a great help to developer adoption.. theoretically, though I think they just prefer strong-arming developers into using their proprietary API anyway, standard irrespective.
Do you care to elaborate?

I see no issue in using a fair subset of C++ features in privileged mode.
An interesting conjecture I've made during this discussion is the following: can early returns be responsible for over-engineered code? Think about it. If it's acceptable for programmers to use early returns then they can't stand bigger functions because those big functions systematically end up full of early returns. So programmers breaks things into small pieces instead, systematically. While there is many reasons why breaking things into small pieces could be the right thing to do, early returns is certainly not among them. You have to picture what I'm saying. What I'm conjecturing here is that many programmers simply can't make bigger functions so they'll take a battery of bad decisions, unconsciously, to avoid them. How big is that?
Also relevant is Google V8's Irregexp: https://blog.chromium.org/2009/02/irregexp-google-chromes-ne.... They claim 3x speedups.
Rebooting OpenJDK Mobile
>> ...the public nature of the patent application seems to fit within the narrative of a managed disclosure.

No. The patent application fits with the narrative that the US patent process is a total joke. This is an attempt to patent science fiction. This patent will be used for everything but the production of a working technology. It will be used by someone to aggrandize themselves and potentially milk "investors". They will wave this "patent" in front of some naive old people, probably in florida, to get them to sign over their life savings.

If anyone on this planet has practical warp drive technology, friction-free motion through air/water, or gravity manipulation tech ... such things are akin to the discovery of fire. In the real world, whether the inventor has a patent or not is absolutely meaningless in the face of what such technology would mean to mankind.
Not really surprised that Subway is rotten in many ways. Absolutely terrible food, only fit for the garbage. Even the bread is loaded with carcinogens. I get depressed when I see these corporate behemoths treat people like cattle and literally feed them toxic waste earn billions.
Java Futures, Early 2019 Edition – Brian Goetz
Your solution requires that slang be fully populated upfront, while the article shows a solution that can operate on a stream of data, an item at a time.
Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..).

Most C++ issues come from using every feature under the sun and accumulating loads of technical debt instead of picking one tool and sticking with it.
If you haven't used a mouse in months you're lucky it's still there.

More seriously if it went from misbehaving to calling you in to getting to the computer and adjusting it, it doesn't sound like the four minutes of charge time was anything but negligible. Finding a cable sounds like a bigger issue, and that could happen to any wireless mouse. (and wireless is definitely not a dumb design decision, there are clear usability advantages to wireless mice)
One thing that's nice with Datomic (don't know about Eva, but probably the same) is that syncing data to other stores is straightforward, thanks in particular to the the easy change detection.
I get that times change and what may once have been an acceptable work of public art may be less palatable. Certainly a mural showing the conquest of native Americans is perhaps not suited to a public space. However destroying it is totally bone headed. Move it to a gallery or museum so future generations can see the journey that's been taken.
Gap Between Rich and Poor Americans' Health Is Widening
"In one of the panels – which are displayed in the halls of George Washington High School in San Francisco – shows slaves working in a field. Another depicts white settlers stepping over the body of a deceased Native American."

Why is this appropriate for a high school mural?
It did release a POSIX layer. Not many people used it.
NASA Hacked
Nasa was hacked by raspbarriyan pi 3
Studying the dependencies, esp for JS, takes a lot of time as well. Before including a library, I want to know if it is maintained, if it has no known sec flaws and if the author dies I have a chance of taking it up ourselves, at least for audits and sec fixes. If you are doing npm install and further ignoring those implications, then yes, you are right, but it will bite you in the end as software outlives it’s initial intended lifespan sometimes by decades; how much VB6 is running production that was ‘just a little tool for a few months until we ...’? ... how much PHP? personally I know 1000s of those running across companies we work with. With VB6 and PHP ‘oldskool’ (meaning little or no deps in the form of downloaded libs and components) people have no issue maintaining it. But if you have to do some fixes in 2029 on a node.js API you finished yesterday, you would not be happy. With 10000s of libs that will not exist anymore, many of those having massive security issues, many API’s they call out to having changed, you would need to study and work on the entire tree that affects the changes. If you did not set this up with this in mind (which seems some kind of JS plague as you indeed also suggest), this is what will happen in many occasions.

In general; many deps is a bad idea for longevity of software. How can you know if it does not all crash and burn if the author changes jobs? Personally I want to know I have the sources and understand them enough to be able to support them with our team; in reality, for the JS ecosystem, that often means it is less work (those hours you mention) to write it yourself because it was trivial to begin with anyway and the npm solution has 1000 dependencies yours does not (for instance, they use deps like left-pad to implement something that can be implemented in 100 lines of pure JS, now needing still 100 lines but of rancid (unsupported?) one liner ‘libraries’ which is absolutely insane)

Managers usually are not programmers nor have technical background: once something works, they might not allocate time for you/your team to touch it for many years. You probably left or enjoying your pension (many anecdotes about that: a lot of companies are running on software that was done by one employee and he retired, years ago), while some poor junior who does not know what JS is, is holding your turd. At least with 20 year old PHP it still runs and without knowing PHP beforehand, it is not hard to change/fix for a capable programmer.

I have seen this with larger node.js and with Rails projects; not so much with Java and .NET projects; the latter seem to be fine many year later (maybe with some tiny migrations), even when updating libraries or runtimes.

It is a compromise ofcourse; I am not against reuse, but only to the limit we could possibly handle maintenance and updates ourselves of all imported libs. Otherwise it is a no-go.
As you said its production going to china. When its their headquarters and management moving they go to Singapore and the like. So I think your professors theory holds out.
Photons only travel at the speed of light in a vacuum, when they're not interacting with anything. Throw interactions into the mix, and they go much slower.

The light produced by fusion in the sun's core can take up to 170,000 years to escape! Plenty of time for the angular momentum (or any other property) of the light to change.
The comment twice stands for some complex logic with side-effects which calculates value. You shouldn't put that in a ternary if, in most languages you can't.

And even then I would reverse the order, placing the exceptional and short case first.

Moving the code: why? You have a perfectly encapsulated function. If you need to, you have more problems with shadowing variables, functions and with return types.

For functional languages: doesn't Haskell explicitly have guard pattern? I thought the general guidelines favored matching and guards over if statements.
Why? As far as I am concerned these are all legacy problems. Drivers mostly work, people are aware of Linux and it can be e.g. run off an external drive. The problem is desktop Linux just isn't good enough. From a macro perspective it takes significant effort to manage, significant effort to develop for and provides significantly less value to users, developers and organizations alike. And exceptions doesn't make that less true. There is no conspiracy against Linux, or at least not an effective one. If there is anything hurting Linux it is its mainstream proponents like Google, who like to take but not give back agency. If desktop Linux was good enough, or more precisely great at what people need, they would be using it.
It was painted to denounce the hypocrisy of the founding fathers. So, to me, it’s appropriate as it encourages critical thinking.
How could Apple be a thteat with such a glorious Zune coming out in 2006?!

Oh wait...
I am relatively new to a project that is being sold and used in the order of millions for approximately 25 to thirty years.

It was refreshing to find out that one of the approximately 7 languages that contribute to the final executable that was abandoned in ~2007 has been revived and is now (2016ish) being maintained by Eclipse

These kind of things make you realise that the Silicon Valley way of doing things is not the silver bullet.
"Lie detectors" are in practice a measurement of nervousity, right?

"Oh, his heart rate jumped when I asked what the end score was in the game he said he saw in his home at the time of the murder even though he gave the correct score maybe he guessed."
It’s amazing how Dr. Humble of the NITV buoys his reputation on his title which he has publicly admitted was awarded as an honorific for six hours of Bible study at an unaccredited college.
Why not? I'm of the belief we shouldn't be afraid of our very dark history as a species - otherwise we can't learn from it. A high school is a place of learning first and foremost. Kids should be taught to never forget these things, or they'll eventually slip out of cultural memory all together.
Ask HN: Any good primers on modern developments in computer architecture?
When is Linux technically better? It is a good enough all rounder. There is this principle of "Worse is better" when it comes to many, many products.

https://en.wikipedia.org/wiki/Worse_is_better

Also the first versions of the kernel was released at the right time.

It is decent enough, free, open source and was around at the right time. The internet was just becoming a thing, the PC ecosystem had "won" and it was pretty open in that anyone could manufacture a PC. There was an AT&T lawsuit wasn't happening in the 90s IIRC against the BSD Code. If Linus had created his kernel a little later or a litter earlier than it may have never received the interest it did.
Actually, it might be the good old shortwave radio: https://spectrum.ieee.org/tech-talk/telecom/wireless/wall-st...
I had Subway for lunch for over a year until one day I thought a bit too much about how the pork riblet sandwiches were extremely uniform in appearance, and I didn't like the way it was obviously processed to death.
Subway is ok, but you can get much better, fresher options elsewhere.
Scratch lists seem relatively first-class to me. Your son could probably have fun building simple data structures with them by making blocks that take an input. He can also update a "return" variable if the situation calls for it.

https://en.scratch-wiki.info/wiki/List
I remember when darker brown people were considered to have a lot of "stamina" in the US. Now we've changed our focus to a lighter shade of brown I guess. Progress?
https://legal.here.com/en-gb/privacy
What is ironic is that the painting is a political, left-wing work of art, and it was created with the intent of denouncing the hypocrisy of the founding fathers.

Are we doing a good service to the youth removing any kind of potentially disturbing imagery? I don’t think so. Reality can be disturbing at times, and still needs to be known.
>The real impact is that the climate will change everywhere.

Precisely. Not only everywhere but it will be a constant. Calling it climate change is probably a disservice because it seems to infer a binary (false ==> true) relationship, where it's just hotter than it was before - not that it will continually worsen as the problem compounds exponentially over time.

>Good farmland will become bad. Areas with bad farmland will become good. And it's not easy to just shift the agriculture industry from one place to the other, and there's no control over where this happens. Also climate change doesn't care about borders. A country that has a lot of food production could suddenly have almost nothing. And even if a country is lucky and suddenly has good farmland, it's still a food crisis until that country can get their agriculture industry up and running.

Agreed but it's also not like good farmland will also remain a constant, as the problem progresses.

I liken it to being in a car and you know you're driving in an heavy snow storm but you expect not to hit a patch of black-ice because... ...reasons?...

The problem is: Once you hit it (the black ice signifying crops dying and food supplies dwindling), it's already too late. You're over-correcting, under-correcting, what-have-you as you continue to drive the car by the cliff's edge, thinking it could never happen to you - when that assumption is gravely incorrect and people could effectively die because of your arrogance.

Remember "Time Enough, At Last" from The Twilight Zone? Well, we have a seed bank in Svalbard (Norway) with which to rebuild from any major calamity but it will be effectively useless, unless we plan now where those seeds should be planted in the future.

Lab-grown food products aren't at the technology level to scale to feed a predominant portion of the planet.

So, if we have no plan, is the plan just to have no plan? It's confounding that we're having this discussion in a "dark corner of the internet" because the implications are far-more-reaching and far-more-tangible than this discussion could hope to address, which saddens me.

I'm going to go have some ice cream or something...
The article has some analysis:

“At the time, high school history classes typically ignored the incongruity that Washington and others among the nation’s founders subscribed to the declaration that ‘all men are created equal’ and yet owned other human beings as chattel,” Robert W. Cherny writes in “Victor Arnautoff and the Politics of Art.”

In other words, Arnautoff’s purpose was to unsettle the viewer, to provoke young people into looking at American history from a different, darker perspective. Over the past months, art historians, New Deal scholars and even a group called the Congress of Russian Americans have tried to make exactly that point.

I mean, gosh, the horror of young people confronting history.
Explaining the meaning and history of this mural would be bettern. Couldn't they add a sign with a text and QR code with some encyclopedical knowledge about each "controversial" landmark? Something like this [1].

I think is the same with the Columbus statue removal there[2]. Art is a product of its time and if the times were racist/violent/whatever, the art will be so also. Indeed it would be a good way to learn History.

[1] https://en.wikipedia.org/wiki/List_of_Indiana_state_historic...

[2] https://remezcla.com/lists/culture/columbus-grand-park-statu...
Looking the age of people at the conventions, I think climate denial is the sort of things you grow in to, not out of.
What do you mean by true OSS?
You may find LTSE.com interesting. It stands for “Long Term Stock Exchange”. It is an ongoing attempt to create a new stock exchange, with rules meant to discourage short-term minded investors.
Some background:
Netflix contacted the one that adapted the first version back in the 90s and the man has quite the reputation to create some insane (Really Bad) dialogues while translating. While he had been long excusing the stale quality with the limited time given to complete the workload, he is the responsible of the Italian adaptation of the Studio Ghibli's movies and he has received quite the critics for the use of certain terms that are either unused in common instances or even outright obscene to the people. His name is Gualtiero Cannarsi, by the way.
Freedom > LineageOS + MicroG

Privacy sucks! > LineageOS + MindTheGapps or NanoDroid or OpenGApps
Boomers, not millennials, may be the most active generation in the gig economy
I’m Grateful to See Colors
I don't have any experience with dependently typed languages. I hope (schedule permitting) to take a course in dependently typed programming (using Agda) and formal verification in the fall. I'll have much more to say on the topic after completing the course.
“New research being presented at the Astrobiology Science Conference shows the International Space Station has an irritating mould problem — not only on the inside, but the outside, too.”

"We now know that [fungal spores] resist radiation much more than we thought they would, to the point where we need to take them into consideration when we are cleaning spacecraft, inside and outside," Cortesao said in a statement.

emphasis mine
Imo replies here all miss the point.

The reason to use transducers instead of a for loop here is that it allows you to expose a library function which takes a transducer as input. It's hard to refactor the for loop above to allow someone consuming this function to specify additional things they want to aggregate due to an API change in the definition of the 'slang' type, but with transducers you just take one as an argument.
With dependent types: https://en.m.wikipedia.org/wiki/Dependent_type
I don't really understand how using tons of different services with probably much worse privacy and security teams and policies just for the sake of not using Google is improvement. It is actually much worse.
A Radical Way to Stop Heroin Overdoses
Mozilla Server Side TLS – Recommended Configurations
Version compatibility is not an issue for in-kernel drivers, only for the few remaining external ones. On Windows you have this issue much more often if you are trying to use an older device, in particular if it's one that came out before Vista, on Linux, once a driver is in the kernel it's continuously adjusted to driver API changes and will keep working. You can still run a current kernel on a 386 if you want to.

I'm running a quite current Dell on an essentially unpatched kernel (just includes Gentoo's default patches) with no additional modules involved and everything I tested up until now works, even fancy things like Dell's mini-dock.
Three major discussions already on Jony Ive's legacy:

https://news.ycombinator.com/item?id=20302429

https://news.ycombinator.com/item?id=20303856

https://news.ycombinator.com/item?id=20308816

Plus an extensive discussion of Jony Ive leaving Apple:

https://news.ycombinator.com/item?id=20298653
This cost minimization seems quite strange when every year people were anxious for a new Pro. How hard it is to make the trashcan bigger and put in more airflow? (Bigger fans with the same RPM.)

And sure, it might cost some, but Tim should count lost profit (opportunity costs) too.
The Unification of Sarsa and Monte Carlo Simulation
Polygraphs measure heart rate, breathing, and palmar sweating, which are affected by nervousness, but are not systematically correlated with lying. Voice stress analyzers don't actually measure stress in the voice.
Intuitively, it seems to obvious to me that any "lie detector" that is basically a stress meter (be it GSR, heart rate monitoring or even voice analysis) will have a bit of bit of value in that someone who is lying is likely to have a response, but at the same time this could just as likely be from anxiety of being falsely accused. I don't see how it could possibly be considered meaningful in any way.
The Strange Politics of Facial Recognition
Except their keyboards.

And their laptop overheating.

And the price of their monitor stands.

Or their lack of a <5" screen phone.

No, hacker news is happy to bitch about apple all day long and I don't know how one could possibly think otherwise.
Is there something in the OpenID Foundation membership agreement that might raise concerns for Apple?
I would take issue with prominent display of artwork celebrating the conquest of Native Americans, I don't understand why showing it is necessarily a problem. The mural in question is essentially criticizing the way that schools have presented that part of US history.
Now that I said it is useful I hope Google doesn't shut it down!
I always thought one of the main arguments for the guard pattern ("early exits" in the article) was _specifically_ to reduce nesting, so I find it interesting that both guard patterns and nested ternaries were mentioned. For complicated nesting that's nontrivial to simplify in this fashion, you should then think about extracting logic into helper functions.

(The example is also a bit misleading, since the logic flow between the nested ifs and the chained ternaries are subtly different.)

In the provided example,
const result = !conditionA
? "Not A"
: conditionB
? "A & B"
: "A";

is really equivalent to:

const result = null;

if (!conditionA) {
result = "Not A";
} else if (conditionB) {
result = "A & B";
} else {
result = "A";
}

which I don't think is that bad (look ma! no nesting!). You could also use a function, especially if the logic is too complex to flatten reasonably:

function checkConditions() {
if (!conditionA) {
return "Not A";
}
// A is true from here onwards.
if (!conditionB) {
return "A";
}
// B is also true from here onwards.
return "A & B";
}

const result = checkConditions();
can anybody here comment on the state of Wire? The last time I heard about them a while ago but they also seemed reasonably serious about security.
My point is to exactly prevent this level of leeway being given to an employee. The execs must make it clear in writing how to do a significant task. If they do not, they are culpable for the outcome just as if they eg. forged the results themselves.
Read this part:

> one or more unique identifiers that can help us recognize an individual user on an individual device and understand the device's service issues and use patterns.

They have a file on each user, it is straight out of 1984.