Today i released a big update to spark.
Lots of improvements in the framework.

see yourself : https://pub.dev/packages/spark_framework/changelog
and even more in the cli : https://pub.dev/packages/spark_cli/changelog

#dart #dartweb #dartlang #ssr #webcomponent

spark_framework changelog | Dart package

Lightweight isomorphic SSR framework for Dart with Custom Elements and Declarative Shadow DOM

Dart packages

FOUND THE PROBLEM

My assumption was that the following code would generate a run-time exception if the types mismatch (as #Dart is supposed to have a sound type system):

final int value = mapping['member'];

This /does/ happen in regular #Flutter:

type 'String' is not a subtype of type 'int`

But, in #FlutterWeb / #DartWeb if mapping['member'] happens to be a String, then `value` is still seen as an integer, but it has as internal value a string literal, and not a numeric one.

Since I have wifi on this flight I figured I’d do a real world test of those three Dart Snake implementations: Dart Web, Jaspr, and Flutter Web. This was on an iPhone 11. Basic trends in the results still hold therefore so do my conclusions in the post. #flutter #FlutterWeb #jaspr #DartLang #DartWeb #DartSnake

Initial Load to game play start:
  • Flutter Web 6.61 seconds
  • Jaspr 3.45 seconds
  • Dart Web 3.01
Reload to game play start:[list]Flutter Web 2.33 secondsJaspr 0.93 secondsDart Web 0.96 seconds
Dart Web Client Programming Head to Head: Flutter, Jaspr, and Dart Web
Dart Web Client Programming Head to Head: Flutter, Jaspr, and Dart Web

A big part of the Dart Snake project was so that I could evaluate the experiences of using Dart for server side development. A year ago I looked at the REST server landscape with this post and how Dart compared to Go in that respect . The Dart Snake project instead let me look at how well Dart worked for the front end by doing three different implementations for the web: Flutter Web, Jaspr, and plain old Dart Web Standard Libraries. In this post I compare these technologies with respect to the development experience and performance. If you’d like to play any of these versions to compare directly you can find the links below: Dart Web Snake Jaspr Web Snake Flutter Web Snake

N=1 Lifestyle