Friday, February 26, 2016

JEP 254: Compact Strings

JEP 254 proposes changing the internal representation of strings inside the JVM. As most readers surely know, strings are stored using UTF-16, which uses two bytes per character. This proposal suggests using a more compact, one-byte-per-character representation internally: “Data gathered from many different applications indicates that strings are a major component of heap usage and, moreover, that most String objects contain only Latin-1 characters. Such characters require only one byte of storage, hence half of the space in the internal char arrays of such String objects is going unused,” says the JEP proposal.

Changing to the more compact form would not affect existing code or any APIs; it would be a purely internal change inside the JVM and not visible to programmers. Interestingly, the information on the JEP’s web page reveals that a string compression feature was tested in Java 6. It converted String.value to an Object that pointed either to an array of 7-bit characters or an array of regular Java characters. That feature, though, was removed subsequently.

Thursday, December 10, 2015

Electron - package web applications for windows/mac/linux

Hello Blog Readers,

Recently i came across Electron which lets you package web applications for windows/mac/linux while also allowing you to use native platform features. Check out the link below.

Ujjwal Soni

Firefox Os 2.5 Developer

Hi Blog Readers,

Now you can try Firefox OS without needing to flash it in your Android phone, a version of OS that can be installed like any other APP.

Ujjwal Soni

Thursday, November 26, 2015

Raspberry Pi Zero: the $5 computer

Of all the things we do at Raspberry Pi, driving down the cost of computer hardware remains one of the most important. Even in the developed world, a programmable computer is a luxury item for a lot of people, and every extra dollar that we ask someone to spend decreases the chance that they’ll choose to get involved.

The original Raspberry Pi Model B and its successors put a programmable computer within reach of anyone with $20-35 to spend. Since 2012, millions of people have used a Raspberry Pi to get their first experience of programming, but we still meet people for whom cost remains a barrier to entry. At the start of this year, we began work on an even cheaper Raspberry Pi to help these people take the plunge.

Below is the configuration for this new Raspberry

  • A Broadcom BCM2835 application processor
    • 1GHz ARM11 core (40% faster than Raspberry Pi 1)
  • 512MB of LPDDR2 SDRAM
  • A micro-SD card slot
  • A mini-HDMI socket for 1080p60 video output
  • Micro-USB sockets for data and power
  • An unpopulated 40-pin GPIO header
    • Identical pinout to Model A+/B+/2B
  • An unpopulated composite video header
  • Our smallest ever form factor, at 65mm x 30mm x 5mm

  • Raspberry Pi Zero runs Raspbian and all your favourite applications, including Scratch, Minecraft and Sonic Pi.


    Monday, November 16, 2015

    Testing tools for Angular JS

    Karma is a great test runner made for Angular, but can also be used with any other Javascript framework. It supports any type of testing: unit testing, midway testing and E2E testing. Karma works by opening browsers that you list in the configuration file. It then communicates with the active browser using and asks you whether to run the test or not.

    Angular JS Eclipse Plugin


    I'm posting this new post on my blog after long long time. Recently i was working on AngularJS, i found a great plugin for MyEclipse which works great for AngularJS. Check out the link below for more details.


    Tuesday, April 21, 2015

    Below link contains some of the