Thursday 26 July 2012

Programming Language Layer Cake

There are many different programing languages in existence today (I’m going to write about the languages I am familiar with) and I like to visualise their relationships as layers of a cake. There are two main ways to categorise programming languages: as having high or low levels of abstraction and as either compiled or interpreted languages.

The bottom half of the cake consists of the languages with low levels of abstraction, with microcode at the bottom and C++ at the top, all of these languages are compiled languages which means their source code is interpreted and compiled into a lower level language e.g, C++ is compiled into assembler. I categorise C++as a lower level language for the purposes of this diagram as its memory management is still a manual process unlike the languages in the layers above it, which makes it less trivial to use.

Microcode is the lowest level of abstraction available and it is the programming language used to create assembly language instructions. Assembly Language is the language used by computer processors (CPUs) and is specific to each CPU family and is also the lowest level at which software can typically interact with the CPU. Next is the common low level languages C and C++ which I’ve bundled into the same layer as C++ can compile C code so they are not really completely distinct. Although C++ is a higher level language than C as it supports object oriented programming which is typically considered a feature of high level languages.

The top half of the cake can be roughly split in to two groups of programming languages: those languages that are compiled (blue box) into a lower level language before execution by a compiler and those that are interpreted (green box) at run time by an specific interpreter program. The bottom half of the green and blue boxes represent the respective compilers and interpreters for the languages. It is worth noting that although the .net programming languages (C#, CLR C++ and VB.net) and the Java family of languages are all compiled, they are compiled into byte code executables before they can be executed (run) by a virtual machine (usually written in C/C++). The interpreted languages Ruby, php and Python are not compiled before execution but are interpreted at run time by an interpreter program (again usually written in C/C++). Interestingly interpreters do exist to process Ruby (JRuby & IronRuby) and Python (JPython & IronPython) source code into byte code for the Java virtual machine or .net CLI, allowing ruby or python to be run on any Java or .net CLI virtual machine.

Compiled languages like Java or .net must be recompiled before they can run on a different virtual machine however this is usually not a serious issue as .net and Java virtual machines exist for most opereating systems in some form or another. Recompilation is not a requirement for interperated lanagues which only require a functioning intererator on the target operating system to be able to be run, which makes them easier to use across multiple operating systems and leds to them being considered more portable than the compiled languages. You can leave a response, or trackback from your own site.

Some facts about Java Programming Language and its History

Java is a programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM)regardless of computer architecture. The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later renamed as Java, from a list of random words. Java promised "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. Major web browsers soon incorporated the ability to run Java applets within web pages, and Java quickly became popular. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively. On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright. Platform Independence - This is achieved by compiling the Java language code to an intermediate representation called Java bytecode, instead of directly to platform-specific machine code. Java bytecode instructions are analogous to machine code, but are intended to be interpreted by a virtual machine (VM) written specifically for the host hardware. In brief: Java is a programming language, that allows programs to be written, that can then be run on more than one type of operating system. A program written in Java can run on Windows, UNIX, Linux etc. as long as there is a Java runtime environment installed.

Sunday 22 July 2012

how google works???

“The software behind our search technology conducts a series of simultaneous calculations requiring only a fraction of a second. Traditional search engines rely heavily on how often a word appears on a web page. We use more than 100 signals, including our patented PageRank algorithm, to examine the entire link structure of the web and determine which pages are most important. We then conduct hypertext –matching analysis to determine which pages are relevant to the specific search being conducted. By combining overall importance and query-specific relevance, we’re able to put the most relevant and reliable results first.” – Google

Saturday 21 July 2012

How do Java programs store paswords

How do Java programs store paswords?
Well, Java programs store passwords, by default, as character values. However, to increase security, most commercial progrms use coding algorithms to store the password as a mass of nubers and symbols that mean nothing. However, if the coding algorithm is cracked, the passwords flow out as swiftly as the ocean blue. One common beginner mistake is to code using the Unicode values, which many people don’t know, but is a very simple scheme which anybody can crack in a matter of seconds.

Friday 6 July 2012

How does Java support animations?




 Actually, animations are nothing more than several, or just one, picture(s). What the program is actually doing is drawing a new picture, erasing the picture, and drawing yet another new picture. For example, when a ball is moving, the program would draw a ball, colored, then when it is time to move, the program would draw a ball the color of the background in the previous spot and draw another ball of a different color in a new area, thus creating the visual motion.

Thursday 5 July 2012

good morning . . .

Latest Cool Electronic Gadgets Are Transparent



Latest Cool Electronic Gadgets Are Transparent
These days the word "transparent" has been hijacked by the political community and is being used to describe the way this or that politician will be honest or, "transparent," if he or she is elected.
But the real definition of "transparent" is simply an object that allows light to pass through so you can see through it and that's what the near future has in store for you as far as gadgets go.
The gadget pictured above is a concept developed by Nokia for a transparent cell phone, but while transparent cell phones will show up in abundance from all the manufacturers there are transparent high definition TVs, watches and QWERTY keyboards, among other things.

bad HDD

Fix Bad Sector of harddisk
Repair it.

Then use HDD Regenerator

=> Download : http://gs.im/idhpi

issues on ur windows

If U r having too many issue on ur windows.

Then Just use " Microsoft Fix it " Center to fix ur problms

Official Link: http://gs.im/j6psv