Archive for February, 2010
Design of BerkeleyDB Client/Sever OctopusDbm
Posted by Jorge Alegre in Technology on February 24th, 2010
Last weekend I worked on the design of the new modules for OctopusDbm and looks like nice features are coming in soon. The first release was built, 0.6 and soon I will start documenting the current modules and design.
Community
Any open source project needs a community or group of people that like the technology and contribute with ideas, code, testing, analysis, etc… It will be a nice experience for me to learn how to do this. So the following weeks I will start promoting the project and trying to attract lovers for this project. Spread the word if you read this, this tech can be pretty cool.
Dbm
The client/server implementation works in such a way that the code change for applications already running BerkeleyDB software local is minimal. Almost all API methods are implemented in remote server.
Curently you may have:
from bsddb3 import db Dbm = db.DB() Dbm.open(sPath, db.DB_BTREE, db.DB_CREATE) Dbm.put('Name', 'Jorge') Dbm.close() |
And with OctopusDbm:
from octopusdbm import Dbm dbm = Dbm(hostName, user, password) dbm.open(sPath, db.DB_BTREE, db.DB_CREATE) dbm.put('Name', 'Jorge') dbm.close() |
So you basicly can open, put, create cursor, get, get table information, etc… same as you do in local. Keep in mind that for every database methods there is a call to the server. So server connections for open, put and close. If you need better performance we have direct operations where open and close are integrated, like getDirect(), getLIstDirect(), as well as bulk operations like getList() and putList() with tables opened.
Tweet This Post
Plurk This Post
Digg This Post
Ping This Post
Taking Notes Software
Posted by Jorge Alegre in Technology on February 22nd, 2010
Nice article about taking notes software here:
If You Didn’t Write It Down, It Didn’t Happen — Take Notes
I used OneNote from Microsoft and was nice the visual aspect of the tool, but stopped using it, I guess becaouse I started to take notes on my blackberry, sync with Exchange, etc…
My opinion is that the networking of these tools is very important. I signed up for Evernote but never catched me up enough to feel great about the tool.
I would add Twitter as note taking, many people use Twitter to do that, write down things so he and others can take a look at it later on. And could ot be simpler note taker than Twitter, right?
Tweet This Post
Plurk This Post
Digg This Post
Ping This Post
Python Faster Than Java, At Least For BerkeleyDB
Posted by Jorge Alegre in Technology on February 22nd, 2010
I tested new Oracle Java edition for Berkeley DB and for my tests the word that best describes the product is FAIL. The conslussion more or less is that Oracle screwed Berkeley software. They have no HASH, only BTREES, many functionality of BerkeleyDB has been removed, etc… They say is BerkeleyDB with Java flavour, they have a weird sense of java humor then.
I was expecting factor of 5X as many blogs suggested that on real applications we have this improvement. And since BeerkeleyDB for me has a lot of memory use and processing as well I was expecting at least 2X factor. I got a 2X factor but on the contrary.
Results
I did test for creating a table of 1 million rows with 128MB memory Cache.
| Language | Time |
| Python | 12 sec |
| Java | 28 sec |
Tweet This Post
Plurk This Post
Digg This Post
Ping This Post
First Impressions on Spring Source Tool Suite
Posted by Jorge Alegre in Technology on February 19th, 2010
Last night I run the Spring IDE for Java. Apart from the fact that Eclipse in my laptops is slow due to low memory, the Spring IDE seems to be heavier than Eclipse. I am used to work with python and Eclipse using pydev, and start-up times are poor, but Spring seems even worse, so like 10 minutes waiting for things to load, etc…
The welcome page looks great, with information from Spring web site, feeds, and download center with cool software like SVN repository, sync of development task with MS Outlook, Trac integration, Grails, Groove, etc… When trying to install those applications got an error, so man, bad luck to me.
Then created a Java project Buscaplus and tested BerkeleyDB. The experience of IDE is pretty nice, getting nice suggestions with the autocomplete.
Tweet This Post
Plurk This Post
Digg This Post
Ping This Post
Java Merging Into LAMP: Spring
Posted by Jorge Alegre in Technology on February 10th, 2010
Last night I installed Spring Tool Suite, the Spring IDE and started to digg into their world.
It seems Java is moving in right direction, making software easier to maintain and speeding up development. This is particulary important for startups, time to prototype and time to beta is crucial many times.
Spring alone simplifies things a lot. But when you add Grails (Like Ruby on Rails for Java) and Groove (New simple syntax), suddenly you are in middle of something weird, Java but not Java. No wonder why this stuff has been sky-rocketing.
You like POJO’s? I found that the proyect I work for eliminated them and instead want the old EJB syntax. I think Corps have been used to complex things out, when you simplify things some of them don’t like it.
But anyway, sometimes innovations like RubyOnRails and Django don’t have enough traction to move the market but competition starts to copy those innovation into a market mover like Java.
And Java is redifining itself, which I think is good for startups. If your startup suddenly needs 20 people in 6 months, good luck finding Python or Ruby people in the market. But if those developers are Java, lot’s of them in the market. Another reason why this is important.
Tweet This Post
Plurk This Post
Digg This Post
Ping This Post


Recent Comments