Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Dart for Game Developers
Search
Don Olmstead
May 22, 2014
Programming
55
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dart for Game Developers
Don Olmstead
May 22, 2014
More Decks by Don Olmstead
See All by Don Olmstead
Game Tools in the Browser
donolmstead
0
38
Gaming in the Browser
donolmstead
0
56
Embedding Dart in Your Application
donolmstead
0
190
Intro to Polymer.dart
donolmstead
0
63
Optimizing WebGL Applications
donolmstead
0
59
Developing Structured 3D Applications with Dart and WebGL
donolmstead
0
40
Other Decks in Programming
See All in Programming
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
520
Workers Cache を知る
syumai
0
370
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
The Rails Doctrine Decade
koic
2
590
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
カツオ、ご期待ください
suneo3476
0
190
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
150
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2.2k
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
Railsバージョンを4倍にした話
optim
0
420
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.3k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Prompt Engineering for Job Search
mfonobong
0
520
Transcript
for Game Developers Don Olmstead Sr Software Engineer SNEI
I’m a native programmer working on the web platform for
the PS4 And I want games on the web
None
None
JavaScript
None
None
C Java Objective-C C++ Basic C# Pascal Ada Fortran Forth
D Go Haskell Scala Erlang Delphi Smalltalk Oberon ML Eiffel Icon PL/I Caml/F# Rust PHP Python Perl Ruby R Lisp/Scheme MATLAB APL NXT-G Lua ABC Scratch J Oz Groovy ActionScript Awk ...
None
CHANGE WE CAN BELIEVE IN
x86/x64 PowerPC ARM JavaScript
JavaScript is irrelevant to the modern web
CoffeeScript TypeScript ClojureScript Haxe Emscripten JSIL GWT ...
None
"Dart helps developers from all platforms build complex, high performance
client apps for the modern web."
None
None
Virtual Machine (dart) Code analysis (dartanalyzer) JS compilation (dart2js) Package
management (pub) Documentation generation (docgen) Profiling (Observatory) Editing (Dart Editor)
None
None
None
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
library math3d; import ‘dart:math’ as Math; class Vector2 { double
x; double y; Vector2(this.x, this.y); Vector2 operator +(Vector2 rhs) { return new Vector2(x + rhs.x, y + rhs.y); } double get length => Math.sqrt(x * x + y * y); }
abstract class Disposable { bool get isDisposed; void dispose(); }
class GraphicsResource implements Disposable { GraphicsDevice _graphicsDevice; bool get isDisposed => _graphicsDevice == null; void dispose() { _graphicsDevice._destroyWithoutBinding(this); } }
abstract class Disposable { bool get isDisposed; void dispose(); }
class GraphicsResource implements Disposable { GraphicsDevice _graphicsDevice; bool get isDisposed => _graphicsDevice == null; void dispose() { _graphicsDevice._destroyWithoutBinding(this); } }
abstract class Disposable { bool get isDisposed; void dispose(); }
class GraphicsResource implements Disposable { GraphicsDevice _graphicsDevice; bool get isDisposed => _graphicsDevice == null; void dispose() { _graphicsDevice._destroyWithoutBinding(this); } }
abstract class Disposable { bool get isDisposed; void dispose(); }
class GraphicsResource implements Disposable { GraphicsDevice _graphicsDevice; bool get isDisposed => _graphicsDevice == null; void dispose() { _graphicsDevice._destroyWithoutBinding(this); } }
class GraphicsResource implements Disposable { void dispose() { _graphicsDevice._destroyWithoutBinding(this); }
} class VertexBuffer extends GraphicsResource { @override void dispose() { _graphicsDevice._destroyVertexBuffer(this); } }
class GraphicsResource implements Disposable { void dispose() { _graphicsDevice._destroyWithoutBinding(this); }
} class VertexBuffer extends GraphicsResource { @override void dispose() { _graphicsDevice._destroyVertexBuffer(this); } }
class GraphicsResource implements Disposable { void dispose() { _graphicsDevice._destroyWithoutBinding(this); }
} class VertexBuffer extends GraphicsResource { @override void dispose() { _graphicsDevice._destroyVertexBuffer(this); } }
typedef T Init<T>(); typedef void Term<T>(T value); class ObjectPool<T> {
List<T> _objects; ObjectPool(int size, Init<T> initializer, Term<T> terminator) { _objects = new List<T>(size); for (var i = 0; i < size; ++i) { var object = initializer(); terminator(object); _objects[i] = object; } } }
typedef T Init<T>(); typedef void Term<T>(T value); class ObjectPool<T> {
List<T> _objects; ObjectPool(int size, Init<T> initializer, Term<T> terminator) { _objects = new List<T>(size); for (var i = 0; i < size; ++i) { var object = initializer(); terminator(object); _objects[i] = object; } } }
typedef T Init<T>(); typedef void Term<T>(T value); class ObjectPool<T> {
List<T> _objects; ObjectPool(int size, Init<T> initializer, Term<T> terminator) { _objects = new List<T>(size); for (var i = 0; i < size; ++i) { var object = initializer(); terminator(object); _objects[i] = object; } } }
abstract class Selectable { bool _selected = false; bool get
selected => _selected; set selected(bool value) { setSelected(value); } } @CustomTag(‘px-tree-node’) class TreeViewNode extends PolymerElement with Expandable, Customizable, Selectable { ... }
abstract class Selectable { bool _selected = false; bool get
selected => _selected; set selected(bool value) { setSelected(value); } } @CustomTag(‘px-tree-node’) class TreeViewNode extends PolymerElement with Expandable, Customizable, Selectable { ... }
abstract class Selectable { bool _selected = false; bool get
selected => _selected; set selected(bool value) { setSelected(value); } } @CustomTag(‘px-tree-node’) class TreeViewNode extends PolymerElement with Expandable, Customizable, Selectable { ... }
class DebugRenderingContext implements WebGL.RenderingContext { dynamic noSuchMethod(Invocation invocation) { var
mirror = reflect(_gl); var result = mirror.delegate(invocation); int errorCode = _gl.getError(); while (errorCode != WebGL.NO_ERROR) { if (!_onErrorController.isPaused) { var methodName = MirrorSystem.getName(invocation.memberName); _onErrorController.add( new RenderingErrorEvent._internal(errorCode, methodName)); errorCode = _gl.getError(); } } return result; } }
None
class BlendState extends GraphicsResource { BlendState(GraphicsDevice device) : super._internalWithoutBinding(device); BlendState.additive(String
name, GraphicsDevice device) : super._internalWithoutBinding(device) , alphaDestinationBlend = Blend.One , alphaSourceBlend = Blend.SourceAlpha , colorDestinationBlend = Blend.One , colorSourceBlend = Blend.SourceAlpha; } var blendState = new BlendState.additive();
BlendState createBlendState() { var state = new BlendState(device); state..enabled =
true ..alphaDestinationBlend = Blend.One ..alphaSourceBlend = Blend.One ..colorBlendOperation = BlendOperation.Add ..colorDestinationBlend = Blend.One ..blendFactorRed = 1.0 ..blendFactorGreen = 1.0 ..blendFactorBlue = 1.0 ..blendFactorAlpha = 1.0; return state; }
None
class TextureManager { Future<Texture> loadTexture(String path) { ... } }
void initTextures() { textureManager.loadTexture('uv.jpg').then((texture) { effect.parameters['uTexture'] = texture; }); }
class GraphicsDevice { StreamController<ResourceCreatedEvent> _onResourceCreatedController; Stream<ResourceCreatedEvent> _onResourceCreated; Stream<ResourceCreatedEvent> get onResourceCreated
=> _onResourceCreated; void _notifyResourceCreated(GraphicsResource graphicsResource) { if (!_onResourceCreatedController.isPaused) { _onResourceCreatedController.add( new ResourceCreatedEvent._internal(graphicsResource) ); } } }
Server libraries Collections Serialization JS Interop Angular.dart Polymer.dart AND MANY
MORE!
#perfmatters
None
None
None
None
Faster JS performance And an even faster VM!
None
enum E { id1, ... idn }
@lazy import 'foo.dart' as foo; const lazy = const DeferredLibrary('com.example.foo');
void main() { foo.method(); // Throws a NoSuchMethodError, foo is not loaded yet. lazy.load().then(onFooLoaded); } void onFooLoaded(_) { foo.method(); }
async Future<int> foo() { var longRunningTask = longRunningOperation(); // Wait
for result var result = await longRunningTask; print(result); } async Future<int> longRunningOperation() { .. }
Thank you! g+ google.com/+DonOlmstead twitter @don_olmstead www donolmstead.me github github.com/donny-dont