A few months ago I tried to make a bittorrent client in javascript. But a few days after it started, I found out that there were already other projects with the same goal. The most complete of them was summerTorrent. However, though (I thought) it was so insanely close, it wasn’t finished. So anyway, I made a few changes that at least made basic torrenting functionality working.
Categories
- 3D
- Ajax Animator
- Chrome Extensions
- Color
- Data
- Design
- Education
- Fun
- Games
- Google Wave
- Google+
- Hardware
- Javascript Distributed Computing
- Meta
- MP3 Player
- Multimedia Codecs
- Offline Wiki
- Other
- P2P
- Pedant
- Project Naptha
- Project Wikify
- Security
- Streamie
- Touchscreens
- Uncategorized
- VNC in Ext.JS Desktop
- vX JS
Recent Posts
Archives
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- May 2007
Tags
ajax
ajax animator
apple
browser
bugfix
chrome
elitist
evil
extension
ExtJS
fast
features
firefox
flash
future
github
google
google wave
hosting
html5
internet exploder
ipad
javascript
json
linux
login
new
offline
old
onlypaths
pi
python
raphael
shiny
small
SVG
update
upload
vectoreditor
video
vX JS
wave
wikify
wikipedia
wordpress
Why didn’t you send a pullrequest back to upstream? Or did it just get declined?
A lot of it was really hacky, I don’t think it’s worthy of getting upstream.
to check for a Object type in JS use its constructor.
In your case (bencoding.js), you can use
o.constructor === Array
> true
instead of this, which involves more overhead:
Object.prototype.toString.call(o) == ‘[object Array]‘
also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=
to check for a Object type in JS use its constructor.
In your case (bencoding.js), you can use
o.constructor === Array
> true
instead of this, which involves more overhead:
Object.prototype.toString.call(o) == ‘[object Array]‘
also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=
PS: Good work
oh, this is really cool! keep up the good work! i want to see full functionality with this! please!
Also, setup a flattr, so i can flattr you.
What’s up Dear, are you really visiting this site on a regular basis, if so
then you will without doubt take pleasant knowledge.
My relatives always say that I am wasting my time here at web, but
I know I am getting know-how daily by reading thes good posts.