bp74

Joined 14 years ago

Karma
19
Submissions
17
Member since
Jul 5
Author of the StageXL for Dart library. https://github.com/bp74/StageXL
View on Hacker News

Recent submissions

Comment · 10 years ago
The FlexBook demo is awesome!
Comment · 10 years ago
To be clear, those added functionality is not a plugin in the sense of that you need to install it. They are just libraries that are compiled to JavaScript. In the end you just need a browser that supports HTML5.
Comment · 10 years ago
wow that is strange, thanks for telling me. The file should load without a problem!
Comment · 10 years ago
Indeed it is fast :) And yes, many AS3 developers are missing the capabilities of Flash. Therefore we built StageXL on top of Dart to have a similar developer experience.
Comment · 10 years ago
Comment · 10 years ago
Awesome, thanks for the feedback!
Comment · 10 years ago
Yes it is. Google uses it internally with Angular Dart (a version of Angular made especially for Dart). And the Flutter project looks very interesting to built native mobile apps with Dart (instead of Java for example).
Comment · 10 years ago
Sorry i missed your second question. I would choose StageXL over PixiJS because auf the Dart language. I also use TypeScript for other project but i prefer Dart. The Dart-to-JavaScript compiler does an awesome job. It not only transpiles Dart code to JavaScript (like the TypeScript compiler does for TypeScript) but it's a real compiler with great optimization and minification. The optimizations include inlining, dead code removal, hoisting, etc. The resulting JavaScript code is not pretty to look at, but pretty damned fast at runtime.
Comment · 10 years ago
Unfortunately no, but i'm not aware of any major feature that is not supported in comparision to Pixi.js. If you find something missing in StageXL i'm happy to receive a feature request :)
Comment · 10 years ago
StageXL does also use WebGL with a fallback to Canvas. Fortunately, most browsers supports WebGL nowadays.
Comment · 10 years ago
Yes, CreateJS was one of the first libraries providing a Flash display list in HTML5. But CreateJS uses the Canvas2D api and a very limited WebGL implementation. StageXL provides much more features with full WebGL support.
Comment · 10 years ago
Comment · 10 years ago
Comment · 14 years ago
hahaha, i totally agree - if it is 50x larger i would use a different tool too :) But as i said, if your source is 100KB it's not 50x larger, maybe it's 20% larger than hand written JS. Currently the footprint of the js-code is around 150KB. While dart2js is evolving this number is declining constantly. In the end when you add js-minification you will have a footprint of maybe 20-30KB i guess.
Comment · 14 years ago
You are right that small programs compile to pretty big JS-files, but noone should really care. I can do my "hello world" apps in javascript without a problem, the point of Dart is to write big apps! For those apps the footprint of the compiled JS-code doesn't matter at all. And you can work with nice structured source code.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton