dean4j@njug5

53
NJUG 5

Upload: -

Post on 17-May-2015

743 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Dean4j@Njug5

NJUG 5

Page 2: Dean4j@Njug5

Overview

• Platform as a Service

• The future will be about programming language

• JavaFX Family

Page 3: Dean4j@Njug5

Platform as a Service?

Page 4: Dean4j@Njug5

Examples

• Amazon Services

• Google App Engine

• Microsoft Live Mesh

• Sun Hydrazine

Page 5: Dean4j@Njug5

Amazon Services

• Amazon Elastic Compute Cloud (EC2)

• Amazon Simple Storage Service (S3)

• Amazon SimpleDB

• SQS, DevPay, FWS

Page 6: Dean4j@Njug5

Amazon S3

• Most popular• Secure online storage space for any

kind of data• Use web service to retrieve/store data

by unique developer-assigned key• Use many in file/image sharing web

sites.

• 15 cents (~5 baht) a month/ 1 G

Page 7: Dean4j@Njug5

Amazon EC2

• web service that provides resizable compute capacity in the cloud

• Configurable from OS -> Software, Hardware, Zone

• Increase/decrease instances by its own

• $0.10 per instance hour

Page 8: Dean4j@Njug5

Amazon SimpleDB

• Not RDBMS, Think Spreadsheet

• Has a similar query language

• Very Flexible.

• Hurray! No need to maintain schema!, no need another DBA

Page 9: Dean4j@Njug5

Amazon SimpleDB

- Add New attributes on the fly-No datatype required

Box Usage is the measure of machine resources consumed by each request.$0.14 per Amazon SimpleDB Machine Box Usage hour

Page 10: Dean4j@Njug5

Google App Engine

• Leverage the power of Google infrastructure

• Comes with–BigTable–GFS

Page 11: Dean4j@Njug5

Google App Engine

• Similar to Amazon Services but–Start with free of charge–Python Only for now–No EC2 like–Not so flexible–Cannot be separated–Very BETA, very Google lock-in

Page 12: Dean4j@Njug5

The Trend

• Moore’s Adoption

Page 13: Dean4j@Njug5

The Trend

• Geek– Dude, That’s cool lets use it!

• Early Adopter–Wow! I can gain competitive advantage from this.

• Late Adopter– Hmm, Seems like everyone happy with it. Lets try

it out.

• Loser– I have to use it because everyone else are using it.

Page 14: Dean4j@Njug5

Something New -> Something Common

Page 15: Dean4j@Njug5

When something is common it’s easier to create economies of

scale

Page 16: Dean4j@Njug5

Economies of Scale?

Page 17: Dean4j@Njug5

There is no advantage in building

infrastructure

But Thai websites doesn’t have that much problems scaling.

Should I care?

Page 18: Dean4j@Njug5

Why Care?

• The Web 2.0 is full of opportunities–Mash-ups– Social Networks–User generated Contents– 0 Entry Barrier– Fail? Try new ideas

Page 19: Dean4j@Njug5

Historic Problems

• We are just startup. We are not that rich

• We want to try some cool new ideas never happen elsewhere, but we are not sure they’re going to work or not.

• We like to do and focus on what we are good at

Page 20: Dean4j@Njug5

Who knows, maybe we will be rich one day.

Page 21: Dean4j@Njug5

Think about it

• One day if you’ve been digged! Or TechCrunched or Slashdotted.

• Can Your site scale?–Multiple concurrent users– Bandwidth exceed– Fat Database

Page 22: Dean4j@Njug5

Think about it

• Everyone has the same kind of infrastructure already.• Same Hardware technologies• Open source/ Open standard

• Why we have to build and take care our own anyway?

Page 23: Dean4j@Njug5

• Former Chief Architect Blaine Cook famously said

Twitter case study

“Scaling Rails was easy”

in April 2007

Page 24: Dean4j@Njug5

• Latest Rumors.

Twitter case study

“Twitter is planning to abandon Ruby on Rails”

in May 2008

Page 25: Dean4j@Njug5

Doing Infrastructure is not fun

• It’s not so cool. We careless about it from the start.

• Few have experienced it.

• We are not sys admin. Let the expert do their job.

Page 26: Dean4j@Njug5

More To Come

SaaS

PaaS

HaaSYour Data, Applications, Frameworks

My Machines

Page 27: Dean4j@Njug5

More To Come

SaaS

PaaS

HaaS

Your Data

My Applications, Frameworks,

Machines

Page 28: Dean4j@Njug5

More To Come

SaaS

PaaS

HaaS

Your Data, Your Applications My

Frameworks, Machines

Page 29: Dean4j@Njug5

More To Come

Platform + Services

Your Data, Your Applications My Services,

Frameworks, Machines

Page 30: Dean4j@Njug5

More To Come

• Eclipse AJAX IDE

• Virtualization/RIA will play important role in this competition

Page 31: Dean4j@Njug5

Let the Platform handles the Cross cutting Concerns

Page 32: Dean4j@Njug5

The future will be about programming language

Page 33: Dean4j@Njug5

Historically• The academics and the business don’t get along

each other well

• The academic guys focus on how get thing done efficiently, faster, less LOC.

• But it’s hard for practitioners to make use of new language concepts in real-world

• building new language takes time & effort

Page 34: Dean4j@Njug5

The Time has come

• The academic & business guys are starting to kissing one another

• Come from 3 Forces – The Platform – Tools– Linguistics

Page 35: Dean4j@Njug5

Platforms

• They are rock solid and they handle the cross-cutting concerns for you. You get these things for free– Garbage Collections– Cross Platform– Serialization– Distributed System– Internationalization

Page 36: Dean4j@Njug5

Examples

• Java was embraced just because the garbage collection concept– 50+% of C++ efforts were focusing on how to

manage memory usage

• Ruby is big hype 3 years ago. People were jumping into it and they just realize Ruby still have along way to go.– Green Thread, I18n Support

Page 37: Dean4j@Njug5

Tools• Practitioners

– IDEs– Debuggers– Profilers– …

• Academics, Language Designers– Parsers– AST generators– Grammar debuggers– Code optimizers– …

Page 38: Dean4j@Njug5

Linguistics• Long time people think OOP is

end all of the top mountain, There is no more to climb.

• But when AOP & Ruby come, they wake us up!

Page 39: Dean4j@Njug5

Challenges

• Concurrency– multi core CPU– Thread safe?

• User Interface– Flex/Silverlight/JavaFX

Page 40: Dean4j@Njug5

What you should do from now on

• Start learning new Programming Languages– Groovy for testing, xml, regex, scripting …

• When you learn another language you’ll get lots of benefits– You learn the history/culture of the origin people using it– You can apply the new paradigms you learned to your

main language

• Some notions show Scala is coming to be the replacement

Page 41: Dean4j@Njug5

JavaFX Family

• Java 6 update 10• JavaFX Runtime• JavaFX Mobile, TV, Blu-ray

Page 42: Dean4j@Njug5

JavaFX Family

• Focus of Java were on the server-side for long time

• The shift that focus now• JavaFX is to Enable User Experience in

everyway

Page 43: Dean4j@Njug5

Java 6 update 10

• Enhanced Java deployment– Java Kernel– Pack200 Support

Page 44: Dean4j@Njug5

Java 6 update 10

• Improved performance and look & feel– Java Quick Starter –Nimbus Look & Feel–Hardware acceleration support–Native Font Rendering on Windows

Page 45: Dean4j@Njug5

Nimbus L&F

Page 46: Dean4j@Njug5

Java 6 update 10

• Next-Generation Java Plug-In– Rewrite plug-in from scratch– Cold start improvement– Get the right Java version– Improved Java/JavaScript communications

– Java Applet to Web Start Support from JavaOne 2008

Page 47: Dean4j@Njug5

JavaFX Player

• JavaFX Script–DSL for designers– Trigger, binding, twean

• Video/Audio codec support from On2

• HD Video• Same as Flash

• skinnable• SceneGraph 2D/3D Support• WebKit engine/ HTML Component

Page 48: Dean4j@Njug5

JavaFX Tools

• Adobe Photoshop/Illustrator export for Designer

• NetBeans plug-in for developer

• Something like FlexBuilder/ Blend tools is coming too.

Page 49: Dean4j@Njug5

JavaFX and Java

• JavaFX Script can use existing Java libraries• You get everything that Java enables– Network–Web Services/ RMI/ Socket– Cross Platform• Existing mobile, Android, iPhone?• Set-top Box, TV• Blu-ray

Page 50: Dean4j@Njug5

Demo

Page 51: Dean4j@Njug5

Applet is coming Back with full Steam!

Page 52: Dean4j@Njug5

JavaFX Schedule

• Early Access Program in July• JavaFX Desktop 1.0 SDK in

September• JavaFX Mobile, TV SDK in March

2009

• Open source?

Page 53: Dean4j@Njug5

Next Big Thing

• Project Hydrazine• Project Insight