I agree with this article. Tuples nicely unified multiple return values and multiple parameters. FWIW Scala and Virgil both support the _ syntax for the placeholder in a partial application.
def add(x: int, y: int) -> int { return x + y; }
def add3 = add(_, 3);
> This feature does have some limitations, for instance when we have multiple nested function calls, but in those cases an explicit lambda expression is always still possible.
The solution is to delimit the level of expression the underscore (or dollar sign suggested in the article) belongs to. In Kotlin they use braces and `it`.
{ add(it, 3) } // Kotiln
add(_, 3) // Scala
Then modifying the "hole in the expression" is easy. Suppose we want to subtract the first argument by 2 before passing that to `add`:
{ add(subtract(it, 2), 3) } // Kotlin
// add(subtract(_, 2), 3) // no, this means adding 3 to the function `add(subtract(_, 2)`
x => { add(subtract(x, 2), 3) } // Scala
I don't mind adopting features from popular languages. (After all, Virgil using _ for partial application turned out to be a happy accident that aligned with Scala.) Adopting features that are popping up in other languages helps to reduce the explanation burden, but I'm not sure on this one. It took me about 10 years to finally settle on having `fun` as a keyword to introduce lambdas instead of the parser back-tracking madness that JS parsers do.
You're going to hate this, but one answer might be blockchain. A crytographically strong, attestable public record of appending information to a shared repository. Combined with cryptographic signatures for humans, it's basically a secure, open git repository for human knowledge.
> Combined with cryptographic signatures for humans
What happens when the human gives an agent access to said signature? Then you fall back on traditional anti-bot techniques and you're right back where you started.
Sounds interesting, but I guess I'm a little unsure of how to connect the dots? Are you suggesting that websites would be hosted on a blockchain and browsed by human-signed browsers? Or more like there would be a blockchain authority, which server hosts could query to determine if a signature, provided by their browser, is human? Would you mind painting the picture in a little more detail?
You can have cryptographically signed data caches without the need for a blockchain. What a blockchain can add is the ability to say that a particular piece of data must have existed before a given date, by including the hash of that data somewhere in the chain.
We're rarely going to need to attest anything is "real" or "human". It's basically only going to matter in civil and criminal court, and IDV.
We don't need to attest signals are analogue vs. digital. The world is going to adapt to the use of Gen AI in everything. The future of art, communications, and productivity will all be rooted in these tools.
I worked on JVMs long ago (almost twenty years now). At that time most Java usage was for long-running servers. The runtime team staunchly refused to implement AOT caching for as long as possible. This was a huge missed opportunity for Java, as client startup time has always, always, always sucked. Only in the past 3-5 years does it seem like things have started to shift, in part due to the push for Graal native image.
I long ago concluded that Java was not a client or systems programming language because of the implementation priorities of the JVM maintainers. Note that I say priorities--they are extremely bright and capable engineers that focus on different use cases, and there isn't much money to be made from a client ecosystem.
> Or was it when he said that a Black president would bring "1000 years of darkness"?
I looked this one up. It's true. He's been going out of his way to be a political firebrand and claiming milquetoast Democrats are Satan for decades. It wasn't some offhand comment when cornered on stage. He's pushed white christian nationalism hard for quite some time.
Sad, because it was so unnecessary, divisive, and crazy--a black mark on his legacy.
But it's not true the way GP phrased it. Norris did not say if a black man was elected then there would be 1000 years of darkness, he said it about a specific man who happens to be black. It's silly, but unless you're claiming that black politicians get special exemptions, his race is immaterial to this quote.
It helps to at least write down requirements. And not requirements in that "it must use Reddis", but customer, user, performance, cost, etc requirements.
A one page requirements document is like pulling teeth apparently.
Oh yes, you want a vague idea of where you're going, and concrete plans for the next step. If you can't even get one-page requirements then something has gone very badly wrong.
Having lived in both Germany and the US, my experience with the German system is that there are a lot more, smaller hospitals and private practices, the care is good, and all I ever paid for out of pocket was prescription medications. I didn't have to wait long for an MRI (two weeks) versus months in the US. I had a number of things that would have been hundreds or thousands of dollars in the US that I never paid a penny for in Germany. I'll also say that hospitals are absolutely crazy about sending bill collectors after you. I had a handful of small charges--like $10 or $20 things--that I hadn't realized were even there and two months later they freaking inundated me with bill collector notices.
It does make a big difference exactly where you are in the US, however. Some places have a glut of healthcare providers and other places don't.
> I didn't have to wait long for an MRI (two weeks) versus months in the US.
Where in the US did you have to wait months? There seems to be an MRI/imaging location in every other shopping center in the US right now. I've never had a problem getting a same day MRI when needed. Perhaps you were waiting for the 'free' one your insurance would accept?
How do we keep getting surprised by enshittification!?
The worst case scenario is that AI runs everything, we have no skills, and are completely dependent on it...and it shows us crummy commercials and subtly steers us to paid placement with no recourse whatsoever. I hate this possible future, but this is where the money will lead.
reply