Earlier quoted context omitted.
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!
This is great. As I put on https://www.reddit.com/r/rust/comments/9bapwt/thoughts_on_wh... this could enable the build of a different kind of cross-platform UI, where the logic (backend) is on rust and the UI render (front-end) in a native lang.
Show HN: Stretch – A high-performance cross-platform layout engine in Rust
21–30 of 59 posts
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#22> 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.
Flexbox is pretty mature though. I'm as much of a critic of the Chrome-only Web as anyone, but in this case it's reasonable to test against Chrome. We have the Web platform tests to make sure Chrome, Firefox, and Safari are interoperable.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#23Interesting! 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 la…
Stretch doesn't really enable any new kind of layouts that yoga doesn't but it fixes some fundamental problems in Yoga where Yoga was not compatible with the web implementations. Long term goal of Stretch is to support multiple layout systems including Grid layout I just started with Flexbox because I know that so well :) Look forward to tackling grid layout soonish (contributions / help very welcome).
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#24Earlier quoted context omitted.
Stretch doesn't really enable any new kind of layouts that yoga doesn't but it fixes some fundamental problems in Yoga where Yoga was not compatible with the web implementations. Long term goal of Stretch is to support multiple layout systems including Grid layout I just started with Flexbox because I know that so well :) Look forward to tackling grid layout soonish (contributions / help very welcome).
Super-excited to hear that Grid layout will be coming soonish. Yoga has been fantastic in making Flexbox available "everywhere", but Grid is wonderful for UI layout in a way that Flexbox isn't.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#25Earlier quoted context omitted.
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.
It really isn't. Chrome is pretty good. IE6 was incredibly awful.
Chrome is, however, proprietary and driving further that way. IE6 showed that a single, dominant browser is not good for consumers or progress. Especially when it originates from one of the two leading surveillance tech firms.
[As an aside, I was disappointed to see MS admit defeat with Edge and jump into bed with G. Still seems a bit suspicious tbh].
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#26Earlier quoted context omitted.
It really isn't. Chrome is pretty good. IE6 was incredibly awful.
That's not the point gp is making. You're right of course: Chrome is competent, IE6 definitely wasn't. Chrome is, however, proprietary and driving further that way. IE6 showed that a single, dominant browser is not good for consumers or progress. Especially when it originates from one of the two leading surveillance tech firms. [As an aside, I was disappointed to see MS admit defeat with Edge and jump into bed with G…
You don't see people complaining that GHC is de facto the only Haskell compiler.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#27Earlier quoted context omitted.
That's not the point gp is making. You're right of course: Chrome is competent, IE6 definitely wasn't. Chrome is, however, proprietary and driving further that way. IE6 showed that a single, dominant browser is not good for consumers or progress. Especially when it originates from one of the two leading surveillance tech firms. [As an aside, I was disappointed to see MS admit defeat with Edge and jump into bed with G…
Competence compensates for a monoculture. You don't see people complaining that GHC is de facto the only Haskell compiler.
Sometimes. But motivation matters. The motivation behind ghc is clearly and unequivocally to advance the Haskell ecosystem. The motivation behind Chrome's dominance is another thing entirely.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#28Earlier quoted context omitted.
Competence compensates for a monoculture. You don't see people complaining that GHC is de facto the only Haskell compiler.
> Competence compensates for a monoculture. Sometimes. But motivation matters. The motivation behind ghc is clearly and unequivocally to advance the Haskell ecosystem. The motivation behind Chrome's dominance is another thing entirely.
There's (pretty much) only one Web that needs to serve us all.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#29Earlier quoted context omitted.
Flexbox is pretty mature though. I'm as much of a critic of the Chrome-only Web as anyone, but in this case it's reasonable to test against Chrome. We have the Web platform tests to make sure Chrome, Firefox, and Safari are interoperable.
I like this approach :) It’s pragmatic.
Re: Show HN: Stretch – A high-performance cross-platform layout engine in Rust
#30Earlier quoted context omitted.
Super-excited to hear that Grid layout will be coming soonish. Yoga has been fantastic in making Flexbox available "everywhere", but Grid is wonderful for UI layout in a way that Flexbox isn't.
Just to be clear, we are not working on it. However it is something I would like to start looking into sometime soon :) This is a huge area for contributions as I myself am not a grid expert (as apposed to having worked on flexbox engines past 3 years).
I hear you, but this is very different to "we're never going to implement this". I might look into contributing, but I've never implemented any layout engine, so I'm not sure how much help I would be!