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

Pages: 1-4041-

python is cool

Name: Anonymous 2006-12-06 17:34

(' DESU'*9000)[1:]

Name: Anonymous 2006-12-06 18:31 (sage)

"<computer language> is cool" == "I have no life".

Name: Anonymous 2006-12-07 0:12

You're forgetting where you're posting aren't you?

Name: Anonymous 2006-12-07 0:26

I'm poasting on the interwebs

Name: Anonymous 2006-12-07 9:51

As a Python fanboy, I feel that it's almost too easy on /prog/ nowadays. Did everyone switch to Python already?

Name: Anonymous 2006-12-07 10:13

>>5
Post some Python code and I will make some __jokes__.

Name: Anonymous 2006-12-07 10:51

>>5
def __shut__up__(self, poster)
    if(poster == 5)
        self.slap(poster)

Name: Anonymous 2006-12-07 16:51

>>7
You need to have a ':' on the first row, or it won't parse properly.
Also, you need to have a ':' on the second row, or it won't parse properly.
Third row looks fine though, good job!

Name: Anonymous 2006-12-07 17:28

>>8
Bloated syntax is blooooated.

Name: Anonymous 2006-12-07 17:59

>>9, yeah, cause {






} are so much better than :

Name: Anonymous 2006-12-07 18:02

if you in (depressed, sadness, resignation):
    print 'me, my sweetheart'
if feel(you) is 'lonely' or feel(you) is 'neglected':
    talk_me(this)
while always:
    I.take_care(you)
    if you.love() is not me:
        # I will follow in the madness
        # I will
        break # down...
for emotion in my.heart:
    try:
        your.lover = me
    except:
        your.best_friend = me
if you.hate(me):
    love(me)
elif I.annoying():
    love(me)
else:
    love(me, how='deeply', when='now')

Name: Anonymous 2006-12-07 18:16

>>7
What is this faggotry?
slapPosters :: [Poster] -> IO ()
slapPosters ps = (mapM_ (slap) (filter ((== 5) . posterNumber) ps))

Text on the line after a code block.

Name: Anonymous 2006-12-07 18:49

>>10 see >>12

Name: Anonymous 2006-12-07 18:54

I can't easily understand what >>12 does without knowing the language, while I can understand >>7

Name: Anonymous 2006-12-07 19:04

' '.join(['DESU']*9000)

Name: Anonymous 2006-12-07 20:20

>>10
Why the borked lambda or no do-while, huh?

Name: Anonymous 2006-12-07 20:25

>>14
That's ok though; languages are only supposed to be used by those who actually know them.

Name: Anonymous 2006-12-08 7:16

>>17
Being able to understand it with general programming knowledge, but without specific knowledge of that language, tells something about the design quality and goals of a language.

Name: Anonymous 2006-12-08 7:37

>>18
You're stupid.

Name: Anonymous 2006-12-08 8:17

>>18
I find it better to read the language's formal specification rather than second-guessing. I haven't been able to track down Python's design docs yet, but then again I haven't been trying very hard.

Name: Anonymous 2006-12-08 23:54

>>11
while(C>python)
{
printf("Python sucks");
}

Name: Anonymous 2006-12-09 3:06

>>21
WARNING: line 1 unreachable code detected.

Name: Anonymous 2006-12-09 3:40

>>21
WARNING: infinite loop detected.

Name: Anonymous 2006-12-09 3:47

>>22
your compiler is a buggy piece of shit, i bet it was coded in python

Name: Anonymous 2006-12-09 5:38

>>21
>>23
>>24
Same fag
Sure, C's better, remember, -O3 -march=XXX (implies -mtune) -malign-double -funroll-loops -fomit-frame-pointer -ffast-math -fexpensive-optimizations -msse2 -mfpmath=sse -ffree-line-length-none -foptimize-sibling-calls LOL CFLAGS JUST KICKED IN, YO!

Name: Anonymous 2006-12-09 9:58

(from 21)

>>22
here's a full code

#include <stdio.h>
#define GAY 0
#define python GAY
#define NICE 1
#define C NICE
int main()
{

while(C>python)//WOOPS WOOPS WOOPS INFINITE LOOP
{
printf("Python sucks\t");
}
return 0;
}




-.-

Name: Anonymous 2006-12-09 10:24

>>25
gcc python.c, I rest my case.

Name: Anonymous 2006-12-09 12:33

>>26
Same fag

>>27
So?

Name: Anonymous 2006-12-09 14:51

>>28
so nothing, that's what I meant by "I rest my case", unless you haven't understood, retard, should I explain it twice?

Name: Anonymous 2006-12-09 14:56

>>29

You are stupid

Name: Anonymous 2006-12-09 18:16

Name: Anonymous 2006-12-10 4:11

>>30
thanks for proving my point :D

Name: Anonymous 2006-12-10 14:14

Name: Anonymous 2006-12-11 5:38

Name: Anonymous 2006-12-11 7:35

python is nice because I can write half of it in C anyway. It's like... the best of both worlds. All the shitty GUI stuff gets done in python in record time, and all the business logic done in C so it doesn't eat 5% of my CPU to add a few hundred numbers.

Name: Anonymous 2006-12-11 15:05

>>35
reduce(int.__add__, xrange(500)) takes about 0.000 seconds

Name: Anonymous 2006-12-11 16:11

>>36
Does it just get replaced by its result during preprocessing?

Name: Anonymous 2006-12-11 18:23

>>37
I don't think so, but let's do:

import sys
import timeit
print timeit.Timer('reduce(int.__add__, xrange(m))', 'm = int(sys.argv[1])').timeit(10000) / 10000.0


Result: adding 500 numbers that way takes 0.000139416266593 seconds (Athlon 64 3000+, Python 2.4.2 official build, Windows 2000)

Name: Anonymous 2006-12-11 18:48

Why even bother timing something as minute as adding 500 numbers?  Do at least a billion floating point ops, then compare that across languages.

Name: Anonymous 2006-12-11 19:23

>>38
I don't think so
So you're saying Python is shit at optimising?

Name: Anonymous 2006-12-12 6:07

>>39
Cause >>35 said a few hundred numbers. Will compare fp ops when I have time.

>>40
Troll less. You know xrange returns an iterable object, and I'm applying reduce over a function (which could have been impure) and this object. It'd be pretty hard to optimize that, unless you write a recipe-based optimizer, i.e. not nearly as useful.

Name: Anonymous 2006-12-15 10:29

PYTHON IS ACTUALLY USELESS CUZ OF JAVA THAT DOES EVERYTHING BETTER AND THAT IS USED 4 THE SAME PURPOSE

Name: Anonymous 2006-12-15 12:24

>>42
Okay, so how would you do reduce(int.__add__, xrange(m)) in Java?

Name: Anonymous 2006-12-15 13:31

>>43
2.5 years of enterprise oop.

Name: Anonymous 2006-12-15 13:33

>>41
Who the fuck says fp ops instead of flops?

Name: Anonymous 2006-12-15 13:52

>>43
2.5 years of enterprise oop.

Name: Anonymous 2006-12-15 14:14

>>43
I love it when some Python fanboy grabs some functional code without knowing it has been shamelessly stolen from Lisp...

Name: Anonymous 2006-12-15 14:17

>>43
int a=0;for(int i=1;i<=m;a+=(i++));

I think you'll agree that this is much clearer, too.

Name: Anonymous 2006-12-15 14:26

>>43
foldr1 (+) [0 .. m]

Haskell is superior.

Name: Anonymous 2006-12-15 15:01

>>49
[code]m*m-m*((double)m/2-.5)[code]

c is superior.

Name: Anonymous 2006-12-15 15:02 (sage)

>>50
bbcode is shit. i meant:
m*m-m*((double)m/2-.5)

c is superior.

Name: Anonymous 2006-12-15 15:15 (sage)

writeln('Wut? That's even more pointless than a "Hello world" program...');

Delphi is superior.

Name: Anonymous 2006-12-15 15:16 (sage)

*That''s

Name: Anonymous 2006-12-15 15:27 (sage)

>>53
what lol

Name: Anonymous 2006-12-15 16:55

>>47
I knew that well, why?

Name: Anonymous 2006-12-15 22:41

>>52
>>51
>>50
>>50
>>49
failed

asm is superior everyone loves codes like
as`vawb
atnet 247y245uy
u2tjh2
jhwqrth qrdbhqo hr  423613461

Name: ​​​​​​​​​​ 2010-10-25 14:06

Name: Anonymous 2011-02-02 23:42

Name: Sgt.Kabu㧴䅞kiman敄ᙠ 2012-05-28 21:15

Bringing /prog/ back to its people
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

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