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

Pages: 1-

fuck yeah! sicp

Name: Anonymous 2012-11-16 6:54

Holy fuck /prog/! I started reading this about 5 days ago, I thought it was just the usual stuff when I had just started reading the book (abstraction, write readable code etc) But holy fuck! I just finished the first chapter and the level of abstraction they have managed to create using higher order functions! fuck! The way general functions have been derived from existing functions! consider me a lisp fanboy

Name: Susswoman 2012-11-16 7:19

>>1 sucked my clitoris
>>1 caught my syphilis

Name: Anonymous 2012-11-16 7:39

When you realize this is possible in any decent language, please refrain from posting about it here.

Name: Anonymous 2012-11-16 7:58

>>3
Only the most primitive stuff lisp is capable of is possible in ``any decent language''.

Name: Anonymous 2012-11-16 8:26

>>3
constructing functions and generalizing other functions with elegance that is unmatched? No.. just no ...also FUCK YOU

Name: Anonymous 2012-11-16 10:05

>>4
Creating abstractions is not unique to LISP.

>>5
See above.

There are many things to praise about LISP, but this is not something exclusive to the languages.

Name: Anonymous 2012-11-16 10:11

>>4
Try following in Scheme...

Symta:

transpose V = rng V,0,len | m:I m ?,I V


Haskell:

transpose:: [[a]]->[[a]]
transpose ([]:_) = []
transpose x = (map head x) : transpose (map tail x)

Name: Anonymous 2012-11-16 10:15

>>6
I know it's not unique, but the increase in the expressive power of the language because of higher order procedures blew my mind.

Name: Anonymous 2012-11-16 11:38

>>7
Scheme:
(define (transpose x) (apply map list x))

Name: Anonymous 2012-11-16 11:55

>>6
You'll just end up writing lisp in a shittier syntax.

Name: Anonymous 2012-11-16 12:25

>>9 (O.o)<^o^)

Name: Anonymous 2012-11-16 12:58

Try this in Scheme:
average = sum / genericLength

Name: Anonymous 2012-11-16 13:05

>>9
Thank you.

Symta:

transpose X = m l @X

Name: Anonymous 2012-11-16 13:24

>>7
transpose x = (fap head x) : transpose (fap tail x)
haskell=mental masturbation.

Name: Anonymous 2012-11-16 13:27

>>9
C/C++:
void transpose (int *matrix, int rows, int cols)
{
  int i, j, save;
  int *result = malloc (rows*cols);
 
  for (i = 0; i < cols; i++)
  {
    for (j = 0; j < rows; j++)
    {
      result[i*cols + j] = matrix[j*cols + i];
    }
  }
  return result;
}

Name: Anonymous 2012-11-16 13:46

>>7
python:
def transpose(x):
  x.reverse()

Name: Anonymous 2012-11-16 13:55

>>13
oy shitta goy

document it or i'll circumcise your anus

Name: Anonymous 2012-11-16 13:57

void transpose
int *result
return result
Terrible!

Name: Anonymous 2012-11-16 14:34

>>17
I don't take orders from Jewish maggots.

Name: Anonymous 2012-11-16 15:18

>>16
Just asking, does it even know what transpose is?

Name: Anonymous 2012-11-16 15:26

>>13
m l @
make me remember of
#define u2 unsigned short

Name: Anonymous 2012-11-16 15:45

m for map, l for list. pretty smart, but very unreadable.  besides, if you absolutely want to, just write an emacs minor mode that does it.

Name: Anonymous 2012-11-16 16:19

>>22
It is very smart. You never need single-letter variables for any useful purpose so they might as well be functions you use all the time. This is what's so amazing about Symta's power.

PS Nice dubs.

Name: Anonymous 2012-11-16 17:03

>>23
transpose X = m l @X
Why does it uses X, then? Isn't X a single letter?

Name: Anonymous 2012-11-16 17:07

symta dude is back? how can i contact you?

Name: Anonymous 2012-11-16 17:24

by moving to Iran

Name: Anonymous 2012-11-16 17:48

>>20,24
Why does it talk like Buffalo Bill?

Name: Anonymous 2012-11-16 17:50

The way general functions have been derived from existing functions! 
Just wait until you discover macros. hnnnnng.

Name: Anonymous 2012-11-16 17:51

>>27
Because he's a filthy mudslime.

Name: Anonymous 2012-11-16 18:06

>>29
Terrible [sup][sup][sub][/sub][/sup][/sup]*

Name: Anonymous 2012-11-17 9:07

>>30
BBCODE #fail

Name: Anonymous 2012-11-17 9:26

>>28
I use macros in Excel all the time!

Name: Anonymous 2012-11-17 10:14

And not a single pointer was dereferenced that day.

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