Theo Verelst Diary Page

Fri 13 july 2001, 13:18 PM

I've decided after good example to write some diary pages with toughts and events.

Oh, in case anybody fails to understand, I'd like to remind them that these pages are copyrighted, and that everything found here may not be redistributed in any other way then over this direct link without my prior consent. That includes family, christianity, and other cheats. The simple reason is that it may well be that some people have been ill informed because they've spread illegal 'copies' of my materials even with modifications. Apart from my moral judgement, that is illegal, and will be treated as such by me. Make as many references to these pages as you like, make hardcopies, but only of the whole page, including the html-references, and without changing a iota or tittel...

And if not? I won't hesitate to use legal means to correct wrong that may be done otherwise. And I am serious. I usually am. I'm not sure I could get 'attempt to grave emotional assault' out of it, but infrigement on copyright rules is serious enough. And Jesus called upon us to respect the authorities of state, so christians would of course never do such a thing. Lying, imagine that.

Previous Diary Entries   |   List of Diary Pages   |   Home Page

Fri 13 june 2001, 13:18 PM

Today having the chance I'll produce at least some lets say documentation or explanation of how I have seen certain applications programmed together, maybe I'l put in some examples of tcl/tk graphics interface programming.

Tcl/Tk as user interface

Assuming it is possible to seperate the user interface from the core of a program, I'll write a bit about stuff I've done in delft university years ago, I think when windows 95 still ran on PCs of under 50MHz. I was in a graphics project, and wanted to make an interface for certain rendering software and scientific software, as part of a job, and I looked around and found tcl/tk was in progress of becoming a quite powerful tool to do so in a portable, decent, maintainable and development friendly way.

The principles are still valid enough, so it may well at least make some relevant interface software engineering points clear, and possible make clear to some who do not have all understanding only in microsoft object classes what I've been working on, and what probably drove some who wanted to 'have' (what a word) my life up the wall because I pretty much topped of the whole research area of at least the part of the section I was in they wanted to sort of be god in, I guess, not by being leader who either researches, develops or manages right, or for all I care bookkeep right, but most probably for very much baser and unacceptable reasons.

The idea of Tcl/Tk is a scripting language, like there are basic, shell scripts, perl, sql if you like, with on top of that a user interface programming scripting interface. I've made a few pages about it, check my homepage, though some time ago, their nice enough to have some idea about programming from, at least you'll gain some insight in fundamental ways of looking at such. The idea I repeat is that the scripts, including the user interface scripts, run on just about every normally known system: the scripting language is built from commands which are the  same for every machine kind such as macs pc's unix stations, and also the command structure and the interface components they are about such as menus work on all those platforms, and they are addressed in straightforward ways, commands always have the same structure, and the variety of them is good.

The user interface components are arranged in a hierarchy structures as a file hierarchy on disc, and the structure of that hierarchy and its components can be read and changed at any time by standard commands.

Mon 16 june 2001, 13:06 PM

The subject above isn't finished, but I thought I'd add a short note first.

Javascript interacting with self compiled java applet

I've asked for the source files of the spectrum analyser applet I've used extensively on the wave laboratory page, and kindly got them, and I just had the chance to compile them with the java compiler (1.3), and after very little work a have made the applet from sources work on a try page.

That is definately fun, and I've just looked at what mechanism is used to communicate between the javascript on the web page and the applet, and found thus far that it seems that public functions extending the applet class can be given arguments and called from javascript, which is transparent enough. It seems javascript doesn't distinquish integer or float variables in this mechanism, while java's methods arguments do.

Now lets see what I'm gonna do with it, I guess it would be quite fun to make some sounds, there are java example programs who make sounds, I'm not sure it is possible to make the samples oneself. If so, it would be a good wavelaboratory and even synthlab page improvement to make the example instantly audible.