Updated: 3/31/2004; 7:36:01 AM.
Bruce Landon's Weblog for Students
My Home Page Psych100 Psych200 Psych360 Psych330 EduTools News Landonline
        

Thursday, March 18, 2004

Learning Entrepreneurship the U.S. Way at M.I.T.. During a course in American-style entrepreneurship, a British biochemist spotted a business opportunity in an unlikely place: virginity. By Marci Alboher Nusbaum. [New York Times: Technology]
3:21:42 PM      Google It!.

Novell Announces SUSE Linux 9.1 [Slashdot]
3:18:17 PM      Google It!.

Software hunts for Net paedos. Nanniebots take the Turing test [The Register]
3:16:44 PM      .

Applications that support Python scripting.

Python Scripting for C/C++ Applications

Applications can and are written in Python, but people are slow to change, so the vast majority are still done using C/C++ on Linux and Windows and a combination of C++ and Objective-C on Mac OS X. I've noticed a growing trend of using Python to provide user automation or scripting, sometimes called macros, for C/C++ applications. This makes a lot of sense:

  • developers don't have to waste time and money inventing their own scripting language and users don't have to learn a new automation language for every application they use
  • Python is an Open Source solution and can be embedded and distributed for free so there are no royalty payments or licensing hassles
  • Python is simple to learn, yet Python and its standard libraries are much more powerful than a proprietary language like VBScript
  • Python is cross-platform
  • tools like SWIG make it easy to expose part or all of the application programming interface (API)
  • Python scripting can be added to legacy projects just as well as new ones so developers don't have to abandon their old C/C++ code libraries
  • On the Windows platform, Python has an excellent interface to COM (also known as ActiveX) and can be used to interface to almost any COM program (such as the MS-Office suite). Again, Python scripting can be added to enhance a project without change to the existing COM components.

For many of the same reasons, Python is often used as the "glue" language for a project. In the Java world, people are using Jython as the glue and scripting language.

I started a wiki page on python.org to help track C/C++ applications that support Python for scripting. If you know of an application that wasn't written in Python, but supports Python or Jython for scripting or as a glue language feel free to update the wiki page.

[Kevin Altis' Weblog]
3:14:42 PM      Google It!.

NASA pulls off mindreading act. Voice recognition for the voiceless [The Register]
3:13:44 PM      Google It!.

U.S. Home Internet Access up to 75% [Slashdot]
3:12:11 PM      Google It!.

© Copyright 2004 Bruce Landon.
March 2004
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Feb   Apr
Home

Subscribe to "Bruce Landon's Weblog for Students" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.