News for hackers. Stuff that matters.
Re:Ruffle: Flash Player Emulator by neverdied on Sunday October 22, 2023 @09:45PM (#37980709)
the more I look, the more Ruffle seems to speed along. how did they get so good (and this fast) ?!?
Re:Ruffle: Flash Player Emulator by TheDong on Monday October 23, 2023 @12:21AM (#37981581)
Unironically, because of rust.

Rust's type system encodes more information than most languages, and so you can offload more work to it. That becomes more and more valuable as the project grows.

Rust also attracts good developers in general, moreso than the average language certainly.

Re:Ruffle: Flash Player Emulator by bsder on Monday October 23, 2023 @12:51AM (#37981762)
> Rust's type system encodes more information than most languages, and so you can offload more work to it.

I suspect at least one of the developers would argue with you as I have listened to his rants. :)

Rust is a remarkably poor match to implementing Flash because Flash has lots of object orientation with child and parent pointers--which Rust really hates.

> Rust also attracts good developers in general, moreso than the average language certainly.

I suspect this is way more relevant.

Re:Ruffle: Flash Player Emulator by teaearlgraycold on Monday October 23, 2023 @01:13AM (#37981871)
Couldn’t you just have a global object table and make your pointers indexes into this, using Rc::Refcells throughout? Rust is still fast with runtime GC.
Re:Ruffle: Flash Player Emulator by adrian17 on Monday October 23, 2023 @04:21AM (#37982895)
More specifically (assuming we’re talking about the same thing), the issue is with reproducing a standard C++ inheritance hierarchy (used for both the AS2/3 native objects and for the „DOM” tree nodes), while keeping its overhead characteristics, devirtualisation opportunities, having it interact with our GC and borrow checker and still have a convenient, safe Rust API on top. Our current solution works, but has deficiencies in most of these aspects.
Re:Ruffle: Flash Player Emulator by pcwalton on Monday October 23, 2023 @04:48AM (#37983122)
I suspect that it's two things: (1) the relatively good support for Wasm in Rust; (2) the Cargo ecosystem. In the case of Ruffle, the combination of the two seems particularly effective.
Re:Ruffle: Flash Player Emulator by subtra3t on Monday October 23, 2023 @09:52AM (#37985636)
> Rust also attracts good developers in general, moreso than the average language certainly.

Could you elaborate more on this? I don't think programmers that primarily use a particular language would be anymore skilled than programmers that rely on another language.

Re:Ruffle: Flash Player Emulator by steveklabnik on Monday October 23, 2023 @10:31AM (#37986164)
I am not going to make the claim that Rust devs are better, but when most people on this website make these sorts of claims, they are often referring to http://www.paulgraham.com/pypar.html

Note that a lot has changed since 2004 :)

Re:Ruffle: Flash Player Emulator by subtra3t on Monday October 23, 2023 @01:39PM (#37988982)
Thanks!
Re:Ruffle: Flash Player Emulator by Cloudef on Monday October 23, 2023 @01:54AM (#37982069)
probably because of the sponsors
Re:Ruffle: Flash Player Emulator by tetris11 on Monday October 23, 2023 @07:22AM (#37984116)
Newgrounds being one