skysight-inc/HackerNews huggingface dataset:
> I really think the future is not VDOM, but more efficient systems, and hopefully new proposals like Template Instantiation can advance

Template Instantiation is like a half of a half of 1% "advance" in the best case scenario. It's being rushed forward despite the fact that no one sat down and listed all the benefits vs. all the downsides of implementing it in the browser.

What browsers do need is a declarative DOM API and a native "DOM as a function of state" which renders the whole instantiation proposal moot, and at the same time actually advances the browser as a platform.

There's a discussion on GitHub which in my opinion is going nowhere because TI is viewed as unquestionable good https://github.com/w3c/webcomponents/issues/704
Thanks for the write up - it's a very succinct explanation of how Angular works in comparison.

I found the original article to be a really good read, and the Svelte approach in general seems rather neat. I do however find that in this current front-end framework sphere, there seems to be a huge amount of religiosity and one-upping going on.

I hear routinely (on-line and off) developers vocalising some anti-[jQuery,angular,etc.] mantra, which to be honest saddens me. Yes the jQuery approach was flawed in so many ways in comparison to the modern frameworks. Yes Angular 1.x was flawed in many ways compared to what we have on offer today. But those tools were still great improvements on what we had before (for anyone who knew the DOM-API standardisation nightmares pre-jQuery, or state management / testability woes pre angular/react).

Svelte may take us down the next path, and if it allows us to produce better, smaller, more testable code then it has my full backing. But I think as a community we need to strive to be less polarising - from my perspective its likely to be mostly reductive, and lead to even more JavaScript fatigue.
That's just a symptom of Javascript being the entry-level language. You can be sort of productive without ever understanding how anything works.

Where these frameworks really come into their own is when you want to create reusable components and share them outside a team. jQuery did a good job with their plugins back in the day but Angular 2 (and React, and soon native Web Components) so that far better.
Salary strategies everyone in tech already knows – but you don't
Yeah it's nuts. I've literally written an obj loader in opengl before staying up all night one night for a graphics assignment when I was in college, and yet it took me a week to get three.js to load an obj.
Just to be clear for everyone, you mean the one in Serbia. The former Yugoslavia footprint has several Chinese embassies.
Today's "highly advanced and expensive car" is tomorrow's cheap knock off. The sunk costs have been made by the Teslas of this world and economy of scale is about to deliver its magic.

It's ironic reading something like this on a technology website, an industry where scale and rapid development have delivered astounding value. Cars are just the latest product to be gobbled up by the same hyper-efficient industry.

My prediction is the car industry will look like the PC industry in the future. Complicated drive trains have been replaced by simple motors close to the wheel. You don't have to architect a car around them anymore. Scaling will produce more generic and interchangeable parts at much better prices. Soon we'll be talking about our latest build, but it will be a car, not a computer.

This has already started with enthusiasts transplanting reclaimed Tesla innards into other shells:

https://youtu.be/o-7b1waoj9Q?t=291
Movement: Let's find smarter ways forward, together
Quite a lot already do: https://myioniq.com/hyundai-ioniq-warranty/
>"for the type of task I would implement in a shell script"

And therein lies the rub. Let's put the donkey before the cart: The reason you would not do many kinds of task in a shell script, is that shell scripts are not any good for many kinds of tasks, not because you are wrong to want to to some kinds of tasks.

The term "shell script" is an artificial construct, just like the shell scripting language itself. There is no reason you need to limit your imagination, aspirations and abilities by defining yourself as a "shell scripter" who cannot add 1.5 and 0.5 to get 2, and who cannot draw a pie chart.

Of course you should learn other languages, then you won't need to write shell scripts. Their disadvantages vastly outweigh their advantages in important ways specific to scripting and unix administration (like dealing with file names with spaces, or performing arithmetic and statistics, for examples).
Oh sorry you were talking about Shutki fish.
Yes, but that doesn’t mean we can’t measure subjective enjoyment, and associate higher subjective enjoyment with certain life circumstances.
DJ Khaled Ft. Buju Banton, Sizzla, Mavado, 070 Shake – Holy Mountain
> If you’re dead, what do you care what happens to your remains?

Consider how your family members might feel about it? It's not just about dead you.
Agree. LiChess. It has iOS app and a webapp.
I mean, I use to store data in my model and have the controller doing the rendering like anyone else that has some kind of experience on how ugly the opposite would become, but to outright demonize state within html seems quite misguided as well

there are things that are massively annoying to do without sneaking a data-uuid and data-type here and there, like drag&drop or specific customer requests - if anyone has ever written a cms, imagine the customer coming and telling "I want this product image in black and white" - if you had data attributes around, it's a css two liners, if you didn't because you're trapped into a either-or mindset, you have to also add the image-bw class on the rendering code with "customer ==" and "product ==" checks
Thanks for supporting my point lol
I haven't. Thank you very much.
It is only about dead me. It's my body.
Tell that to Guild Wars 2. (https://mithril.js.org/framework-comparison.html)

But putting even those games aside which use webview for UI, there are still video games made inside the browser, and for those, having sub-1ms rerender times with React is perfectly reasonable. We could get into immediate mode vs retained mode debates right about here, but that is a slightly different topic :D
You sound like you enjoy eating shit lol
>The current change detection and DOM update mechanisms made available by modern frameworks virtual DOM or not are more than fast enough for users to notice, including on mobile and once the application is started. What we need is ways to ship less code to the browser [...]

I wonder how it affects battery usage though. Downloading the code doesn't happen as often as running the code, if it's really an app and not content needlessly packaged as an app.
react.js is fine but I worry there's been a cargo cult mentality around it,

And also an actual personality cult directed at some key people.
could be base on the limits imposed by the video codec that they use to stream to the HMD this page https://www.mathieupassenaud.fr/build-your-own-android-auto-... talks about H264 but they also need USB data also for the touch controls
Yes. That is the percentage of fuel energy that gets to your wheels. The rest is made into heat, and is why fuel engines need such big radiators - for every HP going to your wheels, a minimum of 2 go to the radiator.

Hybrids just recapture the heat from the brakes, another major loss point, but unrelated to the engine. If you want to actually get better energy efficiency you need plug-in hybrid or fully electric.
Same, 8/8, voted after listening for at most 1 second to each clip and never having listened to the guy before. The clipping makes the rate of speech sound jarringly unnatural to me.
Yes but it won't get it. And at the end if the day, people need to be able to get work done.

The corporate world is full of stupid things that will never not change, or take years to change.
Many do, but you can get fired for it.
You can’t cut the pension for the retired, or the soon to be retired. Instead you try buy outs and phase them out. New workers get 401ks. Old workers get pensions. Middle aged workers get a choice.

30 years later, the pension holders are dead, or your company is. Either way, it’s no longer a problem.
Actually, I think your point is really strong, but probably in the opposite direction to how you expected.

Learning about the number of calories in everything, and reading research that said the whole "low fat" movement wasn't useful, was what finally helped me lose weight.

Reading about the best ways to exercise helped me train effectively.

So maybe I do need to read more books about the brain.
3x is what I hear most often.
How can a pension fund overestimate success?

Firstly pension funds are conservative in their estimates, they aren’t growth funds.

And what precisely is anyone supposed to do? NOT put money into a fund ?

The only option other than a pension plan is to put it in a more risky fund. Which means your investment would be blown out post 2008.

AND that means your benefit from that job changes, making it less likely for you to join a government job -at all.

There’s a huge amount of discussion here that seems to have nothing to do with pension funds, but some bizarre form of fund which you should be blamed for partaking or being a dependent of through your job.
I hate this type of argument - blaming the receiver while at the same time taking no responsibility for their poor wording.
They do mention that all the growth being in EVs means traditional vehicles get less investment. This is somewhat understating the problem for existing manufacturers. Basically what is going on is that EV manufacturers like Tesla are growing straight into what are the most profitable and lucrative segments of the market. This is why they are so disruptive.

This is creating a lot of demand in a market that is supply limited (e.g. batteries). So that means that short term they have less of a need to actually be in a hurry to scale down to cheaper models.

Margins at the high end are pretty sweet and Tesla has shown pretty convincingly people are willing to buy their products at a premium. Like Apple is not interested in selling cheap phones, Tesla may not be that interested in selling lots of cheap cars with much smaller margins.

The drama around the 35K $ Tesla has shown Tesla dragging their heels there. Technically it's a software limited version of a product they sell at much higher prices. The only way it makes sense for them to not take the extra money is if they would have a demand problem for those more expensive models. They don't. Everything they build ships and they are building and shipping as fast as they can already in a market that is outgrowing their capacity to grow.

So, I think 2038 is pretty reasonable. In the time between then and now, many existing manufacturers will disappear allowing the remaining ones to milk the market a bit longer. E.g. GM closing many of their product lines last year helps other manufacturers as it removes a competitor from the market. Meanwhile it just takes time and major investments to ramp up new production capacity. This won't happen overnight. IMHO much of that capacity may end up being created by new companies. ICE production capacity is a liability at this point. GM did the right thing of ripping off that band-aid and taking that pain early.
It surprised me but one thing Edge is really good at is ebook support with a read-aloud feature. The text rendering is good, better than Calibre, and the cursor tracking following the voice is very satisfying.

Some of the British voices are close to perfect. If you want to listen at 2x then it's often better than a human because at speed, there is no value in dramatic intonation, instead impeccably consistent pronunciation and pace are what helps intake which would otherwise be grating at standard speed.

What is really nice is that when you start feel "beaten up" by a high pace reading, you can switch voices and brighten up the experience. I find switching back and forth between male and female voices helps avoid ear fatigue and keep up the pace. I immediately become more receptive to the content when a new voice begins.
I thought this would be about what quantities of nuggets you need to buy to sum to the target number.

http://mathworld.wolfram.com/McNuggetNumber.html
The issue is current charging stations are big dedicated things that cost thousands of dollars.

They have screens and card readers, and loads of relays and switches inside. Some models (like Tesla superchargers) have a lot of very expensive power electronics in.

They'll only be successful when someone can come up with a sub-$100 model which is integrated into a kerbstone.
Ot: it's amazing to be able to speak to so many different backgrounds isn't it?

I don't know about the rest of you buy I'm always of two mjnds when recommending hn. I don't want to lose what we have.
His first question was "even with a warrant?" Which you replied to with another question. As I see it he's asking you to clarify your initial statement. No need to get all defensive.
Python 100% Test Coverage
What? How the heck is that a pension ??

That’s a bond. Why does that have anything to do with a pension ?

And who in his right mind plants a bond and links it to a pension ? How does that even work?

A bond is a loan. That means the firm or institution is taking a loan.

A pension is the opposite of that - it’s money taken from employee payments and added to a conservative fund with a time horizon of 20-30 years. This allows them to make long term plans which avoid the risks of high beta and risk stocks or deals.

So as your economy goes up, your fund goes up and you pay people off with the interest.

Something changed/went wrong, long before you got to the bond.
Do you seriously think that you're the only person who cares about what happens to your body after you die? Would you be perfectly okay if somebody dug up your mother's body and did $AWFUL_THING with it?
Makes sense, you don't want to write your own tests for handling zero.
No, it's to respect the evidence. Nuclear has a history. That history shows a stubborn lack of progress in reducing costs. In contrast, solar has shown spectacular and sustained cost reductions.

Governments have invested very heavily in nuclear, much more so than in renewables. To pretend there hasn't been investment is disingenuous in the extreme.
China wants us to forget the horrors of Tiananmen as it rewrites its history
I must admit that clicking on "Critical Incidents Checklist" and getting "Server Error 500" was quite funny.
> Asyncio is in the stdlib so that we have an official lib and API.

It was pitched first as a common low level async loop for other applications like Twisted and Tornado.

Then people started using it directly and the keywords were added.

It's great for the people who think the way asyncio does, others are now forced to use it. I find all of Twisted, Go and Jane Street's Async easier to use.

Perhaps Python is just the wrong language for me.
Not without a lot of very expensive maintenance. The cost of that easily adds up to battery replacements/servicing. Batteries are expensive now but will drop in price over time as economies of scale kick in and current technology gets replaced by any of the better things currently stuck in the R&D stages of the many startups working on this.

Diesel engines are not getting cheaper/better by a similar rate. Worse, investments in that are at this point being shelved in favor of EV investments. Diesels right now are about as good as they will ever be.
Yes different file formats are big deal. I've run into problems with just Doc files if they have forms embedded. I've had to deal with quite a lot from different councils in the UK.

A lot of gov / HR departments etc have embedded forms in things like word documents and PDFs. The same problem with alternative PDF viewers, they don't do PDF forms well if at all.

You don't know the requirements of the different departments and saying "this free alternative works fine when writing a doc" doesn't cover their use cases.

The Linux community like to think that Microsoft is the "big evil" that is trying to thwart them at every turn. I know quite a few people in Microsoft and they tell me that the left hand doesn't know what the right hand is doing.

So sorry I think it is a conspiracy theory and as someone that earns his living processing documents from Office I know that incompatibilities exist between Libre Office (which is a fork of Open Office) and MS Office.
A nice example of this: with the new Reddit interface, only visible comments are rendered, so you can't use your browser search functionality to search all comments on the page, just the ones currently in the viewport.
I recognize some missing pieces, which I believe you will find interesting.

1. The Soviet union did not order China to attack UN troops. The Soviets were never powerful enough to order something like this, right after the conclusion of a civil war and brutal Japanese invasion. If they were, there would not have been a break-up shortly afterward.

2. I don't think the Soviet being a control freak is the reason for Sino-Soviet rupture. Even after public denunciation, the Soviets still delivered prototypes and all the blueprints of Mig-21. Your impression of overbearing Soviets might come from Communist propaganda about "three-year natural disaster." That was purely to cover up Mao's catastrophic "Great leap forward," a complete man-made disaster that the Chinese Communist party refuses to allow a full investigation to this day.

6. The Sino-Vietnam border war was China's admission ticket to Western block. Normalization of relation with US followed immediately and arms sales were permitted again. As for the military winner, Vietnam, I would say. Chinese army suffered heavy causalities with little to show for. Chinese officers were shown to be incompetent, and the Air force, despite deploying hundred of fighters, did not carry out one sortie against enemy forces. Another infamous incident is when China imported two sets of military radar for counter-battery targeting and one set sent to the front (the other was sent to Beijing for cloning), it was effective enough that Vietnamese sent in special forces and destroyed it. Afterward, only a lowly company commander was court marshaled.

I have found that Communist propaganda is most effective in willful neglect and ignorance rather than outright lies. Lies can be pierced more or less readily, but ignorance hardened into opinions are much harder to change.
Im sorry, but all the fear media i’m seeing about 5G is instigated by the head of GCHQ, amplified by the BBC, and distracted by NYT.
So you link a biased source against Microsoft to prove that Microsoft were conspiring with the council. They're reason to exist is to make Microsoft look bad.
You could use svelte just for that heavy component and see if it makes a difference? Svelte compiled output is very small (only brings what you need) so you can quite easily embed it without dragging along a whole extra framework.
Oh you worked for Pacific Telesis? With the whole AT&T breakup and then re-merge that must be a good story on its own.
YOU SHOULD CHECK YOURSELF FIRST HAHAHAHAH
It's also ironic reading on technology websites how important everyone thinks the engine is in a car. While in fact engines are the least specialized and least failure-prone part of a modern car.

Your link to people transplanting Tesla innards into other shells: people have done this since the 1930s. Back then it was called a Hot Rod, today aftermarket parts in the US alone is a $300+ billion industry.
Yes, you are scrubbing with your (usually left) hand. It may sound disgusting but actually feels really, really clean.

> how do you prevent the bidet from becoming a fecal squirtgun?

I have the same concern about the bidets installed inside toilets. Using "bum guns" which hang next to the toilet solves that problem though!
> and so (nowadays) you're going to set up requirements.txt and virtualenv and whatever anyway

If only that were the norm amongst long-tail python users. Heck I don't do it; I have the anaconda distribution installed on Windows and when I need to do a bit of data analysis hope I have the correct version of packages installed.

Making this core to the python workflow (bundling virtualenv? updating all docs to say "Set up a virtualenv first"?) is the first required change, before thinking about unbundling stdlib
Finlandization
Everytime I hear somebody claim python 3 broke strings I just cringe.

No. No on just so many levels.

It finally fixed it by introducing two (or three if you count bytearray) types for completely different semantics of data.

Python 2 was just a mess whenever you left ascii.
You missed the point. The argument was that if your problem is simple enough, a dozen sed and BC calls might still be more efficient than spinning up the whole python vm.
I remember updating my autoexec.bat as a preteen but I wouldn't call it ludicrous hacking. I don't remember where I got the instructions from but I think they were just in the readmes or error messages of games, no internet required.

It pales into insignificance compared to what I have to do to keep a desktop Linux box behaving normally today. Every few weeks I'm having to paste a wodge of lines into a range of config files to fix whatever driver oddity or system resource issue has caused something to break this time. That is pretty unimaginable without the internet.
I completely disagree - Python threads are basically "green threads", so they have their place but aren't related to parallelisation. But true multiprocessing is ugly when you have hundreds of cores, which is where CPUs are going. There is no standard UI convention on most OSes to group those processes per app, in terms of signals or stats or whatever.

So besides the unproven possibility of removing the GIL, subinterpreters are the best way forward, better than threads or the multiprocessing package.
Which contexts?

I used to be a physicist so voodoo around constants so that we end up mass having energy units was common but I cannot think off my head of problems better where imperial units are easier. There are certainly, I am genuinely curious which.
I am having a same situation here but I am not sure whether it is the same issue or not. I have sended a file over slack but it is not downloading even I am having an error message that it is harmful. Hows that possible?
Another set of dev checklists that I put together may be of help to some: https://ch.ckl.st/r/comprehensive-web-application-checklist
I’m sure that will create a market for certified battery replacement workshops.
Blue collar job pretty much just means manual labour, although this definition gets stretched a little when you consider factory work where a machine performs the job and the worker pretty much just operates & oversees the machine. There are plenty of skilled blue collar jobs that you won't do with a day's worth of instruction.

Salesmen are as white collar as it gets.
> What's next? Chauvanism is the reason we believe that men can lift heavier weights than women?

I know you are joking to make a point but there are actually people that believe that.
It doesn't sound like a good thing until you have tried it!

More detailed instructions in case you want to try it: https://www.thailandclimbing.com/chiang-mai/how-to-use-a-squ...