HNHacker News
TopNewBestAskShowJobs

segfault87

34 karma · joined September 1, 2016

Software engineer based in Seoul, South Korea.
submissionscomments
segfault87··on Ldraw: Lego Modeling in Rust
The overall experience has been great. Web APIs(web-sys) are direct translations of WebIDL for now, experiences could get better if we have more 'rustic' APIs. (stdweb looks promising)

Learning Rust can be tricky sometimes. Sometimes it requires you to rethink the way how you code - especially when dealing with the borrow checker.

If you have to do async tasks (fetch, promises, ...) wait until async-await lands on Rust. It's possible on nightly Rust and wasm-bindgen git but it's not stable. Proceed with caution.

segfault87··on Ldraw: Lego Modeling in Rust
Currently Safari does not support WebGL2. Currently renderer depends on WebGL2 (which supports vertex array object out of the box).
segfault87··on Ldraw: Lego Modeling in Rust
Hi, creator here. Never imagined this would make its way into HN. :)

I created this to study Rust(yes, I'm still new) and to explore what's possible with current Rust and WebAssembly. I think it turned out to be okay to continue with Rust and I'm more than happy.

Currently it comprises of a parser which reads LDraw(https://ldraw.org/) file format and a basic renderer. For now the page itself is just a single page with rotating 3d model but eventually would transform into a complete website for creating and sharing your own creations.

If you are interested you can track the development at the GitHub repository(https://github.com/segfault87/ldraw.rs) It's slightly outdated and the current code heavily relies on the bleeding edge of Rust (e.g., nightly, async await, futures 0.3, wasm-bindgen, ...) and needs to be cleaned up before pushing.

If you want more complex model you can try this instead: https://segfault87.github.io/ldraw-rs-preview/#models/6973.l...