Live data from Hacker News

Yoga: A cross-platform layout engine

code.facebook.com

161–168 of 168 posts

Re: Yoga: A cross-platform layout engine

#161
post #67

Earlier quoted context omitted.

Animation effects like this are more annoying than anything else, anyway.

No it's not, nicely done animations, and I'm not saying over the top animation, can ease context changes for example. It's better to have an object moving to its new place than to have an object disappear and reappear somewhere else on the screen.

Over the top example: Mac mail, when sending email send the window "over the top" of your screen. As mentioned above, it's not the effect, it's the purpose. Better to not animate and be considered "lazy" or "inelegant" than to over animate and annoy.

Re: Yoga: A cross-platform layout engine

#162
post #135

I made a similar library earlier this year. It builds as C or C++ and is only two files (MIT license): https://github.com/randrew/layout The API is similar to Yoga. I hadn't seen Yoga before, and I'm surprised at how similar it is. It seems like Yoga is about the same age (or older?) than my Layout library. It's meant to be easily embedded into existing software, such as game engines, OpenGL-based tools, custom GUI l…

Hey, this looks really good - I'll give a shot at using this in MOAI! Thanks for that!

Thanks. Leave a message or issue on GitHub if you have any problems and I'll try to fix it. I've only used it in my own software, so there's a chance you will encounter some shortcoming or bug that I haven't.

Re: Yoga: A cross-platform layout engine

#163
post #124

Earlier quoted context omitted.

Both you and grandparent are wrong. I have consulted with lawyers on this (and the language is pretty clear as well). If you initiate a patent lawsuit against FB on any grounds, you lose patent protection for this library (or React, Reactive-Native, etc -- they share the same patent licensing terms). If you counter-sue FB after they have initiated a patent suit against you, you are ok, as long as your counter-suit do…

It doesn't matter if you use React or not. If you sue Facebook, they can sue you for any patents they hold.

Of course, but having to stop using React as a result would be deadly for a company that built its company on it. :)

Re: Yoga: A cross-platform layout engine

#164
post #154
post #152

Earlier quoted context omitted.

Does not matter. It is not a good idea to use other people's cultural heritage to name "things". In fact the downvotes here suggest how deeply prejudiced and racist people are on HN.

In fact the downvotes here suggest how deeply prejudiced and racist people are on HN. Is it fair to generalize like this across all the members of HN? You might argue that this is the case for those that down-voted, but everyone?

If a comment has down-votes it is fair to say people who did not upvote despite reading supported the action of the downvoters.

Re: Yoga: A cross-platform layout engine

#165
post #164
post #154

Earlier quoted context omitted.

In fact the downvotes here suggest how deeply prejudiced and racist people are on HN. Is it fair to generalize like this across all the members of HN? You might argue that this is the case for those that down-voted, but everyone?

If a comment has down-votes it is fair to say people who did not upvote despite reading supported the action of the downvoters.

Okay, I can understand that point of view. Even that only includes those who saw the discussion, right?

Re: Yoga: A cross-platform layout engine

#166
post #128
post #93

Earlier quoted context omitted.

> will this be eventually ported to JavaScript? It has been ported already. https://www.npmjs.com/package/css-layout Oddly enough there's no git repository. Only the npm package has the pure JS code. And the last release was from last year. Fortunately it looks it was easy to port, if one needs a more recent version.

It's actually the exact opposite flow ;) css-layout is the original project, it was written in JS and then automatically translated into Java & co. It had some bugs, and Facebook rewrote the thing directly to a native implementation but decided to drop JS as they were not using that variation internally. This is a shame as I love CSS-layout for calculating tween points in layout animations on the web. FB said at this…

Bummer. I was using css-layout to lay out svg elements[0]

[0]: https://kentor.me/posts/creating-diagrams-with-react-svg-and...

Re: Yoga: A cross-platform layout engine

#167
post #90
post #87

Earlier quoted context omitted.

This is one of the reasons companies seek patents, called a defensive patent strategy. The goal is to discourage competitors from suing you for patent violations by making sure you own a patent your competitors are likely to have violated. It creates a kind of "mutually assured destruction" that discourages either party from launching a patent war (this only works against real competitors, not against patent trolls,…

Let's say I have a patent for a technology outside of React, and even outside of software, such as some hardware patent. Why should me suing for infringement of that patent preclude me from using React when it (the patent infringement and React) are completely independent?

Given that the trade seems pretty apparent, at least to me. "You can use our thing here for free but in exchange we might want to use one of your things later also for free", I have to ask why you don't think not agreeing to the latter half of the deal shouldn't preclude you from the former? I mean, that's how deals work.

Re: Yoga: A cross-platform layout engine

#168
post #163

Earlier quoted context omitted.

It doesn't matter if you use React or not. If you sue Facebook, they can sue you for any patents they hold.

Of course, but having to stop using React as a result would be deadly for a company that built its company on it. :)

It doesn't matter if you use React or not. If you infringe on any of facebook's patents and go after them, they can counter sue.
Post reply on HN