Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Vulkan vs Rust

Name: Anonymous 2015-09-15 8:37

Vulkan. You know what it is. But why isn't it out yet?

Oh, what do you know, it's because Rust programmers are complaining it's difficult to interface with their FFI because of Rust's lack of unions, so these SJWs are bitching about it to try to change Vulkan's data structures to be less optimized in order to favour Rust.

Rust is fucking garbage and these rustcucks are fucking up what could be a good API.

https://www.khronos.org/message_boards/showthread.php/9649-Official-Vulkan-Feedback-API-for-High-efficiency-Graphics-and-Compute-on-GPUs?p=38243&viewfull=1#post38243

Name: Anonymous 2015-09-17 3:29

>>10,12-13
I think the issue here is that Rust's enum types can store composite data like a tagged union in C, but don't have a binary representation that's compatible with arbitrary tagged unions in C. Rust code that doesn't use the native Rust enum type works against the type system.

I think it ought to be possible to write a little unsafe wrapper code in Rust to serialize and deserialize Rust enums to and from the C types the FFI uses, but I'm not a Rust weenie. I'm sure there could be performance concerns but I'd hope rustc is smart enough to eliminate unnecessary copying and repeated checking of type tags if the programmer is a little careful.

Name: Anonymous 2015-09-17 22:48

>>21
The program code, you fartknocker

>>14
I'd hope rustc is smart enough

oh wwwwww

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List