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
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
すこし踏み込む CancellationToken
htkym
2
1.7k
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
ChromeでローカルLLM
ryu1013
0
140
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
150
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Embracing the Ebb and Flow
colly
88
5.2k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
So, you think you're a good person
axbom
PRO
2
2.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
The Limits of Empathy - UXLibs8
cassininazir
2
720
How to Talk to Developers About Accessibility
jct
2
580
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
How to Think Like a Performance Engineer
csswizardry
28
2.9k
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