skysight-inc/HackerNews huggingface dataset:
Teaching someone to abstract out a name for something they want to do takes lots of practice, but then when they are pushed to have to abstract can lead to decision paralysis around when to do it. Having folks practice this together and feel out the nuances helps a lot. Control flow is also a tricky early concept for any new programming setting, but also, learning to compose is too. For some students tackling control flow and composition early by explicitly composing abstracted funcs feels great. However, I’ve oft seen many of my students want to get granular with control flow for a long while before they abstract or utilize many abstractions, probably because their mental model of what they want to do is stepping through each detail of an example they have in mind. Another component for andragogical learning is to just sell the WHYs of functional patterns: why care, why remember, why it’s helping, why they should just give it 5, why it’s ok to forget, et cetera. Learning and jumping straight into synthesizing, evaluating and analyzing code for a potential production setting has been difficult with a loose understanding. You need good scaffolding in your backlog, lots of time, patience, context sharing, and resourceful experts to turn to check your understanding and promote good tooling/solutions in the ecosystem. I saw this when my team switched to elixir. I saw this when my team stitched to K8s. Lots of delays I’m happy we worked through. Pairing a lot helped through it
If smallpox was as contagious as Covid is then a lab leak could have started a pandemic. Often times these polemical arguments against lableak origin for covid ignore important details like that.
Can you guarantee that a function has no bugs?
There are buildings built like this. In Europe. It is more expensive to add these specs.
I think its very straightforward to blame the US for the state of Afghanistan today, but the fleeing president had failed to collect any allies in the region, failed to get any formidable resistance to the taliban, and allowed warlords to spend US money lavishly on their homes and close compatriots. Ghani’s children benefited from immense nepotism by living in America working for thinktanks or going to university for phds, meanwhile taliban leaders planned suicide bombings involving their own children. They simply wanted it more.
Ask HN: Do You Penny Pinch?
I just read this: 'The Rich Don't Penny Pinch', by Sean McClure[0]

My take from it is that: life is so complex, that short term tasks to improve the future are fruitless long term since life is so complex and the future is opaque, so you're going to be fighting entropy anyway, so why bother doing 'penny pinching'?

I'm not sure I buy his philosophy though? I still use coupons, and my grocery shop is always a strict budget and I make use of special offers, as well as living frugally with all that that entails.

So: do you agree with Sean? Should we NOT penny pinch?

[0] https://seanmcclure.substack.com/p/the-rich-dont-penny-pinch
The superpowers never understood the war they were fighting here or how to fight it. This country, it’s terrain, history, and culture are just different from what western politics is willing to understand or have the stomach to address.
And before that the Soviets, British, and others for centuries.

https://en.wikipedia.org/wiki/Invasions_of_Afghanistan
Writing article about and working on deploying k3s for my home server.

https://flicksfix.com/posts/k3s-for-home-server-the-easy-way...
There are some great points being made here and Im really glad to see the generational issue come up. Wondering what role people think California boomers are playing in these problems as a distinct subset from Californias population as it will exist in ~30 years when they're gone?
The question, is what do they wait before merging with NVIDIA Holodeck?
The problem is packets flow both ways in a network.

It's not like an actual pipe where one end doesn't care where the other end is. The recipient of a packet has to know where to send the reply.

So while a host with a larger address could easily talk to a legacy host with an older, smaller address, the legacy host couldn't reply because it wouldn't know how to address it.
“Horse shit piling up in the roads is just our way of life. What would you have us do? Stop riding horses? How would we ever get anywhere? If you’re so smart, let’s have your proposed solutions given our present day limitations. I’m all ears.” ~ Someone a century or two before 1914 probably.

Sarcasm and condescension do nothing to drive the conversation forward and really just mask your own ignorance to solving the problem as well. If a solution already existed to the degree that it was common knowledge in public forums then I guess there wouldn’t be a problem would there?

The fact that massive divisions of companies like Alphabet (Calico) are dedicated to solving these problems seems to indicate that not all of us are deathists satisfied to recuse ourselves to mortality on the basis of some flimsy naturalistic fallacy.

Edit: Typo, changed our to are
I built my startup in elixir. yes, there aren't as many libraries but the ones I've needed have been available and reasonably documented in most cases.

one thing I like in elixir is that the whole language (and thus libraries) are more composable. its easier forme to break and reform functionality from libraries in ways the authors didnt envision. Takes more time to integrate but the end result is way more maintainable.
IPv4 address space exhaustion. NAT breaks end-to-end connectivity, making entire classes of applications difficult to deploy, and this is made worse when the NAT gateway is not under a user's control. NAT gateway deployed by ISPs represent a violation of the end-to-end principle and have to be even more complex and stateful than the NAT gateways users often deploy. If you are looking for a specific problem NAT introduces, one good one is that NAT forces users and application developers to use protocols that the NAT gateway properly supports (e.g. TCP, UDP) and to only use those protocols in ways that are "NAT-friendly" (e.g. easy-to-track client-server sessions that are initiated from the private side the gateway) or else to use some NAT-specific protocol as a crutch (UPnP/IGD, STUN, etc.). When both ends of a two-party protocol are behind NAT gateways it can become even more painful and possibly require a third party to be introduced to an application that is otherwise unnecessary for the application.

So at a minimum IPv6 gets us back to the end-to-end principle where Internet peers connect directly to each other without having to negotiate with the network itself. There are a few other advantages, like the fact that users can get large, publicly-routed addresses spaces for their own use (e.g. ISPs giving users a /56 prefix), simplified bridging of private networks (very low probability of collisions in the private IPv6 range), simplified router configuration (link-local addresses are always available so there is no need to assign numbers to every link), and other assorted niche benefits. In theory IPv6 should mean routers become more efficient because it is easier to aggregate prefixes, which should generally benefit Internet users by reducing latency (though at this point there is not much room left for improvement there).
I'm pretty sure the US has the most affordable housing of any developed country.
> then 9/11 happened and the administration had the pretext it needed, it just had to move quick before anyone could question the relationship between Taliban and 9/11

I believe pretty much everyone stopped buying that by the time this happened: https://www.theguardian.com/world/2001/oct/14/afghanistan.te...

Let's also not forget that Saudi Arabia was never bombed or invaded in retaliation.
> But this video could be about any new game (online mmorpg) nowdays and be still the same

Let's go ahead and address the smaller point here first. Genshin Impact isn't an MMORPG. But that's not the biggest issue here.

The biggest issue here is that Genshin's gambling model is not the same as any new game.

---

The difference between Genshin Impact (which I played for a week, and spent about $100 on) and other games, is that you must gamble for a chance to progress in a meaningful way. To say this is an issue endemic to all new games simply isn't correct.

Most games these days to have some sort of microtransaction model. That's true. However the core gameplay and progression system in Genshin is locked behind loot crates. This isn't the model 'any new game' uses.

There are two main ways games use microtransactions: cosmetic, and game-impacting.

Cosmetic microtransactions make cosmetic changes in your character or the world around it. No impact on gameplay other than you find something new more aesthetically pleasing.

Then we have the game-impacting transactions. Most games that allow game-impacting transactions (i.e. are 'pay 2 win'), allow you to essentially sacrifice time for money. You can spend hours in game grinding for an objective, or you can spend real life currency to automatically unlock the objective.

What Genshin does is different from most games. There are certain important ways in which you simply cannot progress without spending money. And everything is locked behind a loot box. That's the problem. The problem is with the loot boxes and gambling; not exchanging time for money.

There was a game that I spent over $2,000 on. It was an online 'free-to-play' game with over 70 characters. Each character was around $15-20. Or you could play the game for about 40 (real) hours to grind up enough currency to unlock one. This was fine though, because you picked which character you unlocked and it was unlocked.

Genshin makes you buy boxes with a chance to drop what you want it to drop. That's what makes it pernicious.
Californians seem to be suprised. I know its a different use case. But, it always brings to mind Las Vegas.

It strikes me as a gross statment to the sheer will of man to remake resources into its will. Additionally it stands as an example of our current priorities and how power manifests. Don't get me wrong, I love Vegas and also the food California produces.

At somepoint in the near future we will need to have difficult disscussions more widely about resources which were bountiful until late.

https://wrrc.arizona.edu/publications/arroyo-newsletter/shar...
If rails is only used as an API, I found it much cleaner to have a separate codebase for the SPA and run webpack separately (or nowadays maybe use something like esbuild instead?).

I was able to work with rails & webpacker precisely because I had experience with webpack separately, but webpacker had some weird limitations.
Never? How about Japan? South Korea? And South Vietnam before gave up under domestic pressure?
To put things in context: at the time, the US wanted al-Qaeda and the Talibans to face justice, so this amnesty deal was not inline with that goal. It would have led to Taliban leaders walking without punishment aside from losing power.

I'm not taking any position here, but I think the nuance is helpful.
They tacked on two sequels, btw.
That seems like an unfair reason to downvote the post. One could dislike gatcha as a business model but the post is about China's capacity to design a game irrespective of the business model. The quality of the artwork, music, etc stands on its own regardless of whether one personally dislikes the business model.
Typically the entire stack is copied so that you have the exact same setup, including auth, as in production. Basic auth isn't a great idea unless your production is using basic auth too. If you're using some federated login tool like Cognito or Auth0 then you can create smth like an isolated pool of users for each environment, forgot the exact name. VPN only needed if it's a compliance requirement, otherwise nothing wrong in having it public.
A new Never video. I'm all in, I know what I'm doing this AM.
Doesn't strike me as particularly strong evidence. The victim's mother probably stopped a smallpox outbreak by identifying the symptoms as not-chickenpox. Unfortunately COVID-19 symptoms are not as distinctive.

Rather than saying "all the pandemics that we know of started naturally", it would be more accurate to say that all pandemics started naturally, that we know of. Particularly in the case of the 1977 Russian flu, there are suspicions of an anthropogenic origin.

https://en.wikipedia.org/wiki/1977_Russian_flu
Wall Street Is Paying over $100K to Junior Bankers. For Many, That's Not Enough
"Wall street is a cancer for the economy that lives on fees..."

You Should Look Into Low Cost Index Funds

"...for allowing people to participate in an elaborate gambling game"

I believe if you invest in a market cap weighted U.S. stock market, there has never been a 20(?) year period where you lose money on your investment adjusting for inflation. I'm sure there is another number for the global market. I think it is disingenuous to call something with a positive expected return gambling.

"...and due to their influence in US politics, they have forced everyone to play the game..."

This implies that having a market to buy and sell stocks is unstable and only being propped up by laws, but there are many stock markets around the world, so unless there is a large conspiracy to make investing inefficient through the use of large markets, I think we have to conclude that a stock market has some intrinsic value.

"under the false premise that the stocks will always go up. Except they are not, check the European stock market that has stagnated for decades."

The only free lunch in investing is diversification. Don't invest in one company, sector, or country. And if you do, don't complain when it doesn't track the rest of the market.

"Companies can find investors without the stock market."

Then why don't they? Aren't big bad companies only concerned with making more money? If finding investors without the stock market was more profitable, then wouldn't they?

"Companies can pay dividends to their owners & employees. No need to have an additional speculation layer for fund raising and profit distribution."

This assumes that their owners and employees currently have enough money to collectively fund whatever venture they're working towards. To be honest I think you already know this but I'll bite. The world can be more efficient if we let people with money and no ideas give their money to people with ideas and no money.
I totally get that it was my own fault, hence the “not bothering to read the rules) part, and I also very much regret the language I ended up using in some of the communication at the time.

Looking back on it now it’s sort of hilarious though.
Right, but despite that I think it's still possible to acknowledge the high level of production value that went into it. Never played it but it does look pretty. Edit: also, nice music: https://www.youtube.com/watch?v=t1O7LpOTBfM
Back when Pakistan was harboring bin Laden. yeah. sure. Surrender translates more to armistice, a pause to rearm and mobilize.

Don't recognize the Taliban's authority. After the flood of refugees destroy the region, sell land claims. Better yet, homestead it. The land's yours if you can get there and keep it. Sell heavy equipment and weapons. Marxist china? Imitation. Repetition. Oh no! Here's a coast full of hypersonic missiles and an electric arc from the sun that wipes out your entire hemisphere. Send in a bigger jerk than Bezos. His rocket touches down. When the natives go to greet him:

> Thank you kind sir! Welcome to the path once walked by the prophet Mohammed!!!

have him just plow right pass them, cursing them out under his breath:

>... f** off jerk, pr*ck, dirtbag, retard ... ... get the hell off my land

In summary, there's no changing people, no convincing or educating. Kill them all and steal their land. I need a place to dump my garbage.
China is watching, laughing, they will take Taiwan when they feel like it. They know. The world knows. This is what American weakness looks like.
Have fun writing a web app in assembly language ;). Yes it's been done, but not often, and for good reason. Haskell is sort of a special case: it's best suited for writing compilers, but has been pressed into just about everything else because people are into it for its own sake.

Yes if you're running a C++ shop and someone leaves behind a small program in Haskell, you're probably better off reimplementing it than becoming or hiring a Haskell guru just to maintain that thing. That's a question of whether to learn Haskell, not how to learn it. In the case of the linked article, the author was the one who decided to get the company involved with FP, and gave his thoughts on whether it was worth it.

I can certainly support the idea that someone juggling all the plates required to keep a company running, has no time to embark on a deep and nerdy self-education project in something as abstruse as FP. Better to keep it at the level of a side interest or hobby until you're comfortable with it, before even thinking of doing anything important with it.
We use a cloudflare firewall, and then have a facility for users (i.e. "staff") to add themselves to the whitelist, via a tooling page for each env (which isn't behind the firewall, but does rely on http basic auth).

It's not perfect, but I think it works better than what it replaced (logic in the application and a shared 'secret' to access those environments)
I think this problem is specific to the Haskell community. No one's going to tell a brand-new Clojurist that they need to learn about reducers.
A foray into functional programming in TypeScript: Mappables and Chainables
I think the assumption was that the Afghanistan army that the US funded, trained, etc. would fight back instead of running or surrendering.

Looks like that was a bad assumption.
Radiohead’s OK Computer: Idiot, slow down, slow down
Makes you wonder wtf is going on there (Almonds/Rice)? Just as insane as irrigating Alfalfa fields to harvest hay for cattle to eat.
Adding to this, it’s hard to know if you are actually getting “better” because it’s so hard to measure. My approach is to try to get better between reflection periods while also scheduling days for self reflection on that goal.
In theory, having IPv6 website enabled should give a slight boost to the ranking if the latency is lower.

But still Google crawls dualstack sites with IPv4 so it is yet to be seen.
Motion Brush: Detecting and Animating Periodic Patterns in Still Images
I've been trying to find a good way of integrating a nice language selection dialogue for my website running Wordpress with WPML. Why? - Because if I let the website choose the default language, it doesn't seem to work for search engine crawlers.
Hopefully this is a reality check
The corruption in the government of Afghanistan is not to be underestimated. As much as we hate the Taliban here in the US, we should all also look into the government “we helped establish” in Afghanistan.
We should never have been there in the first place - twenty years ago, we should have engaged in whatever military action was needed to ensure that al-Qaeda could no longer freely operate against us from the country and then left; if I remember correctly, the Taliban leadership offered just that, and we invaded anyway.

I don't really consider this a policy failure for the Biden administration; this outcome was a foregone conclusion once we decided to try to build a nation in a place where no nation-building was possible, and three administrations kicked the can down the road at a cost of trillions of dollars and thousands of lives because nobody wanted to be the one with the loss on their record.

But the way we've treated the people who risked their lives to help and support us is absolutely criminal; we offered them protection, and instead we screwed around for years with bureaucratic bullshit while time ran out, and now a bunch of people are going to die because of it. Heads should roll over this monumental failure.
Pay-to-win and pay-to-have-fun are actually pretty distinct game-design philosophies. There are a lot of free-to-play games that are pay-to-win for at least some element of the game; but where the game can still be fun without paying.

What usually happens in pay-to-win designs is that the game can be played, if more slowly, in a fun way, for as long as you’re playing against other regular people who also aren’t paying-to-win. This lasts until you get good enough to end up on the competitive-ranked top leaderboard; at which point the only way to advance on that leaderboard is to pay for extra-fancy items/equipment, because everyone else on it already did. (Analogy: doping in sports. Nobody in the minor leagues dopes, because nobody else does, so there’s no need to do it. But everybody at the top does, because everybody else at the top does, and so doping is the only way to even stay viable in the major league. The sport is “fun”, without doping, right up until you hit the majors. Then, suddenly, having any more fun requires doping. That’s traditional pay-to-win.)

With traditional pay-to-win game design, you can still extract fun from the game without paying, if you treat “the game” as being just the subset of the game that lasts until you end up in the major league with all the doping players. If you think of that point as the point where you “beat the game”, put it down, and don’t play it any more — and the game up until that point was fun and worth playing — then it wasn’t a waste of time to have played it.

Genshin Impact is apparently not this type of game, though. It’s the other kind of free-to-play game: the kind where you’re at no point having fun if you’re not paying. (But, of course, which tries to give the illusion that you can have fun, sort of like a casino tries to give you the illusion that you can have an edge.)

It takes a pretty deep dive into a free-to-play game to figure out whether there’s a subset it that is fun to work through without paying. So I don’t fault the author for needing to spend an hour on the topic to properly prove their thesis out.
What I take from that news and https://www.livescience.com/china-rocket-fleet-divert-astero... is that Nations are more ready to tackle a single planet killer event with a slim chance of happening than tackling climate change.

Also, with the trajectory we are on regarding climate change, there might not be the resources needed or a humanity capable to carry on this task of destroying/diverting the asteroid in 2300.
The US didn't leave Afghanistan in one big step. The US ended its combat mission in Afghanistan is December of 2014. That's 6.5 years ago now.[1][2]. This was widely covered by the international news media. At the time there was a big ceremony in Kabul to mark the occasion of turning security of the country over to the Afghan armed forces who were ~350k strong at that point. The drawdown of US troops in Afghanistan has been going on for over a decade now and began in 2010. By 2015 there were only 10K troops left and their role since then has been non-combat(advisory and training.)[3] More recently under Trump that number of troops was drawn down to just 3K.

[1] https://time.com/3648055/united-states-afghanistan-war-end/

[2] https://obamawhitehouse.archives.gov/the-press-office/2014/1...

[3] https://www.npr.org/2016/07/06/484979294/chart-how-the-u-s-t...
No proof to suggest this is true, but I assume they were lying through their teeth.
Heatmap of the Bitcoin network hashpower since 2009
I think learning functional programming is harder with a statically-typed language as there's so much more to learn which revolves solely around the type system. I would recommend anyone new to FP to try Clojure first. No mon[a|oi]ds necessary. I also think the transition from procedural languages is easier than from OO languages. I was lucky not to be exposed to Java or C++ in the early days of my programming career, opting for Perl instead. When I transitioned to Ruby I also encountered Clojure at the same time and could appreciate the functional/lisp elements in the design of Ruby.
Hopeful Ways for Atheists to Think About Death