6 ms·
There is so much cool stuff at various stages of landing in the Dart pipeline at the moment. A few things that come to mind include: 1. Dart now supports the n
by mdhb 2y ago
There is so much cool stuff at various stages of landing in the Dart pipeline at the moment. A few things that come to mind include:
1. Dart now supports the native Web platform APIs and offers a really compelling alternative to TypeScript now thanks to their their latest generation of JS interop. Example for how the code looks here: https://github.com/kevmoo/kevmoo.com/blob/main/web/main.dart https://github.com/kevmoo/kevmoo.com/blob/main/web/main.dart
2. Compile to WASM now on the web also with future work to also align itself with the emerging WASI standards both as a compile target and the ability to embed WASI runtimes into Dart programs (technically already possible through their C interop)
3. Lots of great work on cross language interop with C, C++, Swift, Rust, Go, JavaScript, Objective C, Kotlin and Java here https://github.com/dart-lang/native https://github.com/dart-lang/native
4. Upcoming Macros feature which gives fully static type safe automatic and fully debugable code generation.
5. Potentially looking at bringing Shared Memory Multithreading to the language https://github.com/dart-lang/language/blob/2662d252b7fa9317586efdd49b3d730f9465a54d/working/333%20-%20shared%20memory%20multithreading/proposal.md https://github.com/dart-lang/language/blob/2662d252b7fa93175...
6. Also some early work on a bytecode compiler it seems but I’ve not seen any kind of announcement about it here https://github.com/dart-lang/sdk/tree/main/pkg/dart2bytecode https://github.com/dart-lang/sdk/tree/main/pkg/dart2bytecode
7. This REPL
It’s really a good time to be a part of the community. It’s a very bright looking future for it.
- BrutalCoding 2y agoI wasn't aware of that bytecode compiler, even though I work with Flutter/Dart on a daily basis. How did you find out? Nonetheless, that’s some low level stuff that I have little experience with haha.
- mdhb 2y agoI spend some time each week just browsing the various repos under the Dart account to see what’s going on in the ecosystem and that turned up recently but as I said there no kind of announcement so I would take them very literally when they say it’s an experiment.
- skybrian 2y agoWhere is JS Interop used in the first example? (It's a bit hard to tell with the wildcard imports how much of that is actually coming from web.dart.)
- mdhb 2y agoWeb.dart is basically designed to give you the equivalent of any of the browser based APIs you would find on MDN essentially unchanged so things like document.querySelectorAll and things like that would just work as though you were using JavaScript (and you technically are in the background) but without otherwise needing to ever leave Dart.
- skybrian 2y agoWell, sure, but web.dart is one of the original packages that came with Dart. That part isn't new.
- mhoad 2y agoThat’s not actually correct I don’t know where you got that from. This is from this year and was built on top of a wider rewrite of their JS interop using new language features to make it essentially a zero cost abstraction. Dart has had browser support and DOM APIs before but never had the same APIs you have in the web platform before.
- skybrian 2y agoI think I had it confused with dart:html, which looks almost the same. I don't see a big difference in the example code.
- meiraleal 2y ago> It’s a very bright looking future for it. Err... At Google? After laying off the core maintainers? Not bright at all.
- mdhb 2y agoThat literally never happened.
- meiraleal 2y agohttps://www.reddit.com/r/FlutterDev/comments/1cduhra/more_layoffs_for_the_flutter_team/ https://www.reddit.com/r/FlutterDev/comments/1cduhra/more_la...
- skybrian 2y agoYes, there were layoffs. But "core maintainers" is not a term they use, and kind of fuzzy since people come and go; some early team members left well before then. People didn't all leave (or get laid off) at the same time, and they never laid off the entire team as far as I know. More: https://www.reddit.com/r/FlutterDev/comments/1cduhra/comment/l1j9eoo/ https://www.reddit.com/r/FlutterDev/comments/1cduhra/comment...
- dartos 2y agoSure, whatever. The one major company backing a project lays off a number of the team working on the project. That is not exactly the signal of a bright future.
- mhoad 2y agoIt would be cool if you could apply even the most basic reading comprehension here where it says there was zero change in team size and stop spreading nonsense.
- 2y ago
- pjmlp 2y agoDart's only reason it is still among us is Flutter, if Google ever gets fed up with Flutter, it will fizzle out. Meanwhile other programming language ecosystems have plenty of domains that keep them relevant no matter what.
- mdhb 2y agoI’ve seen you specifically make this exact same argument in almost every single thread that’s ever about Dart of Flutter for I think at least two years now. It’s a really weird fixation you seem to have. It’s never come true, you’re talking nonsense just like every other time people try to politely explain it to you.
- pjmlp 2y agoAnd yet you felt attacked to waste time replying, interesting....
- mdhb 2y agoIf there’s a point in here I can’t find it. I don’t “feel attacked” more frustrated that you’re here yet again to make the same crappy points knowing full well you have zero interest in having a real conversation or changing your mind. It’s more akin to dealing with the drunk uncle at Christmas who tries to trap you into the same argumentative conversations that he did the past 3 years.
- pjmlp 2y ago[flagged]
- 0rzech 2y agoIMHO, some people just really want Dart and Flutter to fail, so they post the same tired doom prophecy in hope it will become self-fulfilling. What is also annoying is that they come to normal Dart/Flutter related threads just to spoil them. Meanwhile, the ecosystem grows, more and more people and companies choose Dart and Flutter and have fun creating software with this excellent toolchain. The dogs bark, but the caravan goes on, as they say.