Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread timur . kristof
On Fri, 2020-10-02 at 18:21 -0500, Jason Ekstrand wrote: > > The good thing about C++ is that you can pick a subset of features > > that > > you like, and stick to them. Then you'll never have to deal with > > other > > the stuff if you don't want to. There exists a subset of the > > language > >

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Jason Ekstrand
On Fri, Oct 2, 2020 at 5:51 PM wrote: > > On Fri, 2020-10-02 at 12:53 -0500, Jason Ekstrand wrote: > > On Fri, Oct 2, 2020 at 11:34 AM Eric Anholt wrote: > > > On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig > > > wrote: > > > > Hi all, > > > > > > > > Recently I've been thinking about the

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread timur . kristof
On Fri, 2020-10-02 at 12:53 -0500, Jason Ekstrand wrote: > On Fri, Oct 2, 2020 at 11:34 AM Eric Anholt wrote: > > On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig > > wrote: > > > Hi all, > > > > > > Recently I've been thinking about the potential for the Rust > > > programming > > > language

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Jacob Lifshay
On Fri, Oct 2, 2020, 10:53 Jason Ekstrand wrote: > > 2. Rust's enums look awesome but are only mostly awesome: > a. Pattern matching on them can lead to some pretty deep > indentation which is a bit annoying. > b. There's no good way to have multiple cases handled by the same > code

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Jason Ekstrand
On Fri, Oct 2, 2020 at 11:34 AM Eric Anholt wrote: > > On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig > wrote: > > > > Hi all, > > > > Recently I've been thinking about the potential for the Rust programming > > language in Mesa. Rust bills itself a safe system programming language > > with

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Alexander Schlichte
On 02.10.20 08:14, Dave Airlie wrote: My feeling is the pieces that would benefit the most are the things touch the real world, GLSL compiler, SPIR-V handling, maybe some of the GL API space, but I also feel these are the messiest things to move to rust. I'm not sure you'd get much benefit from

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Eric Anholt
On Fri, Oct 2, 2020 at 8:05 AM Dylan Baker wrote: > > I have serious concerns about cargo and crate usage. Cargo is basically npm > for rust, and shares all of the bad design decisions of npm, including > linking multiple versions of the same library together and ballooning > dependency lists

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Eric Anholt
On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig wrote: > > Hi all, > > Recently I've been thinking about the potential for the Rust programming > language in Mesa. Rust bills itself a safe system programming language > with comparable performance to C [0], which is a naturally fit for > graphics

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Nirbheek Chauhan
On Fri, Oct 2, 2020 at 8:35 PM Dylan Baker wrote: > > Add a meson developer the rust community has been incredibly hard to work with > and basically hostile to every request we've made "cargo is hour you build > rust", > is essentially the answer we've gotten from them at every turn. > > On the

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Dylan Baker
I have serious concerns about cargo and crate usage. Cargo is basically npm for rust, and shares all of the bad design decisions of npm, including linking multiple versions of the same library together and ballooning dependency lists that are fetched intrigued from the internet. This is both a

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Alexandros Frantzis
On Fri, Oct 02, 2020 at 04:14:17PM +1000, Dave Airlie wrote: > On Fri, 2 Oct 2020 at 15:01, Jason Ekstrand wrote: > > > > On Thu, Oct 1, 2020 at 10:56 PM Rob Clark wrote: > > > > > > On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig > > > wrote: > > > > > > > > Implications for the build system

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Luke Kenneth Casson Leighton
fransisco, alyssa et al: you may be interested to know that the Libre-SOC Kazan Vulkan driver, funded by NLnet, is written in rust. https://salsa.debian.org/Kazan-team/kazan the insights and analysis that you are going through is - was - pretty much exactly why we chose it (or, more accurately:

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Daniel Stone
Hi, On Fri, 2 Oct 2020 at 08:31, Kristian Kristensen wrote: > On Fri, Oct 2, 2020 at 8:14 AM Dave Airlie wrote: >> My feeling is the pieces that would benefit the most are the things >> touch the real world, GLSL compiler, SPIR-V handling, maybe some of >> the GL API space, but I also feel

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-02 Thread Dave Airlie
On Fri, 2 Oct 2020 at 15:01, Jason Ekstrand wrote: > > On Thu, Oct 1, 2020 at 10:56 PM Rob Clark wrote: > > > > On Thu, Oct 1, 2020 at 6:36 PM Alyssa Rosenzweig > > wrote: > > > > > > Implications for the build system vary. Rust prefers to be built by its > > > own package manager, Cargo, which