Live data from Hacker News

Python 1.0.0 is out (1994)

groups.google.com

101–110 of 150 posts

Re: Python 1.0.0 is out (1994)

#101

Was there ever a DOS binary? That would be worth firing up a VM for.

I learned Python 1.4 on DOS (with DJGPP). I think there were binary releases, but you couldn't use them if you needed any third-party C modules. There was no dynamic linking on DOS so you needed to statically link any C code you were using into python.exe. This was a huge pain but it also taught me a ton about both C and Python.

Re: Python 1.0.0 is out (1994)

#103

Interesting to read his description of the language, which sounds pretty much exactly like python is now. It’s a pretty good testament to why python gained and retained popularity. Though not without fault, python is certainly one of the best-designed languages ever created, in my opinion.

It's both very expressive and readable, and it's the last part I absolutely love. I can understand Python code very quickly and I can often recognize the algorithm that's implemented.

And you can do composition easily, that's the main seller for me.

Re: Python 1.0.0 is out (1994)

#104
post #6

> "Python has been used by hundreds of happy users" Hundreds! > "Please don't ask me to mail it to you -- at 1.76 Megabytes it is unwieldy at least..." I can not even figure out if this means email or snail mail.

You're probably joking but, just for kicks and to provide some historical context, my guess is email. I seem to recall that attachment sizes would have been limited to something less than that back then. Also, 1.76 MB could have fit onto two HD floppies which would have made it easy to snail mail. Although it wouldn't have been all that hard to download with a 14.4 modem.

Also to give more context: Back in the late 90s I remember I had a linuxmail.org web-mail account. It featured a whooping 4MB of space. 4MB!

That's why when Google released GMail with 1GB of storage in 2004 ( https://slashdot.org/story/04/04/01/0038200/googles-gmail-to... ) it really blew everybody's mind.

Re: Python 1.0.0 is out (1994)

#105

Earlier quoted context omitted.

There's a lot I like about Python, but there are a couple of things that they've gotten so horribly wrong. 1. The KeyboardInterrupt exception for SIGINT. Whoever came up with that idea destroyed the credibility of the entire interpreter. Python falls flat on its face to me because of this one design choice. It's impossible to write a Python script that will not dump a full debug stack trace if you send SIGINT (ie: Ct…

As a minor nitpick it bugs me a lot that there are no truly anonymous functions. You either have to use a lambda which is limited to expressions, or name a function and use it as a first class object. Every other language in the same domain has this feature.

Python actually does have a kind of "anonymous function" feature, at least in a way that replaces most common use cases. It just happens to be bundled in a unique Python-like way. A lot of people don't seem to know about @contextmanager (contextlib.contextmanager) - it's what provides the functionality for "with" blocks. You've probably seen with() used with file operations (open file, run block of code, file is closed automatically at end of block), but I suspect many developers are unaware that you can create your own context managers.

While they are not true anonymous functions, I have yet to stumble on a scenario where a context manager did not fit the bill. They're easy to create - nothing more than a try/except/finally with a "yield" call to execute... you guessed it, essentially an anonymous function block. It's a little mind-warping the first time through, but it winds up creating clean code. PEP 343 is a good source to learn more.

Re: Python 1.0.0 is out (1994)

#106
post #96
post #92

Earlier quoted context omitted.

Fortune 500 companies. Quality is debatable.

> Quality is debatable. Using a VCS is not though. And sure, you didn't say they didn't, but using SVN or CVS in 2017 isn't good (outside of a very few select situations/industries). Don't be proud of working for large, slow moving companies with poor tech choices. They don't use git yet but they will.

Don't forget mercurial: it's not used much for FOSS due to GitHub, but has a pretty strong hold in private companies. It's better than git (historically, not sure if it's still true in 2018) at dealing with Windows and huge repositories. And perforce for the truly humongous code bases...

Re: Python 1.0.0 is out (1994)

#107
post #98
post #94

Earlier quoted context omitted.

Ridiculous is suggesting Python is capable of replacing Java in what concerns performance. Specially when it needs extensions written in C or C++ for anything that requires it.

Ridiculous is thinking you could write a whole OS userspace in Java. Ridiculous is making that comment without realising Python is a core part of most modern *nix userspace. try uninstalling Python on a default Ubuntu/Fedora/Centos install and see what still works. I would suggest trying the same with Java, but nobody bundles that by default despite it's JIT. Ridiculous is pontificating about how useless Python is wi…

JNode, JX, JavaOS, Android are a fact.

Let us know when there is an OS with Python userspace that can compare to any of them.

Of course Python is a core component of any UNIX system, it is a perfectly good fit as scripting language.

As a replacement for complex shell scripts, libraries written in C and C++, or scripting GUI applications.

Re: Python 1.0.0 is out (1994)

#110

Earlier quoted context omitted.

Arguably, that would be Java, which was introduced in 1995. For whatever hey are worth, most language popularity indexes (TIOBE, LangPop) place Java above Python with quite a large margin. Java may not get much exposure here or in startups, but if you go out in the real world of 'boring' business applications, Java is pretty much the defacto language (together with C#).

I don't get why Python can't replace Java in almost all domains. It's exceptionally well structured and fast enough for most use cases.

Writing native Android apps using Python, perhaps?

:D

Post reply on HN