News for hackers. Stuff that matters.

oyvindkinsey

Re:React Native is now open source on Thursday March 26, 2015 @11:25PM (#9274605)
With RN, you really only need XCode to build the initial app and the final build for submission - everything in between can be done on any platform that can run the packager with a phone for actual testing. So if you have a friend with a mac, you're good!
Re:React Native is now open source on Thursday March 26, 2015 @09:12PM (#9274238)
It's not translated. The JS runs to create a declarative description of what the ui should look like, which is reduced to a diff representing the changes that needs to be made to the native ui. These change commands are then marshalled to native code which simply implements the changes (add this thing, move this thing, remove this thing).
Re:Facebook Launches Flow, Static Type Checker for JavaScript on Wednesday November 19, 2014 @02:01PM (#8631897)
Based on the inference, we can imagine a case where Flow would flag certain boundaries as 'unsafe', allowing a transform to inject dynamic type safety checks using the same type information Flow has available.

For instance, you could imagine a function calling into some unknown api, where we would need to constrain the type of the variable to the expected one to avoid `any` being applied to it. While the library files do provide typing of external dependencies, this doesn't protect you from bugs in those libraries! The same applies to api's that are explicitly typed as `any`, but which should return a certain type.

Having Flow add a dynamic assertion on the type here would allow the rest of the program to remain type safe, knowing that a violation is guaranteed to halt execution.

While dynamic strong typing is also used at Facebook, we're not quite ready to launch this as an extension to Flow.