Live data from Hacker News

The Slang Shading Language

shader-slang.com

1–10 of 50 posts

Re: The Slang Shading Language

#4
I've been very impressed by Slang as an open source project. The development team is quick to respond to issues and review pull requests. It's clear from their repository and their presentations that they take Slang seriously as a user-facing project, not a research demo.

Re: The Slang Shading Language

#7
post #4

I've been very impressed by Slang as an open source project. The development team is quick to respond to issues and review pull requests. It's clear from their repository and their presentations that they take Slang seriously as a user-facing project, not a research demo.

Several commercial products are already using Slang, it has moved beyond research demo for quite some time now.

The main difference, with something like Cg, is that now it isn't NVidia only.

Re: The Slang Shading Language

#8
The design of generics in this one seems rather well balanced in simplicity vs power.

The part about interface-typed values [1] is interesting. They do dynamic dispatch as a fallback when the function is too polymorphic to be be specialized.

In Rust terms it's as if it picks between `dyn` and `impl` automatically. It looks convenient, but also a bit of a non-obvious performance pitfall.

[1] https://shader-slang.com/slang/user-guide/interfaces-generic...

Post reply on HN