Valhalla Legends Forums Archive | General Programming | Re: broken sha-1 in python?

AuthorMessageTime
Sveet
a little off topic, but whats good about python?
May 7, 2009, 5:42 PM
Yegg
Typically, it definitely allows for shorter development time for most applications due to how easy the language is to use and features such as dynamic typing and garbage collection (yes, C# and other compiled languages also have this). There are drag-and-drop RAD IDE's for Python that run cross-platform so that you can create cross-platform software without changing any lines of code. One of the setbacks is that the language is not a compiled language, and even if converted to a byte code format, it can still be relatively easy to obtain the original source code. Python of course is not near as far as languages like C/++ since it is an interpreted language, but for most cases, the difference in speed would not be noticeable by a human. There's many other things I could mention, but I'm off to work right now so I tried to make this brief. If you have specific questions, ask them here and I'll get them answered.
May 7, 2009, 6:13 PM
Sveet
i was just curious as to its place in future of programming. is it a fad language or should i look into learning it?
May 8, 2009, 9:24 PM
chyea
[quote author=Sveet link=topic=17941.msg182672#msg182672 date=1241817870]
i was just curious as to its place in future of programming. is it a fad language or should i look into learning it?
[/quote]

What - Python? Python is by no means a 'fad' language. It's a great language.
May 8, 2009, 10:20 PM
Yegg
It was developed in the earlier 90s and appears to be growing pretty popular, I wouldn't call it a fad language. It has been used on projects by NASA as well as others. Another language growing in popularity that is also an interpreted language is Ruby (http://www.ruby-lang.org/en/). Someone recently decided to make a Python Battle.net bot with it.
May 8, 2009, 10:21 PM
aton
python is definitely worth looking into it.
May 9, 2009, 1:23 PM
Sveet
what language is it most similar to? i was reading some and the syntax didnt make sense to me.

and what does it have over .net or c++?
May 9, 2009, 7:56 PM
Yegg
[quote author=Sveet link=topic=17941.msg182684#msg182684 date=1241898975]
what language is it most similar to? i was reading some and the syntax didnt make sense to me.

and what does it have over .net or c++?
[/quote]

The syntax didn't make sense...? I don't see how much easier syntax can get. A main advantage (room for debate here) is that the language is dynamically typed. I'm on my phone now so can't spend time explaining, but you should be able to learn a lot from Google.
May 9, 2009, 9:15 PM
chyea
[quote author=Sveet link=topic=17941.msg182684#msg182684 date=1241898975]
what language is it most similar to? i was reading some and the syntax didnt make sense to me.

and what does it have over .net or c++?
[/quote]

Python was influenced by various other languages - C, Haskell, Lisp, Perl, Java, etc. The syntax is one of the great features of the language, imo.

Python's interpreter runs on all modern operating systems, I believe - similar to Java's. .NET's does not. This is also an advantage over C++. A downside to Python, though, in my opinion is that the Python interpreter is just less known by the average user, compared to Java's. People may not be comfortable downloading it. Python does come with most linux installations and mac os, I think. Python does not come with Windows, though.

There is Jython, IronPython and PyPy, though. They're not up to speed with CPython but they do offer alternative options.
May 9, 2009, 11:03 PM
Yegg
If someone were unsure about installing Python on Windows, I'd imagine a quick explanation should cure that. Everyone knows Apple is a huge company and since Mac uses Python, why would it be unsafe to use it? You could also throw a Wikipedia page at them and they should realize that Python is perfectly safe. I'd say a downside to Python is trying to keep it closed source and processing code slower than other languages in the industry like C/++. Though the speed difference won't be noticeable by a human in an application such as a Battle.net (depending on what the program is trying to do), certain mission critical software by large company couldn't sacrifice the raw speed that C/++ (and some other major languages) can provide.
May 9, 2009, 11:42 PM
chyea
Hiding your Python code can be a problem.
May 10, 2009, 1:29 AM
Yegg
[quote author=bulletproof tiger link=topic=17941.msg182693#msg182693 date=1241918980]
Hiding your Python code can be a problem.
[/quote]

In what way? In that it is "morally wrong" or because it is difficult to do?
May 10, 2009, 1:40 AM
Ishbar
No way!
[IMG]http://i19.photobucket.com/albums/b159/Ishbar/1241453426736.gif[/img]
You cracked the matrix!

May 10, 2009, 2:01 AM
chyea
[quote author=Yegg link=topic=17941.msg182694#msg182694 date=1241919625]
[quote author=bulletproof tiger link=topic=17941.msg182693#msg182693 date=1241918980]
Hiding your Python code can be a problem.
[/quote]

In what way? In that it is "morally wrong" or because it is difficult to do?
[/quote]

In whichever way causes you to go off on some tangent that I won't read but make some response to in an attempt to get a hilarious nerd rage reaction out of you.
May 10, 2009, 5:25 AM
Yegg
[quote author=bulletproof tiger link=topic=17941.msg182697#msg182697 date=1241933121]
[quote author=Yegg link=topic=17941.msg182694#msg182694 date=1241919625]
[quote author=bulletproof tiger link=topic=17941.msg182693#msg182693 date=1241918980]
Hiding your Python code can be a problem.
[/quote]

In what way? In that it is "morally wrong" or because it is difficult to do?
[/quote]

In whichever way causes you to go off on some tangent that I won't read but make some response to in an attempt to get a hilarious nerd rage reaction out of you.
[/quote]

It wasn't a "rage reaction". Suck a big black dick.
May 10, 2009, 5:41 AM

Search