🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2942

Re: Is C/C++ the dominant teaching language?

#2942
From: "Mark Morgan Lloyd "
Date: Wed, 25 Oct 1995 19:13
27 lines
1369 bytes
> WHY??? I am building an embedded systems OS in Modula-2. I can't see
> that there are ANY problems with that.

Agree totally. 

> If I tried to write it in C, I would run into big problems with
> multitasking.

And probably much else, because of the extra compile-time checks that 
Modula-2 makes.
 
> How do you create a multitasking system in a language that doesn't
> support tasks?

Well, they did it OK with UNIX on top of C, and in many cases it has been 
done on top of assembler. Having a language that does not support tasks 
is no particular problem- all that has to be done is build things up 
carefully, and (where necessary) select the most appropriate abstractions 
that are supported by the language (which in most cases boil down to 
representing a process by a pointer to the top of its stack plus some 
static data structures).

Mark Morgan Lloyd
mark_tbu@cix.compulink.co.uk

[Opinions above are the author's, not those of his employers or 
colleagues]
Technical Details
Message-ID: <DH0qpx.Lry@cix.compulink.co.uk>
Path: arc1-ca.pugleaf.net!cix.compulink.co.uk!usenet
References: <FRViDD1w165w@multimaster.no>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2
Path: arc1-ca.pugleaf.net!cix.compulink.co.uk!usenet
From: mark_tbu@cix.compulink.co.uk ("Mark Morgan Lloyd ")
Subject: Re: Is C/C++ the dominant teaching language? 
Message-ID: <DH0qpx.Lry@cix.compulink.co.uk>
Organization: KDG Mobrey Telemetry
References: <FRViDD1w165w@multimaster.no>
Date: Wed, 25 Oct 1995 19:13:09 GMT
X-News-Software: Ameol