J
jacob navia
Jens said:You post a revised version of a program that takes about
100 lines of C code to a) compilee, b) link and c) run the
C programs in a certain directory.
d) Gather statistics about what parts of those process failed
e) print them
And, as has been pointed
out, there are still some issues with the program.
No, there is just a transcript error from the program
to the post. That's all . NO issues were raised.
?So I am
wondering is what you actually want to prove with this?
That a program that takes just 5072 bytes of executable size
I can do the same thing that in other scripting languages with the
same style of security.
I could come up with less then 10 lines of a Makefile or
similar number of limes of a Perl or bash script to do
more or less the same,
rather less since it would be surprising that Makefiles
gather statistics about which things failed
and I am rather sure many of the
other "regulars" could do the same (or they rather might
know an even more concise way to do it). So it's no a
very convincing example of why one should write scripts
in C.
For you. Your opinion. My opinion differs.
If you want to write everything in C (and I don't blame you,
I like C and also write a lot of stuff in C, but not every-
thing) that's fine with me. What I don't understand is why
you seem to see C as the one and only "true way" of writing
programs.
What I like in C is precisely this minimalist approach that simplifies
software construction and allows to produce powerful and small programs.
In this days of trying to make of everything a monster program that
takes megabytes to run it is refreshing to see a standalone
program that takes just 5K.
C is, at least to me, a nice. small and often ele-
gant language, but, alas, at times bogged down with histo-
rical decisions that can't be easily undone and simply have
to be accepted. It's very useful for a lot of things I do
(especially if speed is an issue or you have to write e.g.
libraries or device drivers). But there are things that
are too time-consuming and complicated to write in C and then,
if possible, I tend to write that in a different language.
Your choice.
[snip]
But, if I understand what you write at other times, you
don't seem to like C for what it is: you want to extend
it in all kinds of directions, e.g. making it more like
C++, with operator and function overloading etc., just to
name a few examples.
Surely not as C++, I never proposed that. C++ exists, and
it is a model of what should not be done.
I get the feeling that you actually
want to develop your own language and the restrictions of
C are keeping you back all of the time, making you unhappy
more than necessary.
There are three main points that I want to add:
(1) Abstract types like lists/extensible arrays and others.
(2) Non zero terminated strings
(3) To use the above two a simple language extension is
necessary.
Why don't you simple cast off all the
baggage and start your own language? Other people have done
so before and have been very successful, with C++ as the
most obvious example?
Implicit here is the idea that C should NOT evolve. That is dead
and any improvement (even getting rid of gets() or asctime())
is just a waste.
C has a very important role nowadays as a lingua franca.
Many kernels, device drivers etc. are written in C, as
well as all kinds of other languages and libraries. But
that's also what makes C so hard to change fundamentally.
How much you rave and swear, it won't get changed easily.
Your opinion.
And if you don't like it come up with something that's
really better and gets accepted!
lcc-win has a download rate of several hundreds per day.
We passed the million downloads recently. lcc-win is accepted.
You obviously have tried
to with lcc, but just having tried, unfortunately, isn't
good enough.
I want to make this extension public and discuss about them in this
forum.
There are lots of people that have written
excellent programs or tools that never got the recognition
they deserved. So why not make your lcc a compiler for a
language you really like and feel to be superior to C,
dropping all pretensions of it being "just another C
compiler"? It obviously isn't meant to be one. You don't
seem to want to write just a C compiler that's faster than
all others or just produces faster executables - from all
you write I take that you want to write a compiler for what
you see as a better language than (that's just similar to
C). So just do that and don't look back - don't get bogged
down by people pointing out that it may have some issues as
a standard conforming C compiler.
I do not get bogged down. I am finishing the C99 implementation,
I have improved in the 32 bit compiler the handling of 64 bit
data, released the 64 bit version, started the defining of
improved complex operations code generation, ported
the 32 bit version to linux again etc etc.