Friday, 2 May 2014

Web Framework benchmark





Some interesting figures. Certainly not the best real world scenario with the repeated "hello world" but that give some insight as to what each can give us in term of performance.

I particular like the comparison between the Java frameworks, netty only adds a slight overhead on top of servlet, which get pretty hammered by the overhead vertx adds onto it. While Spring, on its side, ruins the very efficient pure servlet implementation.

Also happy to see that node.js is not that fast compared to good old JVM based languages.

RPS is request per seconds. It also delusions the so trendy Amazon cloud. Yes it might save some money/time to stand up a service, but what a performance penalty compared to some old school privately own hardware.

And a few others, adding a comparison with some high end server cpu


What's even more interesting regarding the frameworks comparison, is how they scale up if more cpu threads are made available, with the high performance Xeon processor, with 40 HT cores, vs 8 with the i7 cpu, candidate such as Spring, Grails or ruby on rails don't even offer double performance, while netty, using pure servlet or cpoll process requests 4x or 5x faster.


See full article here.

Saturday, 1 March 2014

Node.js vs vert.x ?




I'm falling behind with those hyped event based web servers. node.js has been around for a while now, even though in beta. It's interesting to see that the polyglot, and apparently better performing product is not so well known.



Wednesday, 4 December 2013

Interesting outlook on TDD




TDD's been around for a while, and while some people hate the idea and others can't live without it, that post shows two interesting view points.

Tuesday, 15 October 2013

Sublime text !

Well that's a great name - but also the best lightweight editor out there. If you like CSS/HTML and JavaScript, get yourself a copy of that gem Sublime Text

Tuesday, 5 February 2013

Kindle vs iPad




iPad 1, iPad 2, iPad 3 iPad 12, it doesn't matter how far they go, the Kindle will remain the best device to read eBooks.
Why ? Because it's an eBook reader. Period.

One could go on and on about comparing features offered by the iPad and other Android tablets, but the Kindle simply embeds the right technology to offer the best reading experience. It took me a long time to get myself one of those, but there are the reasons it surpasses by far all the other tablets:

Simplicity
It doesn't do anything but offer one feature: eReader. No apps, no mp3, no notification, it's plain and simple, it reads eBooks. Resulting in all the advantages below...



Size/weight
It's exactly the right size, and lighter than a pocket book

e-Ink
Let's not talk about brightness, contrast and pixel density.. Kindle use real ink to draw text and images, it's black and white, but so are 99.99% of real books, and that's fine that way. No pixel mean no red eyes and headache, it's like reading real sheets of papers.
Also, it means one can take it to the beach or other sunny environments.. let's not try that with an iPad.

Battery
1 or 2 months, it doesn't matter, we are talking about weeks of battery life here.

Price
Oh and it's almost 10 times cheaper, the most basic model offers all one coud need, this means it's affordable, and less likely to be stolen. And if it breaks... oh well let's buy another one.






Sunday, 18 November 2012

Mechanical Keyboard


The right keyboard


Three main types of keyboard exist, cheap dome keyboards that most people use with desktop computers, cisors keyboards buit on laptops - and the mechanical ones, used by gamers and geeks - those, more expensive were the kind of gear built with old machines.

Membrane switches is what most keyboards are built with, consisting of plastic domes under each keycap. Each dome must be fully pressed down to make contact with the circuit board underneath. The computer recognizes the contact and registers it as a keystroke. They aren't very durable, the dome can handle from 1 to 10 millions strokes.
Below is one of the best membrane keyboard I found so far:
One of Dell's keyboard


Benefits of membrane Keys:
- Cheap
- Spill water on it with no regret


Scissors switches also use rubber domes, but a special plastic 'scissors' mechanism links the keycap to a plunger that depresses the rubber dome with a much shorter travel distance than the typical rubber dome (2 mm instead of 3.5 - 4 mm for membrane keyswitches).
The stabilizing scissor-like devices extend the lifespan of the membrane to as much as 20 million keystrokes, also they feel more solid due to less side to side movement during key travel. This type of keyswitch is usually found on the built-in keyboards on laptops.
Scissor-switch membrane keyboards are typically slightly more expensive and have a 'bouncier' feel to them, as the keys have scissor mechanisms to help them 'spring back' after you depress the keyswitch. They are harder to clean (due to the limited movement of the keys) but also less likely to get debris in them as the gaps between the keys are often less (as there is no need for extra room to allow for the 'wiggle' in the key) as you would find on a membrane keyboard.

Scissors switches
Scissors switch keyboards can also be found for desktop computers, I personally enjoyed using this Apple aluminum keyboard before I converted myself to Mechanical keyboards.

Apple aluminium keyboard
Benefits of scissors Keys:
- Last longer
- Quieter
- Stay clean longer


Mechanical swiches now, each key has its own physical switch. Once the switch is triggered, a signal is sent with the information of the key you just pressed. Seems similar to the membrane one but it does have benefits under the cover. On main difference is that on a membrane keyboard the fully press down is necessary to register the keystroke. On a mechanical keyboard, the switch handles it differently. The actuation point for a keystroke to register, for example is about 2mm on Cherry MX switches. Pressing down and “bottoming-out” on a key is about 4mm. This results in less fatigue and strain on your hands.


Switches - under the hood:


Cherry Brown - force 55cN - tactile non clicky
Cherry Black - force 60cN - non tactile non clicky

Cherry Blue - force 60cN - tactile clicky       
Cherry Red - force 45cN - non-tactile non clicky       

















Resistance, membrane keyboards don't even specify the resistance of the keys - but with mechanical keyboards you get a range of switches which offer different resistance

Tactile, standard keyboards are all the same, needing a full press to register the stroke, typing indeed requires feeling the bottom of the key. With mechanical keyboards, the switch can either gives a feedback when the stroke is registered (mechanically), or give no feedback at all (smooth all the way down). Also, the feedback can be very gentle like on the cherry brown switches, or very strong like on the blue switches. Black switches are not tactile at all.

Clicky, some mechanical keyboards are clicky (often very loud) when the switch registers the stroke, the non clicky ones aren't completely silent but it won't trigger a click noise at key stroke.


Benefits of Mechanical Keys:
- Robustness
- Personalization
- Comfort

Mechanical keyboards offer a much better built quality due to their price mostly, and offer a wide range of switches to suits user's preferences. They are known to last longer than membrane keyboards. Each switch is expected to last around 50 million keystrokes. While a membrane keyboard lasts around 5-10 million. There is also a feature called, “N-key rollover” that is found in mechanical keyboards. This means no matter how many keys are being pressed at the same time, the computer will still register each one. This is made possible due to each key having its own switch.
Pressing a bunch of keys down on a membrane or scissors keyboard won’t give the same results...

A few great mechanical keyboards:

Termaltake Meka G1, owning this with black switches


Filco Majestouch


Das keyboard

Steel series 6v2


Credits to the animated images taken from Geekhack, also where I learned what I know about switches, great forum to get advice on gear in general