Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
271.
▲
by
pcwalton
2y ago
> Rust had mozilla/servo which was ultimately unsuccessful. There's lots of Rust code in Firefox! > I haven't seen the “we manage 1-10 MM sloc of complex code using rust” type projects. Meta has a lot of Rust internal
272.
▲
by
pcwalton
2y ago
The fact that 100% of the CPU is being used, and multiple systems are executing in parallel, shows otherwise.
273.
▲
by
pcwalton
2y ago
No, the original article said that you don't get parallelism from Bevy in practice: > Unfortunately, after all the work that one has to put into ordering their systems it's not like there is going to be much left to paralleli
274.
▲
by
pcwalton
2y ago
> I am saying that Rust development has a lower velocity than mainstream GC'ed languages (Java, C#, Go, whatever). That's not what you said: you said you're going to be less productive in Rust than nearly any other languag
275.
▲
by
pcwalton
2y ago
Oh, come on, we're yet again extrapolating from "Rust is bad at rapid iteration on an indie game" to "Rust is bad at everything". If Rust were really that astoundingly unproductive of a language, then so many develo
276.
▲
by
pcwalton
2y ago
Or maybe Rust allowed them to develop twice as fast. Who knows? We're going by data here, and this data point shows that games can be made in Bevy. No more and no less.
277.
▲
by
pcwalton
2y ago
Ok, we're going from a bunch of complaints about Rust being bad for fast prototypes for indie development to the idea that Rust is bad at everything. This is silly. "Syzbot and the Tale of a Thousand Kernel Bugs" [1] is my fa
278.
▲
by
pcwalton
2y ago
> That said as a few other people pointed out, the key is iteration, hot-reload and other things. Given the choice I'd probably do(and have done) a Rust based engine core where you need performance/stability and some dynamic la
279.
▲
by
pcwalton
2y ago
I have about a half dozen PRs open, plus more on the way, that will get Bevy's renderer up to rough feature parity with Godot (Godot will have some things Bevy doesn't, like SDFGI, and Bevy will have some things Godot doesn't
280.
▲
by
pcwalton
2y ago
I've parallelized emulators in C++ and work on parallel parts of Bevy now, which is probably the closest you're going to get to someone who has worked on parallelizing parts of large game engines in both C++ and Rust. It was far e
281.
▲
by
pcwalton
2y ago
Nobody said that every game needs that level of performance. But saying that it's a solution looking for a problem is not true. I'm fully in favor of having Bevy support dynamic languages, as implemented in for example bevy_mod_sc
282.
▲
by
pcwalton
2y ago
Among those who have tried both, I can confidently say that the idea that C/C++ parallelism is as easy to achieve as parallelism in Rust is very much a minority view. There's a reason why nobody tried to parallelize CSS styling in
283.
▲
by
pcwalton
2y ago
Here's a trace of a Bevy demo: https://i.imgur.com/oXUxC2h.png You can see that all the CPUs are being maxed out. This actually does result in significant FPS increases. Does it matter for every game? No. But it does r
284.
▲
by
pcwalton
2y ago
This is an editorialized title, which the guidelines ask you not to do.
285.
▲
by
pcwalton
2y ago
I don't think anyone ever claimed that Bevy is finished. As for audacious unverifiable claims: it's quite verifiable that Bevy never used DirectX 9, DirectX 10, shadow volumes, HLSL, Cg, Vulkan, or Metal (I'm not sure about O
286.
▲
by
pcwalton
2y ago
Agreed. We've learned a lot from Godot, by the way. I consider all us open source engines to be in it together :)
287.
▲
by
pcwalton
2y ago
Right now it's blocked on cart rewriting the scene format.
288.
▲
by
pcwalton
2y ago
Rust, in my view, is easy to justify over C++: the Cargo ecosystem makes high-quality libraries accessible, you'll spend less time debugging crashes, the language is more modern so you don't have to deal with stuff like header fil
289.
▲
by
pcwalton
2y ago
Animations are an example. I landed code in Bevy 0.13 to evaluate all AnimationTargets (in Unity speak, animators) for all objects in parallel. (This can't be done on GPU because animations can affect the transforms of entities, which
290.
▲
by
pcwalton
2y ago
There are a few successful games like Tunnet [1] written in Bevy. [1]: https://store.steampowered.com/app/2286390/Tunnet/
291.
▲
by
pcwalton
2y ago
The ability of engines like Bevy to automatically schedule dependencies and multithread systems, which relies on Rust's strictness around mutability, is a big advantage. Speaking as someone who's spent a long time looking at Bevy
292.
▲
by
pcwalton
2y ago
I'd say Rust does have that big ticket ecosystem push. Microsoft has been embracing Rust lately, with things like official Windows bindings [1]. The bigger problem is just inertia: large game engines are enormous. [1]: https:/&#x
293.
▲
by
pcwalton
2y ago
I think whether you prefer Rust or a scripting language like Lua for high-level game logic comes down to what your needs are and personal preference. There are reasonable arguments on both sides.
294.
▲
by
pcwalton
2y ago
> And my other biggest problem is that they keep painting other non-Rust things as being fundamentally flawed for not being Rust. "It's not memory safe" is the biggest one thrown around, but when was the last time memory s
295.
▲
by
pcwalton
2y ago
Exactly. Bevy has the advantage of being built using the "right way" from the start. This makes an enormous difference in the ease of hacking on rendering code. Ironically, the main thing holding Bevy back is the bickering at the
296.
▲
by
pcwalton
2y ago
> I'd expected some AAA title to be written in Rust by now. Why? Those kinds of game engines are enormous amounts of code, and there's little incentive to rewrite. I do strongly disagree that we aren't ever going to see la
297.
▲
by
pcwalton
2y ago
As someone who's become a core contributor to Bevy lately, while also doing contract work in Unity on the side, I obviously disagree with the idea that Rust isn't up to the task of game dev. The grass isn't greener on the U
298.
▲
by
pcwalton
2y ago
Register allocation decisions routinely result in multi-percent performance changes, so yes, it does. Also, registers help the MachineInstr-level optimization passes in LLVM, of which there are quite a few.
299.
▲
by
pcwalton
2y ago
Well, the Wii GPU has 12 GFLOPS, while the Mali-G52 MP2 used in the Galaxy A14, the top selling Android phone of 2023, has 418.78 GFLOPS.
300.
▲
by
pcwalton
3y ago
You mean freedom of association, right? Freedom of assembly is the right to gather; freedom of association is the right to choose the people you associate with.
More ›