John Lam 1997 — 2026

GSLgen updated!

Readers of this weblog know that I’m a big fan of GSLgen, which is by far the best code generation tool that I’ve come across. The good news is that GSLgen has been updated to V3.1. It’s not available as a standalone product, however. Instead, it’s integrated into a suite of open source tools called RealiBase. You’ll need to download the source and compile using VC++ 6.0.[1]

There’s a bit of bad news as well. GSLgen/2 was released under a very liberal license that let you do essentially whatever you wanted with it. GSLgen/3.1, however, is released under GPL for open source projects and under the “iMatix commercial license” for commercial work. I’m still in the process of trying to find out what the cost of an iMatix commercial license is, since we would very much like to use some of the new features in GSLgen/3.1 (most notably the ability to return values from functions) in our code generation scripts.

[1] I tried for a few minutes to get it to build using VS 7.1 and the latest Platform SDK; I suspect that you’ll do what I did and give up and simply install VS 6.0. I’m AMAZED at how quickly VS 6.0 installs on a modern computer :)

7 archived reader comments

Andy Hopper (2003-04-19)

I got it to compile under VS7 (aka VS.NET), but I did have to copy some files around to make the libero makefile happy. I’m certain it could be fixed by modifying a path, but frankly, I’m too lazy to climb through someone else’s makefile. For those of you who’d like to join me in my decadence, here’s the list of files that need to be copied to the Microsoft Visual Studio .NETVc7lib folder: uuid.lib mpr.lib winmm.lib wsock32.lib odbc32.lib shell32.lib netapi32.lib advapi32.lib comdlg32.lib gdi32.lib user32.lib If I find myself with some free time, I’ll noodle out where the path needs to be modified.

John Lam (2003-04-20)

Thanks for the tip, Andy! I see that you have more patience than me

Dave Lee (2003-04-21)

it seems to me that you can use GSLgen commecrially as long as you aren’t modifying its code, or directly linking its code into your software. if you are modifying the GSLgen source (or linking), and distributing these modifications, then you would need to either provide the modified source (thus conforming to the GPL) or purchase a commercial license. under the GPL, you can freely redistribute unmodified source or binaries. this means the GSLgen command line tool can be used (and distributed) commercially, as long as it remains unmodified.

John Lam (2003-04-23)

Thanks, Dave! I still haven’t heard back from the imatix folks about their take on the license, but I agree with your interpretation of the license.

David Pickett (2003-04-27)

FWIW, I spent a few more minutes spelunking into this, and the modifications needed will be more than just modifying a path in a file–the dependence on the appropriate libraries being in a “lib” subdirectory off the VC7 directory is fairly widely scattered, along with a couple of other, smaller issues. Andy Hopper’s got the right idea . Extra cool points for using hard links though....

Pieter Hintjens (2003-10-26)

I don’t know why your emails did not reach me, but probably the amount of spam we get has something to do with it.

David Lee is correct, GSL’s license has no impact on the work you produce with it, only on derived tools that incorporate GSL in some way - e.g. DLLs, modified versions, etc. This is pretty standard and we chose this route because we want our software to be freely used but without giving our commercial competitors a free ride.

Anyone making commercial code generators that reuse GSL code has to pay for a license. Everyone else (those making GPL’d derivations and those using GSL to generate code) have nothing to do except enjoy the technology.

Gary Minor (2003-12-22)

I have read (several times) the documentation on GSLgen, however I would like some examples. I am trying to generate SQL stored procedures with GSLgen and I need to use the index and count built in functions. My problem is understanding scope definitions.

Can you give me any examples or direct me to some? Thanks Gary Minor