Prof Avery's weblog
the business side of doublewide


CSU Fullerton Perl Powered Python vi Hacker

Geek News

del.icio.us bookmarks


Sat, Mar 18, 2006

Why Microsoft is not my favorite software company
The grade sheet that I posted a few minutes ago is rather hard to read in Internet Explorer. It looks like the bottom few pixels of each row are cut off.

The HTML file was generated by setting a print area and choosing Save As Web Page from the File menu in Excel 2004 for Mac.

I understand cross-browser differences. I even understand cross-platform differences. But if I can't save a web page from the latest version of one Microsoft product and have it readable from the latest version of another Microsoft product, well...

You should all be using Mozilla Firefox anyway. It looks fine there.

/var/spool/courses/csuf/2006/spring/cpsc465/misc #

Wed, Feb 15, 2006

An easy way to run OpenGL programs
Now that I've put you through the pain of setting up your own programming environment, I'll show you the easy way to run gears.c.

Grab a copy of igloo.zip and unzip it somewhere convenient. Run the program by typing

	C:\igloo> igloo gears.c
Cool. No compilation step, no moving headers and library files around, just type and go. And in less than 230 Kb.

Igloo is a version of the EIC C Interpreter, an Open Source project that seems to have gone missing in action.

Luckily, I saved a copy, just for you. I wish I'd saved a copy of the source code, too, but at least there are lots of other C interpreters.

So what's the catch?

  1. The error messages generated by the interpreter aren't perfect. But then again, neither are the error messages generated by Visual Studio.
  2. I'm not sure how exact it is about implementing the ANSI C Standard, and can't find out because the web site is gone. There may be constructs that won't work. But gears.c is pretty complicated, and it works just fine.
  3. It's a C interpreter, not C++. Feel free to Google for one of those, and e-mail me if you find a good one.

/var/spool/courses/csuf/2006/spring/cpsc465/misc #

Sat, Feb 04, 2006

For an example of OpenGL bindings in another language, check out hello.py. This is a Python version of Example 1-2 from the OpenGL Programming Guide. Compare this to the C version you're using for your homework -- the language may be different, but OpenGL is the same.

/var/spool/courses/csuf/2006/spring/cpsc465/misc #

OpenGL Bindings
Things have come a long way since the last time I went looking for OpenGL bindings. While scripting languages have always tended to have them (e.g., Perl, Python, Ruby, Lua, Io, even PHP -- yikes!), bindings for "industrial-strength" languages have always seemed to lag behind. Instead of the panoply of Java bindings that held sway in the early years, sanity finally seems to have taken hold in the form of semi-official JOGL project. Heck, they even have a JSR.

Over in the proprietary, closed-source, Windows-only, Microsoft-owned world of C# (can you tell I'm biased? And don't tell me about Mono -- as soon as I can type "apt-get install monodevelop", start the IDE, create a project and start typing code without hanging or crashing, we'll talk) things seem to have gotten better. Or if not better, at least there are more choices:

As with all things Lisp-y, OpenGL support is pretty fragmented. Whether there is an OpenGL binding, how well it works, and whether you get get any help if it doesn't is largely dependent on which Lisp you're using. You may be better off with Scheme, where the Sgl library for PLT Scheme appears to be officially supported.

When it comes to getting all this set up, though, as I said earlier, you're on your own.

/var/spool/courses/csuf/2006/spring/cpsc465/misc #



March 2021
Sun Mon Tue Wed Thu Fri Sat