JavaScript port of Sjeng
Moderators: hgm, Rebel, chrisw
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: JavaScript port of Sjeng
Maybe one can parallelize the JavaScript with Web Workers.
-
- Posts: 98
- Joined: Sat Jul 31, 2010 8:48 pm
- Full name: Ubaldo Andrea Farina
-
- Posts: 2872
- Joined: Wed Mar 08, 2006 10:09 pm
- Location: Germany
- Full name: Werner Schüle
Re: JavaScript port of Sjeng
Ok, I will never ask so "silly" questions!Gian-Carlo Pascutto wrote:Maybe one can parallelize the JavaScript with Web Workers.
Werner
-
- Posts: 322
- Joined: Wed Mar 08, 2006 9:55 pm
- Location: Brighton - UK
Re: JavaScript port of Sjeng
If you don't want to sell 'Sjeng ct 2010' how about a donation to charity?
However a new commercial offering would be 'MOST' welcome
Shaun
However a new commercial offering would be 'MOST' welcome
Shaun
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: JavaScript port of Sjeng
After googling for some sensible script content:Gian-Carlo Pascutto wrote:Sjeng 11.2, it seems.yanquis1972 wrote:very pretty interface, what version of sjeng is this?
Code: Select all
GCP: this is straigth from Faile but converted to Sjeng internals
http://www.opensource.apple.com/source/ ... 0.3/sjeng/
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: JavaScript port of Sjeng
Yes, Chess.App on every Mac has been using Sjeng for a long time. You can easily check if it you have a Mac by looking in the About menu.
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: JavaScript port of Sjeng
You joke about the webworkers, but I've considered doing that with GarboChess JS . Currently they are just used to allow long thinking times without blocking the UI though.
Any idea what NPS the Sjeng JS implementation is getting?
Any idea what NPS the Sjeng JS implementation is getting?
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: JavaScript port of Sjeng
Do you actually get real multithreading with Web Workers or are they just emulated in the single JavaScript thread?
As for NPS: that's very browser dependent, of course. Firefox 4 and Chrome should give the best results.
As for NPS: that's very browser dependent, of course. Firefox 4 and Chrome should give the best results.
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: JavaScript port of Sjeng
They are real threads, and have a decent cross-thread communication mechanism as well.
I've optimized on Chrome, so it's the best for me currently. Around 100k nps, with a very basic mobility eval. Of course nps doesn't mean a whole lot, but it's pretty cool that javascript can go that fast!
I've optimized on Chrome, so it's the best for me currently. Around 100k nps, with a very basic mobility eval. Of course nps doesn't mean a whole lot, but it's pretty cool that javascript can go that fast!
-
- Posts: 660
- Joined: Sat Dec 05, 2009 5:13 am
- Location: Colorado, USA
Re: JavaScript port of Sjeng
According to MDN they are real OS-level threads, and section 1.2.6 of the spec seems to suggest that.Gian-Carlo Pascutto wrote:Do you actually get real multithreading with Web Workers or are they just emulated in the single JavaScript thread?
As for NPS: that's very browser dependent, of course. Firefox 4 and Chrome should give the best results.
Opera's JavaScript engine is at least as fast as FF4.
Peter