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: Elegant cod...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 45 of 58 Topic 4000 of 4173
Post > Topic >>

Re: Elegant code Was: Re: what kind of non microconroller app are

by Ian Osgood <iano@[EMAIL PROTECTED] > Apr 22, 2008 at 10:00 AM

On Apr 22, 2:20=A0am, Gerry <ge...@[EMAIL PROTECTED]
> wrote:
> On 21 Apr, 18:42, Elizabeth D Rather <erat...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > Jonah Thomas wrote:
>
> > ...
>
> > > People say it works for Chuck Moore. He writes lots of routines that
a=
re
> > > a line or two each. Simple, clear, powerful. It does 90% of what
you'd=

> > > want it to, and the other 10% isn't needed. If it's true that 10% of
t=
he
> > > specs generate 90% of the complexity and that 10% isn't really
> > > needed.... People say Chuck is the best at using Forth. I'd like to
be=

> > > better at it than I am. What does Chuck do that I don't do? What do
I =
do
> > > that I shouldn't?
> > >...
>
> > Understanding that your percentages here are entirely rhetorical, I
> > think you're on the right track. =A0The big difference between Chuck
and=
 a
> > lot of folks here is that he only solves the particular problem at
hand
> > -- he is never groping for a general solution. =A0He would never say,
"I=

> > need a better string handling package." =A0Instead, confronted with a
> > particular string challenge, he'd find the most direct way of dealing
> > with it. =A0If he is working on an application full of strings, he'd
fin=
d
> > ways to deal with its specific issues, and factor some of the common
> > needs into reusable definitions, but he would never be searching for
> > either "general purpose" functions or attempting to replicate what
some
> > other language did.
>
> > Whether this is good or bad, I can't say... but if you ask "What does
> > Chuck do that I don't do?" that's the answer.
>
> Yes different approaches to getting the job done. Earlier in this
> thread I was effectively apologising for the BNF to Gray format
> converter being a bit complicated but on thinking about it I don't
> think it is really. To build this converter, which is an off-line
> tool, I used:
> - some library code to provide memory buffers
> - an off-line tool (LexGen) to generate transition tables for a
> lexical scanner
> - library code for the lexical scanner
> - another tool (Gray) for the parser generator
>
> and then wrote higher level code to tie it together and make it all
> work.

This has come to be known as "post-modern programming", and is
sup****ted by various glue and scripting environments like shells,
Perl, Python, etc. coupled with growing code libraries like Unix,
Boost, CPAN and various other standard libraries.

The premise is that as time goes on, the number of existing solutions
to programming problems increases, and the practical effort to plug
existing solutions together should become less than
the effort to craft one's own solutions. The post-modern skill set is
slightly different, synthetic instead of creative.

Note that you can still get the benefits of tight custom solutions
with post-modern programming, if you have access to source and not
just black-box libraries. In one application, I took an existing
device driver that was both too general and half-baked, stripped 75%
of the code out of it, leaving only a tight core that was tailored to
our application. This works well in shared source cultures like Forth.

> Contrast this with the typical Forther approach of doing the whole
> thing from scratch, e.g. Jonah developing code for text recognition -
> a problem that is already solved by a general purpose lexical scanner.
> This of course results in more concise source code, faster code etc.
> but probably takes longer to develop.

I suggest that the Forth way of writing from scratch was a product of
its time. In the 70s and 80s, you didn't have public repositories of
existing solutions. Also, each programmer became his own resource,
notably Chuck and Forth vendors, and their experience ****ting to wide
varieties of systems.

> Which is the best approach, I don't know, I suppose it depends on your
> point of view, but I know which I prefer.
>
> Gerry

I personally think post-modern programming is the way of the future. A
language which cannot sup****t it is doomed to the sidelines. Thus, I
think Forth should start borrowing from other languages, continuing to
standardize but focusing more on standard code libraries, im****t
mechanisms, foreign-function interfaces and otherwise working well
with others.

Ian
 




 58 Posts in Topic:
what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-16 15:31:12 
Re: what kind of non microconroller app are done in forth?
pablo reda <pabloreda@  2008-04-16 15:57:50 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-16 16:13:28 
Re: what kind of non microconroller app are done in forth?
stephenXXX@[EMAIL PROTECT  2008-04-17 09:26:43 
Re: what kind of non microconroller app are done in forth?
pablo reda <pabloreda@  2008-04-17 06:28:26 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-18 10:11:10 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-18 10:12:04 
Re: what kind of non microconroller app are done in forth?
Elizabeth D Rather <er  2008-04-18 08:49:22 
Re: what kind of non microconroller app are done in forth?
Helmar <helmwo@[EMAIL   2008-04-18 11:10:45 
Re: what kind of non microconroller app are done in forth?
pablo reda <pabloreda@  2008-04-18 12:04:14 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-18 16:22:53 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-18 16:24:09 
Re: what kind of non microconroller app are done in forth?
Elizabeth D Rather <er  2008-04-18 20:47:50 
Re: what kind of non microconroller app are done in forth?
jennifer.spykerman@[EMAIL  2008-04-19 04:15:42 
Re: what kind of non microconroller app are done in forth?
Duke Normandin <dukeof  2008-04-19 14:20:53 
Re: what kind of non microconroller app are done in forth?
Robert Spykerman <robe  2008-04-19 17:07:15 
Re: what kind of non microconroller app are done in forth?
Duke Normandin <dukeof  2008-04-20 02:50:54 
Re: what kind of non microconroller app are done in forth?
Elizabeth D Rather <er  2008-04-19 21:48:07 
Re: what kind of non microconroller app are done in forth?
Jonah Thomas <jethomas  2008-04-19 10:40:11 
Re: what kind of non microconroller app are done in forth?
Thomas Pornin <pornin@  2008-04-20 07:11:54 
Re: what kind of non microconroller app are done in forth?
Bruce McFarling <agila  2008-04-19 09:33:55 
Re: what kind of non microconroller app are done in forth?
Bruce McFarling <agila  2008-04-19 09:37:25 
Re: what kind of non microconroller app are done in forth?
Guy Macon <http://www.  2008-04-19 17:47:45 
Re: what kind of non microconroller app are done in forth?
Jonah Thomas <jethomas  2008-04-19 14:31:39 
Re: what kind of non microconroller app are done in forth?
Bruce McFarling <agila  2008-04-19 15:04:48 
Re: what kind of non microconroller app are done in forth?
Albert van der Horst <  2008-04-20 13:43:04 
Re: what kind of non microconroller app are done in forth?
Bruce McFarling <agila  2008-04-19 15:21:12 
Re: what kind of non microconroller app are done in forth?
Gerry <gerry@[EMAIL PR  2008-04-20 01:50:08 
Re: what kind of non microconroller app are done in forth?
Jonah Thomas <jethomas  2008-04-20 08:23:50 
Re: what kind of non microconroller app are done in forth?
Gerry <gerry@[EMAIL PR  2008-04-20 08:12:11 
Elegant code Was: Re: what kind of non microconroller app are d
Jonah Thomas <jethomas  2008-04-21 01:58:43 
Re: Elegant code
Josh Grams <josh@[EMAI  2008-04-21 11:56:34 
Re: Elegant code Was: Re: what kind of non microconroller app a
"David N. Williams&q  2008-04-21 12:12:22 
Re: Elegant code Was: Re: what kind of non microconroller app a
mhx@[EMAIL PROTECTED] (M  2008-04-21 19:57:21 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-21 02:15:31 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-21 03:53:49 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Jonah Thomas <jethomas  2008-04-21 09:04:09 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Elizabeth D Rather <er  2008-04-21 07:42:01 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Jonah Thomas <jethomas  2008-04-21 10:33:13 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Bruce McFarling <agila  2008-04-21 08:22:03 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-21 09:45:27 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-22 02:20:59 
Re: Elegant code Was: Re: what kind of non microconroller app ar
John Passaniti <nntp@[  2008-04-22 17:22:35 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Elizabeth D Rather <er  2008-04-22 14:16:18 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Ian Osgood <iano@[EMAI  2008-04-22 10:00:09 
Re: Elegant code Was: Re: what kind of non microconroller app ar
John Passaniti <nntp@[  2008-04-22 17:36:41 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-22 22:59:42 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Alex McDonald <blog@[E  2008-04-23 01:00:52 
Re: Elegant code Was: Re: what kind of non microconroller app ar
stephenXXX@[EMAIL PROTECT  2008-04-23 10:07:15 
C interface (was: Elegant code)
anton@[EMAIL PROTECTED]   2008-04-23 20:04:07 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Gerry <gerry@[EMAIL PR  2008-04-23 03:20:05 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Alex McDonald <blog@[E  2008-04-23 04:09:54 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Alex McDonald <blog@[E  2008-04-23 04:14:57 
Re: Elegant code Was: Re: what kind of non microconroller app ar
Jonah Thomas <jethomas  2008-04-23 10:11:34 
Re: Elegant code Was: Re: what kind of non microconroller app ar
John Passaniti <nntp@[  2008-04-23 20:56:59 
Re: what kind of non microconroller app are done in forth?
gavino <gavcomedy@[EMA  2008-04-29 00:16:19 
Re: what kind of non microconroller app are done in forth?
Elizabeth D Rather <er  2008-04-28 21:47:07 
Re: what kind of non microconroller app are done in forth?
Robert Spykerman <robe  2008-04-29 04:32:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Jul 26 4:18:52 CDT 2008.