language

Design of the Dart language (by dart-lang)

Language Alternatives

Similar projects and alternatives to language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better language alternative or higher similarity.

language reviews and mentions

Posts with mentions or reviews of language. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-17.
  • Dart 3.1 and a retrospective on functional style programming in Dart
    7 projects | news.ycombinator.com | 17 Aug 2023
    Current syntax is not all that bad if you are going to do OO and add various helper methods on `Message` and its subclasses, but if you just want to define your data and no behavior / helpers - then it is exceedingly verbose.

    [1]: https://github.com/dart-lang/language/issues/3021

  • HTML template languages?
    4 projects | /r/dartlang | 6 Jun 2023
    A future version of Dart will probably support macros which should make this all a bit easier to use, similar to how Swift 5.9 works which makes already fantastic use of its new macro capabilities by integrating mobx (or solidjs) like reactivity into SwiftUI by a harmlessly looking @Obervable annotation.
  • Build clean & concise UI components with Flutter similar to styled-components in React Native
    2 projects | /r/FlutterDev | 6 Jun 2023
    Yes, that needs a bit of boilerplate for the constructor declaration and the extra build method, but I personally don't mind and with implicit constructors this will become much easier. Also, you get a performant UI as Flutter knows to not redraw widgets that didn't change.
  • Why is Swift so slow (timeout) in compiling this code?
    5 projects | news.ycombinator.com | 30 May 2023
    I implemented a prototype version of the algorithm in that paper when exploring exhaustiveness checking for pattern matching in Dart.

    I found it pretty easy to understand, but also really easy to get it to generate huge combinatorially large spaces. Some careful memoization and deduplication helped, but even so I never got the performance to a state I considered acceptable.

    Instead, I went with Luc Maranget's classic approach and figured out a way to adapt it to a language with subtyping (with a ton of work from Johnni Winther to figure out all of the hard complex cases around generics):

    https://github.com/dart-lang/language/blob/main/accepted/fut...

    The performance (in the prototype!) was dramatically better. You can always make pattern matching go combinatorial, but I haven't seen any real-world switches get particularly slow with our approach yet, and we have some fairly large tests of matching on tuples of enums.

  • Dart 3: 100% null-safe, records, pattern matching and class modifiers
    2 projects | /r/programming | 10 May 2023
    We are working on a proposal to add macros to the language for sophisticated compile-time metaprogramming. But the goal is more for larger-scale uses of metaprogramming—synthesizing entire new declarations—and not really about extending the syntax.
  • Confirmed. Dart 3 on May 10th
    5 projects | /r/FlutterDev | 4 May 2023
    Looked at, never gonna happen (says https://github.com/dart-lang/language/issues/69). The language would have to have been designed for that from the beginning, and now there are too many constructs that would require too much "guessing" to get proper syntax right.
  • Compile-time Dependency Injection for Dart and Flutter
    2 projects | /r/FlutterDev | 3 May 2023
    However, I'm super stoked to see the community pushing forward. I think when/if metaprogramming becomes available (https://github.com/dart-lang/language/issues/1482), similar magical experience would be possible in Dart everywhere. Consider following that issue and providing feedback. IIRC the champion of that feature (https://github.com/jakemac53) would like to make DI frameworks one of the key use-cases for the language feature, and will appreciate your thoughts on what primitives you'd need.
  • Dart 4.0 vs a new language
    3 projects | /r/dartlang | 17 Apr 2023
    Dart is openly developed. If you want to know what Dart 4.0 will bring browse the Github (https://github.com/dart-lang/language).
    3 projects | /r/dartlang | 17 Apr 2023
    Macros: https://github.com/dart-lang/language/issues/1482
    3 projects | /r/dartlang | 17 Apr 2023
    Not sharing memory between threads was a deliberate choice and I think it saves us from a lot of bugs. Especially race conditions in multi threaded code can be a pain to debug. But more you read a long discussion here: https://github.com/dart-lang/language/issues/333
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 19 Mar 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic language repo stats
146
2,512
9.0
4 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com