I remember back in the heady college days of the 1980's, "mixed language programming" was the touchstone for quality programming. I also remember that it took about a page of code to get a Fortran program to call a function written in IBM 370 Assembly (mainly because the 370 architecture had zillions of registers but no stack). Even during my early professional days at Tandy, calling code in a "resource" (which was DeskMate-ese for a TSR, later known as a DLL) required something called a "funnel binding", which basically meant you stored your parameters somewhere in memory, then passed the location of those parameters in a register so the resource could find 'em.
It was a mess. Writing a system in more than one language was done strictly out of necessity, and even then it was only done with much kicking and screaming.
But looking at this system I'm coding to now, I'm programming in a freakin' half-dozen languages. They all communicate nicely, but I'm dying for some consolidation.
Lessee.
As for the embedded browser-versions, I'm using code written in ActionScript 2, which communicates with some server-side code written in PHP 4, which contains embedded code written in SQL to save out your results to a mySQL database. The pages themselves use extensive javascript to ensure that you're all up-to-date version-wise.<br><br>The standalone games are also written in ActonScript 2, they also contain embedded SQL, which talks to SQLite via a DLL written in C.<br><br>So that's ActionScript 2, PHP 4, SQL, javascript, and C all working together to get the whole "user experience" to you. Of course, javascript and ActionScript are so similar that there's almost no difference (both being based on ECMAScript). This is offset by the fact that PHP and ECMAScript are somewhat similar but are just different enough to make the whole thing danged confusing.<br><br>Weird thing, though, is that I can't think of a more streamlined way of doing things than this byzantine maze of languages all talking to each other. About the only viable "streamline" would've been to go with a Microsoft ASP server, as that would've allowed me to replace PHP with JScript (also based on ECMAScript). But that would've cost more than the cheap LAMP setup I'm using now.<br><br>And heck, it's all working so I ain't complaining. I'm just imagining what the 1980's college-me would've said about the 2006 me writing a system in five computer languages, getting it all working, and not having to pass a single goldurned thing in a register.<br><br>The 1980's college-me would've probably been amused that no C++ was involved, despite that being the big up-n-coming language of 1989.<br><br>As for my favorite, I'd have to go with ActionScript 2. While it does have some evolutionary weirdness brought about by having to remain backward compatible, it's about the best balance between power and ease-of-use and strong and weak-typing. <A HREF="http://www.ecma-international.org/publications/standards/Ecma-357.htm">E4X</A> is even better, but it's not available yet unless I wanna switch to Flex.<div>
</div>
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Previous Entry
Okay, back to work
Next Entry
The best blog in the whole wide world
Comments
![MauMan](/static/media/user/generic-user.png)
MauMan
Funny! The variety of languages and rethinking how who do things/solve problems is one of the reasons why I like web programming. As opposed to most commercial application programming where it's assumed that you are going to use C++ or a cleaned up C++ such as Java or C#.
April 26, 2006 11:11 AM
Advertisement
Latest Entries
Neato transition effect
3614 views
New Unity3D UI and just general musing.
4541 views
So Dwarf Planet Pirates has grown in scope.
3951 views
Seems to still be working.
2821 views
Advertisement