Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Reading PAIP

Name: Anonymous 2008-06-29 9:40

How should I be prepared before I read PAIP? All I can think of is SLIME. Any CL implementation recommendations?

Name: Anonymous 2008-06-29 9:49

SBCL

Name: Anonymous 2008-06-29 9:50

You should read STFU and GTFO first.

Name: Anonymous 2008-06-29 9:57

>>3
Ahaha funny ;-)

Name: Anonymous 2008-06-29 9:58

What's name of that Jewish CL implementation?

Name: Anonymous 2008-06-29 9:59

>>5
Clisp. It's also the preferred CL implementation of Paul Graham.

Name: Anonymous 2008-06-29 10:53

>>6
Yeah, because he's a Lisper who "gets things done", right? Five years, writing a language in Scheme that doesn't even do anything. Yeah, take his advice. What projects does he have to show as evidence that his opinion matters? Do you see any source code other than that poor excuse for five years, Arc? SBCL is the fastest CL, the most advanced in features and userbase. Also, last time I checked, it doesn't work on Windows, which makes it even better.

Name: Anonymous 2008-06-29 11:01

>>7
Actually, it does work on Windows. There is a crude port, but technically it works.
Also, I think that >>6 mentioned PG to discourage me from using Clisp.

Name: Anonymous 2008-06-29 11:02

>>7
Also, last time I checked, it doesn't work on Windows, which makes it even better.
Seriously? Not even under Cygwin or MinGW?

Name: Anonymous 2008-06-29 11:10

>>9
Only in the same way that Internet Explorer works on Linux under Wine HQ.

Name: Anonymous 2008-06-29 11:13

>>10
IE 6 works fine under Wine.

Name: I HAVE READ PAIP 2008-06-29 11:44

>>1
SBCL is fine. PAIP very rarely uses anything implementation-specific.

Name: Anonymous 2008-06-29 12:06

Yeah, unlike SICP[1] :(

[1]Processor time functions

Name: Anonymous 2008-06-29 12:39

penispenispenis

Name: Anonymous 2008-06-29 13:14

I'll be having some HASKELL questions. Well, one question.

Is   car = head   as fast as   car l = head l   ? Certain people claim that it is not, but I can't see why.

Name: Anonymous 2008-06-29 13:27

The SBCL's error messages make me sad after all these nice and tidy GHC messages :(

Name: Anonymous 2008-06-29 14:55

>>15
1. Use fprintf ("fast printf") instead of printf.
2. ++i is faster than both i++ and i = i + 1.
3. void main(void) is faster than int main(void) or int main(int, char **) since no value needs to be returned to the OS.
4. Swapping with exclusive-or (a^=b^=a^=b swaps a and b) is faster than using a temporary. This works for all types (including structures), but not on all compilers. Some compilers may also give you a harmless warning.
5. Static storage duration objects are faster than automatic storage duration objects because the CPU doesn't have to set aside storage on the stack every time a function is called. Make your loop indexes global so that you can use them everywhere:
int i;
void func(void) { for (i = 0; i < 10; i++) ; /* ... */ }
void func2(void) { for (i = 0; i < 20; i++) ; /* ... */ }
/* ... */

6. Compilers often give more memory to arrays than you asked for. Here's how to check how big an array actually is (memset returns a null pointer if the size you passed to it is bigger than the size of the array you passed to it):
int arr[256];
size_t realsize;
for (realsize = 0; realsize <= SIZE_MAX; ++realsize)
        if (!memset(arr, 0, realsize)) break;
/* now you know that arr actually has realsize / sizeof (int) elements */

If you combine this with #5, your program will be faster in the long run (but this usually doesn't work for short programs).

Name: Anonymous 2008-06-29 15:52

>>15

That's an identity. How can 'car = head' and 'car l = head l' not be the same thing?

Name: Anonymous 2008-06-29 16:06

>>18
car = head conforms to Pointless style, and is therefore superior in every way.

Name: Anonymous 2008-06-29 16:26

Point-free

Name: Anonymous 2008-06-29 18:05

>>18
equality of function is undecidedalblaeoucradoedhaeooohadtoaeanhtdaoinhtdoaebm;wqjkkkkkkkkkkkkkkkhdt;qjkhtdn;qjkdhtnjqkntdhkjqtdhkqj;hdtjdhktjkq;drgcoeudgcugcoicrrrrrrrrrroooooooeuihdoeuiiiiiiiiiiiiiidhoeuiiiiiiiiiiiiiidhoeuidhtoeiutdhneuiodhtueiodhtoeuidthoeutdhiuedhtoeuiihdtoeuidoeuiddgodgodgodgodgodgodgeodeiuaoeuuuuuuclrgggggggggggggggaoeucrlguaeogaeuocrlgaeuorgclaeuorgclaoeurctatrlpi.tcrtritr.irpitrptirtairpcauiedehbftgcnrridueoauidhtchgip.yfgcrl/=lrcgfcrcgcrcg

Name: Anonymous 2008-06-29 18:07

>>18
equality of function is undecidedalblaeoucradoedhaeooohadtoaeanhtdaoinhtdoaebm;wqjkkkkkkkkkkkkkkkhdt;qjkhtdn;qjkdhtnjqkntdhkjqtdhkqj;hdtjdhktjkq;drgcoeudgcugcoicrrrrrrrrrroooooooeuihdoeuiiiiiiiiiiiiiidhoeuiiiiiiiiiiiiiidhoeuidhtoeiutdhneuiodhtueiodhtoeuidthoeutdhiuedhtoeuiihdtoeuidoeuiddgodgodgodgodgodgodgeodeiuaoeuuuuuuclrgggggggggggggggaoeucrlguaeogaeuocrlgaeuorgclaeuorgclaoeurctatrlpi.tcrtritr.irpitrptirtairpcauiedehbftgcnrridueoauidhtchgip.yfgcrl/=lrcgfcrcgcrcg

Name: Sgt.Kabukimanࡱ褩 2012-05-24 9:41

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: bampu pantsu 2012-05-29 3:59

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List