Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
A Fateman paper
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 101 - 125 of 209 - Collapse all  -  Translate all to Translated (View all originals) < Older  Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Heathfield  
View profile  
 More options Sep 12 2009, 9:39 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Richard Heathfield <r...@see.sig.invalid>
Date: Sat, 12 Sep 2009 13:39:43 +0000
Local: Sat, Sep 12 2009 9:39 am
Subject: Re: A Fateman paper
In <87tyz8e3q4....@ma-patru.mathematik.uni-karlsruhe.de>, Nicolas

Neuss wrote:
> Richard Heathfield <r...@see.sig.invalid> writes:

>> But performance is clearly one factor. (Not the only factor, as
>> Richard Gabriel rightly points out.) And although I am no Lisp
>> expert (in fact, I'm currently a "hello world" kind of guy), it
>> seems from my (minimal) research on the subject that it is quite
>> difficult to squeeze enough out of Lisp to get it anywhere near C
>> in performance terms.

> If one uses a good Common Lisp implementation (especially one which
> compiles to native code, as e.g. CMUCL/SBCL, Allegro CL, or
> Lispworks), fI would expect that for most code the results for
> equivalent code are
> not worse than C by a factor of 2 or maybe 3.

<cough, splutter> Er, okay, I think I'll put Lisp back on the shelf.
Look, it isn't dirty or anything. Thanks for your time, but I was
looking for something a little sportier. I mean, I knew it would be
slower, but a factor of TWO?

<snip>

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Weber  
View profile  
 More options Sep 12 2009, 9:34 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Michael Weber <mw+goo...@foldr.org>
Date: Sat, 12 Sep 2009 06:34:36 -0700 (PDT)
Local: Sat, Sep 12 2009 9:34 am
Subject: Re: A Fateman paper
On Sep 11, 11:11 am, rich...@cogsci.ed.ac.uk (Richard Tobin) wrote:

> I believe it was another famous Lisp hacker, David Moon, who said that
> no language can prevent a bad programmer from writing bad code.  The
> most we can say is that some languages provide more ways for you
> easily write bad code.  C is, in some respects, such a language, but
> in return it provides various advantages to the careful programmer.

> It's not for nothing that many Lisp implementations are written at
> least partly in C.

The reason that part of the runtime of many language implementations,
including CL, is written in C is because the environment (OS, system
libraries, etc.) is written in C, and at some point we need to
interface with them.  The simplest way to interface with C is using C,
wouldn't you think?

People have found creative ways to minimize the amount of code that
needs to be written in C; for example: Pre-Scheme <http://
citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.3.4031>, or ThinLisp
<http://www.thinlisp.org/>, etc..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Tobin  
View profile  
 More options Sep 12 2009, 9:58 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: rich...@cogsci.ed.ac.uk (Richard Tobin)
Date: 12 Sep 2009 13:58:17 GMT
Local: Sat, Sep 12 2009 9:58 am
Subject: Re: A Fateman paper
In article <baff19b4-2b3a-4752-9345-0059d7d4d...@h13g2000yqk.googlegroups.com>,
Michael Weber  <mw+goo...@foldr.org> wrote:

>The reason that part of the runtime of many language implementations,
>including CL, is written in C is because the environment (OS, system
>libraries, etc.) is written in C, and at some point we need to
>interface with them.

That's one reason.

But numerous Lisp interpreters have been written in C, and there are
several Lisps that compile to C.  The latter case is an example of
C's role as a portable assembler language.

-- Richard
--
Please remember to mention me / in tapes you leave behind.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "A Fateman paper (was Re: Can anyone write this recursion for simple regexp [...])" by Richard Tobin
Richard Tobin  
View profile  
 More options Sep 12 2009, 10:08 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: rich...@cogsci.ed.ac.uk (Richard Tobin)
Date: 12 Sep 2009 14:08:10 GMT
Local: Sat, Sep 12 2009 10:08 am
Subject: Re: A Fateman paper (was Re: Can anyone write this recursion for simple regexp [...])
In article <lniqfomt8h....@nuthaus.mib.org>,
Keith Thompson  <ks...@mib.org> wrote:

>The second one certainly looks like a bug in gcc.  +b is not an
>lvalue, so you can't legally apply ++ to it.

gcc 4.0.1 says:

plus.c:5: warning: target of assignment not really an lvalue; this will be a hard error in the future

Quite possibly it doesn't give an error with older versions unless you
specify -ansi or similar.

-- Richard
--
Please remember to mention me / in tapes you leave behind.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "A Fateman paper" by Pascal Costanza
Pascal Costanza  
View profile  
 More options Sep 12 2009, 10:12 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Pascal Costanza <p...@p-cos.net>
Date: Sat, 12 Sep 2009 16:12:49 +0200
Local: Sat, Sep 12 2009 10:12 am
Subject: Re: A Fateman paper

Keep in mind that we're talking about a language that's extremely
flexible and dynamic, similar to 'modern' scripting languages like
Python, Ruby, JavaScript, and the like, with all the benefits of
providing higher productivity, etc.

Considering that, a factor of only two is very impressive, IMHO.

Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bart  
View profile  
 More options Sep 12 2009, 10:56 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Bart <b...@freeuk.com>
Date: Sat, 12 Sep 2009 07:56:16 -0700 (PDT)
Local: Sat, Sep 12 2009 10:56 am
Subject: Re: A Fateman paper
On Sep 12, 3:12 pm, Pascal Costanza <p...@p-cos.net> wrote:

Yes, that's pretty good. I'm working on a dynamic language now which
at present is some 3 to 10 times as slow as optimised C (although
there's some way to go yet...).

But that's measured for tight integer code. When you throw in some
string processing, higher level datatypes, and calls into the runtime,
then they can be comparable, say between 1 and 2 times as slow, for a
language considerably more expressive (ie. increase in apparent
runtime of 0 to 100%). In theory...

So perhaps some of that may be true for Lisp, although it did sound as
though you were already pulling out all the stops to get it down to
only 2x as slow as C.

And ultimately, for programs with a short runtime, it really doesn't
matter if it takes 100ms or 200ms.

--
Bartc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "A Fateman paper (was Re: Can anyone write this recursion for simple regexp [...])" by Keith Thompson
Keith Thompson  
View profile  
 More options Sep 12 2009, 11:05 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Keith Thompson <ks...@mib.org>
Date: Sat, 12 Sep 2009 08:05:54 -0700
Local: Sat, Sep 12 2009 11:05 am
Subject: Re: A Fateman paper (was Re: Can anyone write this recursion for simple regexp [...])

To be painfully precise, it's not quite "Any C expression with a
value of 0" that's treated as false, it's any C expression whose
value *compares equal* to 0.

0, which is syntactically an octal (yes, octal) integer constant,
yields the value zero of type int.  0.0 yields the value zero of type
double; it's really a different value, since it's of a different
type.  But the comparison (0.0 == 0) yields a true result because
of the conversion rules, so in "if (0.0)" it's treated as false.

So rather than "Any C expression with a value of 0", it's any C
expression whose value, when compared to 0 using "==", after any
conversions imposed by the "==" operator to force both operands to
be of the same type.

> As a result, there are LOTS of ways to write a constant with a value
> that counts as false in C. Here's just a few of them:

> 0, 0X0, 0U, 0L, 0LL, 0.0, 0.0E10, 0.0F, 0.0L, 0.0P-5, '\0', L'\0', '\x0'

> And of course, (T*)0, where T represents any arbitrary type.

'-'-'-'

[...]

> I think it would be a good idea for conditions to require an
> expression of boolean type, with all comparison operators returning
> values of that type, and with no conversions allowed to and from
> boolean type. The equivalent of such conversions could be achieved by

>    (nonbool == 0)

> and

>    (boolvalue ? 1 : 0)

> Such rules would be a minor inconvenience when writing code, but would
> make the code clearer and more maintainable. However, the need for
> backwards compatibility means that such a change could never be made
> to C.

I agree, both that it would be better and that it's too late for C.

--
Keith Thompson (The_Other_Keith) ks...@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "A Fateman paper" by Richard Fateman
Richard Fateman  
View profile  
 More options Sep 12 2009, 11:24 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Richard Fateman <fate...@cs.berkeley.edu>
Date: Sat, 12 Sep 2009 08:24:55 -0700
Local: Sat, Sep 12 2009 11:24 am
Subject: Re: A Fateman paper
Richard Heathfield wrote:

...

> <cough, splutter> Er, okay, I think I'll put Lisp back on the shelf.
> Look, it isn't dirty or anything. Thanks for your time, but I was
> looking for something a little sportier. I mean, I knew it would be
> slower, but a factor of TWO?

> <snip>

Oh, trolling through the park.  I think you should put C back on the
shelf and program in assembler.  Real men program in assembler.
But maybe if you program in binary you would save all the time it takes
to run through an assembler. So maybe real men program in binary.
RJF

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Heathfield  
View profile  
 More options Sep 12 2009, 11:50 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Richard Heathfield <r...@see.sig.invalid>
Date: Sat, 12 Sep 2009 15:50:11 +0000
Local: Sat, Sep 12 2009 11:50 am
Subject: Re: A Fateman paper
In <h8geg5$7m...@aioe.org>, Richard Fateman wrote:

Been there, done that. Programmed in machine code and assembly
language, and written an admittedly not very sophisticated assembler.
No big deal, actually - it's easier than many people think.

But C combines power with portability, which neither machine code nor
assembly language can manage.

This isn't about "real men", and it isn't about trolling. Clearly,
Lisp has benefits that make it attractive to those who choose to use
it. (Otherwise, they wouldn't choose it, right?) And presumably they
rate it above C because either it lacks those benefits completely or
lacks them in sufficient degree. Likewise, C has benefits that make
it, for some people, more attractive than Lisp.

And then there are those horribly objective people who will let the
task govern the language choice. What are we to do with *them*? :-)

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessio Stalla  
View profile  
 More options Sep 12 2009, 12:57 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: Alessio Stalla <alessiosta...@gmail.com>
Date: Sat, 12 Sep 2009 09:57:48 -0700 (PDT)
Local: Sat, Sep 12 2009 12:57 pm
Subject: Re: A Fateman paper
On Sep 12, 12:15 pm, James Dow Allen <jdallen2...@yahoo.com> wrote:

Where is x declared in the C version? dolist in Lisp introduces a new
local variable.

Alessio


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Slobodan Blazeski  
View profile  
 More options Sep 12 2009, 1:58 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: Slobodan Blazeski <slobodan.blaze...@gmail.com>
Date: Sat, 12 Sep 2009 10:58:14 -0700 (PDT)
Local: Sat, Sep 12 2009 1:58 pm
Subject: Re: A Fateman paper
On Sep 12, 5:24 pm, Richard Fateman <fate...@cs.berkeley.edu> wrote:

Nope, real programmers use butterflies http://xkcd.com/378/

Bobi

http://www.linkedin.com/in/slobodanblazeski


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pascal Costanza  
View profile  
 More options Sep 12 2009, 4:32 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: Pascal Costanza <p...@p-cos.net>
Date: Sat, 12 Sep 2009 22:32:38 +0200
Local: Sat, Sep 12 2009 4:32 pm
Subject: Re: A Fateman paper

That depends on the kind of application you want to build. The good
thing about Lisp is, though, that you can stay within the same language
both for the convenient, flexible parts as well as for the
performance-critical parts. You don't have to get outside the boundaries
of Lisp "just" for performance purposes.

Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Bos  
View profile  
 More options Sep 12 2009, 4:46 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: ralt...@xs4all.nl (Richard Bos)
Date: Sat, 12 Sep 2009 20:46:49 GMT
Local: Sat, Sep 12 2009 4:46 pm
Subject: Re: A Fateman paper
t...@sevak.isi.edu (Thomas A. Russ) wrote:

> Beej Jorgensen <b...@beej.us> writes:

> > Keith Thompson  <ks...@mib.org> wrote:
> > >Oh goody, a cross-posted language war!  Those are always so interesting
> > >and constructive.

> > I'm of the opinion that both LISP and C are pretty rockin', and we all
> > should just go out for pints.  Amen.

> Hmmm.  Maybe we could morph this into a Beer vs. Ale discussion?

We can't. Ale is a kind of beer. You're thinking of ale vs. lager, or
even more correctly, of top-fermented vs. bottom-fermented beers. But
since I've just finished a Belgian trappist and am halfway through a
Dutch white beer, I'd much prefer to opine that I really, really like
both (*hic*).

Richard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Bos  
View profile  
 More options Sep 12 2009, 4:46 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: ralt...@xs4all.nl (Richard Bos)
Date: Sat, 12 Sep 2009 20:46:50 GMT
Local: Sat, Sep 12 2009 4:46 pm
Subject: Re: A Fateman paper

Michael Weber <mw+goo...@foldr.org> wrote:
> The reason that part of the runtime of many language implementations,
> including CL, is written in C is because the environment (OS, system
> libraries, etc.) is written in C, and at some point we need to
> interface with them.  The simplest way to interface with C is using C,
> wouldn't you think?

No. Only people who understand computing theory, but not computing
practice, would think so. I would add a nasty remark about Lispers here,
but really, I can't be arsed. (And it would probably only be true about
Lisp _advocates_, anyway - as opposed to normal Lisp users.)

Richard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Slobodan Blazeski  
View profile  
 More options Sep 12 2009, 5:15 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: Slobodan Blazeski <slobodan.blaze...@gmail.com>
Date: Sat, 12 Sep 2009 14:15:56 -0700 (PDT)
Local: Sat, Sep 12 2009 5:15 pm
Subject: Re: A Fateman paper
On Sep 12, 4:56 pm, Bart <b...@freeuk.com> wrote:

It depends what are you doing with it. Beside the extremely naive
coding practices, in normal use its something like a third slower than
c++ without optimizations. That was a drop in  frame rate I was
experiencing when coding graphic demos with c++ vs cl. The convenience
for that price in speed is enormous. Instead of using scripts to
modify its behavior while the demo is running I could just stop it and
use the Lisp REPL, full language is available all the time, you could
just recompile some function and restart the game loop, the new
version is immediately there, no need for rebuilding the project or do
anything like that. You could practically change the whole system at
runtime. Unless the problem is very well known the price in efficiency
is worth it.

Bobi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Warnock  
View profile  
 More options Sep 12 2009, 8:54 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: r...@rpw3.org (Rob Warnock)
Date: Sat, 12 Sep 2009 19:54:29 -0500
Local: Sat, Sep 12 2009 8:54 pm
Subject: Re: A Fateman paper
Slobodan Blazeski  <slobodan.blaze...@gmail.com> wrote:
+---------------
| Richard Fateman <fate...@cs.berkeley.edu> wrote:
| > ... Real men program in assembler.
| > But maybe if you program in binary you would save all the time it takes
| > to run through an assembler. So maybe real men program in binary.
|
| Nope, real programmers use butterflies http://xkcd.com/378/
+---------------

Naaahh... Read the tooltip text on that one:

    Real programmers set the universal constants at the start such that
    the universe evolves to contain the disk with the data they want.

Anthropic programming!! Simply select a universe from the Many Worlds such
that your coding problems all solve themselves. Yeah, that's the ticket...

-Rob

p.s. But Emacs's "good ol' C-x M-c M-butterfly" was cute, too.  ;-}

-----
Rob Warnock                     <r...@rpw3.org>
627 26th Avenue                 <URL:http://rpw3.org/>
San Mateo, CA 94403             (650)572-2607


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Keith Thompson  
View profile  
 More options Sep 12 2009, 10:44 pm
Newsgroups: comp.lang.c, comp.lang.lisp
From: Keith Thompson <ks...@mib.org>
Date: Sat, 12 Sep 2009 19:44:32 -0700
Local: Sat, Sep 12 2009 10:44 pm
Subject: Re: A Fateman paper

<WAY_OT>
GNU emacs 23.1 actually has a M-x butterfly command.
</WAY_OT>

--
Keith Thompson (The_Other_Keith) ks...@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pascal J. Bourguignon  
View profile  
 More options Sep 13 2009, 1:14 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: p...@informatimago.com (Pascal J. Bourguignon)
Date: Sun, 13 Sep 2009 07:14:52 +0200
Local: Sun, Sep 13 2009 1:14 am
Subject: Re: A Fateman paper

Have a look at http://cliki.net/Performance.

Now, assume you need 10 days to write your program in C, that will run
in 5 minutes.  Total: 10 days, 5 minutes to get the answers.

In Lisp, indeed the program will run in 10 or perhaps 15 minutes.  But
you will need only 3 days to write it in Lisp.  Total: 3 days 15
minutes.  That's actually 3 times faster!

--
__Pascal Bourguignon__


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Sep 13 2009, 2:54 am
Newsgroups: comp.lang.c
From: Seebs <usenet-nos...@seebs.net>
Date: 13 Sep 2009 06:54:09 GMT
Local: Sun, Sep 13 2009 2:54 am
Subject: Re: A Fateman paper
On 2009-09-13, Pascal J. Bourguignon <p...@informatimago.com> wrote:

> Now, assume you need 10 days to write your program in C, that will run
> in 5 minutes.  Total: 10 days, 5 minutes to get the answers.

> In Lisp, indeed the program will run in 10 or perhaps 15 minutes.  But
> you will need only 3 days to write it in Lisp.  Total: 3 days 15
> minutes.  That's actually 3 times faster!

Assuming only one person ever runs the program, and it only runs once,
yes.

Imagine that you're targeting something that will run in a period of
months on a supercomputer.  At that point, a 20% decrease in runtime
could save you several times the cost of having your whole development
team work for the entire lifespan of the product.

In short, special case examples can make just about anything seem like
a good idea.  In the bulk of cases, the right thing to do is to figure out
what your requirements are, and decide what tools to use based on that.
There's stuff I write in Ruby, stuff I write in shell, stuff I write in C,
and even stuff I write in English instructions to someone with 15 years'
less experience.  It's all a question of costs and benefits...

-s
--
Copyright 2009, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giorgos Keramidas  
View profile  
 More options Sep 13 2009, 3:18 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Giorgos Keramidas <keram...@ceid.upatras.gr>
Date: Sun, 13 Sep 2009 15:18:12 +0800
Local: Sun, Sep 13 2009 3:18 am
Subject: Re: A Fateman paper

On Sat, 12 Sep 2009 19:54:29 -0500, r...@rpw3.org (Rob Warnock) wrote:
> > Nope, real programmers use butterflies http://xkcd.com/378/

> Anthropic programming!! Simply select a universe from the Many Worlds such
> that your coding problems all solve themselves. Yeah, that's the ticket...

> p.s. But Emacs's "good ol' C-x M-c M-butterfly" was cute, too.  ;-}

To be honest, I was mildly annoyed at the randomly selected key bindings
like `M-c' and `M-butterfly'.  They should have been more realistic,
eg. `M-x butterfly-mode C-u C-c C-c'.  The `M-butterfly' one was the one
that almost spoiled the joke for me.  But it was a very funny xkcd joke
indeed ;-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Sep 13 2009, 3:11 am
Newsgroups: comp.lang.c
From: Seebs <usenet-nos...@seebs.net>
Date: 13 Sep 2009 07:11:35 GMT
Local: Sun, Sep 13 2009 3:11 am
Subject: Re: A Fateman paper
On 2009-09-13, Giorgos Keramidas <keram...@ceid.upatras.gr> wrote:

> To be honest, I was mildly annoyed at the randomly selected key bindings
> like `M-c' and `M-butterfly'.  They should have been more realistic,
> eg. `M-x butterfly-mode C-u C-c C-c'.  The `M-butterfly' one was the one
> that almost spoiled the joke for me.  But it was a very funny xkcd joke
> indeed ;-)

Not random.  Literary reference.

http://en.wikipedia.org/wiki/M._Butterfly

-s
--
Copyright 2009, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flash Gordon  
View profile  
 More options Sep 13 2009, 3:23 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Flash Gordon <s...@spam.causeway.com>
Date: Sun, 13 Sep 2009 08:23:15 +0100
Local: Sun, Sep 13 2009 3:23 am
Subject: Re: A Fateman paper

That assumes the software is only being run once. I've just been doing
server sizing for one customer, and they are talking about over 600
users, so if each user only uses the software once that is 600 uses, so...

lisp 10 minutes * 600 = 6000 minutes = 100 hours = approx 4 days
So list would be total of 7 days assuming one use only.

C gives 12 days.

Now, how many pieces of software are only run once? This customer will
be buying an annual license. So assume only half the users use it on any
given day and they only use it once, and a working year of 200 days.
Suddenly a much smaller performance improvement becomes well worth
while! Oh, and that is one customer among many.

Sometimes performance is important, and spending a few days to save a
few seconds can be worth while.
--
Flash Gordon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Thingstad  
View profile  
 More options Sep 13 2009, 2:44 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: "John Thingstad" <jpth...@online.no>
Date: Sun, 13 Sep 2009 08:44:49 +0200
Local: Sun, Sep 13 2009 2:44 am
Subject: Re: A Fateman paper
På Sun, 13 Sep 2009 07:14:52 +0200, skrev Pascal J. Bourguignon  
<p...@informatimago.com>:

> Now, assume you need 10 days to write your program in C, that will run
> in 5 minutes.  Total: 10 days, 5 minutes to get the answers.

> In Lisp, indeed the program will run in 10 or perhaps 15 minutes.  But
> you will need only 3 days to write it in Lisp.  Total: 3 days 15
> minutes.  That's actually 3 times faster!

That is what scripting languages do. This reasoning is not all that  
relevant for application programming though where it is written one and  
run 1000 000 times.
By your argument I should probably use Python which I find even more  
productive than Lisp.. I think the point is Lisp is usually fast ENOUGH.  
Python is 100 times slower than C (or more) so you are much more likely to  
run into problems here.

---------------------
John Thingstad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Heathfield  
View profile  
 More options Sep 13 2009, 3:39 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Richard Heathfield <r...@see.sig.invalid>
Date: Sun, 13 Sep 2009 07:39:20 +0000
Local: Sun, Sep 13 2009 3:39 am
Subject: Re: A Fateman paper
In <8763bncto3....@galatea.local>, Pascal J. Bourguignon wrote:

Ah, a nice neutral, impartial, unbiased... Lisp advocacy site. Furrfu.

> Now, assume you need 10 days to write your program in C, that will
> run in 5 minutes.  Total: 10 days, 5 minutes to get the answers.

> In Lisp, indeed the program will run in 10 or perhaps 15 minutes.
> But you will need only 3 days to write it in Lisp.  Total: 3 days 15
> minutes.  That's actually 3 times faster!

Now, assume I need two days to write it in C, and it will run in 5
minutes. Total: 2 days 5 minutes to get the answers.

In Lisp, the program may indeed run in 10 or perhaps 15 minutes. But,
speaking personally, I will need several months to write the program.
Total time: several months and 15 minutes.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zach Beane  
View profile  
 More options Sep 13 2009, 6:28 am
Newsgroups: comp.lang.c, comp.lang.lisp
From: Zach Beane <x...@xach.com>
Date: Sun, 13 Sep 2009 06:28:16 -0400
Local: Sun, Sep 13 2009 6:28 am
Subject: Re: A Fateman paper

Richard Heathfield <r...@see.sig.invalid> writes:
> Now, assume I need two days to write it in C, and it will run in 5
> minutes. Total: 2 days 5 minutes to get the answers.

> In Lisp, the program may indeed run in 10 or perhaps 15 minutes. But,
> speaking personally, I will need several months to write the program.
> Total time: several months and 15 minutes.

A farmer from Maine was visiting his cousin in Texas.  "I can get in my
truck at dawn, drive all day, and still not be at the other end of my
ranch by sundown," his cousin bragged. The Mainer nodded. "I used to
have a truck like that, too."

Zach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 101 - 125 of 209 < Older  Newer >
« Back to Discussions « Newer topic     Older topic »