Re: Some ideas on ETH-oberon & Linux/C relationship
- From: news <news@xxxxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 22:48:40 +0200
On Sat, 08 Jul 2006 14:06:43 +0200, Andreas F. Borchert wrote:
["Followup-To:" header set to comp.lang.oberon.]See my other thread related to this.
On 2006-07-08, news@xxxxxxxxxxxxxx <news@xxxxxxxxxxxxxx> wrote:
Would Linux/C's library be partly a good guide to a suitable
similar Oberon library ?
The libc is certainly not a good guide:
* Buffer overruns are not ruled out by design: gets, sscanf etc.
* Interface inconsistencies: gets vs fgets, fgets vs fscanf (note
the position of the file stream parameter)
* Bad interfaces like that of getchar() whose return code
can be a character or an error code
* Particularly bad buffering system which
- ignores the block structure of underlying file systems, and
- does not support bidirectional buffering
* No provisions exist such that independent libraries can cooperate
with each other in
- signal handling,
- setting up alarms, and
- tracking childs.
These are problems related to C,
and not related to using libraries.
Perhaps sufficient thought has gone into java to decide, WHAT libraries
to implement, and how to 'group' the 'methods' ?
(Please note that I do not want to bash Ritchie, Kernighan etc. Theulm-oberon-i386-0.8.6.ebuild.tar.bz2
libc is history and should be taken as such. It is time to abandon
C and the libc and it does not help to place other systems (like
Java) on top of this historic relic.)
Take a look at
http://www.jwz.org/doc/worse-is-better.html
why C and libc win in comparison to Lisp and Scheme.
However, if you are looking for an Oberon library that works as
an replacement of libc, you might want to take a look at Ulm's
Oberon System [1] which is also available for Linux. And it neither
depends on C or libc nor does it contain even a single line of
C code.
Andreas.
[1] http://www.mathematik.uni-ulm.de/oberon/
Linux Gentoo users might want to use
ftp://ftp.mathematik.uni-ulm.de/pub/soft/oberon/ulm/i386/\
The packages consist of Oberon sources and binaries which allow to
bootstrap the system. The linux port is still beta and not yet
finished. The core libraries are, however, quite stable since more
than ten years.
I'm quiet satisfied with ETH native oberon, and for inet facilities which
it lacks [eg full featured browser & robust-ppp], linux-ETH-oberon is good.
Convenient transfer between the oberon-'format' and linux allows eg.
download a *.pdf > linux/pdf2 txt > oberon/superior-text-massage.
== Chris Glur.
.
- Prev by Date: wwwwwwwwww
- Previous by thread: wwwwwwwwww
- Index(es):
Relevant Pages
|