fuck yeah! sicp
1
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
2
Name:
Susswoman
2012-11-16 7:19
>>1 sucked my clitoris
>>1 caught my syphilis
3
Name:
Anonymous
2012-11-16 7:39
When you realize this is possible in any decent language, please refrain from posting about it here.
4
Name:
Anonymous
2012-11-16 7:58
>>3
Only the most primitive stuff lisp is capable of is possible in ``any decent language''.
5
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
6
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.
7
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)
8
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.
9
Name:
Anonymous
2012-11-16 11:38
>>7
Scheme:
(define (transpose x) (apply map list x))
10
Name:
Anonymous
2012-11-16 11:55
>>6
You'll just end up writing lisp in a shittier syntax.
11
Name:
Anonymous
2012-11-16 12:25
12
Name:
Anonymous
2012-11-16 12:58
Try this in Scheme:
average = sum / genericLength
13
Name:
Anonymous
2012-11-16 13:05
>>9
Thank you.
Symta:
transpose X = m l @X
14
Name:
Anonymous
2012-11-16 13:24
>>7
transpose x = (fap head x) : transpose (fap tail x)
haskell=mental masturbation.
15
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;
}
16
Name:
Anonymous
2012-11-16 13:46
>>7
python:
def transpose(x):
x.reverse()
17
Name:
Anonymous
2012-11-16 13:55
>>13
oy shitta goy
document it or i'll circumcise your anus
18
Name:
Anonymous
2012-11-16 13:57
void transpose
int *result
return result
Terrible!
19
Name:
Anonymous
2012-11-16 14:34
>>17
I don't take orders from Jewish maggots.
20
Name:
Anonymous
2012-11-16 15:18
>>16
Just asking, does it even know what transpose is?
21
Name:
Anonymous
2012-11-16 15:26
>>13
m l @
make me remember of
#define u2 unsigned short
22
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.
23
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.
24
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?
25
Name:
Anonymous
2012-11-16 17:07
symta dude is back? how can i contact you?
26
Name:
Anonymous
2012-11-16 17:24
by moving to Iran
27
Name:
Anonymous
2012-11-16 17:48
>>20,24
Why does it talk like Buffalo Bill?
28
Name:
Anonymous
2012-11-16 17:50
The way general functions have been derived from existing functions!
Just wait until you discover macros. hnnnnng.
29
Name:
Anonymous
2012-11-16 17:51
>>27
Because he's a filthy mudslime.
30
Name:
Anonymous
2012-11-16 18:06
>>29
Terrible [sup] [sup] [sub] [/sub]
[/sup] [/sup] *
31
Name:
Anonymous
2012-11-17 9:07
32
Name:
Anonymous
2012-11-17 9:26
>>28
I use macros in Excel all the time!
33
Name:
Anonymous
2012-11-17 10:14
And not a single pointer was dereferenced that day.
Newer Posts