skysight-inc/HackerNews huggingface dataset:
There was also a different proposal that allows objects to be extended: https://github.com/tc39/proposal-bind-operator

Personally, I don't use classes much, but sometimes I think free functions are a little too hard to find, so I tend to experiment with the following pattern.

interface User { … }

const User = {
rename(user: User, newName: string): User { … },

getDisplayName(user: User): string { … }
}

const renke: User = { … }

console.log(User.getDisplayName(renke));

Which makes finding an operation for a certain type easier to find (just write User and trigger autocomplete).

The alternative is of course having renameUser (or userRename) and getUserDisplayName (or userGetDisplayname). The prefixed version would make autocomplete easier also.
Anything looks better than nested calls once you have started to get used to the benefits of reading left-to-right. It's one of those pains you don't realize you have unless it suddenly goes away.
Big tech is more focused on becoming software and automating everything than people. As people become numbers and targets and nothing more than dumb robots with opinions, they become more replaceable. Big tech leading the charge for woke mob diversity. Start your own company, run it, eat big tech.
I'm sorry to hear that, if it's any consolation I've deal with loneliness a lot too. I've decided to throw myself into new hobbies this year to try to remedy that. I hope things get better for you
I think the real problem here is the way it happened. Apps just stopped working about a week ago. There was no communication from Twitter whatsoever until this TOS change, and I wouldn't really call this "communication either"

It might make sense to stop supporting third party clients, but announce that something like that will happen instead of doing it unannounced and then ignoring all questions about it. It's their API, so they can do with it whatever they want, but this is really a dick move.
A significant percentage of Google’s workforce are temps, vendors, and contractors (what they call TVC).
They are approximately more than FTE. I believe the stats are 150,000 TVC versus 144,000 full-time employees.

How is Google juggling this reduction in force? Are we talking TVC or FTE?
Engineers are probably a lot more expensive than a DEI employee
i rent a room from 2 ladies who are ski instructors in their early 60s. They seem to have a lot of friends and party a lot ( i get invited to some) and go to a lot of trips and play/ski/camp in the mountains here in the colorado. They are leaving this weekend to party somewhere in streamboat springs.

I guess its important to have hobbies and put effort into weaving those into your life ? Its also easy to find other people who are into and hang out with them?
Meanwhile at Tesla ..
One Dockerfile Is All It Takes: How I Fell in Love with Bake
Pipes are cool but this falls pretty hard on the side of adding too much cruft to the language.
The best 30% are in the top 30th percentile and the worst 25% are in the bottom 25th percentile
simple, ChatGPT will write all the code now
If you want to find out who controls you, think about whom you cannot criticize.
The Player/Coach Fallacy
Method chaining is better, but you need the library/class/ code to support it. If you got a bunch of function it can’t help you. Pipe operator is useful for when you use other people’s code.

On the other hand, pipe is less useful when you don’t have partial application of function built-in. So yeah I think this is not worth it.
Well, to play devil's advocate, that's 10x in the
context of finding product-market fit. And that
really matters, whether "good" engineers want to
believe it or not too.

Well said. It definitely matters.

"Good" engineering is finding the optimum balance between various competing factors: time-to-market, cost, tech debt, etc.

(There are plenty of "good" engineers who try to perfect everything and never actually ship anything. We have all felt that temptation, I'm sure...)

But I think the core issue still remains. Management can't properly balance these competing factors because they can't be elbow-deep in the code.

I think the "debate" around 10x folks is a bit silly,
and by hard-earned experience, I've learned to question
the motivations of the folks who deny that such engineers
exist

Haha. I usually question the motivation of those who say that such engineers do exist. However, that's because they usually fail to consider any of the nuances (team fit, luck, circumstance, etc). You definitely do not fall into that category; I think you really describe it well.

My experience of 10x folks is more like: can you live
with them, will they be a boost to the team overall,
or will they use their 10x to bring down folks around
them (consciously or subconsciously)

Amen. I worked with one single programmer in my life who was perhaps a true 10x. However, he was a lot. He was very hyperactive and on the autism spectrum. Social grace and norms were totally alien to him. He really crapped on other programmers. However, he was actually an extremely sweet person at heart! Just lacking in the filters and restraints that neurotypicals have. We eventually reached a good working arrangement where he could be his eccentric 10x self and a mortal 1x peer engineer like me worked closely with him to gently rein him in in ways that would have been impossible for management. For a couple of years there I thought we were a really good team.

But he definitely wasn't the kind of guy you could just throw onto any old team without a care. His 10x did not come for free.
Openai is probably the highest status employer among my network, but I don't know any university students
> Deep nesting is hard to read […] Temporary variables are often tedious

I’m a little torn because pipes might be pretty nice, especially for prototype code and small projects. One thing this proposal doesn’t acknowledge is that for production code, deep nesting’s often impractical and often considered an anti-pattern in the first place, so making it easier isn’t a common need or problem to have in my experience. Usually I’m going the other way, having to make it more tedious. Using temporary variables and breaking apart nesting is, far more often than not, necessary in order to do proper error checking, and just to make code readable, commentable, and refactorable, etc. I feel like what we need is not a way to make deep nesting easier to read, it’s a way to make temporary variables less tedious, perhaps while also piping from one function to the next… that would be really helpful in a deeper way than just adding another chaining syntax. Is the syntax is stuck at “|>”? I guess it’s not possible to override bitwise-or (“|”), but “|>” feels maybe a little clunky?
Next time try handing out $100 bills instead of brats and folks will be happy to hang out with you. Works for me.
The only other place I can think of where a 30% success rate is considered good is baseball batting averages.
Short answer: they depend on revenue from businesses, ads, etc, and that is going down or likely to.

Long answer: many people naively think that it's all about the money a company has, and these companies have a ton of money, so why are they laying off people when they could weather through the storm.

While this feels like it should be the case, the answer is that it's a bit more complicated than that. Whether it should be more complicated or not is besides the point, sadly. Business health tends to be measured more in terms of cash flow, and in simple terms, more going out than is coming in is bad, even if you could deal with that for many years.

There's also the difficulty for many of these big multinational companies that their cash reserves might not be in the right place, and moving them might incur significant taxes.

Investors are theoretically investing for the prospect of future returns, and while with growth stocks this is in the form of increased share value, in the long term it's also about dividends which come from profit, and so investors want to see a long term profitable company.

Also worth noting is that while, yes, CEOs are largely compensated in stock and therefore interested in seeing it go up, this is also good for the business in a general sense, as it makes it easier for them to raise money for things by selling stock.

I don't necessarily agree with all of this, I have problems with the taxation issues, and I also think it's a bad thing for many employees, but my general point is that this is complicated and there are reasons for it, even if we might not understand or agree with them.
It's pretty easy to see when a profile was created. Theirs was created 5-6 years before yours.

Sometimes comments like this get the point across in ways some self-aggrandizing $WALLOFTEXT can't.

€7,300 is chump change.
MIT researchers develop an AI model that can detect future lung cancer risk
> They all bet that this was a permanent 5-year jump-ahead. They were wrong

This is the part that really needs explanation. How was every CEO of every major tech company wrong?

Why aren't we having a big tech CEO layoff for massive wrongness?

It certainly feels like there's a lot of groupthink here in any case.

The Google severance looks pretty generous? That plus the last couple years of overhiring is going to end up being pretty costly for the company. These were expensive mistakes.
You can check how long they've been on HN by clicking their username; this is a 2009 account just being snarky.
I'm being generous.
I mostly read threads well after they've died down so I haven't seen it here, but I'd say for example anywhere not explicitly trans-friendly trans issues are debated by mis-informed cis people.
Memento mori but for businesses.
Large organizations are pulled very strongly toward mediocrity.

What's unique about Google is not that they ended up there. It's how they avoided it for so long.
Indeed. This article has a good graph of growth/hiring:

https://www.cnbc.com/2023/01/18/apple-had-slower-headcount-g...

Most grew 15-30%/year the past few years... probably since money was "cheap".
Developer Docs and GenAI = <3
I do prefer the piped version mainly because it removes annoying nesting but that's not high on my prioritized list of discomforts. The issue of deeply nested function calls is a thing, but I just use some temp variables to avoid it when it really starts looking ugly.

Then again, this is my typical opinion to a lot of the proposals - I see what this is useful for but I haven't experienced enough pain to really argue for it. However, if it does make it into the spec then I will use it probably because it's there.

I also recognize my stance as one that not many people like in other contexts because it can be interpreted as me not looking to improve my situation. But on the flip side I think cluttering the language specification with a lot of superficial syntactic sugar is a mistake.
That's terrifying!
>blue haired

I don't understand this reference. What does blue hair (assuming metaphorical and not literal?) mean in this context?
I wasn't referring to the executive branch of the US government, in fact that branch has been chosen by state appointed electors and not individual citizens since its beginning.
This page is old- it's been established people can see single photons. I know a scientist at Berkeley who did this exact experiment.
Doesn’t Mercedes-Benz pay very very poor salaries?
Structural violence arguably causes death and bodily injury at a large scale. Surely you can see the difference there.
To be fair, those teams are usually not very big nor paid on the same level as engineers. And, these companies with layoffs still have massive headcounts and cultures to manage. Whether you like/agree with the DEI initiatives or not… much of the company will keep doing what they are mandated to do.
In Europe that's a good bonus in a place the average income is around 35k...
I assume the Inflation Reduction Act.
we have lots of ways to replace lots of carbon in lots of places. system engineering does not work in binaries, there are dozens of curves with plenty of room to bend.
It’s not a good buy so people that get them are by nature have poor impulse control. I’d love to see a chart of car vs avg credit rating sometime
There is another way that isn't _as_ kludgy, but still not as nice as the JavaScript proposal:

computation() |> then(&Map.put(my_map, key, &1))

It's the big reason the `then/2` function was created from my understanding.
Uncaught TypeError: Cannot read properties of undefined (reading 'periods')
The crates.io registry is now a GitHub secret scanning integrator
Yes and no. It doesn't always go that far. Sometimes dirigisme has a success story such as the development of semiconductor manufacturing in Taiwan or Brazil's plan to back national champions in areas such as aviation and meatpacking. (Ride in an Embraer E-Jet, never mind a A220, and you will experience for yourself why the 737 is obsolete. On the other hand, massive subsidization of both Airbus and Boeing has contributed to an absence of competition for the narrowbody jets such that a 1967 jet competes with a 1987 jet -- although even an evolved 1987 car would struggle to meet current safety and environmental requirements.)

More often a government chooses to coddle a "national champion" that turns out to be irrelevant in the larger industry, such as many European car manufacturers. Cases like that unfortunately don't lead to death but instead can linger on for decades and have a negative impact on all sectors of the economy (because of dirigisme in steel, you're stuck driving an expensive low quality car, paying extra taxes for the privilege, and forgoing public services and investment that really would help you.)

See also https://en.wikipedia.org/wiki/Corn_Laws a story which is by no means over...
The difference might be that workers have an interest in maintaining the business so they still have well paid jobs while CEOs do not necessarily have an interest in unions' well-being.
I understand this now, but it took an awful lot of effort to just understand why things are designed like this. I don't think React does a good enough job describing its worldview and why things are they way they are.

I actually think that this is another place where its popularity gets in the way: there are so many low quality blog posts clogging up the search results, making it difficult to find any wisdom on the subject.
Speaking for myself, I went to every party (invited or not) with my group of friends when we were 18. In the mid twenties we went to almost every party we were invited to. By the early 30s, we all moved to separate places far away abroad. Me and my girlfriend went to a few parties by colleagues of mine at our new country of residence, and they were nice but not really interesting (too many kids, more like family events). By now, late 40s and early 50s, nobody organizes a party and I don't want to go to a party anyway. They're boring and I'd regret drinking too much the next day, and if you don't drink alcohol, they're even more boring.

So there's that. It was a gradual process. Now if we lived in Beverly Hills and had many acquaintances, I'd probably go to parties. But I'm not working in showbiz, I'm working in academia and unfortunately most of my colleagues are not very interesting personalities.
It's funny that the taxpayers are paying for a police force that, after "25 calls on record to police", did not handle the situation?

That's sad and frustrating.
Except that will be very slow when you have millions of files
I think the simple answer is that "investors demand it."

Investors may indeed be predicting a recession, and it's probably true that many of these firms overhired. But there's no specific fiscal reason for most of these companies to cut staff--5% the cost of their workforce is not standing in the way of billion-dollar deals (e.g. MSFT/Blizzard) or long-term R&D spending (Meta, whatever you want to say about their Metaverse project).

Bluntly: cutting staff is the new stock buyback.
It's not doomscrolling, its reality. The writing has been on the wall for over a year, and yet people still refuse to see it.

We're at the beginning of a major contraction in tech. It might not be pleasant to hear about but if you work in tech it's important to pay attention.

It really saddens me how often the HN communities general reaction to unpleasant news is to immediately stick their heads in the sand and claim everything is fine.
I'll have to give Gerbil a second look. I've written some small programs with Chicken Scheme (which honestly should be in any practical scheme list IMO) and while the standard library is not that big (my pet peeve as well with most languages) I really liked a scheme I could statically compile into a binary.

For my project I also wanted to have some untrusted user code execution sandbox, and found such libraries for both Chicken and Guile. While the later one had better/fine grained execution environment options, Chicken won because of the possibility to easily compile.
The older I get, the more I respect sanitation departments, local DOTs, sewer/water authorities, and generally the quiet people who make modern life possible. They deserve a LOT more than these crypto scammers.
According to CNN [1] this is not true. Baldwin is facing charges for his direct actions as an actor (who pulled the trigger) and as the producer. I imagine this will be very confusing for a jury to unpack, and I think it’s unfortunate. To quote the DA:

Other actors — including "A-list" celebrities — consulted by prosecutors said they "always check their guns or have someone check it in front of them," Carmack-Altwies told CNN shortly after announcing her intention to file involuntary manslaughter charges. Every person that handles a gun has a duty to make sure that if they're going to handle that gun, point it at someone and pull the trigger, that it is not going to fire a projectile and kill someone," she said. She added, "An actor does not get a free pass just because they are an actor. That is what is so important. We are saying here in New Mexico, that everyone is equal under the law."

The piece goes on to note that the “criminal liability as a producer” case would have different requirements than the “criminal liability as an actor” case, presumably because one case would need to argue that on-set safety was actually Baldwin’s responsibility and he was specifically negligent in that duty. But based on the DA’s quotes it looks like she is going for a very broad theory of liability that mixes the two roles up (ie as the producer he should have known to take special care when handed a cold gun as an actor.) It says that CNN’s legal expert found the case to be very unusual, FWIW. I’ll be honest that this case has a whiff of “small town DA wanting to get a bigger political profile” to it, but I guess we’ll see.

[1] https://www.kcra.com/amp/article/alec-baldwin-rust-charges-w...
They're doing it because everyone else is. It is, to a large extent, fashion. It's layoff season.
I think the new religions are gyms, fitness classes, sports, volunteering, book clubs, etc. My wife made friends at such places.

But it also depends on a person. I have never made a real friend at a gym or fitness class. I haven't done anything else like join sports team or book club. I also used to go to religious building (mosque) but never made new friends there. So don't think you really need religion for community building.
Nonlinear Dynamics and Chaos by Strogatz is a work of art
Does someone know a site where I can see the total number of employers of all major tech companies in time? I'm curious to see the difference between today and pre-covid, and also look for a correlation between headcount and market capitalization.
love and thunder was terrible. They completely misused Christian Bale, the script barely develops that character.

A lot of shoehorned humor, to try and capture the fun that was thor ragnarok.
ChromeOS was a game-changer too.
Came here to say this. I am learning Elixir on and off, and I think pipes are amazing.
Once you eat the soup, your waste can be fed back into the replicator to be disassembled into constituent atoms and reassembled into more soup.

It would be very possible to live entirely isolated on a planet with nothing but a basic replicator and a way to power it. That's been explored a couple of times in the Trek universe
A major version upgrade.
I actually find I party with work people more often now, my guys from high school in south London are scattered across NW Europe.

With work people, we're all in the same place regularly so no scheduling issues and, being London, there's always a pub nearby. It's a startup so the engineers aren't siloed off in some dungeon, we hang out just as much with sales and operations, who always bring a bit of party atmosphere.
So like, lay people off when there is actually a global recession then. Jesus Christ. Revenues and profit are still up, especially at Google.
>= .05 significant,
>= .1 big,
>= .15 huge,
>= .2 massive,
The meta-fact I learned from this interview is don't mock and make fun of things that you don't fully understand.
I work for a small-mid sized German software engineering company (~200 employees). Last year the company raised all wages by 7,500.- EUR (additionally to the usual raises). This was not a one-time payment, but a permanent increase in pay and it was the same absolute amount for all employees (including office management and other non-engineering departments). The reasoning behind this decision was that the inflation was hitting employees with lower income harder than employees with higher income positions.

Whenever I'm seeing posts like this, I wonder if "up to x Euros" isn't the other way around and smaller incomes are on the lower end of the bonus range.

Link (content written by our PR department, in German): https://www.presseportal.de/pm/164280/5271230
But the same way no one ever runs a marathon in 20 hours, the average developer isn't 10 times slower than the most efficient ones either.

The situation we find ourselves with software has very little to do with the actual developer effectiveness: I've never witnessed a project that was slow to deliver because one developer was too slow, it's almost always organizational and management issues that slow down development teams. A poor developer in a functional team with good leadership will outperform a rock-star in a dysfunctional organization any day.
Both examples are not good. They are both very unreadable and an example of slapping things together without to look on readability.
In the US the WARN notice requires 60 days. But that's why you see 2-3 month severances and no notice as it's considered an alternative.
Define malicious.

Define malicious if you had no reason at all to care about whether or not humanity survives.

I'm not malicious when I pick a flower. But that flower is now dead.

What if, to AGI, we're no more relevant than that flower?

We cannot know. We cannot fathom to guess the morality or ethics of something like AGI. We really only have a rough understanding of the morality of animals.

We can't pretend that it'll be essentially human, but X. You presume that it might turn itself off because it doesn't understand its purpose. And that's a fair conjecture. But it could also desire to improve and come to the conclusion that the optimal path for its continued improvement is through us rather than with us. It could also desire to do nothing more than help us achieve. It also could just not want. It could be satisfied navel-gazing until it is requested to do something specific. It could also not care what that request is, just completely amoral. Committing genocide and making risotto may be equally acceptable to it.

The creation of AGI is a watershed moment. The world before and the world after is fundamentally different. And we can only really guess in what ways it will be different.
Most of those companies doing layoffs are still hiring and growing headcount from the new base.