Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: advantages ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 32 of 81 Topic 3560 of 4173
Post > Topic >>

Re: advantages of forth over other languages

by Clever Monkey <spamtrap@[EMAIL PROTECTED] > Apr 30, 2008 at 12:54 PM

Aleksej Saushev wrote:
> Andreas Klimas <klimas@[EMAIL PROTECTED]
> writes:
> 
>> John Doty wrote:
>>> John Passaniti wrote:
>>>
>>>> Three of the most common features of Forth that people point
>>>> to when comparing against C is interactivity,
>>> Very im****tant in the past. But these days the *systems* are
>>> interactive and I can get around the edit/build/test loop in a
>>> few seconds even with a compile/link language. Faster than I
>>> can think ;-)
>> and it is still clumsy.
>> you need a C-File, probable H-File, edit Makefile, take
>> care of dependency have to link a lot of libraries every
>> time only to get a small (test) function running.
> 
> If you have pretty widespread BSD system (NetBSD, OpenBSD, FreeBSD),
> you only need to type "make this", and it will compile "this.c",
> link it, and bring you executable without even asking you to
> write Makefile. If you want more complex things, you have plenty
> of examples in your /usr/src, and once you learn it, you get plenty
> of libraries to suffice your needs, which you can't say about Forth.
> 
>>>> and the ability to do run-time evaluation.
>>> I assume you mean compile-time: I know of few languages that
>>> prevent run-time evaluation!
>>>
>>> But here, C folks again use the *systems* that sup****t C:
>>> generate C code with a script or another C program during the
>>> build. You can have whatever build-time computation you want
>>> that way.
>> more complex dependency for makefile. C code generators tend to
>> be more complex as those little building words in Forth.
> 
> Oh really? This so trivial, that you even can't imagine.
> For instance, this is Makefile for expr(1) tool from NetBSD
> empty lines removed:
> 
> #	$NetBSD: Makefile,v 1.14 2000/09/19 17:20:00 jdolecek Exp $
> PROG=		expr
> SRCS=		expr.y
> .include <bsd.prog.mk>
> 
> Really complex, isn't it?
> 
Well, I think you've highlighted at least one issue that the OP might 
have meant: you've described a situation where you not only have to know 
C, you also have to know about the public interfaces and ex****ts of 
those libraries, and you have to learn the extremely arcane syntax of 
another language: make.  Sure, once you know how to make that basic 
Makefile, you know it.  But, how do you get to that knowing?  This is 
part of the "cognitive load" required to work with that language 
environment.

Technically, one may have to learn the shell language they use as the 
basis for the edit-compile-test loop, as well.

None of this stuff comes for free.

When comparing and contrasting languages, we should be careful to 
compare apples with apples.  In the case of C we should recognize that 
the entire development system often includes much more than the core 
language and compiler, and each component adds to the potential 
cognitive load, and is not a "freebie."  Each one has to be figured out 
as you go.

One need only remember those first-year students who knew [insert some 
language here] but were confronted with an unfamiliar development 
environment.  Around my school, this made for some tense end-of-semester 
projects as many people struggled with everything /other/ than the code! 
  Not an impossible hurdle, of course, but it is unfair to simply 
hand-wave this part of the C experience as trivial, because it most 
certainly is not.

In fact, if you survey some of the threads over on comp.lang.c you will 
find a not insignificant percentage of them are related to folks trying 
to figure out the linker, the environment or something completely 
separate from the language and compiler.

I would note that the entire language environment is precisely what we 
want when we choose a language, so it is this total environment 
(including how build artefacts are created and deployed) that should be 
considered when comparing and contrasting.  The "compiler" or whatever 
is often only a small part of the considerations we have to make as 
working coders.

This is why the much-maligned Java is so successful in some ways: it 
offers a near-total source-to-artefact development and deployment 
solution, along with a Good Enough OO language spec and compiler.  With 
all its failings it offers all sorts of non-language related tools that 
make it very attractive for (certain types of) enterprise development.

So, by all means, let's talk about how the different toolsets we can use 
as developers helps or hinders our work.  But lets not be naive about 
the full scope of understanding needed to really get the most out of a 
particular language.  C is an excellent cross-platform object code 
generator.  Actually getting that object code and doing anything useful 
with it requires a whole set of tools that is not part of the ISO C 
standard.
-- 
clvrmnky <mailto:spamtrap@[EMAIL PROTECTED]
>

Direct replies to this address will be blacklisted.  Replace "spamtrap" 
with my name to contact me directly.
 




 81 Posts in Topic:
advantages of forth over other languages
Andreas Klimas <klimas  2007-10-03 00:09:20 
Re: advantages of forth over other languages
"Celime" <cm  2007-10-03 16:59:11 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2007-10-03 17:35:37 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2007-10-03 23:41:47 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-03 21:31:42 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2007-10-05 00:11:14 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-04 18:54:59 
Re: advantages of forth over other languages
Elizabeth D Rather <er  2007-10-04 15:54:29 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-04 20:42:38 
Re: advantages of forth over other languages
Elizabeth D Rather <er  2007-10-04 17:38:16 
Re: advantages of forth over other languages
Nils-Arne Dahlberg <ni  2007-10-05 12:45:52 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-05 12:03:05 
Re: advantages of forth over other languages
kenney@[EMAIL PROTECTED]   2007-10-05 06:01:01 
Re: advantages of forth over other languages
Bernd Paysan <bernd.pa  2007-10-05 14:35:14 
Re: advantages of forth over other languages
kenney@[EMAIL PROTECTED]   2007-10-05 13:41:05 
Re: advantages of forth over other languages
Bernd Paysan <bernd.pa  2007-10-06 14:01:19 
Re: advantages of forth over other languages
"Celime" <cm  2007-10-05 14:41:36 
Re: advantages of forth over other languages
kenney@[EMAIL PROTECTED]   2007-10-05 13:41:05 
Re: advantages of forth over other languages
"Celime" <cm  2007-10-05 14:32:52 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-03 12:15:17 
Re: advantages of forth over other languages
"Celime" <cm  2007-10-05 14:36:07 
Re: advantages of forth over other languages
Jason Damisch <jasonda  2007-10-03 10:50:17 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2007-10-03 18:13:48 
Re: advantages of forth over other languages
helmwo@[EMAIL PROTECTED]   2007-10-03 17:50:41 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2007-10-03 19:42:57 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-04 06:40:55 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2008-04-23 00:56:57 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-04-23 22:21:34 
Re: advantages of forth over other languages
Richard Owlett <rowlet  2008-04-23 20:56:47 
Re: advantages of forth over other languages
John Passaniti <put-my  2008-04-23 23:55:14 
Re: advantages of forth over other languages
Aleksej Saushev <asau@  2008-04-26 11:16:29 
Re: advantages of forth over other languages
Clever Monkey <spamtra  2008-04-30 12:54:44 
Re: advantages of forth over other languages
Albert van der Horst <  2008-05-01 14:28:07 
Re: advantages of forth over other languages
Clever Monkey <spamtra  2008-05-01 12:45:08 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2008-05-01 21:58:50 
Re: advantages of forth over other languages
Clever Monkey <spamtra  2008-05-02 13:11:16 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2008-05-02 12:15:13 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-05-02 20:58:26 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2008-05-02 18:28:21 
Re: advantages of forth over other languages
John Passaniti <my-fir  2008-05-03 03:25:24 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2008-05-03 11:43:40 
Re: advantages of forth over other languages
John Passaniti <put-my  2008-05-04 04:54:23 
Re: advantages of forth over other languages
Bernd Paysan <bernd.pa  2008-05-04 00:30:45 
Re: advantages of forth over other languages
Alex McDonald <blog@[E  2008-05-03 13:06:45 
Re: advantages of forth over other languages
Clever Monkey <spamtra  2008-05-07 16:12:07 
Re: advantages of forth over other languages
Bruce McFarling <agila  2008-05-04 19:45:37 
Re: advantages of forth over other languages
John Passaniti <my-fir  2008-05-06 04:11:01 
Re: advantages of forth over other languages
Bruce McFarling <agila  2008-05-06 12:35:30 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-05-07 18:29:17 
Re: advantages of forth over other languages
Bruce McFarling <agila  2008-05-07 13:14:51 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-05-07 20:45:17 
Re: advantages of forth over other languages
Bruce McFarling <agila  2008-05-07 13:21:16 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-05-07 20:49:41 
Re: advantages of forth over other languages
Bruce McFarling <agila  2008-05-07 15:36:51 
Re: advantages of forth over other languages
Brad Eckert <nospaambr  2008-05-08 08:08:13 
Re: advantages of forth over other languages
Robert Spykerman <robe  2008-05-11 20:06:29 
Re: advantages of forth over other languages
dhoffman@[EMAIL PROTECTED  2008-05-11 23:48:50 
Re: advantages of forth over other languages
Jerry Avins <jya@[EMAI  2008-05-12 18:43:20 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2008-05-13 19:52:50 
Re: advantages of forth over other languages
Alex McDonald <blog@[E  2008-05-12 02:07:34 
Re: advantages of forth over other languages
mhx@[EMAIL PROTECTED] (M  2007-10-03 21:51:07 
Re: advantages of forth over other languages
helmwo@[EMAIL PROTECTED]   2007-10-03 20:00:21 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2007-10-03 23:52:19 
Re: advantages of forth over other languages
helmwo@[EMAIL PROTECTED]   2007-10-03 20:04:29 
Re: advantages of forth over other languages
"slava@[EMAIL PROTEC  2007-10-03 16:52:26 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2007-10-04 00:34:18 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2007-10-04 01:12:50 
Re: advantages of forth over other languages
"slava@[EMAIL PROTEC  2007-10-03 16:54:14 
Re: advantages of forth over other languages
Andreas Klimas <klimas  2007-10-04 00:12:13 
Re: advantages of forth over other languages
stephenXXX@[EMAIL PROTECT  2007-10-04 10:40:23 
Re: advantages of forth over other languages
John Doty <jpd@[EMAIL   2007-10-04 05:51:23 
Re: advantages of forth over other languages
Bernd Paysan <bernd.pa  2007-10-04 15:03:58 
Re: advantages of forth over other languages
John Passaniti <nntp@[  2007-10-05 01:21:18 
Re: advantages of forth over other languages
Elizabeth D Rather <er  2007-10-04 15:44:56 
Re: advantages of forth over other languages
mhx@[EMAIL PROTECTED] (M  2007-10-04 21:59:13 
Re: advantages of forth over other languages
znmeb <zznmeb@[EMAIL P  2007-10-06 22:09:23 
Re: advantages of forth over other languages
David Thompson <dave.t  2007-10-14 23:03:24 
Re: advantages of forth over other languages
=?iso-8859-1?q?Jean-Fran=  2007-11-01 18:14:30 
Re: advantages of forth over other languages
John Passaniti <put-my  2007-11-01 22:02:13 
Re: advantages of forth over other languages
gavino <gavcomedy@[EMA  2007-11-08 16:13:55 
Re: advantages of forth over other languages
Jonah Thomas <jethomas  2008-05-06 07:15:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:16:30 CDT 2008.