skysight-inc/HackerNews huggingface dataset:
> Yes, and the input includes state. ... state is an input.

This is the same argument that the member variables of an OO object are additional input to its member method and the method is "pure."

> how a component function's output can change given the same props and state?

This is the same argument that given the same values of the member variables of an OO object and the same method arguments to its member method, the method returns the same value.

All these are just twisting the meaning of words and concepts to fit the square React into a functional round hole.

> a basic rule that is one of the first things you learn: components should be pure functions with respect to props and state.

You can certainly mutate the state in a React component; otherwise, what's the purpose of [.., setXX] = useState()? If such a "rule" is so important, why don't React remove the ability?

BTW, the "rules of hooks" are another set of extra burdens. All these rules imposed on the programmers are there due to React's weak design.

> And that's the problem: with arbitrary code, there is no such thing as a distinct "block of code". One function can read value A, set it to B, then call another function, which sees value B, does something as a result, and then it renders. But that's wrong: value B has not been persisted to the DOM yet, so it should not have been read by the second function. Now you're in trouble, because your component is behaving as if both A and B are true at the same time.

If every renderer can detect every single update of a variable/state, the above is a non-issue. Function1 can set v1 to A. The renderer detects the change to v1 and renders it as A. Function2 set v1 to B; the renderer detects it and renders it to B. Function1 and Function2 can be called in any order; the rendering output is consistent with the state. The renderer might be called twice but who cares the eventual outcome is the same (certainly there're memorizing optimization to avoid re-rendering). It's really React's weak design causing all the out-of-sync rendering problems.
async fn handle_request(req: Request) -> Result<Output> {
let msg = decode_msg(&req.msg).context(DecodeMessage)?; // propagate error with new stack and context
verify_msg(&msg)?; // pass error to the caller directly
process_msg(msg).await? // pass error to the caller directly
}

async fn decode_msg(msg: &RawMessage) -> Result<Message> {
serde_json::from_slice(&msg).context(SerdeJson) // propagate error with new stack and context
}

how to capture the virtual stack when `verify_msg` returns an error? Do you have some lint to make sure every error is attached with a context?
Does anyone know what camera bag that is on that website. Peak design? Looks perfect for my usual load out.
I think the concepts underlying the whole LLM technological ecosystem are currently quite new, the best they can do is to use some refurbished familiar language, somewhat aligned with the aproximate (probable?) actual meaning in the the context of (freakingly complex), mathematical structures/engines, whatever you want to properly call an "AI".

"If it doesn't "believe" anything then it equally cannot be "convinced" of anything."

I agree with this, what happens when the thing runs/executes is (produce an output) something alike what a human would do with the same input, hence the conclusion about the thing being "convinced", "believing", etc.

But, it is a big but, the mathematical engine ("AI") is doing something, creating an output, which in contact with the real world, actually works exactly like the thing being "convinced" about some "belief".

What could happen if you could give it practical way to create new content without nothing but self-regulation?

Let's connect some simple croned configured monitoring script to an AI's API, and let's give it write permission (root access), on a linux server. Some random prompt opening the door a little,

"please check the server to be ok, run whatever command you'd think it could help you, double-check you don't trash the processes currently running and/or configured to run (just review /etc, look for extra configuration files everywhere in /), you can improve execution runtimes for this task incrementally in each run (you're given access for 5 minutes every 2 hours), just write some new crontab entries linking whatever script or command you think it could be the best to achieve the objective initially given in this prompt".

Now you have a LLM with write access to a server, maybe connected to Internet, and it is capable of basically anything can be done in a linux environment (it has root access, could install stuff, jump to other servers using scripts, maybe it could download ollama and begin using some of the newer Llamas models as agents).

It shouldn't work, but what if like any other of the hundred of emergent capabilities, the APIed script gives the model a way to "express" emergent ideas?

I said it in other comment, the alignment teams have a hard work in their hands.
And my GPU delivers 1TB/s. Massive difference <3

I wish we could get those kind of speeds on system RAM.
We still get the pro plan, which saves $10/month. But that's not good enough. Popular open source maintainers deserve their most expensive enterprise plan. Microsoft indemnifies enterprises from me, but they won't indemnify me from enterprises. How is that fair? Is this how they treat the people who make their platform great? Rolling out the red carpet and granting open source developers enterprise privileges is the only way for Microsoft to prove that it's serious.
I think the other part of the problem is no one in software wants to work in Huntsville.

There are numerous reasons why AL sucks.
Optimizing Ruby JSON part 2
I was expecting something about NUMA performance, temporal memory access instructions, shared versus global versus register memory on GPUs, SRAM, and so on. There's an article about all these things waiting to be written. This article is instead about memory-hierarchy-aware access pattern optimization, which is important, but not the whole story.
What is a rainbow cursor?

Do you mean the mac beach ball, or is it a misguided feature of the mouse?
To each their own, but “a handful of config lines at the top of every file” sounds like misery to me.

I guess I’ve just drunk the koolaid - but also, there has been a lot of work to make things more predictable, e.g. zeitwerk.
I think there will always be open platforms for us to exchange ideas where Copilot can't help. It's just now simple problems can be solved with Copilot directly, we can finally focus on implementing ideas and optimizing them.
Is ChatGPT Good at Search?
> Give me a couple months and I could recite strangs

Yes, most people had LA classes during college. But would you take a couple of months to relearn something that would be used only to interview for one job that you have no idea you'll get? That's certainly a reason why few people want to interview there.
Excellent point. In the end the rules are simply words on paper, they must be enforced. So the exact verbiage is less important. But the lack of ambiguity is extremely important. I'll give an example:

- In the EU, what can legally be defined as a "sale" price (e.g. 20% off till Friday! deals) uses very precise verbiage that states an item must be at a certain percentage higher for a specific period of time (typically 30 days) to constitute a sale.

- In the USA, the regulations basically say that companies should make a good faith effort to not deceive consumers with sale prices. It leaves defining what a good faith effort is as an exercise to the reader (states).

The end result is that you have a lot more misleading price info in the States, since all manner of questionably legal manipulation tactics are used and enforcement of this is lax.
I think you mean Oura ring.

I used an Oura for a while, and it is quite good.

The thing I say about all of them is...what's the value in you having better tracking?

Let's say it's off by 4% and that you got 4% less deep sleep last night than your tracker says? What are you going to do about it? You can't change the data from the past anyway. They're all "good enough" I'd say.
You admit you have no idea what the details are, yet you default to considering Apple in the wrong, for exploitation which you do not detail. Your comment is worthless.
my experience with garmin (vivoactive, not fenix) was that they had all kinds of precision and detail, but it also didn't even notice when i got up to pee in the middle of the night - just a straight line through the graphs as though i hadn't woken up at all. that was the end of my trust in their sleep tracking.
Ironic that you use it as an example, since Internet blew up exponentially the moment commercial activity was allowed.
Maybe not all of us, but enough + the media indulging it.
...sometimes people build things for fun, or as proofs of concept for iterative improvement on existing tools (which can then go on to inspire changes in existing and new mainline tools).

What does that have to do with (negative) mental health?
Where is it written that intelligent beings must create the means for interstellar communication, or any technology at all?

Imagine a planet with highly intelligent whales who have no way to manipulate their environment (hands) and no need to.
Animal agriculture isn't really required. Just humans coming into contact with animals or droppings will do. See: HIV, SARS, Zika, MARV, etc.

Clearly the solution is to exterminate all other species.
The Xiaomi Bands are quite poor according this tester[1]. Huawei Bands are slightly better but I guess you can't complain much for the price.

[1] https://www.youtube.com/watch?v=a_aS0Q188tY
I thought Microsoft got in trouble for abusing its monopoly power.
So if you have a developer who writes no code and closes no tickets, who essentially does nothing except come to meetings, they are just as productive as a developer who writes some code and closes some tickets? Obviously there is a difference there. Negative code is still doing something as well. Back in the 90s we used Personal Software Process from the SEI, and we measured lines added, deleted, and changed. (as well as defects removed and added)

It becomes clear that simple quantity of code and tickets is not enough- but it's also not nothing. Part of what is missing is quality and assessments of task complexity. Part of what is missing is the other parts of the jobs, like design and code reviews.

I don't think it's hopeless, and can at least be used to look into why some people don't seem to make much at all.
I need this one for everyday to work more productive. It lets me open exactly what I want with just a click.
I recently got a Fenix 7, but not for sleep tracking purposes. I find it ok. I definitely think it isn't great at measuring wakefulness at night, but I also have a very low HR and high HRV (while awake), which so this causes the margin for error in the device to be very low.

As I usually say, all of the devices are good enough. You're getting historical data about what your body did. You can't go back and change it anyway. I don't see real value in knowing my historical sleep data.
It has dependency injection
Yes, product tying is one aspect of abusing monopoly power.
Ball?
By now, this kind of open source rug pull is becoming routine. I'm really not sure how I feel about it. I'm thankful for all the free stuff, and I can't fault anyone for trying to make a buck or two.

I'm a huge advocate of free software, but mostly for personal use and individual freedom. So I don't feel like the loss of Scylla is a great loss in that respect. I can't imagine a lot of individuals are harmed by this move.

But still, it makes me distrust corporate "open source" more and more.
It's not production ready but, Python has had http.server for a long, long, long time.

https://docs.python.org/3/library/http.server.html#module-ht...
I take a 1000mg metformin tablet twice a day. I wouldn’t call it huge. It isn’t significantly larger than my daily Allegra and is much smaller than the vitamin capsules I take daily.
To/from what sort of devices could the GPU read or write at 1TB/sec, besides main memory?

The fastest consumer SSDs top out at several GB/sec (I guess with massive hardware RAID they could be faster, but not sure if they’d be 1TB/sec fast).

Even a network adapter that does 10 Gbit/sec is only recently becoming slightly more common for the average consumer. Not sure if any consumer adapters in the 10 or 1Tbit/sec range exist at all.
Discussion (157 points, 12 hours ago, 203 comments) https://news.ycombinator.com/item?id=42451130
I also deplore UPF but:

- "yet" sound like "again" in my ears. If that was the meaning consider you are on HN and what you see here had a selection bias for scientific or technical stuff. Once in a while there’s also breakthrough on genetic crops. Not much grandma stew receipe but I bet many likes it, it’s just not the typical subject here.

- many people choose not to eat egg for their own reasons. They may agree UPF being bad but that won't change what their position on other stuff. You’re free to give you opinion but it probably won’t change any needle in their view

- raw eggs are unprocessed in certain countries, but in others they are washed with water, then a detergent and then a sanitizer. That may not have health effect but questions the "processing" overall. This treatment make required a cooled-regulated temperature who add to the energy bill all along until eaten. Which the foam probably need too :)

- raw eggs eating isn’t frequent, people cook them at least. But the vast majority of consumed eggs is processed within various sweet or salty foods.
You’re permitted 10 files - total - that can be editable at any one time.

For simple things you can have all your components in a single file and make do but I rather dislike working this way for a ton of reasons.

I’m thinking about solid works when my fusion license expires. At least I’ll own my files and be able to manage them on my own ssd.
"Because we like money."
>Your body is also not designed to lose weight. And will quickly adapt to the reduced calorie count and halt weight loss.

thermodynamics be damned
I've never gotten a death threat on bluesky.
You don't want to use uvicorn with synchronous views though or you're limited to a single request in flight.

If for some reason you need to mix sync/async views (maybe during a migration) you can use uvicorn as a gunicorn worker type, and run multiple workers. But your async views will still scale much better.
Amazon Delays Return-to-Office Mandate for Workers
And yet, Jeff Dean is significantly more productive than I am.
Sorry for a basic question-- does it require a paid Figma subscription?

I hear stories about Figma being expensive and dark patterns to bump up the charges. Keeping track of monthly subscription spend across services has become a drain. Hence the hesitation.

Otherwise this is an excellent use case. I sometimes wish I could create my own vector illustration library - mostly general purpose gepmetric or abstract shapes that we don't find in libraries like PowerPoint. Thanks.
Currently: https://news.ycombinator.com/item?id=42453341
Ask HN: Should I continue as a developer or transition to indie creation?
I have 7 years of experience, mostly in JavaScript/Node.js, but I coasted for years and now feel unqualified for senior roles. I was recently fired from a senior developer job after 3 months.

I want to work on passion projects (e.g., indie games, open-source contributions, compilers, or graphics), but I need a stable income in the short term. I also dislike corporate culture—standups, bureaucracy, and endless Jira tickets—but I’m unsure if indie work will pay off.

Should I focus on sharpening my skills (React, system design, Golang, etc.) to land a solid developer job and fund my indie ambitions? Or should I take the leap and go all-in on building something solo, even with financial risk?

Would love to hear from others who’ve faced a similar situation. How did you balance stability and freedom? What worked for you?

PS : This was very long rant about my situation (I was fired yesterday). I have used ChatGPT to make it concise and to the point. I wish to work on things I find interesting, but I am forced to act like a professional developer, because money.
I'm of two minds about it. On the one hand, the verbosity is arguably noise if you are first learning to program, or just want to write something quick, so I can see why people dislike it.

On the other hand, viability, classes, and "staticness" are all fundamental structural concepts in Java. Hiding them for a special case is sort of like lying, and, in the long term, I can actually see this special case causing more confusion for new learners. It's sometimes better to be upfront and transparent and force your users to work with the paradigm and semantics they chose to adopt, rather than pretend it doesn't exist. If Java had been designed to allow for top-level functions from the start, it'd be a different story. I think special casing is a generally bad way to evolve a programming language.
Learning to ignore is a powerful tool.

A few years ago I went down a spiral and wasted a couple of solid hours on a financial sub Reddit with a master troll who just wouldn’t stop gaslighting me despite my attempts to build a rational discussion. I was so incredibly frustrated since it was on a topic I happen to be very qualified on. I remember refreshing the screen every 5 seconds to see if their new reply would finally be acceptable.

Then I snapped out of it, reflected on the silliness of the situation and decided that from that moment on I would allow myself to ignore comments, whenever I wanted. Seems simple, but it has been quite a powerful mental tool.

Even here on HN many times I deliberately choose not to engage (comment negativity is not even a requirement for the ignore, sometimes I just decide I don’t want to reply to even a thoughtful question that someone might ask me, ha!), it’s quite powerful having the ability to just ghost another party, makes me feel I have superpowers (I know it sounds silly).
Some people write programs that do more than simple scripts
I don't know what the solution is but I don't feel like making it easier is going to be helping either. I'm not entirely sure if this toxic culture would go away as soon as people have green cards. After all, this culture is alive and well in the countries these people are from.

The bad culture isn't just due to being locked into a job or it being hard to get a new job. It is a core component of their belief system. I see this as soon as people from these places get promoted to a manager - they literally turn into the thing they hated the most on the first day! It seems to me to be completely cultural.
> ASN.1 DER, BER, or OER?

Or XER or JER! One of the brilliant things about ASN.1 is that it decouples the data model from the serialization format. Of the major successor systems, only protobuf does something similar, and the text proto format barely counts.

> Implicit and optional can really break compat in surprising ways

Any implementation of any spec can be broken. You could argue that the spec should be simpler and require, e.g., explicit tagging everywhere, like protobuf. Sure. But the complexity enables efficiencies, and it's sometimes worth making a foundational library a bit more complex to enable simplifications and optimizations throughout the ecosystem.

> Then there are the machine unfriendly roster of available type

Protobuf's variable-length integers are machine-friendly now? :-) We can always come up with better encoding rules without changing the fundamental data structures.

> Finally free tooling doesn't really exist.

What do you mean? You use ASN.1 to talk to every server talking SNMP, LDAP, or the X.509 PKI. Every programming environment has a way to talk about ASN.1.

> The connection to the OSI model also didn't help.

Agreed. The legacy string types aren't great either. You can, of course, do ASN.1 better. No technology is perfect. But what we don't need, IMHO, is more investment in "simple" technologies like varlink that end up being too simple and shunting complexity and schema-ness that belongs in a universal foundation layer into every single application using the new "simple" thing.
Cool idea for a product but you either have to be a serious airhead or just lazy to miss or ignore all the low battery notifications. Also, that case should have a spot to store the back plate.

> Just discard the AirTag's back plate
How did you submit a doi link without it being changed?
I've been using this a bit. I dig it! I think it's a great start to an app.
There is rulemaking process that takes time. It has to go through notice and comment period, withstand lawsuits, etc. I agree with your overall point though, that this admin was utterly spineless and useless.
We are seed stage startup, we post salary range 130-180k + competitive equity for mid to senior level fully remote.
FYI supermaven has joined Cursor

https://www.cursor.com/blog/supermaven
> Just an aside, it's really bizarre that it's transliterated as Mengzi in the article.

Scholars over at least the last 15 years have been trending towards preferring Mengzi and Kongzi over Mencius and Confucius. 孟子 is "Mèngzǐ" not "Mencius"
Weird lickable lollipop invention lets you taste in virtual reality
Governor of Maryland posted a video of Orion's Belt claiming they were drones.
A local news station posted a video of Venus claiming drones.
There's a lot of baloney mixed in to this event.
Proton batteries: An innovative option for the future of energy storage
Nvidia Launches Jetson Orin Nano Super Developer Kit with 67 Tops AI Performance
FOIA – CIA – Plan 9 from Bell Labs
Nice project! I was recently exploring LSPs for SQL. I have an idea to extend their functionality beyond static analysis into runtime data assistance, blending both static and runtime checks.

For example, given these files:

-- file1.sql
INSERT INTO authors (id, name) VALUES (42, 'Lolo'), (43, 'Tony');

-- file2.sql
INSERT INTO posts (id, title, content) VALUES (17, 'Post Title', 'Post Content');

-- file3.sql
INSERT INTO author_posts (author_id, post_id) VALUES (42, 17);

Imagine an LSPd that scans files, parses incomplete or broken SQL, and suggests data in real-time. For instance, while typing `VALUES (` in file3.sql, it would auto-complete `(42, 'Lolo') or (43, 'Tony')`, inferred from file1.sql.

There are a lot of caveats (like handling insertions, deletions, or the order of operations), but even partially reliable, plausible suggestions would provide enough value.

In my current project, I generate TypeScript for static checks and validate insertions at build time. However, an LSP like this could streamline the data insertion process and reduce the need for admin dashboards.

I’m not aware of any existing LSP servers that function this way. I’m interested in exploring this concept for Kuzu/Cypher since my project data is graph-like, but the idea should be applicable to any data store.
Pilet: Portable Cyber-Deck Powered by Raspberry Pi 5 and Dual 8000mAh Batteries
> People were 'forced' into vaccinations

"Take this novel vaccine primarily for someone else's benefit or lose your job: it's your choice, you totally aren't being 'forced.'"
You shouldn’t try any modern programming language until you’ve mastered GOTO and GOSUB and know why lines are numbered in multiples of 10.
>Could you imagine the unit cost today, if we kept building Saturn V in an iteratively improving process?... the efficiencies from mass production and weight savings from miniaturizing avionics

the Saturn Vs were hand-welded but large numbers of welders; we can't even build one today because there is no workforce of skilled welders remaining. And avionics I don't think contributed substantially to the Saturn V's weight.

I think SpaceX's iteratively improved process is what produces the capable affordable machine.