skysight-inc/HackerNews huggingface dataset:
that choice between giving in to "small" russian demands vs. fighting has played of in history multiple times and even specifically with Russia. For example after signing MRP with Germany to divide up europe between them, Russia amassed huge army on the borders of baltic states and Finland and demanded allowing Russian military bases in these countries and establishment of russian friendly governments.

Finland went to war over it, took huge losses but managed to fight back well enough to stay independent even though some territory was lost.

Countries that gave in to these demands without much resistance to avoid huge bloodshed were occupied shortly and lost their independence for 50 years. Multiple rounds of deportation to siberia and executions of anyone who had military, police or government background were done over the next years so in the end it's not clear if the loss of life was any smaller for these countries if it would have been if they fought back.

So in hindsight it seems better choice was to fight back and have a chance of freedom.

PS. it's not single demand at all, you should read more of Putins speeches and writings, especially those meant for Russian audiences.
For example the one televised on 21.02.2022 where he goes on and on about some mystical "west" that has tried to destroy the russian for over a century and how ukraine has no right to exist anyway etc.
That NATO talk is mostly for western audiences, internally the message seems to be more about re-establishing the russian empire (which he seems to think is god given right) and talk about superiority of the russian civilization (ruskiy mir). So everything indeed sounds eerily similar to sittuation and delusions that led to WW2.
> The "Ukraine as a neutral state" angle sounded plausible maybe 5 years ago. But the fact is that Putin started a war despite no significant recent change in Ukraine's relationship with NATO or EU.

Escalated an existing war that has lasted more than 5 years, and which certain NATO members have been very clear is why Ukraine wasn't being allowed to advance in its quest for membership.
The real question is: what lines are the West unwilling to cross?

If Putin nukes Stockholm, are Britain and the US willing to sacrifice New York, Washington, Los Angeles and London in order to give him a bloody nose?
I read this earlier today and it clicked so well, “no country was born a democracy”.

Every democratic country in the world had at one point a few brave souls who were both sane and put themselves and their families in mortal danger to “maybe possibly potentially make life easier for a large number of unknown [not yet born] people”.

So yeah, it happens and is relatively common in history. I hope the Russian people find some extra courage and get Putin to step away from Ukraine and also Russia.
This article points out how ridiculous React is. This is just a simple timer, yet there are so many things you can get wrong. This article doesn't seem to even clear the interval so it runs forever. Solid solves some problems, but I don't know why everything has to be reactive. I have never understood it, I just noticed that from knockoutjs onwards, every front-end framework was based on automatically updating views based on state.

I create a library at github.com/thebinarysearchtree/artwork. To be honest, I don't know if it is going to work or not. It is just javascript with no reactivity. When I rewrote a fairly typical large application that you would find at most corporations (not a giant tech company application), every component ended up being about 50% of the code of react, with excellent performance.

The problem I have with it that makes me uneasy is that ultimately you are creating content in JavaScript, which I don't think is ideal. The lack of HTML structure isn't a problem as devtools and so on show that. The problem is things like:

const label = label('Email:');

I want the HTMLLabelElement variable to be called label... but that is the name of the function that creates it. Then there is the setText example on the github page... I just didn't want to write label.innerText.. h3.innerText... etc etc .innerText. Variadic arguments are not ideal though, and when you have lots of elements with lots of attributes, eg:

const content = div({
className: 'content',
title: 'whatever',
innerText: 'something'
});

it doesn't look like art, which is the point of the library. It is just hard to create content with JavaScript and not really the tool for the job. If I could solve that, I would be very happy with the library. It kind of needs JSX, but then it is back to having the JSX variable auto-update the state and well.. I guess that is why knockout and so on do it. Maybe I could do just plain HTML without state.

So yeah, I don't know. I mean, it does end up being half the code. If you look at the todo example on my github page, and compare it to the one on React's homepage or solid's homepage, it is literally half the amount of code with native hand-written performance. This continues on to real-world components, it is just that.. I am a perfectionist I guess, and I want it to be elegant always.

anyway.. I haven't even finished writing the documentation.
Title should be "Myths and misconceptions in the debate on Russia"
> React’s philosophy is View = F(data)

Yeah internal component state throws all of that out the window.

That's lit-htmls philosophy, not react. React is all about bundling the view and state and then marathon profiling sessions to figure out why everything is re-rendering all the time.
I'm not even Russian and they sent this email to me.
Maybe we can organize a class action, anyway they lost their reputation, I can't waste other time with and for them
> What happens to the project if you get hit by a bus?

It’s over (but maybe not -see below).

Sucks, but that’s life.

This is a nonprofit, and they can’t afford to hire a large team of programmers. Heck, they can’t even afford me. I work for free.

The code, itself, is documented almost beyond belief. The only place I’ve ever seen documentation that even comes close to what I do, is in exposed Apple and Adobe code (where I got a lot of my inspiration). Don’t believe me? Look for yourself. My GH ID is the same as my HN ID[0]. All my code is like that. Look at any one of my projects. They are all heavily documented, and loaded with meaningful, relevant tests[1].

I’m a big believer in what I call “forensic design”[2], as well as really heavy-duty documentation[3].

So that means that, if there’s a developer with skill like mine, they’ll be able to take over the project in a relatively straightforward manner, but less-skilled people will probably be fairly stymied. They are likely to complain about my code, and rewrite from scratch, with typical modern crap code (and with typical modern crap results).

I’m not gonna do a crappy job, and make dross, just so some inexperienced jargonauts can mess up the project in the future. If that means it dies with me, then so be it. I’ve gone way beyond the pale, in delivering a project that can be maintained. If the people I deliver it to, mess it up by cheaping out on the hired help; that’s on them. They are the ones harnessing a racehorse to a plow.

I have a fair bit of prior art. I’ve written software architecture that has lasted decades, and has been taken over (and is still very much in use), by teams of skilled engineers. I don’t know if it’s still in use, as it’s been five years since I left my last company, but, at the time that I left, if you got their DSLR SDK, it had a C code API in it that I wrote in 1995.

[0] https://github.com/ChrisMarshallNY

[1] https://littlegreenviper.com/miscellany/testing-harness-vs-u...

[2] https://littlegreenviper.com/miscellany/forensic-design-docu...

[3] https://littlegreenviper.com/miscellany/leaving-a-legacy/
Yes hooks are not great. They violate too many functional programming rules that the react team pretend to care about.

I still like using them however. I had a few issues when trying to do more abstract code.
>Despite the enormous death and suffering the war caused, America's aim was naive altruism.

Invading Iraq was on the agenda way before 9/11. The people that decided it are anything but naive.

>There are conspiracy theories that America invaded to steal Iraq's oil but they are not plausible.

Why not? The second largest oil producer in the world is invaded because of altruism out of their great heart. Geopolitics have nothing to do with that.

I believe is someone is naive here is you. At least you should respect as a valid and plausible theory(not calling it conspiracy in order to denigrate it) that the biggest army in the world are interested in controlling the energy producing countries just like any other empires before. And remember that was USA the ones that ousted the British Empire from Persia and the ones that toppled the democracy there.
The fun part of OSM is that if you find a glitch like that (likely in the map itself), you can fix it yourself. There was an intersection near me where you could physically not turn left, but it wasn't recorded in the map. It was like a few minutes to fix that once for all.
I'm so happy to read this (a proud Bulgarian). The founders are amazing! We need more examples like these in Eastern Europe that can promote and create an environment for entrepreneurs.
Why everyone wants to work at FAANG [video]
Personal data of 120k Russian servicemen fighting in Ukraine – Ukrayinska Pravda
I wanted to live in a world you presented: benevolent power spreads the wealth around the world. Unfortunately, it is just a fairytale for little children.
Exactly, and not just the police. Some 20-30% of the population are actively supporting the current regime and will stand for it. Even if all state propaganda magically disappears and gets instantly replaced by the West propaganda, it'll take months and months for them to change their stance. People hate being wrong, and even more they hate admitting being wrong.

It is a civil war kind of situation we're talking about.
Comparison of 22 Lightning Wallets
As someone with ADHD who has done what I consider to be quite a lot of creative work, the equation seems to be the exact opposite for me. Execution is dull and predictable, plus my brain just doesn’t care about the good/bad consequences unless they are both significant and imminent. On the other hand, during exploration I’m like a firecracker on speed and can lose hours going down rabbit holes experimenting and chasing different ideas. My brain is very happy in this state with a constant flow of dopamine but before my diagnosis, I struggled to ever finish anything of significance. For the past couple of years since though (and with the help of medication which ironically is a kind of “slow release amphetamine” as far as I understand, so quietens my brain’s constant desire for stimulation), I’ve finally been able to see a whole serious of large tasks through to completion over the course of a much longer project than I’ve ever really been able to do before.
So I guess what the author describes may well be the root of why people sometimes refer to ADHD being a “superpower” if neurotypicals tend to struggle so much with the bits that come naturally to us…
Russia isn’t starving and children aren’t deprived of medical care. As for 9/11, that is a pure red herring.
Careful with that, this justification was also used for the attack on the Twin Towers.
Could you really imagine russia attacking ukraine a month ago?
This is seriously beyond what I would hace thought feasible. Literally a virtual reality rig for flies that tracks their wing movement to guide virtual movement? And yet we barely have a similar set up for human locomotion? What gjves?
The difference is that Russia invading Ukraine is a clear-cut war between two independent states. Chechnya was/is a part of Russia, so the situation is the same as in China with Xinjiang and Tibet. And Yugoslavia was a complicated and bloody break-up of a federal republic (followed by the even more complicated and bloody break-up of Bosnia and the breaking away of Kosovo from Serbia). But the Russia-Ukraine war brings back memories of Hitler invading Poland, where the Germans also claimed to be acting in "self-defense" (https://en.wikipedia.org/wiki/Invasion_of_Poland#German_inva...).
I never said he was US ally during 2003! The point is, Saddam was the same during 80s and 90s the difference is that during 80's he was doing well against the enemies of the US (aka the CAPITAL of the free world).
UpWork Blocking Freelancers and Customers from Russia
Hear it from the former Finnish PM, Finland is not neutral, even though we were forced to be during the cold war: https://mobile.twitter.com/alexstubb/status/1497619756760895...

During this period, our politics underwent 'Finlandization', basically giving USSR veto powers over our internal policies. It probably was a necessity to avoid an invasion, but certainly nothing you'd recommend to anyone.
I get the impression it's not so much that SWIFT itself is critical, it's that so many other banking services and activities are co-ordinated using SWIFT, and being on SWIFT is an indicator of reliability and that you or your organisation is an insider.
If the sanctions didn’t work before, I don’t know why they would work now.

I don’t have the answers, but certainly any move toward more militarization of the world is usually a bad thing.
It's not a civil war, it's a war started by Russia 8 years ago. It's a war Russian military has been leading and participating in from the very beginning. This was sufficiently documented in the past, don't repeat Kremlin talking points.
No. As per https://developer.mozilla.org/en-US/docs/Web/CSS/:visited,

> For privacy reasons, the styles that can be modified using this selector are very limited.

(and loading a background image isn't one of them).
The Russian state can literally broadcast its own propaganda channel. What more do you want?
You are delusional. NATO doesn't want anybody to join. It's all eastern Europeans who actively lobbied and had to sweat convincing NATO leaders to accept them. It was voluntary choice of those nations. Why did they choose to join? Because Russia has been threatening and interfering with their way of life, with the desire to be free. Russian invasion of Ukraine just reinforced the desire to be in NATO.
You're taking whataboutism to the next level. Are you actually comparing book burning (first time I even hear of this) and laying people off with a full scale Serbian invasion followed by civilian massacres? Was it some kind of preemptive strike? Or is it "liberating" the Croatian territory of civilians? Did the ancient city of Dubrovnik look at you wrong so to bomb the living shit out of it? Maybe because Serbians envy the big Croatian penises?

No, Serbia's leaders didn't like Croatia's and Slovenia's independence (or any ex-You country to be more exact), and did what Russia is doing now to Ukraine. So you're crying "not fair!" when US bombed Serbia to stop its expansionist appetite, but it was all right when Serbia's army invaded and wanted to annex Croatia as a part of "Greater Serbia". Cry me a river.
> Optimizing code, even though it feels quite fun and rewarding to do manually is a job for compilers.

> Write naive algorithms but smart compilers.

I'm not sure where you're coming from here. The article's charts show that in this case, naive code gets you less than 2% the performance of an optimised implementation.
This is what many banks and “enterprise” think blockchain will do for them, yes. There are many solutions and some likely in play.

There are some memes about that too. Convoluted arrows between a bunch of banks, next to one arrow between two peers.
You seem like a kind soul and the horrible situation is undoubtedly having an effect on you. That said, the best thing to do is to write to your government representative to request they support a de-escalation of this situation, and then switch off the news and social media.

Unfortunately, the war machine is in overdrive and lots of wicked parties are using media propaganda to escalate emotions amongst people. The only outcome of this high temperature is more war and suffering for all, which again benefits the wicked parties (military corporations and others), while regular people everywhere will suffer.

So write to your government, turn off the media, and if you believe, pray for peace. That is the best way to help.
This reminds how europeans justified slavery: "they are barbarians. We are making them a favor by owning them. We give them civilization"

btw, russians are officially considered colored in US as I understand.
> past is not an indicator for the future.

It doesn't _determine_ the future, but it sure sets the direction. Probabilities of all future possible states are not equal. The chances of the next president of the US being a Republican or Democrat are much higher than them being a card-carrying Communist.
Pragmatically I am pretty sure the western logic goes like this. Sanctions will cause economic damage which will lead to misery which will lead to unrest and finally the toppling of the regime. This worked in the 20th century but took like 50 years, and as we can see now the resulting regime is not much better for the west, but I don't think there are any better options. The other approach see China is also slowly blowing up in our collective face, not that it would be an option now.
keys are not specific to loops. They are needed whenever you are returning a react document with a dynamic structure. They allow for more fine grain dom updates.
Haven't used solidjs before, but I paid the doc section a quick visit and saw that it's basically <For each={foobar}> where foobar can be whatever javascript code you want. So you can certainly do filter/sort/project on your data before rendering.
They are different countries but still they are very strict, hierarchical, conformist societies, and so is Japan. I think maybe it's just the same mindset put into different economic systems.
The Russians are keeping Putin in power. If sanctions motivate them to do something about him, good. If they just serve as punishment for supporting that monster, good enough.
you have to think twice and careful before getting involved in political ideas hitting people like me even not Russian. If you want a war with me, I'm ready, it's exactly what you did, you are provoking ordinary people againt you.
Yeah it did help. They have a crippled economy.
Didn't work in Syria.
Can anyone explain the point of the virtual DOM and why it’s not a source of huge performance issues? What I mean as soon as you retain a reference to a DOM element, it’s lifetime becomes managed by the JavaScript gc - let’s say you build a paginated gallery app in pure HTML and an spa - in the first case, the browser knows that as soon as you navigate away from the page, all those image thumbnails are free real estate, at the latter case it first needs to wait for the spa to release references to the underlying html objects, then the gc needs to run, at which point it can get rid of it.
Mine is 150% scaled. The rest is the same (no plugins, no css rules).
Well,for one Vita is under-powered for some systems (like SNES). It has very good PlayStation 1 emulation performance though, thanks to its awesome PopStation emulator (proprietary emulator develop for Sony for PSP, that also runs on Vita thanks to backwards compatibility).

Switch is much better of course, however only the old non-Mariko units can be jailbroken without modchips, and while I do like the hybrid design of Switch, I still think Switch as a handheld is bigger and heavier than I want for a portable console. This would be solved with Switch Lite, but all Switch Lites are Mariko.

I quite like my RG350 to play old games (playing Final Fantasy VI right now), so much that my Switch is on its case for quite some time.
If your partner wants to break up with you and date other people because you're an ass and offer nothing they want, who are you to stop them?

If Ukraine wants to break up with Russia and join other alliances because it's an ass and offers nothing Ukraine wants, who is Russia to stop it?
The mapHelper version that was rejected changed the order. The one that did `List.reverse` had the correct order, and this one is equivalent to the List.foldr solution.

The only difference is List.foldr's implementation is more performant (up to a certain number of elements as you say). If this is not what you asked, then I did not understand the question.
Spare him!
I know you’re going to disagree with this using some silly rationalization, I won’t respond to after this because it fundamentally sounds like you don’t believe is Ukraine’s right to self determination and you think that they should be bound by deals the US or Russia have made on its behalf in the past which Ukraine had no say in.

Here it is, NATO is fundamentally a defensive organization, and Ukraine is a democratic country they should be free to choose who they do deals with, I’d feel the same way if they freely and democracy decided to align closer with Russia.

I think saying NATO antagonize this is people treating Ukraine like a colonial holding of Russia and that Ukraine doesn’t have sovereignty. This is fundamentally wrong and goes against any countries right to self determination. I don’t care if it’s the US or Russia trying to dictate terms to a third country, it’s wrong either way.

What I really think this is about is Russians are fundamentally humiliated that other former Soviet countries like the Baltic states and Poland have a fair greater standard of living than Russia exactly because they embrace democracy and cooperated with western countries. Russia just wants to wreck Ukraine for aligning more with the West and improving their economy because they’re afraid of having another example of a former Soviet country prospering of their doorsteps making it ever more obvious how badly the rulers of Russia treat their people.
> It is illegal (and has been illegal since 2014 or so, can't remember) for a Russian resident to have a controlling stake in a company not incorporated in Russia.

How does this work with Gazprom owning Nord Stream 2 AG (incorporated in Switzerland)? Exempting legal entities would make the law extremely easy to circumvent, so I'm guessing that's not it.
West's reactions is too bad for the Russian people but not reacting would mean they lose credibility and soft power in the future. Putin's previous adventures were not sufficiently reacted too and other countries around the world could see that too.
At the moment I see more challenges to this war from inside Russia than I ever see from the US when it is starting a new war.
A Raspberry Pi might very well be the reason I work as a SRE today, I think it was the first machine I SSH'd into and that got me that "anything is possible" feeling.
China, USA, Israel, Saudi are they next?
You are not alone, there are academics who have build careers around this notion: https://en.wikipedia.org/wiki/The_End_of_History_and_the_Las...
Also, if Russia annexes Ukraine, it now has 4 more NATO members on its borders.
>Are any countries accepting refuges from Russia that seek asylum?

This is an important topic. Some EU countries like Czechia are even blocking visas for Russian citizens now and I think this will be a trend in other EU countries.

AFAIK, since Russia is the aggressor here and is (on paper) a democratic country (but not really), then its citizens are not considered yet victims of the war, and are most likely not falling under the rules of refugee status, unless they can clearly prove that the Russian government is a threat to their life, which would be a bit difficult (like if you're in political opposition to Putin).

I honestly don't envy the Russian people now. They're forced into a conflict they don't want to be in, and are suffering the consequences.