W dniu 05.11.2016 o 22:17, Ben Bacarisse pisze:
Steve D'Aprano <steve+pyt...@pearwood.info> writes:

On Sun, 6 Nov 2016 04:10 am, Mr. Wrobel wrote:

Hi,

Some skeptics asked my why there is a reason to use Python against of
any other "not interpreted" languages, like objective-C.

Here's the "Hello World" program in Python:

--- cut ---

print("Hello World")

--- cut ---



Here's the same program in Objective C:

--- cut ---

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        NSLog (@"Hello, World!");
        [pool drain];
        return 0;
}

--- cut ---

Which would you rather write?

That's a rather odd comparison.  Why not

  #import <stdio.h>

  int main()
  {
    printf("Hello world\n");
    return 0;
  }

?  It's decades since I wrote any Objective-C (and then not much) but I
think this is the closest comparison.

Wel, indeed. However the most important is second part of my question.

What do you think about using GPU processing or pypy?
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to