I don’t think it’s foolish, for more or less the above reason. Starlink is the market for Falcon 9. Without that it apparently isn’t so profitable, because outside of Starlink the demand for a system with that kind of launch cadence just didn’t really materialize.
But that’s also why I’m skeptical about whether Starship will live up to the hype. The whole case for how it’s supposed to revolutionize spaceflight rests on the assumption that it can tap into a huge well of latent demand to put stuff in orbit. If such a well really does exist then we have to ask why Falcon 9 wasn’t able to tap into it despite all of its obvious merits.
SpaceX seems to be rather foolishly planning on completely replacing the Falcon 9 and Falcon heavy with Starship which is going to create demand for it.
It was originally designed for manned interplanetary missions, but then they (wisely) decided to pivot when it became clear that that wasn’t going to happen.
I have yet to be convinced that Starship’s payload capacity is actually a good thing, from a big picture perspective. It looks to me like a possible case of shouting, “I meant to do that!” after a pratfall. On a months-long trip to Mars, you need a vehicle that big for the sake of the human occupants. For launching Starlink, it’s less clear whether the ability to deploy so many satellites at once was worth the vehicle’s development costs. Perhaps it’s just inherited from an earlier iteration of the program that had different goals, and a more modest design would have been more economical. Worse, so far it seems like Starlink might be it. Most other use cases people have proposed for putting 40 tonnes in orbit on a regular cadence are the kind of highly speculative grasping at straws that accompanies any technically impressive solution in search of a problem.
That’s such a big if, though. Not just around how long it will take. Around whether it will happen at all. There are still a bunch of unknowns that need to be resolved before we can know whether any such plans are economically viable. What I’ve personally observed is that a lot of these ideas look great when presented as concept art, but iffy at best once you start trying to do any back of the envelope estimates.
That certainly doesn’t mean it will never happen or that it’s not worth trying. But I’ve noticed that in these online discussions there’s a tendency to treat moonshot programs as if they’re sure bets.
Also don’t forget social factors. The US had been actively working on establishing more of a presence on the moon, too. But the current administration more-or-less killed it because they didn’t like how much it was costing.
> The existing market for heavy lift launches is tiny
I can see the value in this though if we end up developing space and Moon, and a vehicle like this could open the doors for that, unlike now. If China has long term plans for that, it's probably a good indicator of future market.
I think it is obvious by now that Starship was not designed for manned missions and that it was designed to provide cheap launch capabilities for very large payload capacity.
Flight 13 launched 20 Starlink v3 sats for a total payload of 34,100 kg.
Flight 14 launched 26 Starlink v3 sats for a total payload of 44,330 kg.
The jury’s still out on whether Starship needs fast reusability, too. The existing market for heavy lift launches is tiny. Starlink creates some demand, but beyond that SpaceX seems to be placing an incredible amount of faith in the idea that if you build it they will come.
But what happens if there isn’t actually that much pent-up, latent demand for flinging heavy things into orbit? What happens if people still mostly want to launch the same size stuff they already do? Starship could become the paratransit shuttle of space: inexpensive, yes, but also inconvenient because of having to share the ride with so many other people that all have different destinations and schedules. In that case we might see that demand for Starship remains low due to potential customers deciding the extra cost of a different option is worth the added convenience. Anyone who’s chosen an Uber even though the city bus can get them to their destination for 1/10 the price should be familiar with the principle.
If you mean why is catching (starship) better than landing (falcon)? The difference is the whole launch platform is reusable, booster and upper stage. Falcon is a reusable booster, the upper stages are always expended. Starship's payload capacity is huge, having that capacity on a fully reusable platform will drastically reduce $/kg to orbit since you aren't building whole new rockets every launch. See Falcon 9 for what a reusable booster can do for cost.
If you mean why catching is (anything) better than landing (anything)? Landing gear is heavy. All the weight and mechatronics and complexity of the landing gear systems takes mass that could've been payload. Put the "landing gear" on the tower instead and the launch vehicle doesn't eat the cost of the weight. It's an optimization but not an order of magnitude revolution compared to a fully reusable heavy lift platform.
I’ll admit I interpreted that “you” in pron’s sentence to be a colloquial “you” and not an imperative one. So, more of a statement of their own preference than a strong statement of how things should be.
The point is, it’s a tradeoff. With overloading, exactly which code executes on a specific line becomes a bit more implicit because it depends on extra information from the surrounding context: the types of the arguments.
That comes with the usual tradeoffs. On the one hand, you could argue that the compiler is taking care of it for you, which saves the programmer from having to manually deal with it, and removes some visual clutter from the code.
But you can also argue that letting the choice of function be implicit means that a programmer who wants/needs to keep track of exactly what every line of code is doing needs to carry all that contextual information in their own head, too. For this programmer, it’s adding to the mental burden.
I don’t think it’s a coincidence that Kelley constantly brings up how Zig was inspired by difficulties writing a digital audio workstation with very hard real-time requirements. Part of what he’s doing there is giving a motivating case for why he wants to be an absolute control freak about, e.g., micro-managing exactly when memory is allocated and deallocated. That’s something only a subset of systems programmers need, because not all systems programming is dealing with things like hard real-time.
So, suppose a team - so hopefully a rather small instance of "everybody" - has decided to make some changes to how they work, and they're trying to decide between adopting Zig and changing their existing C coding conventions.
Suppose, also, that they have decided to make the change incrementally. So a rewrite is not in the cards.
The advantage of sticking with C that I see is that nobody has to learn a new language, migrate to a new toolchain, anything like that. So it is definitely the smaller change. But the downside is that it may be more difficult to hold the line. For some indeterminate (possibly indefinite) period of time you have a mix of legacy code that's being allowed to stay on the old conventions, and new/migrated code that's supposed to be held to the new conventions. IME one solo developer can maintain that distinction, but a team working in a business environment, possibly with people cycling on and off, will struggle with it. You can try to bake the distinction into your tooling, but that's often easier said than done. Most tools expect one set of conventions per project.
The advantage of adopting Zig that I see is that you set a clear demarcation line. New files will be written in Zig. Migrated code gets ported to Zig. Everyone knows that Zig has one coding standard, C has another coding standard. They look different, so it's easy to keep track of which is which. They each have their own compiler flags and static analysis tools, so it's hopefully easier to separate the legacy rules from the new ones.
Now, I mostly do cruddy business applications so I haven't actually done this with C and Zig. But I have done it on the JVM, and IME whether "modernize legacy Java in place" or "modernize legacy Java by strangler vining over to Kotlin" works better depends heavily on what the legacy code in question actually looks like and how much you want to change.
Now explain why the collective action problem of moving everybody to Zig is easier than the collective action problem of improving C usage and tooling. IMHO the latter is far more realistic (and in fact a lot has already improved).
> But it uses flyweight instances for values up to 256, so in Java, whether two Integers with the same numeric value are equal according to the = operator depends on what that value is. ...
I believe Java caches Integer objects for values -128..+128, not 256. But that may be an implementation detail, and not something to count on.
I’ve also experienced some unnecessary shenanigans related to blurring the distinction between primitive operations, and stuff that happens dynamically at run time such as method calls.
For a somewhat different example of the same general idea, look at how Java handles primitives and their boxed counterparts. = on two ints always compares their value. = on two Integers compares their pointers. But it uses flyweight instances for values up to 256, so in Java, whether two Integers with the same numeric value are equal according to the = operator depends on what that value is.
Then throw autoboxing and generics into the mix, and it suddenly becomes very easy to do refactorings that work fine in the unit tests (which tend to use small numbers) but fails in confusing ways in production.
This isn’t an example of operator overloading, of course. But I hope it more simply illustrates why, at least in certain problem domains, there’s value in being able to visually tell when surprising runtime shenanigans are and are not possible. And also to make it impossible to cross that boundary without touching all code that falls within the blast radius of that change.
Yes sir, with the right kind of discipline even assembly starts to look like luxury. With a heart that holds no fear, one can code in straight 0's and 1's.\s
These days I wonder what is harder:
1. problems of collective action or
2. communicating that reducing everything to collective action is the real issue.
But Zig is expressly not trying to bootstrap a completely new ecosystem. Integrating with - and depending on - existing C and C++ code is a core use case. So much so that they’ve adopted “maintain it with Zig” as a motto that intentionally puns on “rewrite it in Rust”.
As soon as you have dependencies you are dealing with however the authors decided to build things.
Part of why languages exist is just to get a new ecosystem.
At this point, you could fork C/C++, only remove features, give it a new name, a new package service, and maybe fork the standard library, and you could end up with something pretty competitive against Zig or Rust.
It seems that part of what Zig is trying to do, though, is create a pit of success around these practices. So the response might be something like, “Yes you can do these things in modern C, but doing it consistently requires more discipline than we’d like.”
BS. Using operator overloading with SIMD makes it easier to translate algorithms into code. I wrote my own U8x32 wrappers and a + b is way better than a.add(b).
Zig is a nice language, but those articles always compare new languages against old-style C without use of modern tools. Most of the listed advantages you can have in C as well if you are willing to adopt modern tooling and style: signed overflow checking: sanitizers, errors you can not ignore: [[nodiscard]], slice type which know their size: variably-modified types or span types.
Defer will also appear in C compilers soon, but personally I still think goto-error handling is clearer.
(Rust has an advantage for temporal memory safety, but this does apply to Zig.)
Many people are against operator overloading, imo my only issue with C++ operator overloading is that you're allowed to overload the the assignment operator. From what I can see this is the root of many issues
In critical low-level code, any kind of overloading - operator or otherwise - is something you'd rather not have.
By expressivity I don't mean what characters you use in the conrecte syntax, but the number of lines needed to express an algorithm (up to a small constant). C doesn't have C++'s expressivity because it lacks templates, and while you can sort of express that kind of thing with macros, it's not all the way there. Zig, however, gets you all the way there (you might need to write matrix_plus instead of +, but the expressivity is the same).
I think that might be the goomba fallacy? There is no universal “we”. Some people think specialization is important. Others think generalists are important. Others talk about T-shaped skills. These are potentially all different groups of people that ideally realize that there are tradeoffs to each option and the best compromise is context dependent.
And I do think it’s more about how you build things than it is about the calendar. The calendar is just a proxy for what’s fashionable. For example, the startup I currently work at is in the process of incrementally simplifying our stack. Because we agreed that it was getting difficult to understand and expensive to operate. We don’t view this as turning the clock back to 2006; the discussions have framed it as a judicious application of the KISS principle. And yes, it has helped us break down knowledge silos and enable team members - especially data scientists - to be more self-sufficient.
Keep in mind that the exact same arguments were being made 15, 20 years ago about why specialization was important. And yet, we look back at that era being the halcyon days of when specialization wasn't necessary.
Every era views itself as an intricate snowflake, but they rarely are.
Also, Zig is as at least as expressive as C++ (but without the implicitness and general language complexity that makes reviewing some sensitive code, where you need to see exactly what operations are performed, hard), and it supports arenas better than C/C++/Rust.
But that’s also why I’m skeptical about whether Starship will live up to the hype. The whole case for how it’s supposed to revolutionize spaceflight rests on the assumption that it can tap into a huge well of latent demand to put stuff in orbit. If such a well really does exist then we have to ask why Falcon 9 wasn’t able to tap into it despite all of its obvious merits.