Stretch

Dev tools

layout engine

SHOW HN2019

213points
58comments
#180of 2,195 in 2019
Top 9%of 2019 by points

How HN took it

MixedNo clear lean

9 positive, 10 neutral or asking, 0 mixed, 4 critical, out of 23 comments about the project. Thread score +0.17.

Idea: 2 for, 1 againstDocs: 1 for, 1 againstExecution: 2 for, 0 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Pragmatic approach of testing against Chrome with web platform tests.

    From 2 comments
    • 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…
      pcwalton on HN
    • I like this approach :) It’s pragmatic.
      dmitriid on HN
  • Pure Rust alternative to Yoga bindings.

    From 2 comments
    • 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.
      iBelieve on HN
    • As the author of the bindings, I'm happy for Stretch to exist :) All I wanted was a flexbox engine in Rust, and it's great to now have a pure Rust solution!
      bschwindHN on HN

Objections

  • Testing only against Chrome risks replicating Chrome bugs.

    From 2 comments
    • > 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…
      dmitriid on HN
    • It would be a very good idea to run the tests against Firefox as well as Chrome to avoid replicating Chrome bugs that the Chrome team might later fix.
      roca on HN
  • Grid layout is missing.

    From 2 comments
    • 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,…
      jarjoura on HN
    • 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…
      nicoburns on HN

Requests

  • Add CSS Grid layout support.

    From 2 comments
    • 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,…
      jarjoura on HN
    • 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…
      nicoburns on HN
  • Run tests against Firefox as well as Chrome.

    From 1 comment
    • It would be a very good idea to run the tests against Firefox as well as Chrome to avoid replicating Chrome bugs that the Chrome team might later fix.
      roca on HN

Questions

  • How does it compare to Yoga?

    From 2 comments
    • How does this compare to Yoga? https://yogalayout.com/
      openbasic on HN
    • 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,…
      jarjoura on HN
  • How to use it as a web developer moving to mobile?

    From 1 comment
    • As a web guy wanting to break out into mobile development, I’m very intrigued by what it says but I have no idea how to make use of this. Can someone give me a light overview?
      whytaka on HN

Alternatives named

  • Yoga

    From 2 comments
    • How does this compare to Yoga? https://yogalayout.com/
      openbasic on HN
    • 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.
      iBelieve on HN
  • Apple AutoLayout

    From 2 comments
    • 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,…
      jarjoura on HN
    • What problems have you experienced with Apple’s auto layout?
      jahewson on HN
  • ConstraintLayout

    From 1 comment
    • Have you tried ConstraintLayout ? It is based on Cassowary constraint resolution algorithm just as Apple's AutoLayout. Is it missing something compared to Apple's solution ?
      on_and_off on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/19780790)