Remix.run Logo
rowanG077 3 hours ago

Personally I really don't want new GPU languages that do not have AD as a first class citizen. I mean rust is an improvement over C++ CUDA but still.

erk__ 3 hours ago | parent | next [-]

There is actually work on adding autodiff to Rust, maybe not really first class citizen, but at least build in: https://doc.rust-lang.org/std/autodiff/index.html (it is still at a pre-RFC stage so it is not something that soon will be added)

magnio 3 hours ago | parent | next [-]

Incredible, I have never heard of std::autodiff before. Isn't it rare for a programming language to provide AD within the standard library? Even Julia doesn't have it built-in, I wouldn't expect Rust out of all languages to experiment it in std.

rowanG077 2 hours ago | parent | prev [-]

That's awesome, I didn't know that!

TallGuyShort 3 hours ago | parent | prev | next [-]

Sorry, what is AD in this context?

edit: oh, automatic differentiation?

huflungdung 3 hours ago | parent [-]

Active Directory

the__alchemist 2 hours ago | parent | prev | next [-]

This isn't a new GPU language; it's a lib which might replace FFI and third party libs.

rowanG077 2 hours ago | parent [-]

This is definitely not just a lib. This compiles rust to CUDA. If you call a full on compiler stack a lib, everything may as well be a lib.

the__alchemist 2 hours ago | parent [-]

Ok. I am calling it a lib because to use, you add it as a dependency in cargo.toml then import it in your rust modules.

rowanG077 an hour ago | parent [-]

That's after you have installed their entire build infra + dependencies. They ship their own cargo subcommand.

corysama 2 hours ago | parent | prev | next [-]

So, https://shader-slang.org/ then :)

vimarsh6739 3 hours ago | parent | prev | next [-]

Really hard to find alternatives to Julia for AD as a first class citizen

hellohello2 3 hours ago | parent [-]

I think the parent is mostly referring to solutions like Slang.D

mathisfun123 2 hours ago | parent | prev [-]

every GPU related post has a comment which makes my eyes roll all the way back. this is the one for this post.