News for hackers. Stuff that matters.
Re:Exploring Flutter for Cross-Platform Mobile Development by themihai on Sunday May 28, 2017 @01:37AM (#14433219)
This may be off-topic but I'm wondering if there is any chance to see cross platform and cross language toolkits any time soon. Something based on WebAssembly so that we don't have to worry or bash about programming languages. Dart is cool but should we all learn Dart now?
Re:Exploring Flutter for Cross-Platform Mobile Development by grey-area on Sunday May 28, 2017 @02:08AM (#14433303)
Here is what developers want:

    Platform independence 
    Choice of tools/language
    Control of customer data
    Hardware independence

Here is what corporate platform owners (Google, Apple, Microsoft, Amazon etc) want:

    Platform lockin
    Minimal support costs (one language, one SDK)
    Control of customer data
    Control of the ecosystem
    Hardware independence
    A vig on every transaction 
    
There are very few intersections between the interests of developers and the interests of platform owners (be that Apple with iOS or MacOS, Google with Android, or MS with Windows). This is why the web will win IMO, it's one of the few platforms focussed on what customers and developers want, and not owned by a single corporation (though Google has come close).
Re:Exploring Flutter for Cross-Platform Mobile Development by iiiggglll on Sunday May 28, 2017 @03:07PM (#14435641)
> focussed on what customers and developers want

I would hardly agree with the modern web being focused on what "customers" want. How many web pages today hijack scrolling, fill the screen with ads that lie on top of the content and don't scroll with the page, and so on? How much bloat is there? How many MB of unnecessary JS frameworks must be downloaded, often on a metered data plan, to support all of that? The web is a horrible mess these days. It may be a rip-roarin' good time for (some) developers, but it's absolutely awful for users.

Re:Exploring Flutter for Cross-Platform Mobile Development by grey-area on Monday May 29, 2017 @01:29AM (#14437564)
Compared to app platforms, I think it is more open and more focussed on readers and devs. The problems you list are annoyances of some websites, not even the majority. For example they don't apply to the site you are currently on not hard limitations.

In contrast iOS forbids other payment systems (see deliberately limited kindle app) and browser engines. Android forces manufacturers to prominently feature lots of google products.

Re:Exploring Flutter for Cross-Platform Mobile Development by jdesjean on Sunday May 28, 2017 @10:43AM (#14434528)
I don't know how good it is, but there is a company called RemObjects Elements http://www.elementscompiler.com/elements/ which cross compile Windows (.NET), Android (Java), iOS (Object C / Swift), Linux/Android (C++).
Re:Exploring Flutter for Cross-Platform Mobile Development by nathan_f77 on Sunday May 28, 2017 @09:11AM (#14434255)
I'm developing a game with React Native [1], and I have a single codebase that works on iOS, Android, Windows, and web (via react-native-web, although it needs a lot of work.)

I've had to write a few 'native modules' for various platforms, but it has to be platform-specific code anyway (e.g. ad networks, in-app purchases, game services)

I've been looking for a way to write some native code that I can compile to JS, and have decided to use C (or C++) with emscripten [2]. Rust or Kotlin might be fun, but I'm comfortable with C and it's easy to compile for iOS, Android (NDK), and Windows.

[1] https://sudoblock.com

[2] http://kripken.github.io/emscripten-site/

Re:Exploring Flutter for Cross-Platform Mobile Development by steveklabnik on Sunday May 28, 2017 @09:44AM (#14434349)
Rust should be just as easy to compile for those platforms.

Using something you're comfortable with is good though!

Re:Exploring Flutter for Cross-Platform Mobile Development by nathan_f77 on Sunday May 28, 2017 @09:51AM (#14434370)
Yeah, that recent post [1] gave me a bit more confidence. Ooh, and it looks like I can compile Rust to wasm with emscripten! [2] I might have to reconsider Rust.

[1] https://michaelfairley.com/blog/i-made-a-game-in-rust/

[2] https://users.rust-lang.org/t/compiling-to-the-web-with-rust...