Aug
14
A Programming Language Question, from Jon Longtin
August 14, 2011 |
Even the concept of 'programming language' is becoming somewhat blurred. In years past a language, and it's associated compiler, would translate a program written by a human directly into machine code for a specific machine. Working on a different machine (unix vs. DOS vs. Mac) required a completely different compiler.
Today in many cases what happens is the language compiles to an intermediate 'bytecode' that is then subsequently executed with a second program running on the actual machine, referred sometimes as a virtual machine. The advantage here is that the bytecode can be the same regardless of the machine it is running on, with only the virtual machine having to be adapted to a particular hardware platform. This has proved very successful, with, as noted, Java and web browsers being the archetypical example. One minor disadvantage is that the resulting programs run somewhat slower than the native compiler mentioned above, however in this day and age the gluttony of computer power and resources make the speed difference, in most cases, incidental.
Microsoft took this concept once step further by making available a huge library of pre-written functions to do a very large variety of tasks (in addition to the virtual machine concept, which they call the Common Language Runtime (CLR)). The programmer then simply pulls in the functions he/she needs from the library and they can put together a program much more quickly. This is the approach that Microsoft has taken with its .NET Framework. Then the programming language exists more to string in the various functions. To wit: there are four languages from Microsoft that can interface with the same library: C#, C++. Visual Basic, and J# and each produces the same code for the CLR.
It is also not at all uncommon for a modern application to mix several different languages; this has been made all the more easier with the separation of tasks described above. A webpage may be written with HTML and XML, then use AJAX and SQL to dynamically build content and pull from a central server, with a little Java and C# thrown in for specialty functions.
It's an ongoing evolution, that's for sure.
-Jon
Jon Longtin, Ph.D. Associate Professor and Undergraduate Program Director Department of Mechanical Engineering State University of New York at Stony Brook
Comments
1 Comment so far
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- Older Archives
Resources & Links
- The Letters Prize
- Pre-2007 Victor Niederhoffer Posts
- Vic’s NYC Junto
- Reading List
- Programming in 60 Seconds
- The Objectivist Center
- Foundation for Economic Education
- Tigerchess
- Dick Sears' G.T. Index
- Pre-2007 Daily Speculations
- Laurel & Vics' Worldly Investor Articles
No offense, but
1)the .Net runtime is not exactly new technology. You may be able to mix multiple languages but should you? Code maintenance could be a nightmare for anyone unfamiliar with all of the languages.
2)Mixing languages is often more of a curse than a blessing. Now the programmer must learn 10 ways to do something poorly, rather than how to do it well with one or two methods.
Web pages.. with sql? Please tell me you aren’t doing what I think you’re doing.