[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Low-level vs. High-level programming



In article <bd5fsv$qli$5@titan.btinternet.com>,
Kevin Lawton <kepla@btinternet.com> wrote:
 
> | I would love to see someone control a port at a non-standard address
> | in Basic, Fortran, Cobol, C, C++, etc without using extensions beyond
> | the standard language.  The truth is that your statement "If you can
> | do it in asm you can do it in any language that is sufficiently
> | complete." is not quite true.  Many computer languages do have
> | limitations built into them. One good example is reentrant code, some
> | can some can not.
> 
> Fine, and I would love to oblige you.
> If you would care to give me the address of the hypothetical port, then I
> would be happy to furnish you with examples in Basic (yeauch !), Fortran,
> Cobol
 
It'll be very hard to do this in Fortran and Cobol unless you use
some compiler specific extension of the language.  Sorry....
 
> and C. Can't really clain to know C++ that well, but might be
> persuaded to give it a try.
 
In this particular case you can consider C and C++ equivalent: do it
in C, and it will most likely be acceptable as C++ as well.
 
> Might even be persuaded to give it a go in Forth, Assembler
 
It's trivial in Forth and assembler...
 
> and Java too if you ask nicely
 
How do you get out of the VM in Java?  OK, you could use JNI and do
it in C of course.....  <g>
 
> (and pay well).
 
And what if you fail?  Do you refund the money in such a case?  <g>
 
> Please don't ask me to try it in HTML or XML.
 
-- 
----------------------------------------------------------------
Paul Schlyter,  Grev Turegatan 40,  SE-114 38 Stockholm,  SWEDEN
e-mail:  pausch at stockholm dot bostream dot se
WWW:     http://www.stjarnhimlen.se/
         http://home.tiscali.se/pausch/