skysight-inc/HackerNews huggingface dataset:
Ask HN: p(react): Classical .vs Functional? or wrong question?
i gotta say i've got implementing react-style functional components down to a science with a sprinkle of art and am just so pleased with how formulaic it feels when going about building :) with that said there is still room for improvement and wouldn't mine having some conversation around different paths forward

i gotta say that i've got implementing react-style functional components down to a science with sprinkles of art and am just so pleased with how formulaic it feels when going about building :) with that said there is still room for improvement and would love to have some conversation about different paths forward

in short, the style i've honed is linear, verbose, and makes a serious effort to avoid unnecessary indirection. that means i use inline functions a lot for things like event handlers. in a medium to large application this becomes a performance problem and i want to be a professional when it comes to this sort of thing. thus it is time to reevaluate my approach to this whole component design / implementation thing

in general, im trying to strip magic (abstraction) from my life rather than welcoming more of it in! so rather than climbing further up that ladder of magic and bathing in signals, which preact offers, i think i’ll be better off climbing back down to class(ical) components where i began my declarative component journey at the start of 2016

START UNNECESSARY DETOUR
at this point you might wonder if i flagellate myself? the answer to that… “¡¡¡depends who you ask!!!”
END UNNECESSARY DETOUR

when i got started with class ccomponents not much made sense. there was just so much noise resulting from my lack of experience that making head from tails when trying to diagnose the smallest of problems felt like an expedition. fast forward to present and uncountable iterations later, class components now have a shine to them! less runtime waste, but at the cost of mas indirection. also with classes i should be able to implement more robust types within typescript!

am i just looking for a problem, or do class components offer the best path forward for performance optimizations? why not signals? ps i’ve done the signal thing with vue and though it has its appeals it seems like there aren’t any good escape hatches for performance hacking

so how are y'all going about p(react)-style component design / implementation? what in your approach are you proud of? what about your approach is worrying?

any of you implementing new components with classes? or are class components only a legacy thing? if implementing new, what is your approach?
> Overheads also seem to only go up

Inflation says hello
I remember a possibly apocryphal quote from a park ranger saying that there was a significant overlap between the smartest bears and the dumbest tourists.
AgentGPT: Autonomous AI in the Browser
You're reading the promo materials wrong.
If I went to right in front of your house, and blared a horn as loud as possible 24/7, making it impossible for anyone to hear each other—you would call the police and have me arrested, and rightly so. You would not welcome my actions as "free speech."
Honestly nothing compares to bandwidth free expenses with cloudflare especially with cloudflare R2.
Also having different pricing for every region is very annoying.
Plenty of functional Adderall users also, which is mixed amphetamine salts.

And although more rare, functional desoxyn users too, which is a methamphetamine pill typically used for narcolepsy and severe obesity.
> Potentially

Unless CloudFlare cables are somehow shinier than the rest of the internet’s, adding one hop almost certainly adds latency. More hops more time.

In some instances where the original server was closer than CF’s edge, I measured increased time even for cached content, effectively making CF slower for every request by that specific user.
Yea, this paper says that the embarrassingly simple linear is better than transformers for time-series:

https://arxiv.org/abs/2205.13504

from the abstract:

"Recently, there has been a surge of Transformer-based solutions for the long-term time series forecasting (LTSF) task. Despite the growing performance over the past few years, we question the validity of this line of research in this work. Specifically, Transformers is arguably the most successful solution to extract the semantic correlations among the elements in a long sequence. However, in time series modeling, we are to extract the temporal relations in an ordered set of continuous points. While employing positional encoding and using tokens to embed sub-series in Transformers facilitate preserving some ordering information, the nature of the permutation-invariant self-attention mechanism inevitably results in temporal information loss..."
infinitely better than putting CO2, particulate matter and carcinogens in the air. And recyclable.
How long can you survive without water?
This assumes he was then motivated by money or still thrilled about that industry. He probably had his hands full with Chuck E Cheese.

PS: Him (or someone closely resembling him) gave a talk to my high school AP physics class c. 1994 about starting businesses. The school had a computer lab full of IBM PS/2 Model 25 and 30, and a derelict pile of PCjrs. The computers where absolute trash, but the teacher let it be completely unstructured. I think it had token ring and Novell 2. Most lacked HDDs so it was BYOF. I had a mentor for one year, a lady programmer from IBM Almaden.
From what I heard, Columbia will be even higher than Harvard. The cost of a PhD student is ~100k/yr (salary + tuition + overhead). Postdocs are more expensive.
So. You can't solve everything at once, and you can't solve anything by being the noble idiot in the iterated prisoners dilemma. India and China will figure out a sustainable replacement in their own time. They have a much larger population inertia and thus it takes more time to phase out and replace things. At the same time, Australia will eventually phase out and replace those mining jobs.
Criminalizing street drug use and distribution will probably fail so long as there is strong and inelastic demand — the kind created by addiction. This is why it is important to remove demand by effectively rehabilitating the users, educating those not using, and not facilitating continued use. There is no "safe use" in reality; all use of controlled narcotic substances leads to addiction, and poor health and occupational functioning outcomes.

On the supply side, even the death penalty can be priced in when the demand is strong. The narcotics business is one of death, not just due to the criminality and the death penalty in some regions, but also due to no labor protections, prevalent drug use among the producers and distributors, and clashes with law enforcement and rival criminal orgs. This has deterred neither the suppliers nor consumers. When even the probability of death isn't a good deterrent, a probability of imprisonment won't work either.

Speaking of death not being a deterrent to lucrative business, the narcotics industry is not an outlier. Industries involving underwater operations like welding, oil rig work, coal mining, logging, high-rise maintenance, stunt performance, mercenary work, experimental aircraft piloting, and similar all exploit death for large profits. It's just capitalism. So a solution to the drugs crisis needs to work within a capitalist world.
Adderall will have me overly focusing on one thing if I take a bit too much. Meth will have me sitting at the computer for 8 hours knowing I have other obligations if I take a bit too much. I'm also much more distracted and likely to hop to new random things on meth, versus hyper focusing on one thing.
That's interesting because if you set that out as a goal.. then what, right? What you'd like is on-going productive use once unlimited access is granted if your goal is balance. My inclination would be to be giving "homework" all the time, so the hours get split up somehow and aren't just spent of frivolous things once the privileges are acquired.
An SMS, email, or even physical mail only agent would be pretty interesting. With the socially accepted inherent limitations (text only, async, some level of misinterpretation expected) of those interfaces I'd wager it'd be possible to convincingly jump the uncanny valley today. Forcing to a comms path that's not just real-time chat affords a little more suspension of disbelief.

Particularly with growing token counts, you can have a pen pal, virtual colleague, or friend to bounce ideas off, return to previous thoughts, and chat to in cases where a real one may not exist or be available. A little ELIZA-esque, but adaptable to different needs.

My only concern is this would be be primed for misuse by people already experiencing isolation to further retreat miss opportunity to grow real social connections. Also, any semblance of privacy over those mediums would be a nightmare.
If I set up on the street right in front of your house, and started yelling inarticulately 24/7, you would not welcome my "speech" for very long I suspect.
Win 7 and all the previous ones...obsoleted software can still be used
Not meaning to diminish the role that 12 step recovery plays in the lives of many but given the impact that alcoholism medication had on my own life I can't help but mention it here. I used Naltrexone through The Sinclair Method and rewired my brain by continuing to drink for a year using the medication. I'm now multiple years sober. It took some extra time to deal with some emotional stuff, 12 steps will help you more there. But addressing the chemical addiction first worked well for me. See my comment history for more details.
The school had written rules against these sorts of disruptions. By permitting this behavior, Stanford is violating their prior written commitments.
Gluttony and moderation depends on the local culture. I've personally witnessed iftars on both sides of the spectrum.
“Methamphetamine (meth) is a stimulant. The FDA- approved brand-name medication is Desoxyn®.” https://www.dea.gov/sites/default/files/2020-06/Methamphetam... (pdf)

Adderall is regular (non-methylated) amphetamine, specifically a mixture of levo-amphetamine and dextro-amphetamine. There are minor differences in effect profile between methamphetamine and amphetamine, the biggest of these minor differences being in neuroprotectivity (it’s been a while since I’ve done the research but iirc amphetamine is mildly neuroprotective while meth is neutral or mildly negative, due to meth interrupting some metabolizing process). The major difference is that milligram-for-milligram, meth is 2-5x more potent than regular amphetamine.

The perception that they are very different is valid, though, because amphetamine is usually consumed therapeutically (lower doses, guaranteed purity, controlled dosing schedule, safer administration route) while meth is usually consumed recreationally (higher doses, unknown and often dubious purity, erratic dosing schedule, riskier administration routes). Injecting a quarter of a gram of street meth over a three day binge is much more harmful than taking 40mg Adderall extended release formulation by mouth every morning.
My sense of Vercel (mostly from working with NextJS) is that they are more interested in appearing to support an open source framework while making their product as difficult to interoperate with other technologies as possible in an attempt to lock users into their platform and hopefully pay for it.
As an end user, all I’ve seen from Google over the last few years is a search engine that can’t beat blogspam, a maps product that increasingly throws up bizarre directions, and a Google Docs product that has had no meaningful updates.

Google has been fumbling the ball even in things it used to lead in.
> Maybe left wing ideology is just more accurate and holds up better under academic scrutiny

Paraphrasing a Colbert quote (“reality has a well-known liberal bias”) is oddly apropos, given the thread topic.

The Colbert Report actively sought out guests/topics with unorthodox views and used speech (in the form of satire) to indirectly mock or support. And it worked as both a moderator of extremism as well as a way to humorously expose issues embedded in society.

And while it was certainly a “liberal” oriented show, they went out of their way to showcase conservatives with interesting ideas (eg: Ron Paul, who was essentially blackballed from other media at the time) and touched on topics like the Snowden leaks that would be absolutely verboten on Colbert’s sad and pathetic Late Night Show.

“I am very moral therefore I am the arbiter of speech” is what the left used to rail against. “Canceling” used to mean “Jon Stewart went on Crossfire and exposed the show for the society-destroying rage bait it always was”. What happened? (Yes Trump, but it has to be more than just him)
Some of these RC cars can teach a youngster like this a lot!

https://traxxas.com/news/how-to-rebuild-ultra-shocks
A tesla base model is 60k, which is just below the luxury tax. If you purchase this car, you'll get all the ev tax benefits without the luxury tax downsides.
this is absolutely the opposite how the citation game works - very often the first person to hit the buzzer gets all the credit and the people that come after and actually give a clean, rigorous, expository treatment gets absolutely zero credit/cites.
Totally, I came hoping for about 3-8 ideas that might change my life too. I can't be changing my life 51 times in one reading!
Yep, been to a lot of these. We call them "KT" sessions (knowledge-transfer). I shiver all down my spine when I hear "KT".

You basically take the person who's been working on something for thousands of hours most likely and has probably written a lot of work arounds and shortcuts to get their job done and they now have a 1 hour zoom session to brain dump their entire existance onto the poor souls who have to pick up the pieces when they are gone.

After that hour, they basically sign off with: glhf
I go back and forth. The better battery life and face size of the Apple Watch Ultra makes it more useful for me than my old Apple Watch 3. But I still just wear a $30 Timex Expedition a lot of the time.
Look, regarding setting cache-control headers, it's a professional tool, and it's going to be possible to shoot yourself in the foot with it. The approach to try to reduce that is to have a UI that asks people, "hey are you sure you want to do this potentially dangerous thing? It just result in these unintended consequences", but yes, ultimately allow people to do it. Otherwise, you're not letting people use what they paid for.
I wish Capsela was still around. I haven't come across anything similar for kids. https://en.wikipedia.org/wiki/Capsela
> It's about the ability to speak against those in power without excessive consequences.

"Those in power" is such a nebulous concept. In certain situations (legal cases that come before him), the circuit court judge has a lot of power. In others (Stanford campus environment), the students have more power than he does. Freedom of speech is fundamentally the right to express one's opinion—it is irrelevant whose interests that opinion serves. In the Stanford incident, the hecklers interfered with the judge's ability to express his opinion, while the judge's actions in no way interfered with the ability of the students to communicate their opinions.
The iPhone was the first to market for many things including an all-screen phone, multi-touch, full-web browser experience on a mobile device.
Link some of these mythical industry standard tools for the rest of us, please. And share how you’re operating them with a small startup that they’re working so well.
If only nuclear power were cheap!
and to add to that, pavo is often used just to refer to the food, the cooked meat, and guajalote to the animal.

Same for pigs (Cerdo, chancho) and pork (puerco).
We’re still set to sunset a third of coal power plants in the next 6 years. The economics just don’t work anymore.
https://github.com/BlinkDL/RWKV-LM this claims to work well with long sequences.
I always find it interesting that so many people that work in tech are quite into retro Luddite stuff. I’m not entirely not guilty myself - I love me some old school manual transmission sports cars more than the latest Tesla.

But I find genuine utility in having a smartphone and smartwatch. I have a relatively expensive mechanical watch but it rarely sees use other than date nights. The time is usually off, and I don’t care because that’s not the point. I don’t use it to keep time - that’s what my iPhone is for. Instead, the watch is purely jewlery, no different from my wife’s bracelet.

On the other hand my Apple Watch stays on my wrist almost perpetually.

I too hear about watches like the F91 or various g-shocks and get tempted to pick one up out of curiosity. But I know it’s going to be even less useful to me than my expensive automatic watch since it can’t even function as jewelry.
DoctorGPT brings GPT into production for error diagnosing
... do you not understand the meaning of what you're quoting?

It clearly says that control can be exercised even through indirect political pressure. It is obviously intended to also apply to situations where there is the superficial appearance of editorial independence but no actual independence.

Not biting the hand that feeds is a common instinct and it definitely affects what stories get published and how.

I'm pretty sure by the way that if someone tried to apply this same line of reasoning to, say, Russia Today, the same people up in arms about this would make the same argument I'm making.
I thought of that drug as well. The thing I remember most about that is if the addict missed the vein and injected it into the tissue, it would basically destroy the area. Addiction to drugs like this is horrible way to end one's life.
If being human is less hard, then how come GPT fails at it?
How old is this tech company? I find most smaller companies use well known open source frameworks + AWS services. It’s the big companies that do everything in house
I feel that the one with the great firewall filter might actually be better for some domains.
This is the first large piece of (GUI) desktop software I've seen written in Haxe. Not that I've seen all software ever of course, just thought it was interesting.

Source: https://github.com/armory3d/armortools
You should read Dean Martinez's letter, which describes the longstanding legal perspective on this. Although one can always raise philosophical questions and claim that free speech advocates are just trying to silence people that don't agree with them, this isn't really an accurate representation of their position. Actual free speech advocates (e.g., FIRE) want their opponents to be free to host talks without disruptive heckling from people with whom they (the free speech advocates) would agree.
Hey, I'm on the team at Vercel. What could we do better? Open to your feedback. Our platform integrates with 30+ frameworks (https://vercel.com/docs/frameworks), we directly fund the development of Next.js and Svelte, and we sponsor Nuxt, Astro, Solid, and more.
What are you basing that on? If that were true then binaries for different CPU ISAs would also be able to be statically compiled to each other.
Doesn't doordash make you tip before you even get your food? I noticed a long time ago it didn't matter what I tipped for delivery ahead of time, or at the register, the service I received was exactly the same. Begruding and slow.

I'm done tipping anywhere but restaurants, where it's after I get my meal and service.
I’m reading all these stories and think that most of them describe good engineers facing unreasonable interviews. Seriously, the processes being described are outright broken for most of these companies, and I would have walked out laughing at most of them. They are actively weeding out great talent. Thus, I would say the companies were the ones that bombed these interviews, not the engineers that were subjected to them.
I misspelled Saragarhi.

It was a garrison slightly north of Thal. I think it was renamed Fort Gulistan after the 3rd Anglo-Afghan War.
The difference between X is true vs. I believe X is true is irrelevant.

> I would probably have titled it "I think FTL travel might not be impossible".

Again, what does “not impossible” mean? The only meaning, logically, is “not impossible = possible.”

The fact that you’ve used the word “not” implies a two state system. LEM applies.

The original title made sense. Your proposed change to the title is either: equivalent to the original title or logically inconsistent.
I very much disagree. Some of the biggest changes in my life were driven by the reading or hearing of a few words which suddenly made everything click. These moments led to huge behavior changes.
Probably, but this is Australia we are talking about. It's a literal boomer welfare state.

Ok maybe a little bit of hyperbole but not that far off the mark, fiscal policy in Australia is dominated by preferential treatment for the boomer generations finances.

Ideally we would provide incentives in the form of a refund for all vehicles below a net carbon value per km (so including plugin hybrids, etc) that are priced below a given value, say $40k AUD or something, whatever is actually affordable mid-range car (not sure about specific numbers).

The idea is that hybrids are probably going to be at a disadvantage unless they are insanely efficient, BEVs will need to bring prices down to qualify for the incentive and generally speaking we end up with drastically more efficient -and- cheaper cars as a result.

However it's also not a great look if all the boomers are buying 911s instead of Model S/X etc so may as well drop the luxury car tax for full BEV vehicles so gas guzzlers are at a disadvantage across the spectrum.
Whoever it was I guarantee they didn't publish an academic paper. They shipped their product, then probably spent a few years fixing convergence bugs ;)
If you look at other posts by this user, they’re convinced Apple has real values beyond profit. I don’t think it does. Values are a marketing tool.

If it was legal and they could profit $300M by killing thousands of people they would do it.

Go read about the nervous systems of people failing from the solvents they use the clean the phone screens on the assembly lines. You think Tim Cook is up at night worrying about these people? He’s not.
Your understanding is wrong. In Portugal you are forced to go into addiction therapy or go to jail. You're not allowed to just continue to take drugs on the streets like in SF.

We shouldn't criminalize addiction but we certainly shouldn't let it proliferate. Forced drug rehab is an essential part of the equation. Without forced rehab, you get open air drug markets like SF which is making things worse, not better.

Today a drug addicted woman gave birth to a baby on the street in SF. It's all over Twitter. It's worse than a 3rd world country in this so-called utopia of progressive freedom. It's sick and disgusting.
> Addiction is a mental and physical health issue. Why on earth are the police involved in the first place? That's not what they're for.

The police is going to be the first one to interact with addicts because they should be working on dismantling the entire drug network and working on catching dealers, through catching addicts/buyers.
It is! Just not in Western countries sadly.

China is building a ton of nuclear at very good prices.
Alternative point of view:

Anti-China propaganda is so strong that some random dude who probably has never been to China nor Hong Kong and probably know very little about Chinese history and culture do all of this. This extremism is dangerous.