tr-demoscene

the scene => scripting => javascript => Konuyu başlatan: spaztica - 02.09.2008 22:20:37

Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spaztica - 02.09.2008 22:20:37
http://code.google.com/p/v8/

adresinde C++ ile yazılmış ve opensource olan yeni js engine'i bulabilirsiniz. yine bir google ürünü olan chrome (http://www.google.com/chrome/) isimli yeni nesil browser, bu engine'i kullanıyor...
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 02.09.2008 23:01:04
abi acayip dalga konusu oldu bu chrome şimdiden.
 
bkz: orjinal chrome logosu
(http://upload.wikimedia.org/wikipedia/en/3/35/GoogleChromeLogo.png)
 
bkz: milletin dalga geçtiği versiyonu
(http://img175.imageshack.us/img175/1825/googlechromesv8.jpg)
 
JavaScript engine'i sağlam olabilir ancak browser ve özellikle plugin yapısından şüpheliyim. Google'ın yaptığı birçok şeye balıklama atlarım normalde ama bundan tam emin olamadım.
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spaztica - 02.09.2008 23:40:18
ben zaten chrome'u satmıyorum, bir örnekle v8'i duyuruyorum... :)
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spaztica - 03.09.2008 13:25:53
bi de şöyle bir hikayesi var:

One more hire was key. Because Chrome was supposed to be optimized to run Web applications, a crucial element would be the JavaScript engine, a "virtual machine" that runs Web application code. The ideal person to construct this was a Danish computer scientist named Lars Bak. In September 2006, after more than 20 years of nonstop labor designing virtual machines, Bak had been planning to take some time off to work on his farm outside Århus. Then Google called.
  Bak set up a small team that originally worked from the farm, then moved to some offices at the local university. He understood that his mission was to provide a faster engine than in any previous browser. He called his team's part of the project "V8." "We decided we wanted to speed up JavaScript by a factor of 10, and we gave ourselves four months to do it," he says. A typical day for the Denmark team began between 7 and 8 am; they programmed constantly until 6 or 7 at night. The only break was for lunch, when they would wolf down food in five minutes and spend 20 minutes at the game console. "We are pretty damn good at Wii Tennis," Bak says.
  They were also pretty good at writing a JavaScript engine. "We just did some benchmark runs today," Bak says a couple of weeks before the launch. Indeed, V8 processes JavaScript 10 times faster than Firefox or Safari. And how does it compare in those same benchmarks to the market-share leader, Microsoft's IE 7? Fifty-six times faster. "We sort of underestimated what we could do," Bak says.
  Speed may be Chrome's most significant advance. When you improve things by an order of magnitude, you haven't made something better — you've made something new. "As soon as developers get the taste for this kind of speed, they'll start doing more amazing new Web applications and be more creative in doing them," Bak says. Google hopes to kick-start a new generation of Web-based applications that will truly make Microsoft's worst nightmare a reality: The browser will become the equivalent of an operating system.
They were also pretty good at writing a JavaScript engine. "We just did some benchmark runs today," Bak says a couple of weeks before the launch. Indeed, V8 processes JavaScript 10 times faster than Firefox or Safari. And how does it compare in those same benchmarks to the market-share leader, Microsoft's IE 7? Fifty-six times faster. "We sort of underestimated what we could do," Bak says.

açıkçası ben bir süre sonra bu chrome'un hayli fark yaratacağını düşünüyorum. özellikle de kurulan altyapıya uygun js application'lar yapıldıkça kazanılan x10 hız fark edilecektir. yoksa chrome'u bugünkü sitelerle, henüz emekleme aşamasında test etmek sağlıklı olmaz.

yukardaki yazının tümü wired (http://www.wired.com/techbiz/it/magazine/16-10/mf_chrome?currentPage=all) dergisinden
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: GnoStiC - 03.09.2008 13:56:11
http://tech.slashdot.org/article.pl?sid=08/09/02/1637216

Mozilla CEO John Lily:

“It should come as no real surprise that Google has done something here — their business is the web, and they’ve got clear opinions on how things should be, and smart people thinking about how to make things better. Chrome will be a browser optimized for the things that they see as important, and it’ll be interesting to see how it evolves.” Mozilla’s Europe president, Tristan Nitot also chimed in during an interview with PCPro, stating that they don’t view this as a direct attack on Firefox, even if it did catch them by surprise. “I’ll take another example: just before Microsoft launched Vista, it invited us [to work with it] so that Firefox works better on Windows Vista. Because for it, Firefox being a top-tier application that was very successful - we now have 200 million users around the world - it could not afford to have Firefox run slowly on Vista. Therefore, it helped us improve Firefox for Vista. That’s just the same for Google. It wants Firefox to perform well with its applications, that’s for sure. Indeed, it even wants IE to perform well with Gmail and the rest. It’s just that it has very limited control over this. That’s why Google’s been frustrated and it is launching this Chrome browser.”
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: coze - 03.09.2008 17:13:18
web/javascript olaylarıyla pek ilgim yok, ama bir günlük kullanım sonundaki izlenimim firefox'tan pek bir eksiği olmadığı ve artı bazı noktaları olduğu yönünde. öncelikle tab'leri ayrı bir process olarak açması ve bunları direk monitör edebilmeniz süfer bir olay. daha hızlı render ediyor filan diyorlar ama açıkçası ben çok süper bir fark hissetmedim. latency ekleyip background'da renderleyip veriyor, böylece hızlıymış hissi yaratıyor diyenler var. Bu arada gezdiğiniz her linki toplayıp google'a rapor ediyor gibi efsaneler de duydum ama çok emin değilim (evet kullanım sözleşmesini okumadım, bi bakmak lazım tabi ...) hmm birde ad olayı gelecek galiba ... bakalım.

http://www.download.com/8301-2007_4-10030522-12.html

artı ilginç bir özellik, incognito browsing.

Alıntı
You've gone incognito. Pages you view in this window won't appear in your browser history or search history, and they won't leave other traces, like cookies, on your computer after you close the incognito window. Any files you download or bookmarks you create will be preserved, however.

Going incognito doesn't affect the behavior of other people, servers, or software. Be wary of:
Websites that collect or share information about you
Internet service providers or employers that track the pages you visit
Malicious software that tracks your keystrokes in exchange for free smileys
Surveillance by secret agents
People standing behind you
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: coze - 03.09.2008 19:13:58
Hmm ... az önce EULA'yı okudum. garip bir içerik anlaşması var. Chrome ile submit ettiğiniz her türlü içeriği alıp kullanma, başka firmalarla paylaşma gibi bir hak veriyor google'a. açıkçası pek hoşuma gitmedi...

http://www.google.com/chrome/eula.html?hl=en

Alıntı
11. Content license from you

11.1 You retain copyright and any other rights you already hold in Content which you submit, post or display on or through, the Services. By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publish, publicly perform, publicly display and distribute any Content which you submit, post or display on or through, the Services. This license is for the sole purpose of enabling Google to display, distribute and promote the Services and may be revoked for certain Services as defined in the Additional Terms of those Services.

11.2 You agree that this license includes a right for Google to make such Content available to other companies, organizations or individuals with whom Google has relationships for the provision of syndicated services, and to use such Content in connection with the provision of those services.

11.3 You understand that Google, in performing the required technical steps to provide the Services to our users, may (a) transmit or distribute your Content over various public networks and in various media; and (b) make such changes to your Content as are necessary to conform and adapt that Content to the technical requirements of connecting networks, devices, services or media. You agree that this license shall permit Google to take these actions.

11.4 You confirm and warrant to Google that you have all the rights, power and authority necessary to grant the above license.


Bu da bir avukat görüşü (http://tapthehive.com/discuss/This_Post_Not_Made_In_Chrome_Google_s_EULA_Sucks) ...

demek oluyor ki chrome kullanırken nereye ne post ettiğinize dikkat etmekte fayda var. Ad olayı da gelecek gibi görünüyor ...

Alıntı
17. Advertisements

17.1 Some of the Services are supported by advertising revenue and may display advertisements and promotions. These advertisements may be targeted to the content of information stored on the Services, queries made through the Services or other information.

17.2 The manner, mode and extent of advertising by Google on the Services are subject to change without specific notice to you.

17.3 In consideration for Google granting you access to and use of the Services, you agree that Google may place such advertising on the Services.
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: Decipher - 03.09.2008 20:41:42
Haha, Wired'i tr-demoscene'de benden baska birisinin okuyabilecegi aklima gelmemisti. O degil de Google EULA'lari her zaman bu kadar garip ve sacma sekillere sahipler. Bir ara Microsoft'unkileri de okumak lazim. Ote yandan browser gercekten cok hizli, FF3'den de hizli Opera'dan da hizli. Ancak pouet'de sozu gecen IORead hayvanimsiligi ve EULA sagolsun "OpenSource'um biri beni forklasin" gibisinden bir yalvaris icinde sanki. Ote yandan EULA sadece istatistiki amacli olabilir...

Ben gercekten begendim ancak UI ve taban saglamlasmadan bu haliyle gunluk kullanim icin pek uygun degil. Smoothscrolling, zoom vs hicbiri yok henuz :(.
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spritus - 03.09.2008 21:19:07
hepsi bir yana, ben en çok chrome'un getireceği aplikasyon tabanlı website gibi yeniliklerle ilgileniyorum. artık bu tip devrimsel yeniliklerin yapılması ve yaratıcılığa kilit vuran tabuların yıkılması gerekiyor. html tipi tek katmanda etkileşimsiz içerik, artık günümüz için çok ilkel değil mi?
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spaztica - 03.09.2008 23:47:02
decipher: YUH diyorum sana. internet gibi bir ortamda 10 kat yuh hatta...
yahu ben 96-97 döneminde aboneydim; çalıştığımız yerde de dergiyi kapışarak okuyorduk. amma kendin odaklı görüyorsun ortamı yahu, pes doğrusu!
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 04.09.2008 15:29:13
Az önce kendi JS kodlarım üzerinden Chrome'un V8'inin hız testlerini yaptım. "En az" dedikleri kadar hız farkı var. Gerçekten gözle görülür bir fark yaratmışlar. Ancak yine her zamanki problem çıkmış ortaya. Back compitibility...
 
Yine kesin "hede standartları" gibi benim asla kabul etmeyeceğim geyikler dönecektir ortada ancak IE 6/7, FF 2/3 ve Opera 9 ile test edilmiş ve hepsiyle uyumlu çalışan bazı kodlarım Chrome'da çalışmıyor. Henüz beta olduğu için üzerine çok gitmiyorum ama tahminim yine birçok yeni şeyi öğrenmek gerekecek. Hız farkından dolayı yeni bir standart ortaya koyacak olan Chrome yine FF tayfası gibi bir tayfa oluşturacak kendine (ki birçok FF sever eski aşklarına sırt çevirecekler). Sonuç olarak "adam gibi kod yazsan Chrome'da çalışırdı" muhabbetleri dönmeye başlayacak. Bu sefer sinirlerime hakim olucam. şimdiden araştırmaya başlıyorum neymiş Chrome'u mutlu etmenin yolları :)
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: spaztica - 04.09.2008 18:22:12
chrome'un çok nazlı olduğunu sanmam; güzel bir iftar yemeği onu haylice mutlu edebilir. zaten ff ile kapışmak tercihinde değil google tayfası; aksine v8 sayesinde diğer browser'lar da kendi kulalnmasa da altta kalmamak için adam gibi bir engine olayına girebilirler.
beni düşündüren bu v8 motorun, flash'a etkisi zaman içinde nasıl olacak? zira tam teşekküllü ve hızlı bir javascript, flash'ın eline verirse, adobe bu duruma bozulabilir de biraz. yine de birbirini yok edici bir rekabetten çok hybrid ve birbirini destekler bir kalite artış ivmesinin başlarındayız sanırsam. web3.0 için ön görülen veri takası ve distributed application mantığı, v8 gibi güçlü bir motoru güzel kullanabilir...
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 05.09.2008 10:02:35
Evet Flash-JavaScript ya da diğer bir deyişle "ActionScript vs JavaScript V8" ilginç bir tartışma konusu olabilir. Elbette ki Flash vektörel ve son zamanlarda eklenen pixel grafik destekleri ile JavaScript'de standart HTML nesneleriyle yapılması olanaksız şeyleri sunuyor bize. Ancak VML, SVG gibi dillerin de V8'e paralel gelişmesi ile çok ilginç noktalara gidilebilir.
 
V8'in Adobe'un gözle görünen bir avantajını yokedebilmesi için JavaScript kodlarını encode etmek için bir standart getirmesi yerinde olacaktır. Aksi halde ben high score sistemi olan bir oyun için asla JavaScript kullanmayı tercih etmem mesela.
 
Bir diğer mevzu da Flash'in socket desteği gibi özellikleri. JavaScript bunu safe bir şekilde nasıl sağlar onu düşünüyorum. Neyse, ben niye düşünüyorum ki. Google düşünsün :)
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 09.09.2008 12:40:38
Arkadaşlar, yeni yaptığım bazı testlerde Chrome beklediğimden yavaş çıktı. Sonra şu test sitesini buldum.
 
http://celtickane.com/webdesign/jsspeedarchive.php
 
Google'ın V8 Engine projesinin gündem bölümüne gönderilmiş bu test sonuçları. Aslında bu tür testler %100 JS Engine'iyle alakalı değil. Chrome üç ana parçadan oluşuyor.
 
* V8 JavaScript Engine'i
* DOM
* Chromium WebKit'i
 
Tabi başka modülleri de var Chrome'un ancak bu tür performans testlerinde bu üç modüle bakmak lazım.
 
Sonuç olarak Chrome ekibinden Feng isimli bir elemanın yorumu şu yönde:
 
Array, RegEx ve String fonksiyonları hızlandırılmalı. Bu fonksiyonlar diğer browserlarda daha hızlı işleyebiliyor.
 
Bu madde çok önemli çünkü tüm push, pop, reverse, sort, splice, join, parse (Date.parse), regexp gibi komutları kapsıyor.
 
DOM tarafında da bu testleri etkileyen ve gözden geçirilmesi gereken noktalar olduğunu kabul ediyor Feng.
 
Ajax için kullanılan XMLHttpRequest gibi objeler de WebKit tarafının zaafları arasında yer alıyor.
 
Benim en çok dikkatimi çeken yön şu oldu. Diğer browserlar JavaScript push, pop, reverse, sort, splice, join gibi fonksiyonları C/C++ tarafında hızlıca çalıştırırken V8 motorunda bu fonksiyonlar yine JavaScript kütüphaneleriyle çözülüyormuş. Tahmin ediyorum tasarımın bir gereksinimi olmuş bu. Yoksa açıkça öküzlük derdim.
 
Benim birçok demo efektim bu testlerde geçen fonksiyonlara ihtiyaç duymuyor ve DOM, WebKit taraflarında da optimize bölümlere denk geliyorlar. Ama son yaptığım testler ve araştırmalar sonucunda gördüm ki "V8 en hızlı motor" demek için biraz erken.
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: vigo - 09.09.2008 13:39:43
heheheh... skate vs google :) :) :)

becerememiş adamlar yani dimi browser kodlamayı :) :) :) :) :)

hatta :D:D:D:D:D:D:D
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 09.09.2008 13:51:44
@vigo: ben gayet official bir haberi kaynağı Türkçeleştirerek ilettim. orjinalini buradan da inceleyebilirsin.
 
http://code.google.com/p/v8/issues/detail?id=5&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary
 
"v8 en hızlı" olma iddiasıyla çıktı. henüz beta olduğunu herkes biliyor. ancak beta süreci zaten bu tür iyileştirmelerin en yoğun yapıldığı süreçtir. dolayısıyla ben JavaScript'i yoğun biçimde kullananan herkesden togniolli nickli arkadaşın yaptığı tür katkılar beklerim. aslında benim amacım da testlerimi Google'a iletmekti. ama daha önceki reportları incelerken buna rastlayınca vazgeçtim. eleman benim yaptığımdan çok daha düzenli bir rapor iletmiş.
 
ne zamandan beri projelerin gelişimlerini desteklemek karşılarında durmak kabul ediliyor?
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: vigo - 09.09.2008 14:52:18
yok be bro, ben işin gırgırındayım...
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 09.09.2008 15:26:07
chrome'u test etmeden önce hakkında negatif bazı fikirlerim oluşmuştu ki bu topic'in başlarında da paylaştım bunları. bu yüzden gerçekten beni chrome'un karşısında duruyor sanabilirsin diye açıklama ihtiyacı duydum. ben chrome'u en azından scripting yönüyle beğendim ve testlere devam ediyorum. hatta chrome'a özel bir projem bile şekillendi şimdiden (Kasım ayına kadar erteledim malum sebeplerden). bu yüzden açıklama ihtiyacı duydum.
 
gel gelelim chrome'u browser olarak kullanacağımdan hiç emin değilim. ısınmak çok zaman alacak gibi gözüküyor.
 
bu arada ilk başta gözümden kaçan birşeyi kullandıkça farkettim. bunu da paylaşmak istedim. chrome'un title bar'ının üstünde sağ tıkladığınızda açılan context menüde task manager (görev yöneticisi) linki var. bu linkten yalnızca chrome ve chrome üzerinde çalışan pluginlere ait Memory, CPU, Network kullanımı gibi istatistikleri görebiliyorsunuz. sürekli okuyorum "task manager süper olmuş" yorumlarını. ben de sanıyordum ki windows'un task managerında processlerin ayrı ayrı gözükmesinden bahsediyorlar. meğer internal task managerdan bahsediyorlarmış. benim gibi gözünden kaçıran olmuşsa bir baksın çok şık olmuş bu özellik.
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: vigo - 09.09.2008 18:44:48
@skate : http://www.youtube.com/watch?v=LRmrMiOWdfc
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: GnoStiC - 09.09.2008 23:35:05
"ozel bir proje" diyince, bende zamaninda firefox'u ayrax paket programlarini yazarken kullanmistim.
ornek:
http://www.ayrax.net/products.php?action=product&prod_id=40

burda client'lar kendime gore modify ettigim firefox (js+xul) ve server ise yine modify edilmis 20kb 'lik bir apache2 :)

gencken insan neler yapiyor bee.. tey tey..

Alıntı yapılan: skate;18956
...
ben chrome'u en azından scripting yönüyle beğendim ve testlere devam ediyorum. hatta chrome'a özel bir projem bile şekillendi şimdiden (Kasım ayına kadar erteledim malum sebeplerden). bu yüzden açıklama ihtiyacı duydum.
 
gel gelelim chrome'u browser olarak kullanacağımdan hiç emin değilim. ısınmak çok zaman alacak gibi gözüküyor.
 ...
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: vigo - 10.09.2008 09:19:16
google da gws = google web server diye bişi kullanıyor, modifiyeli apache... zaten django içinde sadece mod_python gibi python için hayati api'ler ve 1-2 tane olmazsa olmaz apache2 fonksiyonları olan süper light bi apache var... aslında biraz anlasam, php-framework'ümü apache2 ye bind etmek isterdim...
Başlık: Yeni JavaScript engine V8 vatana millete hayırlı olsun...
Gönderen: skate - 28.09.2008 02:01:10
Chrome'da ilginç bir bug buldum ve report ettim. Popup windowlarda moveTo ve resizeTo methodlarının ikisi de buglı. moveTo pencereyi taşırken resize ediyor, resizeTo ise resize ederken move ediyor. ıkisi de birbirinin değerini sıfırlıyor gibi. Yani moveTo çağırdığınızda pencere (0,0) size'ına geliyor (elbette ki minimum size'a kadar küçülüyor), benzer şekilde resizeTo'da ise window (0,0) koordinatına taşınıyor.
 
Tahminim şu yönde. moveTo ya da resizeTo, hangisi çağırılırsa çağırılsın aynı fonksiyona gidiyorlar (sourceları incelemeden konuşuyorum). Her ikisi de "width, height, top, left" değişkenleri bulunan bir tür window property structure'ı kullanıyor. Ancak moveTo o anki width, height, resizeTo ise o anki top, left değerlerini okuyup structure'a yerleştirmeyi atlıyor.
 
Bug report'u yaptım, bakalım ne yanıt gelecek.