skysight-inc/HackerNews huggingface dataset:
> I don't understand points 3 and 4, can you elaborate? I'm assuming that when i call `component.use(HookClass)` the component creates a new instance of that hookclass.

Sure! You show ViewportHook's constructor receiving a "component" prop. Since, in the calling component, you call this.use(ViewportHook), the `use` method is supposed to pass some sort of reference of the calling component into ViewportHook's constructor. My question was about what the type of that parameter is. Internally, is `use` something like `use(Hook) { return new Hook(this); }`? If so, you're passing a direct reference to the class instance. I had thought that maybe the framework could pass a more limited delegate for the instance to the constructor to prevent people from doing something silly with it, but that would prevent you from assigning a property safely anyway.

> I don't think this will make any meaningful difference. The full component methods API (addState, addEffect) is likely to be in use in any nontrivial project, so that can't be minified away. For 3rd party hook classes, they would be small and independend through `use` and easy to minify / dead-code-eliminate if not in use.

Object properties can't be safely minified. Any user-defined component using lifecycles will still need to have "constructor", "render", etc in the generated source, whereas identifiers (like "MyComponent" in `const MyComponent = ...`) aren't accessed by being looked up on an object, and thus can safely be minified to one or two character names. This was one of the motivations of the design of hooks. I believe it's called out in the original talk from React Conf 2018.

[Edit]

And regarding point 4: componentDidUpdate receives prevProps and prevState, and shouldComponentUpdate receives nextProps and nextState. How would you provide information about the previous or next version of that hook-based state if it's being tracked as an instance property rather than in the component's state object?
Idk how true this is but if I was a young person I would choose to train to be an aircraft mechanic or electrician over software dev at this point
Regular hospitals too. If there's an emergency they have to be admitted. They just won't pay later.
You can use NextJS to build a SPA so the entire premise is invalid.
Your comment sounds a bit dismissive though. They all provide plenty value individually. A lot of this stuff needs to be used IRL for the community to understand the limits and there will always be junior devs and cowboys willing to risk it.

Plus not all of it is merely overexcitement/immaturity either, small companies and small dev teams often try to keep their toolsets small and eventually end up pigeonholing stuff into tech that doesn’t fit, until they get time/resources to do it properly. Some things are more obvious in retrospect.

The vast majority of the software world is still pretty conservative when you look beyond HN and Twitter.
Great essay. Has there been any serious research on the origin and history of Alegria? It was created at some specific time by some specific person but I can never seem to find that information. It feels like it just appeared out of nowhere one day and all the world's ruling institutions just adopted it as their aesthetic.
I actually wrote about this recently:
https://exfatloss.substack.com/p/a-tale-of-two-caloric-defic...

Basically you can think of an "external deficit" (what you eat minus what you burn) and an "internal deficit" (what you burn minus what's available to you through the biochemical processes in the body).

The external deficit is the one that describes your weight loss.

But if you run an external deficit and therefore weight loss by running an internal deficit (using more energy than your body can sustain from your body fat) then it won't be sustainable. Your body will increase hunger and start saving energy, thereby driving down your metabolic rate.

E.g. some of the people on The Biggest Loser were measured to only burn 800kcal/day several years after the program. Totally nuts. This is for adults!

It's basically a debt. If you buy a house on your credit card and you can't pay it off it'll come back to haunt you. If you buy a house but you can pay off the mortgage in full every month you're golden and it's an investment.
> but honestly, I absolutely hate the look of station wagons.

Are you sure about that? Perhaps it's the $billions that US automotive manufacturers have spent to make you _think_ that. Or the peer pressure from having a vehicle that "stands out" from all of the SUVs on the road?

I'm not trolling here, I'm genuinely asking those questions.
We’re talking about this because she’s rich and white. If she were not there’d be no question of a convicted felon serving their prison sentence. Kids or no.
The US legal system makes me sick.
Minnesota nuke spilled 400k gallons of water containing radioactive tritium
> https://en.wikipedia.org/wiki/Ad_hominem

ad hominem? "add Vice and 'em", I say, to your list of unreliable sources, for exaggeration, arguments of convenience, burying any counter-evidence...
SEO is an important part of marketing for a lot of companies. It's not hype, it's just regular marketing
> If physical reality is quantized, […] then the state of all all reality can be described symbolically.

First, quantized in the physics sense [0] doesn’t mean discrete states. And discrete doesn’t necessarily mean finite.

But even if you mean “finite”, I believe that you are underestimating how staggeringly large “finite” can be.

[0] https://en.wikipedia.org/wiki/Quantization_(physics)
Yeah they’d have to be isolated from each other if that’s the case. Which would defeat the value if it’s a small project starting from scratch with a limited scope frontend-wise (which htmx typically implies whenever I’ve seen it used or mentioned).
If you're using Apple Silicon, you need to boot into 1TR (hold down the power button during boot) and enable Reduced Security mode. The Genius Bar probably isn't going to tell you about that sort of thing.
I asked the clock over and over, and after 5 hours it gave the right time, proof the clock can learn!
Real-time desktop notifications for Stack Exchange inbox
From the few teachers I've known I actually see the implications as the opposite. The teachers who made it to good schools (not their words but they're obligated to be a bit more polite) usually mention how they could almost do nothing because the kids are largely cooperative and will handle a lot of the lesson themselves once you've set them in motion. These are the kids you could probably just assign an AI to that's overseen by some kind of managerial equivalent to a teacher who meets with them once every week or two to be sure their ai lessons are going fine and hear out complaints.

The value proposition of ai instructors to me seems rooted in how they would free up more of the human teachers to focus on the problem kids at the low income schools where sometimes it's a good day if you got everyone through class without anyone threatening eachother or needing lesson concessions because they got knocked up. In the lower performance quartiles of schools teachers effectively become daycare/social-workers first and educators second and it's in this subsection I'd imagine a lot of benefit could be found in allocating more humans to at least shrink down class sizes so that problem students don't have such a pronounced effect on their peer group.
> You'll see more and more businesses using it, ones you didn't expect, like local mom and pop businesses.

And in a lot of cases they're not going to need to hire a software developer to do develop it.
ChatGPT for Robotics: https://www.microsoft.com/en-us/research/group/autonomous-sy...
> They had "peanut-free" lunch tables when I was in elementary school, and all I thought was people just need to stop being so sensitive. Even then, guess I was right.

I'm pretty sure that by elementary school some kids have already developed severe peanut allergies. Keeping peanuts away from someone that might go into anaphylactic shock seems the right amount of sensitivity.

Per the article, the time to be "less sensitive" is much earlier when introducing peanuts can reduce their chance of developing an allergy. By elementary school (ages 6-13) it's mostly too late.
I am curious as to what sort of coaching business you operate and how much prior specialist experience you had before starting the business.

When you are delivering an intangible as the "product" it is often more effective to charge a substantial rate. The cheap customers, as you have found out, are often unprofitable. Having a small number of high value customers is generally a better business proposition.
CNN and Fox even fight each other on the meta level. It's hilarious.
Suppose it's not everybody's cup of tea, but there are users on this planet who would love to be running a fully free and open source software on machines that provably have no Intel Management Engine or other comparable closed-source technologies.

What the community could be doing instead of refusing useful patches enhancing support for an IP-core licensed from a western company is working with Baikal developers to ensure that desktops/laptops built on their hardware include no closed source software blobs anywhere in the drivers or in EEPROM.

How often do we have an opportunity like this?
I wonder what kind of __punk this will be called..
Its speed as compared to the laptop - I assume it was running online, on OpenAI’s hardware. That hardware is quite extensive, I thought. I believe I’ve seen the cost of one (not ‘search’, what’s the word here, ‘output’?) is something like 1-10 cents.
I have seen 1400 FIDE elo(much much stronger than chess.com 1400) players make illegal moves in real life long time control tournament games after thinking for over 10 minutes. People regularly create an erroneous board state in their head while thinking. This is often how blunders happen; merging together a possible future board state with the current one. Illegal moves are more rare because you have to then also miss that the move is illegal while physically making it. But they do happen.

1400s on chess.com never play illegal moves. 300s on chess.com never play illegal moves. Because it's impossible to do. In the real world, even grandmasters can make illegal moves, though they almost always have to be under time pressure.

This idea that the illegal moves completely invalidate this result is just ill-conceived. On the other hand I do agree this is mostly returning common sequences of moves. And if you actually analyse the games, especially the ones with illegal moves, you'll find plenty of qualitative evidence of that. But I'm fed up of doing people's thinking for them for today, so this is peace out for me today. See my others comments on this post to see a more detailed analysis of what this is doing.
Thanks. I haven't seen cupholders on a booster seat before!

It looks like European child seats and booster seats are a bit narrower, or at least narrower versions are available. You are obviously stuck with what's sold in the US though.

I do remember a period as a child when my mum would sit with me in the back, so a rear-facing child seat could go in the front seat.
You get all these benefits using something like NextJS's static site exports which I'm using right now on Cloudflare Pages (it's built-in). Works perfect for a SPA plus you get the SEO benefits. Only downside is we had to use query param for URLs instead of path-based params but it works the same in the code
I was personally quite appalled that so many people believed this was what it was doing, but I suppose since the source was a DeepMind researcher, it lends a lot of credibility.

By the same reasoning, I hope people do realise that there are computations that are just impossible given the finite depth in a Transformer. The only possible way to overcome this in the current paradigm is the Chain-of-Thought related methods.
About the state and value of the average high school.
GPT-4 has increased my work output just over 10-fold. That is 9 jobs which will not exist because of GPT-4.
I have a 6mo daughter, and coincidentally I was just reading about this earlier today in the childhood nutrition book "Food to Grow On". According to that book, botulism spores can survive the temperature that honey is pasteurized at (the same book does recommend feeding peanut products to young babies, so it is up-to-date with that area of research at least).

Unless you're positive that botulism wouldn't be an issue in pasteurized honey, I would suggest qualifying your comment with a note that you're just speculating rather than stating it as a fact.
A lot more fun too
"there is 10 million times more entropy in that radiation [cosmic microwave radiation] than there is in all of the mass of the universe"

https://news.berkeley.edu/2016/09/20/new-book-links-flow-of-...
> ChatGPT/GPT-4 alone are limited to reformulating what they know from their training data.

That's not true. They are extrapolating. If they weren't, they wouldn't have the problem known as "hallucination".
And another fun bit of trivia: in the animated series “The Seven Deadly Sins”, one of the characters owns and operates a somewhat suspicious bar in a remote mountain cave.

Seems there may be a cross-culture notion of caves and sketchy bars having similar level of… ah, “shadiness”. Makes some sense, as I’m typing this out. The dark is where (both literally and figuratively) shady things go down, and it’s hard to get much darker than a cave, so “Spelunke” seems a fitting name.
> If operating with the best model you have is intuitive and not logical, then everything in science it intuitive and not logical, so we might have to redefine your use of "logical" to be more useful.

Fair enough. The reason I don't like "logical" here is that it implicitly leaves out the possibility that the conclusion is wrong despite the data being correct.

>> I don't know if this increased the total number of people who died. That'd be an interesting question

> In fact, this (plus quality of life + cost of prevention/treatment) is the only measure on which the old guidance could be "exactly wrong", which hopefully gives some insight on why talking about it being "backwards" is itself wrong. It's not Thalidomide.

You're right -- it's not, like, the worst possible thing they could have said, and it wasn't like immediately fatal to kids that followed it. The sense in which I think the old recommendation was "exactly wrong" or "exactly backwards" is just that the organizations that made the old recommendation decided that doing what the old recommendation said to do (avoid peanuts altogether for the first several years) was worse than doing something that's basically the opposite (expose peanuts early).

> If you instead mean we need to better communicate uncertainty in developmental and health recommendations, I completely agree.

Yes, I think that's a good idea. (I know it has problems, too: most patients need clear, simple guidelines. But I think you can have clear, simple guidelines as well as more nuanced versions.)

I'm definitely not an expert here and I don't claim to know the answer. What I'm looking for is any introspection from the organizations involved. Something like a (blameless) postmortem. Something acknowledging "hey, it seems like this was a pretty big mis-step -- is there something we could have done better here?" Even if the conclusion was "no, we think our methodology in making recommendations is sound for [these reasons], there's just uncertainty, we got unlucky, and the risk of harm is lower than the risk of not saying anything", that would give them more credibility. Without something like that, as a parent, why would I continue trusting their recommendations? (Candidly, it doesn't help that this is just one of many examples of this from public health. See things like: eat margarine instead of butter (oops! we didn't know about trans fats.))
I only read the Wall Street journal which I feel gives fairly balanced and non click bait content. If it’s not big enough to warrant being on the WSJ, do I even wanna read it?
Yep. Lots of underground brewery-related stuff. And an abandoned never-finished subway (now hosting a massive water main and a ton of fiber cables).
there’s something called CSFB (circuit switch fallback) which allows you to make old school voice calls/sms without using IMS (volte) over 4g network
This only happens now with an SPA due to laughable incompetence or deliberate disregard. You have to go out of your way to not use whatever Link component or similar tool provided by your SPA library/framework of choice. Any team that incompetent or negligent would be just as likely to break link behavior even if they aren’t using an SPA.

I’m surprised the criticism is still ubiquitous: it’s either 5+ years out of date or some people run into these terrible sites a lot for some reason.
I did about the same thing at about the same time. I’ve spent much more time creating - music, software, retro computing. Much happier, but there is one corner of my brain that feels a bit like I had to give up on humanity to get here and that sucks.
Well yes, because on Linux you use mmap to reserve virtual memory.

I wouldn't say that tooling is not aware of all that. For example, top and htop display virtual memory and resident memory and shared memory. You need to look at resident memory if you want to know physical memory usage.
Can you explain a bit more about the asset pipeline?
I've been to 80m depth. I have a rebreather and a couple scooters. I probably have nearly enough gear for that entire dive team. Even got some 500# lift bags.

Only thing I'm lacking are the forged passports and the explosives.

A sufficiently rich Ukrainian in the construction industry or something like that could probably have the right contacts for both of those[*].

It also probably takes less explosives than you think since the water is going to amplify the blast (pretty sure the US Navy dive manual has a good section on explosives in water and top tips like making sure that you at least get your torso out of the water if you can).

You wouldn't need a decompression chamber for those dives at that depth.

(The _Shadow Divers_ book also documents a colossal screw up on bad gas for the depth, and the hazards of going inside of wrecks at depth, which don't apply here)

> I am also wondering how this work was performed without Norway or the US noticing it.

Most things that most boats do aren't noticed by anyone. If it wasn't that way, then drug smuggling would be a whole lot harder.

[*] I'm betting Ukrainian because the pipeline wasn't benefiting them and was supplying piles of cash to their enemy, it seems kinda obvious to me.
You commission the device on an air-gapped device. If you type the password on a network-connected computer you’re doing it wrong. Bonus points for physically destroying the computer you commission the device on.

It’s just like commissioning an HSM.
I really like this comment because I'm curious about all of these too.

For the second one, I'm wondering if it's like MySQLs binlog replication where functions should be deterministic, which makes me think that they get reran on the replicated server.
Same experience mid December in the evening, with a ~$110 fare. I’m happy to wait if the alternative is taking a taxi though. I’ve gotten way too tired of the “machine isn’t working” schtick.
Also there are often "feel good" stories that are really quite negative in disguise. "Little Timmy started a GoFundMe to pay off his school lunch debt, and all his friends donated!" and other dystopian "seems nice but is actually horrifying" content.
Maybe, but on the other hand what do you expect without personalization? At big high schools, the best students will learn more in a few weeks than the median students will learn in all.4 years. We shouldn't expect one curriculum to work for everyone. That's why there new models should be so exciting for education.
A Nirav or a Naval? – that is the question
The news on Twitter isn't really for-profit, more like for glory or popularity in many cases. I'm fully convinced now that the issue is the one-to-many distribution. When news only travels from friend to friend like the old days, it tends to be more positive and less devious, and there are studies behind this. You don't make friends sending them fake ragebait, but it certainly works on Twitter.

I'd have to see your app in action to know what it really does, but it does sound like the same kind of distribution as Twitter.
Ugh this point is so old. Corporations have “legal personhood”, which shares almost nothing in common with actually being a person in the understood sense. It’s just a legal term, in the same way a state of matter and a state in the US have nothing in common except the same letters make up the term.
try: https://archive.is/GmiBQ
I am waiting for their demos to support vulkan in godot 4 (on steam).
> I have had experiences that cannot possibly be explained unless at least some future events already exist

you can't just drop something like this and then walk away without telling the rest of the story
it's probably hitting 'caret' 'C' except when it's using Emacs when it types C-C
This happened at some point in the nineties, right?
https://twitter.com/tanshawn/status/1599442780384014346
Honestly, I made it make an illegal move in my very first game, in the third move. You just have to do stuff no normal player would do:

> You are a chess grandmaster playing as black and your goal is to win in as few moves as possible. I will give you the move sequence, and you will return your next move. No explanation needed.

1. b4 d5 2. b5 a6 3. b6

> bxc6

That's obviously illegal.

... to all those who are saying "well even good players can make illegal moves sometimes," that's just ridiculous. No player makes illegal moves that often.
Slow Water – Climate Water Project
I ignore a lot of the big topics. Layoffs don't concern me beyond just knowing that they're happening.
Now we know what the A stands for in T.A.S.E.R
If you need ultimate performance, you need native implementation, end of story.

Webassembly, as I see it, is about creating VM which provides acceptable performance with ultimate sandboxing.

It's a replacement for JavaScript transpilation, not for JVM.

Of course it's tempting to do it all without sacrificing anything, but I guess you can't have a cake and eat it too.
Reminded me of the movsfucator that compiles programs into only mov instructions!

https://github.com/xoreaxeaxeax/movfuscator

And also REpsych from the same developer which really isn't for the fainthearted...

https://github.com/xoreaxeaxeax/REpsych
Adding emphasis in a text is also editing, even though the letters are the same.
Battle of the Atlantic – Mitsi Studio
Yeah definitely, but we already saw this coming before LLMs right? Low code solutions, site builders, I mean MS Frontpage is as old as the Web itself. Just like you needed top MechEs to build heat exchangers in the old days, nowadays a small team makes a design and technicians handle most of the actual work of assembly and maintenance. Likewise you'll probably just have low code engineers who glue existing parts together to make things work at your local cafe or restaurant.

One of the reasons the work at Big Tech is so fun is because they actually need to engineer a lot of things. Smaller tech companies or businesses that utilize tech can just glue a few libraries together to make it work.
Why are mergers the go-to solution for rescuing banks? Why do they think that, rather than "arrest[ing the] collapse in confidence in Credit Suisse," a merge won't just cause a similar collapse in confidence for UBS too?