jruby on rails
DESCRIPTION
Slajdy z prezentacji JRuby on Rails wygloszonej podczas WarsJava'07.TRANSCRIPT
![Page 1: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/1.jpg)
JRuby on Rails
Wiktor Gworekhttp://blog.mocna-kawa.com
1
![Page 2: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/2.jpg)
O mnie:
• Entuzjasta nowych technologii,
• student V roku na MIMUWie,
• od dwóch lat związany z Javą,
• prowadzę blog Mocna Kawa
‣ http://blog.mocna-kawa.com
2
![Page 3: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/3.jpg)
JRuby
3
![Page 4: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/4.jpg)
JRuby
Ruby (1.8)
3
![Page 5: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/5.jpg)
JRuby
Ruby (1.8)
3
![Page 6: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/6.jpg)
JRuby
Ruby (1.8)
Pomaga:
3
![Page 7: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/7.jpg)
JRuby
Ruby (1.8)
Pomaga:• rozszerzyć zasięg Ruby’iego,
3
![Page 8: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/8.jpg)
JRuby
Ruby (1.8)
Pomaga:• rozszerzyć zasięg Ruby’iego,• reszty świata zrozumieć Ruby’iego.
3
![Page 9: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/9.jpg)
twórca Railsów4
![Page 10: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/10.jpg)
JRuby to nie:
5
![Page 11: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/11.jpg)
JRuby to nie:
• stworzenie innej dystrybucji Ruby’iego,
5
![Page 12: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/12.jpg)
JRuby to nie:
• stworzenie innej dystrybucji Ruby’iego,
• ani próba zmienienia go,
5
![Page 13: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/13.jpg)
JRuby to nie:
• stworzenie innej dystrybucji Ruby’iego,
• ani próba zmienienia go,
• przyznanie się, że Java sucks,
5
![Page 14: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/14.jpg)
JRuby to nie:
• stworzenie innej dystrybucji Ruby’iego,
• ani próba zmienienia go,
• przyznanie się, że Java sucks,
• odpowiedź na każdy problem z Ruby’im.
5
![Page 15: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/15.jpg)
6
![Page 16: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/16.jpg)
Po co JRuby?
7
![Page 17: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/17.jpg)
Po co JRuby?
• Java jest wszechobecna,
7
![Page 18: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/18.jpg)
Po co JRuby?
• Java jest wszechobecna,
• ogrom bibliotek Javowych,
7
![Page 19: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/19.jpg)
Po co JRuby?
• Java jest wszechobecna,
• ogrom bibliotek Javowych,
• wydajność,
7
![Page 20: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/20.jpg)
Po co JRuby?
• Java jest wszechobecna,
• ogrom bibliotek Javowych,
• wydajność,
• Javowi web developerzy są nieszczęśliwi,
7
![Page 21: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/21.jpg)
Po co JRuby?
• Java jest wszechobecna,
• ogrom bibliotek Javowych,
• wydajność,
• Javowi web developerzy są nieszczęśliwi,
• Railsowi web developerzy są szczęśliwi.
7
![Page 22: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/22.jpg)
Ruby i JRuby: bracia
8
![Page 23: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/23.jpg)
Co będziemy robić?
JMS
9
![Page 24: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/24.jpg)
Co będziemy robić?
JMS
tid: 112233tel: 606-RUBY-JAVAHello World!
9
![Page 25: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/25.jpg)
Co będziemy robić?
JMS
tid: 112233tel: 606-RUBY-JAVAHello World!
tid: 112233(OK|FAILED)
9
![Page 26: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/26.jpg)
Nie mów! Patrz! Jak zobaczysz to uwierzysz.
10
![Page 27: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/27.jpg)
Ale jednak parę rzeczy jest innych...
11
![Page 28: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/28.jpg)
Różnica #01: Brak rozszerzeń natywnych*
* dopóki nie pojawią się ich odpowiedniki
12
![Page 29: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/29.jpg)
Różnica #02: Wsparcie dla baz danych
13
![Page 30: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/30.jpg)
Różnica #03: szybkość linii poleceń
14
![Page 31: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/31.jpg)
Nie, Java nie jest wolna......poza startem
15
![Page 32: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/32.jpg)
Wdrażanie aplikacji Ruby on Rails
16
![Page 33: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/33.jpg)
Mongrel JCluster
• Odpowiednik Mongrel Cluster,
• odpala N procesów w jednej maszynie wirutalnej,
• sprawdzony przez społeczność Railsową.
17
![Page 34: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/34.jpg)
Grizzly/Glassfish v3
• Lekki, dostępny jako gem,
• współbieżność, pule połączeń,
• wykorzystanie NIO,
• pełne wsparcie dla Ruby on Rails.
18
![Page 35: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/35.jpg)
Przyszłość
19
![Page 36: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/36.jpg)
Kompilator JRuby już dostępnyZ o s t a t n i e j c h w i l i
20
![Page 37: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/37.jpg)
JMX & ActiveHibernate
21
![Page 38: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/38.jpg)
...i jest jeszcze jedna rzecz
22
![Page 39: JRuby On Rails](https://reader037.vdocuments.mx/reader037/viewer/2022103116/558a688ad8b42a5a7a8b4615/html5/thumbnails/39.jpg)
Wykorzystanie EJB
23