Live data from Hacker News

Show HN: Stretch – A high-performance cross-platform layout engine in Rust

vislyhq.github.io

1–10 of 59 posts

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#4
post #3

This looks great! I've been using Yoga in my Rust UI framework via the yoga-rs bindings, and this looks like a nice pure-rust alternative to try using instead.

I'm the author of both Yoga and Stretch :) After leaving Facebook I created Stretch to fix some core issues which would be hard to address in Yoga, mainly some web compatibility issues. Would love to know more about what you are building and let me know if I can help in any way with the migration! Adding any missing APIs etc should be very easy.

my email is in profile if you want to chat :)

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#5
post #2

I've been using Stretch lately for a project I'm planning to open source in a week or two (a cross platform GUI engine...). Pretty happy so far.

Author here. Super excited to see what you are building! We are more than happy to feature it on the Stretch landing page :) Shoot me an email and let's chat!

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#6
post #3

This looks great! I've been using Yoga in my Rust UI framework via the yoga-rs bindings, and this looks like a nice pure-rust alternative to try using instead.

I'm the author of both Yoga and Stretch :) After leaving Facebook I created Stretch to fix some core issues which would be hard to address in Yoga, mainly some web compatibility issues. Would love to know more about what you are building and let me know if I can help in any way with the migration! Adding any missing APIs etc should be very easy. my email is in profile if you want to chat :)

I'm guessing one of those "Yoga"s in the second sentence should be "Stretch"?

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#7
post #6

Earlier quoted context omitted.

I'm the author of both Yoga and Stretch :) After leaving Facebook I created Stretch to fix some core issues which would be hard to address in Yoga, mainly some web compatibility issues. Would love to know more about what you are building and let me know if I can help in any way with the migration! Adding any missing APIs etc should be very easy. my email is in profile if you want to chat :)

I'm guessing one of those "Yoga"s in the second sentence should be "Stretch"?

haha yes. Edited

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#8
> Stretch is tested against Chrome to ensure 100% web compatibility

Erm, no. That’s testing Chrome compatibility (though it’s probably the only one easy enough to test).

Chrome is often rushing ahead to implement features that are either not standardized yet, or will not be standardized, or break exisiting standards and compatibility.

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#9
post #8

> Stretch is tested against Chrome to ensure 100% web compatibility Erm, no. That’s testing Chrome compatibility (though it’s probably the only one easy enough to test). Chrome is often rushing ahead to implement features that are either not standardized yet, or will not be standardized, or break exisiting standards and compatibility.

It's the "IE6 Only" of the modern web. I really hoped we (as an industry) would have learned enough from that pain, but I guess not. Institutional Knowledge seems to suffer from serious memory loss.

Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust

#10
Interesting! It seems this is a rewrite of Yoga, by the same author, seen by another comment in this thread. So why start again using flex box as a layout engine? For example, there isn't really a good, equally as rich, grid layout engine yet. Also curious what the intended goal with conformance is, as the README states this project has a secondary intent to be more in line with the CSS spec? Personally for me any layout system that can avoid Apple's constraint based system is already a win. I guess, what kind of layout would this enable that Yoga doesn't already?
Post reply on HN