skysight-inc/HackerNews huggingface dataset:
I'm not a hardcore React user; I'm currently working with React, but I came here through jQuery, Angular 1, web components, and Vue. I've done two React projects: one really tiny one as an assessment where JSX was an eye-opener; components were classes, and React was simple and fun back then.

Now I'm working on a gigantic React project, and I'm surprised it's still working. It's all based on function components with all the hooks, higher order components, middleware components, and tons of other stuff. It works, and it's clearly maintainable, but it's not pretty. Endless useEffects after each other make it hard to see what's going on. Every change requires changes in half a dozen files at least; DRY is clearly not a concern here.

I'm not a React expert, but I think function components and hooks were a mistake.

One thing that strikes me is that years ago everybody was excited about ES5 finally adding classes, and now everything seems to be moving away from classes.

I think JSX is still a cool idea and an interesting alternative to templating, but I also think that if I were to pick a frontend framework now, I'd go with Svelte.
An excellent reply, far better than my idle musings warranted, however a point was missed. At some point in solar system formation the mass of the not quite yet a sun was only 6% of the mass of the entire system. At some very early point I assume the distribution of mass in the proto solar dust cloud would be the same as the distribution of mass in the galaxy.

I hesitate to reinforce my idea because really, it is ill informed musings on how solar system formation is coalescing gas and dust clouds and would galaxy sized objects eventually coalesce into the same proportion of objects. ill-informed because it turns out we can look into the past and see what newer galaxies look like.

Anyway, thank you again for a great post.
[dupe]

Lots of discussion here from days ago: https://news.ycombinator.com/item?id=37092861
Yes, especially having fact checked output of LLMs would be a nice step in the right direction. Throwing out the hallucinated bits and keeping the good stuff would make LLMs a lot more applicable.
During this summer, I found myself revisiting "Peopleware," authored by Tom DeMarco and Timothy Lister. One chapter is devoted exclusively to the productivity of creative professionals, including engineers and designers, in workspaces accommodating over three people – a norm in contemporary offices.

It baffles me how some employers, in their attempts to economize on office rental costs, place more than 20 employees in a single space. This results in constant distractions that disrupt focus and hinder flow, consequently lowering the productivity of these employees.

For employees that have a dedicated home-office, returning to office means constant distractions, coming in early or staying late to be able to actually get some work done etc.

And then, the commute. Wasting my time because my employer is stubborn and wants me in the office.
> Inequality is one of a number of fake issues that are major unhelpful distractions.

Inequality causes crime in developed nationsp[0]:

> Comparing across industrialised societies, higher inequality—greater dispersion in the distribution of economic resources across individuals—is associated with higher crime and lower social trust. These associations appear empirically robust, and meet epidemiological criteria for being considered causal.

Inequality also has health impacts[1]. "The evidence that large income differences have damaging health and social consequences is strong."

0. https://www.nature.com/articles/s41598-020-80897-8

1. https://www.sciencedirect.com/science/article/abs/pii/S02779...
> Global daily surface air temperature (°C) from 1 January 1940 to 31 July 2023

I didn't find the part where they explained how they know that's sufficient data to draw all the conclusions that are being made about climate.

> I rest my case.

Alright then. I'm unconvinced.
It's a known fact that the point all bodies in the solar system orbit around is not actually the centre of the sun, but some point close to the sun, known as the barycentre of the solar system[0]. This moves around based on the exact configuration of the planets (where they are in their orbits).[1] By definition, this barycentre can only be considered 'locally'. For example, there is another 'barycentre' for the whole milky way, and presumably for the whole universe.

Mercury is the 'closest' to all planets on average over time due to the fact it is closest to the sun (or more accurately, this barycentre), and due to an unintuitive but completely logical consequence of Mercury having a small orbit[2].

The last paragraph of your comment I was not able to properly understand. It is certainly true that the 'solar system' is made up of objects which rotate around the sun. But that's the definition of 'solar system'. Just as the 'milky way' is made up of objects which rotate together... including the solar system. It's just useful for us to have a term for our local corner of the universe.

[0]: https://www.skymarvels.com/gallery/Vid%20-%20Solar%20System%...
[1]: Satellites (both natural and artificial) also orbit this point when you map their path over the course of a full orbit of the body they primarily orbit: e.g. the moon orbits the Earth, but over the course of a year, the moon and Earth together orbit the barycentre of the solar system.
[2]: This GIF shows it quite logically: https://engaging-data.com/pages/scripts/orbits/mercury-faste...
> All this is directly replaced by AI now.

ChatGTP came out nine months ago and the US has added two million jobs in that time.

https://www.deptofnumbers.com/employment/us/
When I was younger the most popular music was pop. I loved rock music. Then, rock music was the new hot shit, and people started writing walls of text to justify it. Now nobody cares about rock music, most people around me love "techno" music.

The moral of the story is, what ever cool now changes fast, and it shouldn't matter. Do what you love and don't preach because not like any genre of music, crusades are not cool for like 1000 years now.
goddamnit, my cover is blown

/runs
The fall from affluence is like falling into a pit whose bottom keeps breaking and falling out each time after you land. As soon as you've fully absorbed the shock of the previous fall, you start falling again.

I can't imagine what it would feel like to fall from such extreme heights to such extreme lows.
> I sometimes check React discussions and it's full of new made-up terms about managing issues that are uniquely caused by React or some previous iteration of a React technique.

In other words, you're checking React discussions and finding discussions on how to maintain React code. What were you expecting to find?

> What happened with the simplicity of just "generate some boring ass HTML DOM in JSX, and it applies the diff to the actual DOM".

React happened, which does just that but transparently and effortlessly. In fact, React does it so well that a concern is to prevent it from applying those diffs when being updated when it doesn't need to.

> That's it. That's the entire value proposition of React and it needs no hooks, handles, states, immutables, events, data trees, properties, arguments, components, nothing else.

React does not need those features if you are using React for things other than developing graphical user interfaces, which by their very nature are stateful, emit and react to events, handle properties, etc.
This is probably true, but I’d bet the ‘nothing to hide’ crowd don’t know it.
And as "we" attempt large scale automation, attempting to "automate our world", the devilish details and fractal complexity of a dynamic human society will be realized. Automation is an attempt to "freeze a process" and then accelerate it's handling, efficiencies, and outputs through machines - but is that even possible at city scale, not to contemplate larger scales yet, with a dynamic competitive human society inside? Will human society be future identified by the "version of automation" that ran at that time? Will future human society be constrained by the the designers of the automation in place, requiring violent overthrows to establish a newer automation?

These speculations and similar strike me as infantile questions. I think as we approach our capabilities granted by AI, we will "see" the complexity of human civilization, in truth, for the first time. AI is a new set of eyes, data analysis is our vision, and as a civilization we've only been the three blind men examining an elephant. It's time to see what we are, and maybe, just maybe, mature enough to manage our own civilization without all our infantile infighting.
Here I am wondering why .value on an input[type=number] in 2023 returns a string.
The dad was involved
> Kind of like one way sharing? You give, they take?

Yes. There are plenty of examples of people sharing knowledge on the internet without expecting anything in return. Wikipedia, StackOverflow, and most open-source projects come to mind.
Didn't Bill Joy lose the original source he wrote at Berkeley?
I bought and returned a Remarkable 2. I primarily wanted it for note taking but I found it actually felt worse to write on than the iPad with Apple Pencil and a matte screen protector. The iPad is also much more responsive and versatile when taking notes, e.g. better shape recognition, pressure sensitivity and palm rejection. As others have mentioned the Remarkable software is very limiting too in terms of reading, annotating and sharing documents.

EDIT: one more complaint - the remarkable pencil nibs wear away very fast. They give you spares but they didn't last long.
When I read about RTO, I always just wonder how many friends of Bezos or Eric Yuan are heavily invested in real estate.
FTX offered an 8% yield on assets. Where does that yield come from?

SBF also famously joked on the odd lots podcast that he was in the ponzi business.
I had a PM suggesting we move from using git to dropbox because github is "hurting the UX".
For a long stretch of time, carnivorous dinosaurs roamed the Earth. For a long time, it was molten rock.

Would you like dinosaurs or molten rock in your apartment? I wouldn't.
That's great and all, but with the latest firmware the notetaking experience is great on the Scribe, and, at least in Europe, it's a fraction of the price of the Remarkable. And I don't have to pay a subscription
The linter plugin for hook dependencies is pretty great, I very very rarely need to specify a dependency array different from the one the linter suggests.
I think large systems get so large and complicated that they become very hard to reason about simply and think about. They become difficult to change their architecture or tweak them. So developer velocity takes a hit and the system is so complicated that it's hard to change anything.

LibreOffice, Mozilla Thunderbird are of such scale that it's difficult to change these applications how they work today.
[dupe]

Large discussion on earlier post days back: https://news.ycombinator.com/item?id=37093854
No one? I thought that was glaringly obvious.
Compiling to C is definitely an option, but there are also plenty of low-hanging fruit that could come before. You could invest in a better interpreter or even some bytecode compilation first.

I don't know where your rules are coming from but I would personally not be super happy with the introduction of a c compiler running user-provided strings in the middle of my application.
I had the same thought; a simple bytecode VM shouldn't be too bad to implement (famous last words...), and the improvement in cache locality might help a lot.
ESP32 is such a rabbit hole. I have so many projects using or in development with them. And now I have another one to keep in mind. Thanks OP!
Short Questionnaire: How do you use Stack Exchange?
Hi there, we would like to understand how you use Stack Exchange as an undergraduate/graduate. Would be appreciated if you could fill out this short form.
this concept already exists and is in practice at many companies that require knowledge driven results. https://arxiv.org/abs/2005.11401
> “…it could be an Amazons fault. Someone bought the monitor, used it, decided they didn't want it and returned it.”

While this may be true, it’s Dell’s lost opportunity to honor their product warranty in a generous way. Obviously it’s turned this customer into a permanent antagonist.

What’s more, the product Dell has in their warehouse should cost Dell less than the advertising, or marketing costs to get new customers.
to write is different from to rewrite

but c'mon. I'm referring to the fact that code can be made into libraries, or APIs if you're so keen on collecting rent

and then as a digital asset, the library can be copied and distributed, hence code can be written once (one team writes it) then everybody else can use it with no additional cost, (again, unless you actually want to tax/collect-rent from other people, then you make up this additional cost)
The term became very popular during Ethan Couch's trial, because the judge bought it.

> Couch was indicted on four counts of intoxication manslaughter for recklessly driving under the influence. In December 2013, Judge Jean Hudson Boyd sentenced Couch to ten years of probation, subsequently ordering him to undergo therapy at a long term inpatient facility. Before sentencing, Couch's attorneys had argued that Couch had "affluenza" and needed rehabilitation instead of prison, arguing that Couch had no understanding of boundaries as his affluent parents had never given him any. Couch's sentence, judged by many as outrageously lenient, set off what The New York Times called "an emotional, angry debate that has stretched far beyond the North Texas suburbs".

https://en.wikipedia.org/wiki/Ethan_Couch

https://en.wikipedia.org/wiki/Affluenza
This. Most of the value-proposition of JSX is that it is just JavaScript and as such you just write code logic like you would normally do. Need to filter some items? You can do that with the Array.prototype.filter method you already know. Do you need to return a list of components based on some list of object values? Just use Array.prototype.map.

I never really understood those that see this as a weakness and would rather learn a more limited set of template string functions that work kind of like, but not entirely like, the native JavaScript collection functions.

Yes, using a ternary operator in JSX to conditionally render components/values looks a bit ugly, but nothing is stopping you from making a wrapper component like:

<If cond={...}><div>Conditional content</div></If>.

Also with JSX/TSX scopes behave exactly like they do in regular JavaScript, because it is regular JavaScript. Templating languages often invent their own form of scoping mechanism.
> paid by Google to specify Web Components between 2008 and 2021 - a technology in direct competition with React at the time

I’m personally of the belief that we should assess arguments, not employer. Someone working on a competitor to React can make very valid arguments against it, they’re often some of the most knowledgeable people about the drawbacks of the framework.

I’m personally not a fan of Alex’s abrasive style but I’ve seen plenty of his critiques of sites written in React-based stacks and they’re usually evidenced with bundle analysis, burn down charts and so on. They’re not unfounded.

(I also disagree that Web Components are a competitor to React. Frameworks like Preact and Svelte are interoperable with Web Components and build on top of the API. React chooses not to but that’s neither here nor there)
In crypto, those two seem to mean the same thing. Three yards of ironclad terms of service inform customers that the deposited funds are fully and permanently the exchange's funny money
I agree with you, there was definitely a fixation. The implication is that React doesn't do things the new and better way just because it's old, rather than a deliberate decision.

Goes back to writing SQL
Many reasons not to use Haskell, not just the ecosystem.

Source: 7 years of Haskell in production
ehhhh. I'd think maybe lit-element if you're going to be leaning on Web Components to smooth some of the edges of "vanilla".
The key aspect to this being a good solution is actually building a corpus representing as much possible reference knowledge needed in scenario. The idea that the answer is Wikipedia way underestimates the scope.

The Wikipedia patch doesn’t make much sense to me.

What percent of the important questions being asked in this doomsday scenario actually have their answer in Wikipedia?

If 50% of the time you are left trusting raw LLaMa, then you don’t really have a decent solution.

I do appreciate the sentiment tho that future or finetuned LLMS might fit on an RPi or whatever, and be good enough.
Personally I find it weird that React was originally invested enough in a DSL to define a syntax for createElement(), but then didn't follow through when extending the DSL could have made a huge difference for hooks usability.
Well in MA between the city itself (a couple of them actually), Metrowest, North Shore, and South shore people and companies are spread over a very large area and a lot of people and their partners are only willing to compromise so much for a better commute.

I’ve only had one really bad one - about 90 minutes way into the city but not every day.

But when I was going into an office-which I haven’t regularly for a long time a 30 to 45 minute was pretty normal once I bought a house that wasn’t basically next door to the office.

There basically weren’t tech jobs in Boston proper in my memory though that’s changed quite a bit.
A quote from Marx himself -

"The Communists disdain to conceal their views and aims. They openly declare that their ends can be attained only by the forcible overthrow of all existing social conditions.
Let the ruling classes tremble at a communist revolution."

If the man himself agrees that his ideas can only be implemented through a "forcible overthrow", isn't it safe to say that those who follow his teachings today are either purposely ignoring a big part of his message, or are merely biding their time for the next revolution?

It all reads the same to me. In the same way I consider every Nazi a Nazi, I consider every Marxist a Marxist.
Developers building stuff faster leads to a better user experience.
Wonderful. Note that :target works only after the whole page is loaded, including any JS. :has() is revolutionary, but unsupported by FF.
It's funny how the author complains about React, then goes on to talk about "web components", probably one of the worst features of the web. Not all "standards" are good and deviating from them is not always bad. React has also reinvented itself multiple times, in loose chronological order:

- React launched

- JSX became the official recommended way

- CSS-in-JS became the way

- Context was invented

- Hooks were invented

- Server-side components
In my view the "vi way" is to forget about a insert as a mode and instead, treat i(nsert) and a(ppend) as commands, with the to be inserted string as an argument, terminated by <esc>.
Acoustics expert brings rock-and-roll touch to sound of St. Peter's
Historical Context: Animal Farm was published (per Wikipedia) in England on 17 Aug 1945. Nazi Germany had surrendered to the Allies (France, UK, US, USSR, etc.) on 8 May 1945. The great majority of the fighting and dying "needed" to achieve that victory was done by the USSR (https://upload.wikimedia.org/wikipedia/commons/d/d1/World_Wa...).

Back in WWI, the UK had experienced 2X or so the number of deaths that it did in WWII. The UK's leaders were extremely aware of how bad a massive war, with a massive death toll, could be for a country.

Regardless of Orwell's fuming about freedom of the press, pro-Soviet English intellectual fashions, and such - for the WWII-era British government, not "rocking the boat" with Stalin, when "his" USSR was still critical to winning the war with a less-horrific British body count, would be a "d'oh, obviously" policy.
I completely support this. The current use of AI is reckless. The merits and dangers of AI should be thoroughly debated, worldwide, and tough standards should come into play before anyone can use AI.
If nobody feels like organizing social power structures I’d probably just go ahead and do it myself. What are you gonna do when there’s ten of us and one of you?
The old sigmoid looks like exp problem
> Lots of assumptions. And they're all based on the fact React must be some all-encompassing framework, like all other frameworks are or have become, and there's no other way to organize your app, possibly, unless it's dropped from above, from the framework, and is intricately interwoven and coupled with it.

This is a silly argument to make. People don't want to onboard onto a myriad of little reinvented wheels just to put together a GUI. This is well known to be a major mistake, and the root cause of failure of countless projects.

People are paid to deliver features and fix bugs, and not to peruse through npm like they are playing Pokemon. React solves their problem by solving developers' problems. Don't you understand the value of using a standardized tool that answers all your problems?
Aside from the bytecode approach that other people have mentioned, is there a way you could leverage a SAT solver like Z3?
Lenin disagrees: "The goal of socialism is communism."
Best web pages to find a part-time developer job?
Maybe it's changed with more recent version but that small footprint was a trap for us. We picked it for that, and ran into weird edge cases / bugs in preact projects using third party libs that didn't occur with react.
Nice blogpost!

I saw GrafanaLabs provides similar dashboards for exploring cardinality on their Managed Service.

VictoriaMetrics also provides ab built-in CardinalityExplorer UI https://docs.victoriametrics.com/Single-server-VictoriaMetri....
See a playground here https://play.victoriametrics.com/select/0/prometheus/graph/#....

A cool thing is that there is a PR to support Prometheus (in some capacity) in CardinalityExplorer UI - see https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4713
IanCal said it all. But for alternative approaches that also use LLM (with miniKanren) you can check https://arxiv.org/abs/1809.02840
A tip for your context window problem: prefer ‘editing’ a previous message to add whatever clarification is required - rather than having a ‘chat.’ Definitely helps keep it on the rails.
FTX supposedly had funding rounds that valued it at like $30B. This is equity, not deposits. Possibly massively overpriced due to crypto bubble, but likely that he could've extracted generational wealth from it.
So removed are the "bosses" from real people that considering the reality of their subordinates is impossible and they need data. Do they not have relatives or say parents of their kids’ friends, who are workers and not at the top of the capitalist pyramid? Is it that hard to understand that once someone saw their job can be done remotely no problemo, they will have questions why they need to commute and report to the office simply because of management’s "lack of data"?
I've seen this happen to two different German guys that I knew. Neither of them managed to put their lives back together afterwards. What also stands out for me about them is that they were complete jerks to others when they were 'riding high' and never for a second considered that the tables might be turned some day. But when that happened the amount of soft revenge they had to deal with was such that one of them removed himself from society completely. Because all of the supplicants when he was wealthy had his number when he wasn't in control of their lives anymore. Both ended up divorced.

Your description of the ground beneath breaking up over again and keep falling deeper is very apt. That's exactly how it happened.