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: paul graham...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3741 of 4325
Post > Topic >>

Re: paul grahams arc, a new lisp, and his words about makign code

by "Jeff M." <massung@[EMAIL PROTECTED] > Jan 31, 2008 at 01:31 PM

On Jan 31, 2:02 pm, van...@[EMAIL PROTECTED]
 wrote:
> Jeff M. <mass...@[EMAIL PROTECTED]
> wrote:
> >  s" Hello, world!" email< m...@[EMAIL PROTECTED]
> send-email
> > It's equally brief, just as readable, and there's just as much code
> > that exists underneath it,
> > ...
>
> Yes, but... what would this code look like if you wanted to append
> the string in the variable "sig" to the contents?  In Python it'd
> go from:
>
>     [..snip example..]
>
> In any sort of "standard model" Forth, the would-be caller is going to
> have to deal with sizing and allocating a new buffer, and copying the
> contents into it.  [..]

What makes you think that Python isn't doing the same thing? You are
just abstracted away from that. I could provide you with a "strings
utility" vocabulary in Forth that allows you to do the same. Now is
Python better?

The only difference is whether or not I (the end user) have to code
the "backend" myself and whether or not I have time to do it. And
there's the rub. During an average week, much of what I need to
program is something I need to work "now" and I don't have the time to
program a hash table, string library, and memory manager - so, I use a
language with those features pre-packaged for me.

I'm not suggesting language X is better than Y or even that Y sucks.
Just that "compactness" - as an argument for a language being good (or
bad) - is a red herring. :)

Jeff M.
 




 1 Posts in Topic:
Re: paul grahams arc, a new lisp, and his words about makign cod
"Jeff M." <m  2008-01-31 13:31:54 

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 Nov 22 14:15:57 CST 2008.