So really just a subclassification of hybrid (a different path for the hydrocarbon energy source to drive the wheels).
Yes. Am not robot.
So really just a subclassification of hybrid (a different path for the hydrocarbon energy source to drive the wheels).
It’s open source. If manners are an important feature to you perhaps look into contributing… :)
“I accepted all of the bytes you gave me. I didn’t do anything with them, but I accept you gave them to me”.
Cargo is doing too many things at once. It’s a build system but also a package manager but also manages dependencies? Idk what to even call it.
Coming from Java where you have no standard tool and two current defacto standards (Maven and Gradle) which do similar things in a less clean or standardised way, I think Cargo is one of the least contentious parts of the Rust experience.
Supposively bad typescript
Correct. Bad Typescript. You haven’t provided any of the type information to make this a TypeScript construct (this is just JavaScript)
It should be something like…
interface Person {
name: string,
age: number,
}
const person: Person = {
name: "joe",
age: 23,
}
And the Rust equivalent being something like
struct Person {
name: String,
age: u8,
}
let person = Person {
name: "joe".to_string(),
age: 23,
};
i32 i64 i8 f8 f16 f32 instead of a single unified “number” type like in typescript.
Those all have different sizes and capabilities. The lack of these requires the JS JIT compiler to try and guess (and deoptimise when it’s wrong).
Even in C you can just write “int” and be done with it so it’s not really a “low level” issue.
No, you can’t - https://en.wikipedia.org/wiki/C_data_types
- Similarly, Async code starts to look really ugly and overengineered in rust.
- Having to use #[tokio:main] to make the main function async (which should just be inbuilt functionality, btw tokio adds insane bloat to your program) yet you literally can’t write code without it. Also what’s the point of making the main function async other than 3rd party libraries requiring it?
I agree the Rust Async experience feels a little messy, and the lack of an opinionated default makes even the foothills a steeper climb than we might hope. However given all that it’s trying to achieve (in terms of Rust drives for efficiency and safety) I don’t have any better ideas right now.
Speaking of bloat, a basic get request in a low level language shouldn’t be 32mb, it’s around 16kb with C and libcurl, despite the C program being more lines of code. Why is it so bloated? This makes using rust for serious embedded systems unfeasible and C a much better option.
I don’t know how you’re getting to 32MB. A release build of the most basic form of a get request is not that bad.
A simple chatgpt generated one app to get the content of an HTTPS URL, using reqwest and tokio is 4MB. I expect this can be reduced with options.
However yes, the default Rust build (with all of the panic machinery and more) is bigger than C. But Rust doesn’t have to be the best choice for every niche, to be an excellent choice for several. With that reasoning your return to TypeScript is equally flawed.
Another major issue I’ve encountered is libraries in Rust, or lack thereof. Every single library in rust is half-baked.
Coming from Java, Rust’s young ecosystem is definitely noticeable. It’s taking a while for it to grow, to mature, and for clearly dominant frameworks to emerge for various problem-spaces.
Java, like Rust, is not opinionated about the frameworks, but the size and age of the community means that clearly dominating frameworks emerge with huge contributor bases - Rust just isn’t quite there yet.
As for “memory safety”, it’s a buzzword. Just use a garbage collector. They’re invulnerable to memory issues unless you write infinite while loop and suitable for 99% of applications.
Again, coming from Java (which has a number of excellent GC implementations), Rust takes this a lot further (an alternative to null, protection against aliasing bugs). While I’m still fundamentally a Java developer, what Rust achieves here is significant.
Then use C or C++ if you really need performance. Both of them are way better designed than Rust. In most cases though it’s just bikeshedding. We’re not in 1997 where we have 10mb of ram to work with, 9/10 times you don’t need to put yourself through hell to save a few megabyes of a bundle size of a web app. There are apps with billions of users that run fine on php. Also, any program you write should be extensively tested before release, so you’d catch those memory errors if you aren’t being lazy and shipping broken software to the public. So literally, what is the point of Rust?
Tell me you don’t pay to run anything large on cloud infrastructure without telling you don’t pay to run anything large on cloud infrastructure. There’s a cost to CPU and RAM. Java does okay on the first, but has a long history of doing poorly on the second (c’mon Valhalla - a Java enhancement project that will help here).
Who cares? Coding is a tool to get shit done and I think devs forget this way too often, like if one works easier than the other why does learning lower level stuff matter? It’s useless knowledge unless you specifically go into a field where you need lower level coding. Typescript is easy, rust is not. Typescript is therefore better at making things quick, the resourse usage doesn’t matter to 99% of people and the apps look good and function good.
Of your post, this is very nearly the only part I can somewhat agree with. Our industry primarily has more of a need for ‘solution now please’ than ‘optimal solution later’. Engineering time matters. The learning curve and cycle time of Rust are barriers.
Also, while Rust is a very safe language to refactor in, it’s not quick to refactor in. The less ceremony and strictness there is, the easier it is to experiment and then refactor. This is, in part, why I think Python does so well in the ML/Data-science space - that niche is more R than D in the R&D balance of software development.
So again, Rust suits some development needs better than others, now. However as it matures I think we will see it grab little pieces of the niches previously occupied by other languages. As it’s tools and libraries get better, and as the pool of familiar developers increases, Rust’s strength are going to translate more easily into dollars without costing time.
I’m not ready to switch to Rust fully. But neither am I putting it aside - and I look forward to its continued improvements in libraries, language, tooling and adoption in more and more places.
(I can say that I’m not planning on using TypeScript for any more than our front-end development though)
Sheepdog trials. Though mostly it’s about making things go through the gates.
Cheeky little @+#_$. I hate yo-
Ooh squirrel!
Fast moving new technology means a larger gap between the used and new market. Combine this with effects of smaller volumes per model and they start high and fall fast.
It will change, but ‘early adopters’ are carrying some of the costs of transition - though only realise losses at time of sale (so keeping the vehicle longer will cost you less than frequent refreshes).
Edit: and no, buying one is not foolish. For many consumers, a midrange EV is already a saving over a reasonable lifetime.
I don’t ‘try’ to do either.
Either the film’s production and marketing draw me in the intended direction or they don’t. When their vision and my experience fail to align, I expect I’m less likely to enjoy the film.
…That or film was garbage. YMMV
Well yeah. How can I appreciate being rich if there aren’t poor people to compare myself with / lord over
…is something I’m not rich enough to say. Sigh.
Rainbow Warrior means something quite different in NZ.
“eliminate”… They’re really making full use of dropping the “don’t be evil” clause aren’t they.
Actually New Zealand has quite a few islands and more than three that are inhabited, but the three that most people refer to are North Island, South Island and Stewart Island (even though there are larger populations on others). The fourth most likely inhabited island to be mentioned is Waiheke Island (and the third most populated).
In that case let’s really blow your mind…
A Kiwi is a bird or a person, not a fruit.
… Also New Zealand is comprised of three major islands North Island, South Island and West Island… Also some of my facts may be slightly inaccurate - but not the bit about the fruit.
Two! Two bats!
(The actual bats don’t look anything like these bats. This is just a tribute)
I missed the other ones… Must’ve been hiding behind the first one…
New Zealand doesn’t really have any deadly animals.
No scorpions, snakes (other than the very appearance of a sea-snake), crocs, large cats, bears, etc. Our most venomous spiders can generally only make most people a little bit unwell. We might occasionally see a potentially dangerous shark but they’re so rare that I can’t recall when a notable attack happened.
Our insects aren’t generally disease spreaders - though we’ve come close a few times to some getting a foothold.
Colonists introduced many destructive species but nothing very personally dangerous. In theory there could still be moose, but it seems unlikely.
The only NZ native land-mammal is a tiny bat as far as I know.
There is the small problem with orcs, goblins, trolls and Australians… but it’s okay, we have a wizard (retired?).
One day perhaps they’ll be seen again more commonly as is now the case with tui and kererū in some areas.
At 8% they’re probably going to outperform KiwiSaver… but maybe not savers of kiwi.
Well it does help when they aren’t mistaken for pūkeko…
And of course they’ll stop at abortion right…