Sunday, January 31, 2010

Kademlia implementation

Up until now, I have used opedChord as my DHT middleware. It is written in Java and Scala, as previously posted has a good compatibility with it, however, it limits Scala functionalities. I have decided to try an implement my own DHT (Kademlia).

It is not a common practice to implement something yourself, if there is a perfectly good open source project available. However, I believe I can learn a lot from the experience both about DHTs, in particular Kademlia and Scala of cause.

Monday, December 21, 2009

Distributed Experiment - goodbye LOCALHOST!

Success!

I have successfully managed to test the algorithm on a Distributed Environment.

Obviously, there is still work to be done to optimize and extend it, but it is a major milestone, getting away from local host to a Distributed Nodes.

Tuesday, December 8, 2009

From Scala to Java...and back again

I am working to port a project from Scala to Java..it is interesting how far Scala compatibility with Java can be stretched. So far it is not that bad, several issues, but nothing major. Netbeans Scala plugin is very helpful in that.

Oh..well..back to work.

Tuesday, October 20, 2009

Understanding context-free grammar using Scala

At some point of the project, there will probably a need to have some prototype
of a scripting language.

I am looking at combinator library included with Scala which allows to code grammar almost in EBNF notation.

I am currently following examples from

Formal Language Processing in Scala

to understand it better and maybe use it in future iterations of my project.

Monday, October 19, 2009

LIFT Web Framework

I've started to look at LIFT WebFramework, as way to get hands on experience with Scala.
Lift is the only new framework in the last four years to offer fresh and innovative approaches to web development. It's not just some incremental improvements over the status quo, it redefines the state of the art. If you are a web developer, you should learn Lift. Even if you don't wind up using it everyday, it will change the way you approach web applications
Michael Galpin, Developer, eBay

Scala looks very promising, I've now been able to convert my initial code of Publish/Subscribe prototype (based on openChord)

Tuesday, October 13, 2009

GreaseMonkey is very handy!

I knew about Greasemonkey Firefox addon but have never really dig deep to see how to write a script.


"Greasemonkey is a Mozilla Firefox add-on that allows users to install scripts that make on-the-fly changes to HTML web page content on the DOMContentLoaded event, which happens immediately after it is loaded in the browser (also known as augmented browsing). As Greasemonkey scripts are persistent, the changes made to the web pages are executed every time the page is opened, making them effectively permanent for the user running the script." -- Wikipedia
I found a nice  website that helped me to get into Greasemonkey spirit of things.

To better understand it,  I wrote a small script to import new citation from Google's scholar to CiteUlike. I got tired of Copy&Pasting. Ther script is very easy and handy.

Monday, October 12, 2009

The discovery of Scala

Yesterday, I have discovered Scala programming language , through a random Slashdot post on Swarm project :

a novel approach to programming distributed systems using Scala's serializable delimited continuations. Ian, CEO of Uprizer Labs and developer of SenseArray, is possibly best known for designing and coordinating Freenet, a popular P2P distributed network storage application.
He presented Swarm at the IEEE Ninth International Conference on Peer-to-Peer Computing in Seattle,USA that took place September 9-11. You can watch a video where he describes Swarm

-- from scala website

Scala and Swarm both sound very interesting and promising!