skysight-inc/HackerNews huggingface dataset:
They taught your sections and did your grading, for 7/11 clerk wages. You are apparently very ignorant of how your university operated.
Ask HN: What will everyone do if everything is automated?
This is a question that I feel comes up a lot, and it's not often engaged with seriously. I feel sci-fi doesn't really engage with the concept (you'll get super smart AI, but somehow humans still just have plenty of jobs). Technologists frequently respond that we are very far away from being able to automate all jobs, but this assumption ignores the possibility that we do automate everything -- and also, AI continues to advance faster than even AI researchers predict.

In the past I used to think that with all jobs automated, we would just all devote ourselves to higher pursuits like art, science, math, etc. However, now I think this claim didn't give AI enough credibility -- it's totally within the realm of possibility, and even near future possibility, that AI easily exceeds human performance in art, science, math -- all the things we generally think of as uniquely human and morally valuable pursuits. Recent LLM progress should make this point very clear to everyone.

So. Since I don't see this idea being taken too seriously in society, I thought we on HN could take a stab at thinking through the possibility.

For example, here is one possible outcome I can envision. Pre agricultural revolution, all humans were hunter gatherers who simply did not have to work that hard (I think estimates I've read said that people spent maybe 15 hours a week hunting/gathering). In this time, as far as I understand, people's lives largely revolved around things like their local community, relationship with others, culture, and leisure (I am not an anthropologist or historian, so I may be totally correct here). Is it possible our lives become more like this? Without jobs to do, without the ability to, say, make meaningful advances to science, with governmental decision making being better handled by AI...do we spend our time building and forming meaningful relationships and communities with others?

Would love your thoughts.
The usual cargo cult.
Subtracting two chars produces an `int`. C generally promotes all smaller types to `int` before doing arithmetic, and `int` is required to be at least 16 bits. So I think the code you linked is correct?
Why does the Active-Surfaces website explicitly call out that it’s unavailable in the USA? That’s the site for the startup developing this tech, linked from the article.

Active-Surfaces.com

——

The Active Surfaces® brand is not available for import, purchase or distribution in the United States of America and territories.
Any and all product claims and descriptions contained on this website or in other sales or promotional materials regarding the Active Surfaces® brand, including claims and descriptions of its public health benefits and antimicrobial or antibacterial effects, are not applicable in the US states and territories.

——
If you're interesting in making gears, there's Gear Technology magazine: https://www.geartechnology.com/

Electronics Design News, EDN is a publication of long standing: https://www.edn.com/
My mistake, 6 and 7 would also be an option.
That use-case sounds a bit similar to Webmentions: https://en.wikipedia.org/wiki/Webmention

See also... The See also section in that article :)

You say it would be server to server, but are both publicly reachable?
Ag and food tech industry news: https://agfundernews.com (disclosure: I work for Agfunder)
If people did generally put the gate only at the employer, where they randomly hire and then fire their way back down to competence, people would complain about that too. And with some reason.

A further lemma: No matter where the gate is put, a lot of people will complain.
> I usually just tap my toes quietly within my shoe

Right. The conductor will hate seeing you tap your feet. So just don't let them see.
Perhaps the issue is on your side because you don't ever even consider eg the precationary principle?
> "why can't just just put your millions of events into a service bus and write some backend to react to them to update your aggregate". Yes we CAN do that but why do that it's 15 lines of SQL and 5 seconds compute

Do people actually do this? I feel like this is classic Occam's Razor. This is one of the biggest things I do in SQL and I couldn't imagine the time and effort to do it with a separate service.
> If you were to get rid of staging would you stand up your entire backend every time you made a preview environment? Does that include replicating databases or would you just use seed data that may or may not resemble what's in production?

What I've seen done is that the staging environment is skipped, but instead concentric releases are performed on the customers. So released code goes first to a small group of users, and then widens from there if everything looks good.
Most likely it's about running the turbine at a more efficient power setting, which would be a higher power setting.
I like the idea of ephemeral / preview environments, but I'm a bit fuzzy on the details. For a microservice application, would you have to spin up dedicated, ephemeral instances of all the components of your app? Isn't that inherently cost-prohibitive? Would some components persist, like in traditional staging environments? I'd love to see some case studies of this concept in action.
Yes, but making it really easy by giving the exact openssl (or whatever) commands would be super useful if you needed to do it.
Fetching 50k rows is a nobrainer, neither speed nor memory wise. Relational db-s are super fast when used properly
The Chatbots Are Coming for Google
Google famously tried allowing app keepalives to be synchronised... The scheduler allowed a wakeup in 'approximately' X minutes, and the OS would wake up and run all apps callbacks at once. If any app needed a wakeup at a precise time, then other callbacks at nearby approximate times would be run at the same time too.

Overall, the thought was that wakeups are expensive, wakeups that involve the network are particularly expensive, so might as well run them all at once (they tend not to be CPU bound - often much of the wakeup handler is spent waiting for the network to connect and send a packet or an ack to arrive back).

This turned out to be a very very bad idea. All it takes is some app to have a 'wake up exactly on the hour', and now all other app callbacks will also run exactly on the hour. End result: Mobile networks get 10 million phones all waking up within a few milliseconds of one another, and everyone wanting to connect, and the whole mobile network fails because it was never designed to have 10 million phones all trying to connect within a few milliseconds.

That idea was scrapped.
Home prices falling in Sacramento faster than nearly any U.S. metro
Which regulations should we remove then if it is that easy? We tried to solve the climate crisis with nuclear energy 15-20 years ago. It was the right thing to do at the time but it did not work out, instead renewables have exceeded all possible expectations.

Lets embrace that instead of living in the past and hoping another 40 years of taxpayer and ratepayer money into the blackhole that is nuclear is a worthwhile exercise.

All the current projects have gone horribly:

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

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

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

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

https://en.wikipedia.org/wiki/Virgil_C._Summer_Nuclear_Gener...

https://www.utilitydive.com/news/nuscale-nuclear-reactor-smr...
Sure, if you pour chlorine all over your wet wounds you'd probably have to let it dry before having a chance at healing. I'd advise against taking a gaping wound into the pool tho
Preview environments are a lot like microservices in that they’re much more of an organisational tool than they are a technology tool. They’re great for organisations with many independent parallel streams of work owned by different people but they can be a headache for smaller teams where non-engineers are thinking about the product as a whole, not individual pieces.

I made the mistake of bringing preview environments into a small company and quickly discovered I was pushing responsibility for reconciling different streams of work onto the non-technical people.

Traditional staging environments that sit as the stage before production are problematic because they become a living thing that has to be maintained, but there’s a middle ground between preview environments and traditional staging environments: one staging environment that is ephemeral specifically for the next release, with the ability to spin up more if a situation necessitates it (e.g: a long term project that needs to be tested while other streams of work continue).
Gas is not a global market like oil. Gas is traded internationally only in two ways: one is if you have a direct pipeline, e.g. from Russia to Europe. That's a very localized market. The only real global market is liquified natural gas, transported by those ships with giant spherical tanks, requiring specialized terminals on both ends. That's way more expensive than pipelines. The US exports a fair amount of LNG, especially right now to Europe, but for its domestic gas it pays far lower prices than LNG, and significantly less than most countries with less abundant gas resources.

I wish we would move from gas to nuclear since gas has a major climate impact, but low US gas prices do make that more difficult.

The US also happens to be especially well situated for solar and wind, making life even harder for nuclear. That comes with some bad news too, because we don't really have great storage solutions yet and we're terrible at building long-distance transmission.
> This is a dishonest piece. [...] If you think this game through, you'll still end up with super wealthy outliers and bankruptcies, but the players in the game actually have some agency.

You basically admitted that the zero sum property has little bearing on the outcomes we're scrutinizing here, and so the argument is ultimately the same. I'm not sure how the piece is dishonest simply because it dispenses with an apparently irrelevant premise.
Your outlook on life is your responsibility alone, and I'm not speaking from any position of authority. But I do want to point out a few things:

> Our outlook for the future has never been worse.

Similarly to the other commenter, my parents' generation ate tree bark to survive famines, and their parents' generation lived through people wanting to exterminate them wholesale. Whatever doom and gloom lies ahead of us is more likely than not easier than this.

> When billionaires can piss away 44 billion dollars and cause all sorts of chaos just because they feel like it

The combined net worth of all billionaires in this country is around $4T. If you confiscated all of their wealth (even ignoring the fact that you cannot liquidate all of it at once and hope to get even half of that amount), it would pay for less than eight month's worth of Federal spending alone, let alone state and local government spending. It would pay for three, maybe four years of Social Security, or five years of Medicare.

Elon being worth $150B or whatever (which again, is not real) is really not that much money in the national scheme, and he doesn't have any power over your life or the lives of your descendants.

> people in my generation are forced to work two jobs just to barely make a living wage

I live in an area where my barber, with no college education or wealthy relatives to inherit from, owns ten acres of land and is saving to build a house on it while living in a mobile home with his wife and children. The catch, of course, is that it's an area of the country that is anathema to college-educated millennial/gen-Z types, with more Walmarts than Whole Foods and state politics that they don't dare affiliate themselves with.

My point being, there's opportunities for a good life out there if you broaden your horizons.
That old C code relies on integer promotion to avoid the overflow problems that occurred in the m68k asm.
I'd love to see the data on "insignificant compared to the administration," because it doesn't fit my actual experience in any way. (I'm not saying you're definitely wrong, but I hope you might slightly re-evaluate your priors here.) And no, many staff researchers don't bring in their own funding; like PhD students they're funded by a combination of the university and grants (which they often help write).
While the servers might keep the customers, it’s the chef and perhaps the owners that make the restaurant happen. And this is a terrible analogy for grad school as that staff is paid for shit in the states. Are we going to give ta’s $2/hour and expect their students to tip them?
Yeah. And it's also not that impressive. We've had what they call "preview environments" for a very long time and at my previous companies too. With GitHub and AWS/Cloud it's trivially easy to do.

And like you, we have both "preview environments" and staging and for the exact reason you've highlight. I'm rather skeptical of the company behind this product now since they don't seem to understand the difference and really overselling something that's quite common.
> I dispute that it has "always" been broken -- the bug is to do with ordering non-ascii input data, when char is unsigned.

No. As the article notes, there's also a bug when char is signed (the subtraction may overflow, which is UB for signed char, and additionally produces the wrong result even assuming defined overflow). It's just more obvious when char is unsigned.
Nowadays, you can't make any demand if you don't work because of a choice of yours.

workers (should) have unions, the ability to go to strike, and the political position to ask better

The anger of the general public is moving on from high unemployment rates to low wage for workers.

- Have no job ? Nobody cares anymore since service industry needs a workforce (even if you're qualified in any other field)

- Have an underpaid job ? You can have a political impact nowadays.

Also, jobs allow you to have better jobs in the future. You build experience, and working in some companies, like Amazon, allows you to follow a university course, as mention in OP's article.

If you're not doing this for you, you should just have a job to be able to flip off abusive bosses.

>Jobs that are available to most people don't generally pay a living wage anymore

I don't think it can be a long lasting trend. Check out China, where ppl are protesting. And check out what happens at Amazon in the USA, where the high rate of resignation worries management
https://news.yahoo.com/amazon-burns-workers-quickly-executiv...
Not in the age of microservices.

Language constructs only help if there are no other applications accessing the same resources.
Are you not aware that grad students teach sections, grade, and do most of the research work that brings in grant money? All for near-poverty wages. It's astounding how so many people are so ignorant of how universities operate, despite having attended them.
Yeah. A big part of Against Method just examines proposals for universal scientific methods, and points out cases where they would have failed. Galileo was the major example but IIRC there were several others.
I'm glad to finally see a non-Iversonian array language. I've dabbled in J a bit, and it is pretty nice.

For those who haven't used array languages, the easiest comparison would be NumPy. NumPy is like a small array DSL on top of Python. Instead of having to manually iterate over arrays, you can (kinda) treat them like a single item; NumPy handles the details of iterating.

I could deal with how terse J (plus APL and BQN) can be, except for the sheer number of operators. I've heard that you can figure out what they do by their shape, but that doesn't help sort through 200+ operators (aka primitives) on NuVoc.

There are definitely some interesting thing in the Iversonian languages that aren't really found anywhere else. For instance, you can use a modifier (aka adverb) to swap the order of parameters to an expression. You can also convert an expression to a scan (aka reduce, IIRC) by adding a modifier on the end.

Apart from the syntax, GPU acceleration for an array language is an absolute slam dunk. Given how much people pay for K/Q licenses to use for low-latency HFT, I'm baffled GPU acceleration wasn't ubiquitous the second GPGPUs came out.
>Which languages do you normally work in?

I work mostly in Java, and started to do it in C/Ada, but anything Turing-complete should be fine.

>Any recommended reading about this topic/approach?

I learnt it implementing HLA norm for distributed simulations (https://en.wikipedia.org/wiki/High_Level_Architecture), but most of HLA is about distributed work synchronization, if you stay local you just need to retain the idea of advancing the time discretely from software, instead of having it flow uncontrollably with hardware ticks.

Here is a previous comment I made on the same topic:
https://news.ycombinator.com/item?id=22390113
You can find links to code in my (other) comment in the linked InfoQ article.
In particular you can try out clocks/schedulers provided by jolikit's SchedulingHelper class, with various kinds of SchedulingType: HARD (time = f(system_time)), SOFT_HARD_BASED (virtual time trying to keep up/down with a HARD master clock), and SOFT_AFAP (virtual time jumping instantly between works).
The entire financial structure of higher education seems like a pyramid scheme.
To bring it back: Governmental policy vs individual choice? If I, a consumer of electricity want to reduce my GHG impact, I can only lobby the source of my electricity so much. Rooftop solar might be less efficient than gridscale for the system, but it's something the individual can do.
FWIW: sysfs tried to do this already. In general each node corresponds to one "thing", with a reasonably standard set of stringification schemes, and with a path that acts as a self-describing schema. Obviously in practice it ends up that every driver or subsystem ends up doing funny nonsense (e.g. uevent nodes have their own sub-schema with shell-style variables, etc...).

You can't really prevent that. People do funny nonsense in other self-describing data formats like JSON and XML all the time too. There's only so much you can do with a framework.

But /proc is... extremely old, and very heavily used by userspace. In practice it's never going to change.
I've been working on a library[1] that aims to have fairly complete support for the procfs filesystem, so that you can hide away these annoying parsing quirks. But for some casual usage of /proc/ where you only need one tiny bit of information, it's often better to just roll your own parser instead of bringing in a 3rd party library. It's these small one-off cases that would really benefit from a standardized serialization format like you propose.

[1] https://github.com/eminence/procfs
People have asked it to solve LeetCode problems and solves then. Those people also suggest a minor modification to the problem that a novice programmer could do and it fails.
I would suggest playwright or puppeteer myself. It uses the dev communication channel for chrome(ium)/firefox and works much better, even if you're limited to JS... there's a Deno port of puppeteer if you want to avoid some of the node.js bits for (imho) a cleaner experience.
Have them find Difficult Problems they are working on and ask chatGPT for assistance/ advice/ solutions.
Yep. I've never screwed up hiring people just by having a technical conversation. It just never goes wrong in the sense of me hiring some person who couldn't learn to do the thing I wanted. The only bad hires I've had were motivational, people who decided to do other things with their lives despite knowing how to code.

With any modern tech-heavy business, there's just so much industry specific jargon that if you hadn't done whatever was on the CV that led to the interview invitation, you would get found out in a short conversation.

I hear people sometimes run into some smooth talker who knows all the words and none of the actual skills. Never happened to me, and it's so far from it I can't really imagine it.
I think it really depends on the language and project size. Any new project tends to make the IDE barely usable while it's indexing. Compared to, say, vi where everything is instant and there's no visual lag, I'd say it's slow. Even on 16 core CPU with 64GB of RAM and some IntelliJ JVM tuning, I still get some lag/stutter.
Azure AD is 6$/mo per Premium P1 user as far as I know, but I think yrro is talking about Azure AD B2C and that's free up until something like 200,000 monthly active users (not affiliated with Azure but their calculator is my start page)
Even if this were all synchronized, you’d still need to have all the apps memory state available - either taking up loads of RAM or requiring a lot of expensive paging.
The difference between programing for work, where with deadlines speed is of the essence, and programming for fun, where I take my time and don't stress if it all fails, is vast for me.
The later feels the same as any hobby while the former is mostly a source of stress as I have to leave many things in a undesirable state.
if you only limit yourself to the standard library, you would need to unwrap and rewrap the error - although admittedly since Result<T, E> is a type like any other, you could add an extension function (through a trait) so that you can add context more easily. If you use use one of the error handling libraries though, you're in luck - adding context is usually a single function call away:

//without context
some_function()?;
//with context, using anyhow
some_function().context("function returned error")?;
//with wrap_err, using eyre
some_function().wrap_err("function returned error eyre")?;
For now.

So yeah, this is probably not the year to be signing a deal with Apple.

A different comment says that this deal is smaller than what the NFL wanted. You should pay attention to that. The decline is probably already happening.

Anecdotally, I know a lot of people that stopped caring so much about the NFL during the pandemic. Including the biggest football fan I know, who put his kids' names on the Packers season ticket list when they were born, and owns a share of Packers stock.

My own team, the Bears, have completely lost my interest. They've been fighting with the city of Chicago for as long as pretty much anyone can remember, have a clueless and unaccountable ownership, and are now going to move out of Soldier Field for some crazy football village they are going to build in the suburbs. And for the most part, people in Chicago feel like "fine, you were never going to be happy, build your own stadium and then you'll only have yourselves to blame when you hate it". Individual teams and the league as a whole are squandering the goodwill they've built up. But right now, the $$$$ is still too big to notice. Come back in 10 years and see if that's still the case.

The deal Apple actually needs is NWSL, not the NFL.
Oh. I agree self-service, for example, can either be generally better than dealing with a person (e.g. getting cash at an ATM) or something of a mixed bag (self-service checkout). However, cutting back on room service seems like a general win especially if you'll service rooms on request. After all, there's such a thing as serviced apartments that explicitly only service once a week unless you pay for more.
piping to the shell might be somewhere in the middle but node's npx is just asking for trouble. You type `npx cmd` and it downloads cmd. Which means any typo could be death
It doesn't do that for Rust code being called from UI.
Just read this

http://www.paulgraham.com/wealth.html
Common Webhook Vulnerabilities and How to Mitigate Them
Christmas day is getting closer, Ruby 3.2 is almost here