Live data from Hacker News

Migrating away from Rust

deadmoney.gg

651–660 of 799 posts

Re: Migrating away from Rust

#651
post #646
post #643

Earlier quoted context omitted.

I hate Spring(Boot): too much magic due to overuse of annotations. On the JVM I'd prefer Kotlin/http4k/SQLDelight any day over {Java,Kotlin}/Spring(Boot)/{Hibernate,sql-in-strings}.

Because macro magic, or compiler plugins, is so much better, I guess.

What do you mean? Where are the "macro magic or compiler plugins"?

Re: Migrating away from Rust

#652
post #627

Earlier quoted context omitted.

Interesting link, but that's a nearly 7 year old version of Swift (4.2) running on Linux. I wonder how the performance would be with Swift 6.1 which has improved support for Linux.

Probably much better, given the improvements on the Swift optimizer, but just goes to show "tracing GC" bad, "reference counting GC" good isn't as straighforward as people make it to be, even if they are renowned developers.

It's a cherry picked, out-of-date counter-example. Swift isn't designed for building drivers.

In reality, a lot of Swift apps are delegating to C code. My own app (in development) does a lot of processing, almost none of which happens in Swift, despite the fact I spend the vast majority of my time writing Swift.

Swift an excellent C glue language, which Java isn't. This is why Swift will probably become an excellent game language eventually.

Re: Migrating away from Rust

#653

Another failed game project in Rust. This is sad. I've been writing a metaverse client in Rust for almost five years now, which is too long.[1] Someone else set out to do something similar in C#/Unity and had something going in less than two years. This is discouraging. Ecosystem problems: The Rust 3D game dev user base is tiny. Nobody ever wrote an AAA title in Rust. Nobody has really pushed the performance issues.…

Why is this sad? He's realized that the best language is C# and the best platform for games is Unity! This is progress, and that's good.

Re: Migrating away from Rust

#654
post #639

Earlier quoted context omitted.

Minecraft was Indie then. And anyway, it's now in C++.

Many people dream to make it as indie, most don't even achieve that. No it isn't, there are now two versions of Minecraft, the classical one, and Minecraft Bedrock, that is the one written in C++. Minecraft Bedrock doesn't have half of the community that Minecraft classical enjoys, hence why Microsoft is trying to use JavaScript based extensions to bring the mod community into Minecraft Bedrock. Finally without Minec…

I'm not knocking indie development, the scene is very very vibrant. But indies don't typically push the hardware to its limits the same way.

And Java was a perfectly good choice of language for Notch for the same reasons.

I don't play Minecraft so I guess I'm outta touch. I knew about Bedrock and I've heard kids call Java the "old one". I didn't realise there's still an active community. Thanks for the correction :)

Re: Migrating away from Rust

#655
post #634

Earlier quoted context omitted.

The official `go` command does dep management, (cross) compilation, testing (including benchmarks and coverage reports), race detection, profiling reports, code generation (metaprogramming alternative), doc generation etc. Build times are insanely fast too. The only tooling I use personally outside of the main CLI is building iOS/Android static libraries (gomobile). It’s still first party, but not in the go command.

I haven't tried Go in a while, but 8 years ago, I felt the tooling was a disaster. The V1 ways of doing things were really janky, and the improved versions didn't seem to be universally adopted yet. It's nice to hear that seems to have changed.

Yes, it used to be horrible with GOPATH hell, because Google didn’t care much about deps since they had their own monorepo. They got their shit together years ago. IMO today it’s better tooling than Rust (and Rust is pretty great already). Give it a try.

Re: Migrating away from Rust

#656
post #208

I really like Rust as a replacement for C++, especially given that C++ seems to become crazier every year. When reasonable, nowadays I always use Rust instead of C++. But for the vast majority of projects, I believe that C++ is not the right language, meaning that Rust isn't, either. I feel like many people choose Rust because is sounds like it's more efficient, a bit as if people went for C++ instead of a JVM langua…

This couldn't be any more accurate even if you compiled with CFLAGS='-march native ' and RUSTFLAGS='-C can't remember insert here'

Re: Migrating away from Rust

#657

Another failed game project in Rust. This is sad. I've been writing a metaverse client in Rust for almost five years now, which is too long.[1] Someone else set out to do something similar in C#/Unity and had something going in less than two years. This is discouraging. Ecosystem problems: The Rust 3D game dev user base is tiny. Nobody ever wrote an AAA title in Rust. Nobody has really pushed the performance issues.…

I caveat my remarks with although I've have studed the Rust specification, I have not written a line of Rust code. I was quite intrigued with the borrow checker, and set about learning about it. While D cannot be retrofitted with a borrow checker, it can be enhanced with it. A borrow checker has nothing tying it to the Rust syntax, so it should work. So I implemented a borrow checker for D, and it is enabled by addin…

Hey, thank you for spreading the joy of the borrow checker beyond Rust; awesome stuff, sounds very interesting, challenging, and useful!

One question that came to mind as a single-track-Rust-mind kind of person: in D generally or in your experience specifically, when you find that the borrow checker doesn't work for a data structure, what is the alternative memory management strategy that you choose usually? Is it garbage collection, or manual memory management without a borrow checker?

Cheers!

Re: Migrating away from Rust

#658

I completely understand, and it's not the first time I've heard of people switching from Bevy to Unity. btw Bevy 0.16 just came out in case you missed the discussion: https://news.ycombinator.com/item?id=43787012 In my personal opinion, a paradox of truly open-source projects (meaning community projects, not pseudo-open-source from commercial companies) is that development seems to show a tendency of diversity. While…

> and even agent systems

Is there a Rust equivalent of openai-agents-sdk?

Re: Migrating away from Rust

#659
post #643
post #593

Earlier quoted context omitted.

We know, it stil isn't at Spring/ASP.NET level, coupled with Scala/Kotlin/F#.

I hate Spring(Boot): too much magic due to overuse of annotations. On the JVM I'd prefer Kotlin/http4k/SQLDelight any day over {Java,Kotlin}/Spring(Boot)/{Hibernate,sql-in-strings}.

Nothing beats vertx on JVM!

Re: Migrating away from Rust

#660

Earlier quoted context omitted.

Rust is actually quite suitable for a number of domains where it was never intended to excel. Writing web service backends is one domain where Rust absolutely kicks ass. I would choose Rust/(Actix or Axum) over Go or Flask any day. The database story is a little rough around the edges, but it's getting better and SQLx is good enough for me. edit: The downvoters are missing out.

Tokio + Axum + SQLx has been a total game-changer for me for web dev. It's by far the most productive I've been with any backend web stack.

I prefer rusqlite over SQLx; the latter is too bloated.
Post reply on HN