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 9 Topic 3740 of 4325
Post > Topic >>

Re: paul grahams arc, a new lisp, and his words about makign code ?shorter, vs forth?

by vandys@[EMAIL PROTECTED] Jan 31, 2008 at 08:02 PM

Jeff M. <massung@[EMAIL PROTECTED]
> wrote:
>  s" Hello, world!" email< me@[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:

    smtp.sendmail(src, dests, "Hello, world!")

to:

    smtp.sendmail(src, dests, "Hello, world!" + sig)

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.  Then using it, and determining when the use was
finished and releasing the memory (IF you have a heap allocator,
otherwise you can think about a pessimistically sized static area,
blah blah blah....)

I've found that the limitations in your data model will push
themselves up into your attempt to abstract complexity.

Andy Valencia
 




 9 Posts in Topic:
Re: paul grahams arc, a new lisp, and his words about makign cod
vandys@[EMAIL PROTECTED]   2008-01-31 20:02:52 
Re: paul grahams arc, a new lisp, and his words about makign cod
Andreas Klimas <klimas  2008-04-16 14:36:31 
Re: paul grahams arc, a new lisp, and his words about makign cod
vandys@[EMAIL PROTECTED]   2008-04-16 16:25:37 
Re: paul grahams arc, a new lisp, and his words about makign cod
mhx@[EMAIL PROTECTED] (M  2008-04-16 19:10:37 
Re: paul grahams arc, a new lisp, and his words about makign cod
William James <w_a_x_m  2008-04-16 10:44:13 
Re: paul grahams arc, a new lisp, and his words about makign cod
Bruce McFarling <agila  2008-04-16 12:15:37 
Re: paul grahams arc, a new lisp, and his words about makign cod
John Passaniti <nntp@[  2008-04-16 22:03:10 
Re: paul grahams arc, a new lisp, and his words about makign cod
Andreas Klimas <klimas  2008-04-23 00:37:16 
Re: paul grahams arc, a new lisp, and his words about makign cod
John Passaniti <nntp@[  2008-04-23 17:04:07 

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:13:43 CST 2008.