MausNet is a collection of Sinclair BBS’s in Europe that pass messages between themselves, plus some systems on the Internet. Through this Internet connection I am able to get a feed of MausNet postings/articles/messages.
MausNet is broken into two groups, maus.comp.ql and maus.sys.ql. Maus.comp.ql carries discussions about the QL in general, while maus.sys.ql covers QL programming.
Most of the articles posted are small chit-chat messages between readers. Some do carry some good information, where the others, when linked by a common thread, take on full meaning. This article will be discuss the more interesting information coming from the other side of the pond. If you would like more information on what is mentioned here, drop me a line and I’ll get it to you.
Pointers and Mice: There has been some discussion of pointer systems. For those that don’t know about the pointer systems (like me), it’s a library of routines that allow programs compiled with it to use a mouse. The PE takes care of windows overlapping each other. One PE is EASYPTR and an other is the Pointer Interface. Here is part of an posting about PI.
The Pointer Interface (PI) is implemented via the extension PTR_GEN. It provides an extended and modified console driver and forms the lower level of the “Pointer Environment”. For the programmer it provides code to allow applications to read the pointer and so on.
The PE is formed by the combination of Pointer Interface and Window Manager. The Window Manager is implemented via the extension WMAN. The Window Manager is a set of utility routines which assist with the maintainance of windows, and which forms the higher level of the PE. A number of routines are provided which translate and interpret data structures either set up or containded within a program. Translation involves conversion of a “window definition” of the form recognized by the Window Manager to a “working definition”. Interpretation freqently takes the form of drawing or re-drawing part of a window.
The Hotkey System II is not part of the PE. Instead the combination of Hotkey System II and PE is referred to as Extended Environment (EE).
[ Bernard Scheffold ]
QUASAR: The German QL club’s quartly newsletter is available by joining the club (no seperate newsletter rate) for 41 DM per year. Payment should be made in DM. Back issues (QUASAR #23 and forward) are available for 3 DM each (plus postage). Copied back issues (all) cost roughly the same.
QL and EGA Monitor: There have been a few replies to a query about how to hook up a QL to an EGA monitor. One replies seems to detail the connection, but a few follow up articles discuss the feasibility even further. One even says that it should not work. I’ll leave this up to those who know more than I.
Multitasking and the QL: One reader asked the question about mutitasking in MS-DOS, Windows, OS/2 and the QL. He mentioned the terms “truely preemptive” and “cooperative”. Here is the response:
The QL is “truely” preemtive.
Cooperative means each task switches by itself to the next task in the queue of tasks (in Forth this is called “Round Robin”). Code can be much more faster this way. (Mac works in the cooperative way, too)
Preemptive means there is a supervisory instance being called independently from what the running tasks do otherwise, activated by a clock via an interrupt. Code doesn’t run as fast this way, as the list of tasks has to be looked up each time a task switching occurs. But it is a much more secure way for an operating system.
Besides, it is more easy to write reentrant code when task switching occurs in cooperative manner. Writing such code is Forth, I only have to save/restore 3 or 4 registers and do 2 jumps and the code remains reentrant for all tasks (if no common variables are used). The other way all registers have to be saved/restored and jumping upon hardware interrupt isn’t as fast as this.
Used by an operating system, the interrupt driven tasker is able to create time slices more reliably. The cooperative tasker only can approximate that – as it is up to the programmer, how often CPU time is given up, in favor of what else happens to run, when this code is executed.
[ Erwald Pfau ]