This is not true. People can definitely build infrastructure on their own. Taxation and government monopoly is the reason why they don't/can't. Think about the AI infrastructure, which is far more capital intensive than anything right now is being build without a single taxpayer money. But when governments get involved in building puplic infrastructure, they severely botch it like Comcast who were payed billions of taxpayer money to be a monopoly. Remove government (and by it's extension like monopoly and regulatory capture that it enables) and human will build anything far cheaper and efficient.
No they won't, they will build whatever is in their personal interest, and then forget about it when they think it's stable enough to evoke power on its own. Individuals are incapable of doing anything when it comes to setting up and maintaining infrastructure.
s/humans/people with immense capital (usually because it will make them more).
if there were no taxes, people would mostly hog up and spend their wealth personally, with little incentive to give it up towards work that doesnt directly impact them but which may be crucial. Similar thing plays out on a smaller scale with open source projects.
why should a bureaucrat decide which is critical? and why should i be coerced to pay for something that doesn't impact me directly? the people who deem something critical should pay out of their own pocket.
As someone who is primarily a Go dev, I never understood this criticism and have never seen a language do it any better (but I'm open to suggestions). I think try/catch is worse. I kinda like JS's promise syntax with the `.then()` and `.catch()`, but it doesn't appear that different to Go's approach.
You don't necessarily need a result/option type. Go could add a dependent typing facility that let you express a relationship between the first and subsequent return values.
Very few languages do that; an option type is simpler to implement in many respects. But in the case of Go, especially at this juncture, it's possible the simplest route is a dependent type, at least a specialized one. You don't need to introduce a fully generic dependent typing facilty.
Even simpler would just be type qualifers, e.g. optional or nilable, on the first return value, though that doesn't help with multivalue returns, where a simple dependent typing facility could fully express success vs error return semantics.
You could also do it with contracts, though more obliquely. One of the criticisms with C++ contracts was that a contract made it easier to optimize a routine for the declared relationships, but without absolutely mandating enforcement that the callee or caller also obeyed the contracts, which is more difficult to do. That meant there was the potential for contracts to result in more bugs caused by interactions between undefined behavior and the optimizer.
Ahhhh, got it: enforced correctness. Fair enough, I can definitely see the benefit of that. I do wish Go had more ways to do that, like first-class enum support, exhaustive switch cases, and, yeah, forced error handling. golangci-lint does a lot of this heavy lifting on behalf of the Go compiler, but it would be nice to have the compiler enforce it.
Personally I think Go style is worse, because the runtime and compiler don't force you to handle the error. I just had to fix a critical issue because a dev forgot to check the result coming from a function, exceptions would have forced it to happen.
> I kinda like JS's promise syntax with the `.then()` and `.catch()`, but it doesn't appear that different to Go's approach.
These days async/await is first-class and the function-based callback form of promises is largely discouraged. And for, at least in part, the same reason: it's harder to enforce correctness.
Some patterns, notably when a reasonable default can be provided, are better handled in Go. In such a case the error handling can often be omitted entirely. Neither Rust or Go recognize this pattern explicitly, however. In Go, as your comment, the function signature doesn't say the result value is actually a valid default when there is an error.
True, Go does require you to follow a convention here (dont use T if err is not nil). In practice it works pretty well, though obviously not bullet proof.
I believe some exceptional languages are similar, like Ruby. If you rescue but dont abort, the variable on the left hand side gets a nil when that may otherwise not be possible. Of course, that is handled cleanly as its own error.
Yes it is and it's frankly odd we are still designing languages this way. It's a mess and a Result with typed errors is much more ergonomic and should be the standard. See either in scala for more.
I see your Either types and raise you a checked exception. People might have soured on the idea due to the way Java specifically implements the idea, but they can absolutely be done properly. They're also more ergonomic than an Either type, so that's nice.
I guess I have to justify my last statement, so here goes. We need to first establish the fact that checked exceptions and an Either type used in error handling are isomorphic constructs. Both are part of your type system (there is no difference between a function returning an `Either` and a function returning a `T` or throwing an exception `E`), although one could correctly argue that an Either type is more widely applicable. Okay, so error handling ergonomics. The main thing about exceptions is that they separate out your happy path code from error handling. This is often a physical separation via having separate blocks with a try and a catch. You can of course have this kind of separation with an Either type, but at least in my experience the ergonomics are such that it's often nicer to just have the error boundary close to the fallible expression. Either that, or you have to start doing stack unwinding until you find an appropriate place for error handling -- except unlike with exceptions, this unwinding is done by hand.
Another thing that most exception systems give you are post-operations, usually in the form of some sort of a `finally` type dealio. And yeah, you can absolutely do the same thing with Either-based error handling, but it's not nearly as ergonomic as a finally-block.
And if people get annoyed at these being called exceptions, because they're not always exceptional, then we could call them something like "error conditions" or whatever floats one's banana, that's just bikeshedding.
The place where Java went wrong with its checked exceptions was two-fold:
a) you can't parameterise properly over the exceptions you get thrown
b) whether an exception is checked or not is a property of its place in the class hierarchy instead of being separate from it
A large part of the first one is due to generics being added after the fact to the language, trying to preserve backwards compatibility which also lead to the kind of type erasure etc. you get in Java. And the second one is mostly just a mistake in the design of the exception hierarchy. Sadly that's now impossible to fix in Java specially so we're stuck with it, but other languages could still learn from it.
LLMs are pretty good at it, too. I recently had Haiku rewrite all of my Quickshell Linux UIs (dux) to Odin + an immediate mode GUI library: launcher, Niri bar, WiFi manager, process manager, lock screen, HUD audio/brightness, etc. Did all but the process manager in a day, while I was spending 99% of my time paying attention to my day job.
Anyway, Odin is my favorite of the new systems languages. Lightweight, ergonomic, decent stdlib. It’s quite good.
For the record, the library I used was Skald[0]. It's decent. Not 100% fully featured yet, but performant and fairly low resource, especially compared to Quickshell.
I have tried all three, and I chose Odin because I prefer the syntax (especially over Zig) and the vendored libraries are a killer feature for me. You get a lot of graphics, maths and gamedev-adjacent packages with the language, that can take you very far without having to shop for third-party packages.
Odin for me is the (low level) systems language nirvana, along with Elixir which is my distributed system nirvana. They spark so much joy.
there is definitely a tradeoff here: would you rather hunt for memory leaks or hunt for references (to satisfy the borrow checker).
some of really want to do it the old way with arena/pool allocators than guarantees at the compile time. odin's target audience is not rust programmers, it's C programmers who want modern conveniences.
C3, Odin, Zig, and many other languages are all competing to be the ergonomic replacement for C. None of them has crossed the chasm to wide industry adoption, so there is not one of these that, to use your words, renders the others useless...yet.
i hate this moral outrage. what's wrong if he was sleeping around? let him just print gpu. his ability to print gpus has nothing to do what he does in his bedroom. i can sympathaize with the wife and infidelity is a sin. but he was supplying everybody with gpu. so that makes him a great guy too.
Because there is potentially more to the story that would impact the actual business than just affairs. The board is to protect the business and if they make a move like this, they do so in the best interest of shareholders. We will see if anything comes out but I suspect it’s not just sleeping around.
There is also fears of a federal investigation and the ability to scapegoat Jensen may be the best move, business wise
This source doesn't debunk anything, it's literally AVIF propaganda that cherry picks parameters and images. It demands JXL match AVIF size before comparing encode time at abysmal q50 factor. Would you encode anything worth showing at q50?
Who cares if AVIF is slightly smaller at some specific scenario when Mercury is in retrograde, when it takes a century to encode?
My entire point is that some 3% size gain is acceptable for shortening the encode time by 97%, which is what JPEG XL does.
The reason why open source couldn't win search and social was because they need network effects which is not possible for open source maintainers.
AI is a software just like operating systems and executables where open source absolutely dominates the industry. Remember when the compiler engineers optimized the shit out of llama.cpp.
Right now the bottleneck for AI software is compute and data. Moore's law is give us compute, StackOverflow, arXiv (and it's children like bioRxiv), gutenberg and others (3lib, anna, internet.org) will give us data.
>Right now the bottleneck for AI software is compute and data. Moore's law is give us compute, StackOverflow, arXiv (and it's children like bioRxiv), gutenberg and others (3lib, anna, internet.org) will give us data.
Tons of stuff happenning behind closed doors today though. No more stackoverflow for the next decade, that could create a problem if all new context only exists in chatgpt conversations only openAI has access to (or whoever).
Wait until the archives are compromised and millions of people's conversation and uploaded data are published. Such context was never before accessible in that scale, but it will become accessible soon, I am pretty sure.
Based on... what? Thoughts and prayers? Feelings? Vibes?
I don't know if you looked around but open source is basically unusable for the largest platform in the world, mobile.
The next platform, whatever that is, will also be closed source (maybe VR, once it finally matures...).
LLMs are closed source, is there even 1 (ONE) LLM which is both open source and open weights and publishes its training data and methodology and is also remotely competitive with the frontier lab LLMs?
Consoles are closed source. Appliances are closed source. Embedded devices are closed source.
Even the web is basically closed source. Blobs of encrypted, obfuscated JS used to serve news pages (!).
Maybe I'm looking in the wrong places, but closed source has won.
If you think I've been on HN for more than a decade and I don't know what Android is, you're sorely mistaken. And if you think you somehow managed to reply to my comment with a "gotcha", you go digging into what Android really is made of and get back to me.
And regarding servers, who cares? The platforms users interact with are their clients and the actual server software on top of the Linux OS is closed source 99% of the time.
reply