* Using X intrinsics from Fortran on a VAXstation 3100...
@ 1991-08-29 9:58 Andrew Haylett
1991-09-05 12:59 ` jeremy
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Haylett @ 1991-08-29 9:58 UTC (permalink / raw)
I'm about to join the ranks of DEC users, having been raised on Suns, and have
a very simple question. I shall be writing much Fortran code to run on a 3100,
the standard environment being VMS/DECwindows. I also need to be able to
present simple dynamic data (moving targets, lines, labels, etc.) on the
display, and perhaps have a simple user interface to allow control of the
program's operation. My instinctive reaction would be just to use the X
intrinsics functions, as they seem about the right level. However, is it
possible and/or reasonable to do this from Fortran (the language issues alone
would appear to make this very difficult)? Or would a better route be to use C
to provide a `wrapper' around the Fortran?
DEC say that using X/DECwindows from Fortran would be tricky, and they would
like to sell me their user interface language product (VUIT, I believe) - this
seems more aimed at people who want to design forms, not for displaying simple
data efficiently.
Any advice appreciated. Replies by mail if possible, please.
--------
Andrew Haylett | Tel: +44 245 73331 x.3215
GEC-Marconi Research Centre | Fax: +44 245 75244
Great Baddow, Chelmsford, | UUCP: ...!ukc!gec-mrc!ajh
Essex, UK CM2 8HN | JANET: ajh@uk.co.gec-mrc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using X intrinsics from Fortran on a VAXstation 3100...
1991-08-29 9:58 Using X intrinsics from Fortran on a VAXstation 3100 Andrew Haylett
@ 1991-09-05 12:59 ` jeremy
0 siblings, 0 replies; 2+ messages in thread
From: jeremy @ 1991-09-05 12:59 UTC (permalink / raw)
In article <1077@mrcu>, ajh@uk.co.gec-mrc (Andrew Haylett) writes:
>...
> DEC say that using X/DECwindows from Fortran would be tricky, and they would
> like to sell me their user interface language product (VUIT, I believe) - this
> seems more aimed at people who want to design forms, not for displaying simple
> data efficiently.
Quite right -- VUIT is primarily aimed at data entry forms generation.
However, it might still be useful for you, because it removes all the
drudgery of coding the basic application apearance.
As far as using FORTRAN goes, I can only offer my own experience as advice.
I'm not very fond of C, and decided to write a DECwindows application in
Pascal. It was quite feasible, but it highlighted a major problem with the
VMS interface to DECwindows. The usual MIT C calling convention has been
designed for C and the data structures are C-oriented. In the VMS calling
convention, the data structures have been defined in SDL (DEC's
meta-language for such things) and then the "%include" type files for each
language are built by converting the SDL definitions to those appropriate
to the language. Unfortunately this results in a bit of a mish-mash of
structures; some appear well thought out, others appear pretty bad. The
Pascal definitions of procedures and functions were particularly poorly
done: in many cases, the routines have to be called using intermediate
variant records or type-casting to perform type conversion etc because the
routine demanded a particular type, which is not very compatible with the
way things are "done". My pet gripe was the situation of passing callbacks
to X routines, because Pascal provides an easy way to pass a routine's
address to another routine, but the X routine was declared with bizarre
parameters which made such calls cumersome.
So, by all means try the FORTRAN, but be warned. Being not as strongly
typed as Pascal, you may not have as many problems as I did.
Jeremy Begg
+----------------------------------------------------------+
| VSM Software Services, | E-Mail: jeremy@vsm.com.au |
| P.O.Box 801, Unley, | Phone: +61 8 2388074 (pager)|
| South Australia 5061 | |
+----------------------------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1991-09-05 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-08-29 9:58 Using X intrinsics from Fortran on a VAXstation 3100 Andrew Haylett
1991-09-05 12:59 ` jeremy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox