News for hackers. Stuff that matters.
Re:Relay Modern: Simpler, faster, more extensible by voxmatt on Tuesday April 18, 2017 @05:15PM (#14142996)
Follow-up (didn't see the updated docs). Looks like there is some support for client-side state through "Client Schema Extensions" — excited to play with this.

I do also hope that this iteration brings with it better docs — that's the one area where I've looked over at Apollo longingly. On many occasions I've discovered unknown patterns in stack overflow answers that aren't documented anywhere (credit where it's due: the answers are often by members of the Relay team).

And one final tangent: the day when Facebook gives up on flow and adopts Typescript will be a glorious, glorious day.

More here: https://facebook.github.io/relay/docs/new-in-relay-modern.ht...

Re:Relay Modern: Simpler, faster, more extensible by cies on Tuesday April 18, 2017 @06:21PM (#14143549)
> the day when Facebook gives up on flow and adopts Typescript will be a glorious, glorious day.

I foresee FB to skip TypeScript and go straight with ReasonML[0], as 25%[1] of the messenger code base supposedly is already converted to Reason.

And I think that is even more glorious development then FB going with TypeScript. :)

[0]: An easier to approach (for programmers coming from mainstream languages; like JS/C++/Java/C#) syntax on top of the OCaml language, and some new tooling. The tools integrate specifically well with BuckleScript (by JaneStreet) which provides the OCaml compiler with a JAvaScript compile target.

[1]: https://news.ycombinator.com/item?id=13980062

https://facebook.github.io/reason

https://github.com/vramana/awesome-reasonml (some links to example code in the last section)

Re:Relay Modern: Simpler, faster, more extensible by trishume on Tuesday April 18, 2017 @10:53PM (#14145104)
BuckleScript is by Bloomberg, specifically https://github.com/bobzhang, not Jane Street. The developer of js_of_ocaml, the other JS to OCaml compiler, works at Jane Street though.
Re:Relay Modern: Simpler, faster, more extensible by cies on Wednesday April 19, 2017 @03:56AM (#14146181)
Oops, sorry. Cannot edit anymore. So please everyone read this!
Re:Relay Modern: Simpler, faster, more extensible by staticassertion on Tuesday April 18, 2017 @07:56PM (#14144220)
Last time I looked at reason it was totally new and there was no tooling etc. I got little support from the gitter or whatever it was.

Have things changed? It really interested me at the time.

Re:Relay Modern: Simpler, faster, more extensible by sgrove on Wednesday April 19, 2017 @12:29AM (#14145445)
Worth stopping by the discord [0], it's grown quite a bit and so has the (editor/build/etc.) tooling. There's no Apollo/Relay story yet (that's the biggest missing piece for me on the client side), but everything else is pretty decent!

[0] - https://discordapp.com/invite/reasonml

Re:Relay Modern: Simpler, faster, more extensible by twoquestions on Wednesday April 19, 2017 @08:54AM (#14147346)
It was a bit tough to get tooling set up and it doesn't work on Windows, but on Mac (and Linux I assume) it's amazing. Better Intellisense support in VSCode than Typescript!

It is very new though, and I haven't got a complete grip of JS FFI with Reason.

Re:Relay Modern: Simpler, faster, more extensible by ivan7237d on Wednesday April 19, 2017 @10:19AM (#14147863)
Hey a quick question — which Flow extension are you using? There's the official one called "Flow Language Support" and another one called vscode-flow-ide.

UPD: sorry, I just realized you were talking about Reason, never mind.

Re:Relay Modern: Simpler, faster, more extensible by rattray on Tuesday April 18, 2017 @08:54PM (#14144535)
> the day when Facebook gives up on flow and adopts Typescript will be a glorious, glorious day.

Why?

Re:Relay Modern: Simpler, faster, more extensible by voxmatt on Wednesday April 19, 2017 @07:11PM (#14152607)
Because I use Typescript! Joking aside though (although, let's be honest, there is some straight-up selfishness: I use TS and if Facebook did, my life would be easier), I think adding types to Javascript is a huge win no matter how its accomplished and it just so happens that TS seems to be gaining more community support than Flow. Flow's support is almost exclusively from the React community because of Facebook. If Facebook would switch to TS, the whole community could coalesce around one standard. That would have huge benefits.
Re:Relay Modern: Simpler, faster, more extensible by wincent on Tuesday April 18, 2017 @06:10PM (#14143460)
> I do also hope that this iteration brings with it better docs

The docs are very minimal this point with some definite gaps (we had a bit of a scramble to get them written in time for F8), but the point is well-taken: Relay docs need to get better. Luckily, the design of Relay Modern is simpler and easier to understand and explain; there is less (no?) magic involved, so we should be able to get the docs to a much better place now.

Re:Relay Modern: Simpler, faster, more extensible by linkmotif on Tuesday April 18, 2017 @11:33PM (#14145259)
Now that mutations are so much simpler, would be great if there was some discussion of what you get from connections. Previously this was only well explained in blog posts by Huey Petersen.

Thank you!