skysight-inc/HackerNews huggingface dataset:
I get the dated claim, but how is yours faster? It's nearly the same logic written with syntax sugar, no? The differences I see are that by using rest params instead of a deferred Array.prototype.concat, you've lifted the Array instance creation into all branches, where the original saves itself the trouble in the invariant case. And yours defines a variable whereas the original didn't. Is there some under the hood reason why this version would be more performant?

As for the inelegant claim, beauty is in the eye of the beholder. If performance is not a concern (as it won't be in most currying use-cases) I think the original version is much easier to read without years of js experience. It can be hard for newer or cross-discipline devs to understand mixed usage of rest params and spread operator since they look the same. In a scenario like this I think maintainability is a key ingredient of elegance.
Stop thinking about your work at night
Linux Desktop means Linux being a good Windows alternative on your computer.
Exactly. If people actually want single family homes that's what they will pay money for. If they want multifamily homes then let them have them.

America is supposed to be this mecca of the mythical "free market" but as soon as it's about land suddenly those rules don't matter at all. Supply and demand don't matter. The freedom of choosing what you want doesn't matter. Instead, the local residents abuse the government to force their way of life onto other people who disagree with it.
I had to replicate the SharePoint people picker: "resolved" values are styled and are removed as a whole with a single backspace/delete. SP was doing something super neat: it used ::after and content with an empty tag. A pretty neat trick, if you don't need to embed HTML (as content only supports plain text).

The bulk of my time was spent removing text formatting on paste, and Safari bugs.
You returned 100 items in a year?! Were they broken or something?
To me the problem with this kind of explanations is that they miss the “why”. I understand “what” is currying and “how” to implement it. But I’m missing the “why”.

The real-world example doesn’t tell me why I would prefer currying instead of putting the date at the end and making it optional, then checking if missing to assign current date. And for the other argument I could create separate functions logDebug, logWarning and logError, those would call the generic function with fixed strings, right?
I don't give a damn if she's selling me the literal oil of processed snakes and telling me it will cure my cancer. It is not the purview of the government to be my daddy.
The us sourced is only about materials. Too bad they don't require US machines too.
Methanol poisoning from distilling is superstition. Any sugar-based mash (whether it be a fruit wine, a grain beer, or a good ol' sugar mash) will produce completely negligible quantities of methanol, even if you are drinking the foreshots directly.

Methanol only occurs in home distilling if you are trying to recreate certain heavy-cellulose mashes (I've heard there's some Italian one that uses a particular wood, for example) or, more commonly, if someone is trying to de-denature alcohol, which was common during the Prohibition, which lead to the belief that moonshine was apt to blind you.
Its worth noting that a 2x reinfection rate of a very,very,very small number is still a very,very,very small number. The difference between the high dose modern a approach and the low dose approach of other manufacturers seems to be pretty strongly significant, moderna appears to be working quite a lot better for longer.
Thanks. I didn't know about waitUntil, that can unlock some powers.

> we're working on improving that.

I'd assume you are working for Cloudflare. Do you see it going the way of firebase?
Wow, that is pretty awful.

I'm a pretty big fan of strong, static type systems and FP in general, and I have been writing typescript professionally for a few years now.

I decided a long time ago that trying to write Haskell in TS just isn't worth the effort.

Adopting FP ideas such as pure functions, restricting side-effects and then otherwise just using the type system to model the flow of your program goes a very long way. You don't have to write Haskell in TS to reap most of the benefits.
> Because I'm pretty sure someone can buy a home, rent it out and make a monthly return on it, thus satisfying both a place to live and investment.

No, they are inserting themselves in the process as a middle-man providing absolutely no service or added value. All they have is capital, a monopoly on capital wrt. the person renting the house. This lets them add a drastic markup on the monthly price of housing for the person renting, as a direct first-order effect, PLUS, as an indirect effect this mechanism incentivises speculation and raises house prices even more.
Interesting sidenote: both ChromeOS devices and iOS devices (and, to some extent, macs), as well as all consoles, are sold as single bundled hardware+software integrated products.

There's very little computing done where the hardware is not designed with the software in mind and vice versa.

The days of "software x running on hardware platform y" might be behind us for the majority of the planet's population.
I see it a bit differently

In my opinion there's a point: if the dominant ethnicity is being enslaved, imagine what could happen to powerless minorities.

In other words, if countries that call themselves free are becoming less free day after day, it becomes obvious to imagine that not-as-free countries will follow the same route, maybe even faster.

they simply started from a different position in the global-freedom scale.

EDIT: apparently from the downvotes someone believes that Russia is a special place were all the bad things happen, while in the west when the US government spies their allies it's progress.
If an American company, Apple for example, obey to the free government of the US of A when they ask for more control over the content on their platform, what make you think that they will fight against other more repressive governments? (they have in fact put this specific app down on their store, as per Putin's request)
information warfare and content control are the weapons of the future, it is quite naive to think that there will be good governments that won't use it and bad governments that will abuse it. Everyone will use it to their own advantage. what's happening today is just the tip of the iceberg, wait for the day when the internet won't be globalized anymore as it is today and we'll have hundreds of local internets hardly connected to each other, allowing only some highly monitored link to "friendly" nets.
The title is correct - 600 Chinese brands were banned, and the reason for the ban was that the manufacturers were including incentives for leaving positive reviews within the product packaging.

The issue isn't product quality in this particular instance, or buying something for $2 and selling it for $20, it's that these brands were including incentives to write fake Amazon reviews inside the packaging of the goods they manufacture.
Here is an interesting case where an international group has gone out of its way to stop treatment by spreading misinformation.

https://youtu.be/eD9BYCYwsUI
> it would be ruined by many of the pressures which ruined most mainstream operating systems

I think Linux is different than other operating systems because if something goes mainstream that you don't like you have tons of viable options. With each component of the OS being tweakable you can choose opinions that others have made or forge your own path.

For example if you don't like whatever the latest window manager is you can pretty easily replace it with i3, bspwm or any other window manager that you prefer. Want a different desktop environment? Great, there's plenty of them. Prefer the ethos or core values of one distro over another? Sounds good, I'm sure you'll find something you like.
> Take Haskell, for example

Yes!

> Instead, you defer any handling of failures to the end of the chain

That's a choice. You can also do it immediately.

Also, no warped control flow: just regular "call-return" flows.

> What you’re not doing in any of those alternatives is explicitly checking the return value after each function call and handling any failure immediately right in the middle of your default execution path.

Like said, that's a choice. You can setup monadic handling, you can do each by itself. It depends on the situation what you use: but the DEFAULT is each by itself.

> As another example, Rust

Still the control flow remains intact. While Exceptions mess with control flow.
To help making sense of the names, an interpolation follows from a table of article "An overview of current COVID-19 vaccine platforms" (April 2021), at https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8076774/ :

-- University of Oxford/ AstraZeneca "ChAdOx1-S; AZD1222" - Deficient chimpanzeeadenovirus

-- Sinovac "CoronaVac" - Inactivated whole virus

-- Inactivated Wuhan Institute of Biological Products/ Sinopharm - Inactivated whole virus

-- Beijing Institute of Biological Products/ Sinopharm "BBIBP-CorV" - Inactivated whole virus

-- CanSino Biological Inc./ Beijing Institute of Biotechnology "Ad5-nCoV" - Deficient adenovirus-5

-- Bharat Biotech "Covaxin" - Inactivated whole virus

-- Gamaleya Research Institute Sputnik V "Gam-COVID-Vac" - Deficient adenovirus-5

-- Janssen Pharmaceutical Companies "Ad26.COV2.S" - Deficient adenovirus-26

-- Novavax "NVX-CoV2373" - Recombinant protein

-- BioNTech/ Fosun Pharma/ Pfizer "BNT162 - Comirnaty" - RNA-based vaccine

-- Moderna/ NIAIDc "mRNA-1273" - RNA-based vaccine
Cringe at the new Date() example ... will logNow() actually create a new Date() each time? no, it will use the one provided in the curry initialization.
Yes, you can re-host, but propagating the new URL to your users will take days, and the authorities reaction time is, for high profile cases, measured in hours. Another interesting question is how will you propagate the new URL? To do that, you need some way to reach your users when your website is down. And if you have such a way, do you really need a website?
What I'm saying is I think the risk itself is cost enough for them not to do it. Add whatever the losses are or we believe they are on top of that.
It is, also quite unjust when social background is concerned. Germany has it black on White from the PISA studies.
I try that kind of approaches as well, but the typical penalty would anyway at least include no YouTube, and since I unfortunately cannot fully trust them not to (not entirely blaming them, it is like forbidding them to have candies without asking but placing the candy jar right in front of them), I'd still have the same problem.
> Surprisingly most of them are from Communist party of Russia.

It's not surprising at all. The communist party is the second-largest party here (polling at around ~20% in the last polls I saw). The point of the Navalny app is to highlight the candidates most likely to win against Единая Россия (Putin's party) in each district, which will usually be the candidate of the second largest party (with some exceptions).

(Just providing this information, I don't support Navalny)
Open this code side by side with the source code for Cyrus IMAP, or Perl core, or libssl, and then scroll through them. You will be enlightened.

In short, any code that is intended to work on a wide variety of systems is usually littered with conditional compilation directives and macros that make the code extremely difficult to follow without a extensive study of the author’s “setup”. This is because to compile/run on a wide variety of systems, you actually need wildly different C source code, and what is written in the C source file ends up being more like a template for a program than the actual program.
Be careful with conspiracy theories. Some people get banned for them. While they are sometimes true (eg Watergate), usually they are not.
> I can’t find the name of the condition right now, but sometimes people fall into loops, where they will ask the same series of questions and give the same responses each time until they recover

Anecdotally, my mother did that sometimes during the mid-to-late stages of her Alzheimer’s (before we had to send her to a care home, but after she was failing the Clock test).

My one experience of edible cannabis (in retrospect I don’t think it was just cannabis), my partner at the time said I was repeating the same sentences. Not that I know for certain: myself, I had the subjective feeling of all working memories going direct into long-term memory without touching short-term memory.
For me it is an example of superhero inflation. After the third time a city is rampaged you stop to care. They introduce more and more powerful characters to use them in almost medieval battles. I would like to see WWI or WWII tactics super hero movie, but for now I am on a diet and just don't care.
> I'm always pleasantly surprised when I see power management correctly configured at a client precisely because it is so rarely done correctly.

Let's say I have Linux instances in the cloud. What would be the steps to take for proper power management?
That's already built in to the language:

let logNow = log.bind(null, new Date()); // [sic, "now" is fixed]
let debugNow = logNow.bind(null, "DEBUG");

Also, uglifiers and transpilers do some horrifying stuff, this won't break if fn.length is tempered with. Unlike the article implementation.
No, you can E2EE on all clients. But Secret Chats are always a 1:1 session between devices. You can't start a Secret Chat on one device and continue on another.

This might seem like an inconvenience but it avoids the pitfall leading to
the recent Matrix exploits...
What is qualitative measurement? As soon as it is quantitative, it isn't qualitative anymore, is it?
HN has improved at hosting discussions on the intersection of tech and politics over the years, but it has a long way to go. Most threads on it still turn into slap fights within an hour.
This "year of the Linux Desktop" joke is getting a bit tiresome. What is missing exactly?

Sure the desktop is a bit ugly. But pretty much everything works out of the box. If MS released a native Office for Linux I could get rid of my Mac.
glances at pre-order
> I think you need to approach it more like grep than google. It's a forgotten art

A search engine that accepted regex as the search parameter would be amazing.

I actually used this method as a field filter for a bunch of simple internal tools to search for info. Originally people were asking for individual search capabilities, but I didn't want it to become a giant project with me as the implementor of everyone's unique search capability feature request - so I just gave them regex, encoded inputs into the URL query string so they can save searches - gave em a bunch of examples to get going and now people are slowly learning regex and coming up with their own "new features" :P

But this made sense because it's a relatively small amount of data, so small that it's searched in the front end which is why it's more of a filter... I don't think pure regex would scale when used as a query on a massive DB, it would need some kind of hierachy still to only bother parsing a subset of relevant text... unless there is some clever functional regex caching algorithm that can be used.
Don't they need to announce a concrete Communist to vote for? Last time I checked the number of Communists in Russia was strictly greater than one.
Which is mostly decided by the class of your parents
> current government is more of a “show business” than a government

You can criticize individual governments all you want. But the principle still stands. The Indian government is formed by people who have been directly chosen by the people of India. Except the brief period of insanity in the 1970s, we have had a good history of peaceful transfer of power from one government to the other.

> sycophants

I don't want to derail the conversation, but I am sure you would agree that this is hardly unique to the current disposition.

> The Indian judicial system is excruciatingly slow

I know. My complaints go far beyond that however. None of the judges are answerable to the people because none of them are elected. The SC even invented the collegium out of thin air. The second problem is that this makes their interference in executive matters even more worrisome because they cannot be voted out and impeaching them isn't particularly easy.

Still, the judiciary is fairly independent and people who think that the government has exceeded its powers can always try to get justice. Whether they get it in time or not is a different matter, but the option is available (unlike in, say, China).
Show HN: Wat – “Which Alias To?”, an fzf alias finder
> I've actually grown to dislike currying

I believe this is a notational issue more than anything. Fixpoint style in languages like Haskell is very natural and intuitive, if you have to write a `curry` function like the article shows, you have already lost.

It's much more convenient to `ad-hoc curry` with things like:

const f = x => myFunc(someArg, x, someOtherArg);
return myArr.map(f).whateverElse();
Do mirrors ambiently cool the surface they're attached to in the same way as is described in the article? I wondered the same thing when reading it.
I wouldn't say nihilism is a philosophy, more the emergent result of holding the values that I do. My evolutionary path has been voluntarily cut off, so I have the freedom not to care about humanity's fate, I don't hold religious beliefs and was not trained in them, so I don't have a "spiritual" or moral perspective to uphold, I don't believe authority is positive for humanity, so I don't care about law or country.

From a pragmatic viewpoint, none of my views about what we should be doing is possible: Reducing the population and shrinking it's footprint to allow other life to thrive and evolve, abandoning the notion of nations, and especially armies and war, doing away with the idea of ownership of land, which leads to the dispossessed being little better than slaves, automating as much as possible and promoting subsistence in favor of productivity... I could go on further, but it would get redundant.
I've watched most of them, and after you've seen more than a couple with the same protagonist they all start to blend together. They're all pretty entertaining at least, which is why I like to watch them. And occasionally there's one that's actually pretty good and original, which is a nice surprise, but to me those are the minority.
I don't believe it is fair to call what the qualified scientific community is doing as "censorship", in fact I would go even further and say that calling it as such is purely political propaganda.

The scientific community is doing the studies, all the studies, every possibility is be analyzed & tested, even the most outlandish claims are being thoroughly tested in many many scientific studies/trials. Every scientist in any related field wants to be the one to find a cure, or find the source, or find any other relevant information on this disease (for the career advancement, the citations, the bragging rights). That the scientific community is correctly trying (and unfortunately failing) is to suppress the spread of false and/or misleading information that is not supported by the science, like the following:

1. Sensationalist press releases that are not supported by the underlying scientific paper.

2. Press releases propping-up weak new papers/studies that are less statistically powerful than the current consensus and therefore don't change the consensus.

3. The general press proping up scientific pre-prints without peer review.
Gay Nineties
As an Irish person: you and all other people commenting underneath are wasting your time. No one cares. Ireland or Republic of Ireland.
TLDR for the paper: GoF is not necessarily the strongest candidate for this flu outbreak. However, all the candidates are man-made due to research efforts.

To me this points out that every study on a pandemic-possible virus should have an extremely high bar to meet in terms of both safety and reason for performing the study in the first place. Effectively the only reason that is needed now to perform such research is that you want to publish a paper. The linked paper points out one possible source of the flu pandemic: vaccine development. This may have been a worthy enough cause but greater safeguards are needed. We should take the money we spend on GoF research and spend it on ensuring better safeguards for existing research.

GoF research has an explicit goal is to make a virus more human transmissible: if it is too successful, you end up with the possibility of a pandemic. We now have a COVID pandemic that might have been caused by GoF research. On the flip side we can't show much benefit from this kind of research.
Already is. There must be more smartphones and tablet users than personal computer users in the world. Simply because a person who use a PC but doesn't have a smartphone (hyper nerds like Stallman, or ppl who have very particular jobs that give them the freedom not to have a smartphone) are outnumbered by those who have a tablet or smartphone but not a PC (my 94 year old grandma)
Not really. You can use whatever you like, the possibilities are endless. AFAIU, the most straightforward approach would be to use Android / IOS push notifications (which can't be easily blocked) to regularly push a constantly changing (to avoid censorship) URL of your backend API servers to the mobile apps.
Very nice project!

> Optimule uses state-of-the-art routing algorithm's, run thousands of times, which guarantees that the routes generated are the fastest and shortest, while maintaining real-world business and customer constraints.

Which algorithms do you use for routing? Without giving away too much details (in case this is your secret sauce), what is the general approach? From the "guarantees" "fastest and shortest", I infer it's an exact approach rather than a heuristic one. Is it integer programming-based VRP? I thought the SOTA here was very hard to reach (column generation, cutting planes, etc.).
https://hydro-sdk.io/ enables this approach as well.
I assume they meen 600/day. Would even that keep up?
They're using the lightning network on top of Bitcoin for instant transactions and less than 1 cent fees.

If Bitcoin equals cash, Lightning is Venmo

The lightning basically network syncs to Bitcoin in large atomic updates to limit fees.

Hope that helps
It depends on what you mean by "solve."

Can the market 100% solve all housing problems? No, probably not. Can the market solve A LOT more housing problems than it currently is? Yes, absolutely. The market is hugely constrained by government enforced zoning in a huge number of places right now. It's the primary housing issue of our time.
I imagine that this is less about the app than it is about controlling Google and Apple. Imagine Yandex was hosting Smart Voting apps for US elections
The macOS Update Problem
The Story on Why Space Cadet Pinball Was Removed from Windows [video]
It's not just a leaky abstraction, there is no abstraction!

It's the opposite of user-centric design, like a car with no body where you adjust the gasoline pump, the transmission, the amount of oil etc. yourself.

There's an underlying model, which is tricky but not rocket science - and all actions on that model can have a bunch of non-obvious state changes and side-effects.

It's just complicated enough that it's hard to keep track of the models+statefullness without some expertise, experience and thought.

The first time I saw an 'animation' of what was going on with various commands, it blew my mind how much I learned as I saw things happening.

The language we uses is often not very specific and leaves out important details.

We use it because there's a kind of simple brilliance to the underlying model, it's very fast, very robust, and works well for open source.

That said, I wish there was a git optimized for teams and with better abstraction.