News for hackers. Stuff that matters.
Re:BeeWare – write Python, run everywhere using native UIs by virtualwhys on Sunday February 06, 2022 @03:55PM (#30236915)
> work now with Flutter full time and love it.

Do you love Dart though? Flutter's stateful hot code reload is amazing but, man, for me Dart is just completely hideous. Maybe I've gotten spoiled by Typescript and Scala...

Re:BeeWare – write Python, run everywhere using native UIs by serial_dev on Sunday February 06, 2022 @04:11PM (#30237038)
Oh, Dart is my favorite part of Flutter. It's a language that is very easy to learn and use, no surprises, it's performant (performant enough), and you can use it on web, server and as command line apps, too. The language has gotten significantly better and the Dart team focuses on the right issues to solve next.
Re:BeeWare – write Python, run everywhere using native UIs by berkes on Sunday February 06, 2022 @04:22PM (#30237133)
> on web

Does it stranspile to JavaScript, or compile to asm, or something else entirely?

Re:BeeWare – write Python, run everywhere using native UIs by serial_dev on Sunday February 06, 2022 @04:35PM (#30237247)
> Dart supports the web as one of its core platforms. Dart-to-JavaScript compilers are available both for development and for production.

You can learn more about the status quo here https://dart.dev/web

Compiling to WASM is on the roadmap https://github.com/flutter/flutter/wiki/Roadmap#dart

> Dart (...) We also plan to expand Dart's compilation toolchain to support compiling to Wasm, contingent on the timely standardisation of WasmGC.

Re:BeeWare – write Python, run everywhere using native UIs by _delirium on Sunday February 06, 2022 @04:27PM (#30237188)
It compiles to JS: https://dart.dev/tools/dart2js

The Dart team is investigating a dart-to-wasm compiler, but is waiting on the Wasm GC proposal to be standardized: https://medium.com/dartlang/experimenting-with-dart-and-wasm...

Re:BeeWare – write Python, run everywhere using native UIs by devxpy on Sunday February 06, 2022 @04:26PM (#30237178)
Transpile to Javascript https://dart.dev/overview#platform
Re:BeeWare – write Python, run everywhere using native UIs by travisgriggs on Sunday February 06, 2022 @07:41PM (#30238710)
I’m with you. Dart felt like a step back in time for me.

I was a big fan of some of the early Dart leaders (Lars Bak and Gilda Bracha). I remember when I asked why Dart seemed like a watered down variant of some Lars and Gilads earlier work; I was tiled by a former colleague that had joined the project that “Lars was playing it safer, playing to win” these days.

I don’t know how much either of these people are associated with Dart anymore. Somewhere in Dart’s search of a killer problem to be the solution for, we got fully typed Dart (as opposed to the original annotations are optional mindset).

I did one of the free web courses for it, built like 10 teeny pointless apps. Three things stood out:

- the experience was kind of painful on iOS, the look had an “uncanny” effect

- the tutor tried to explain classes as a “way of organizing code” which undersells what classes are really about (binding behavior to data)

- the language felt like an alter Java (type declarations in the left side still??)