News for hackers. Stuff that matters.
Re:Python startup time: milliseconds matter by thanatropism on Wednesday May 02, 2018 @03:13PM (#16980219)
I might be biased because I'm from the hordes that are moving from Stata and Matlab to Python (but then there are the hordes attracted to data analysis now), but that was never really Python's strong suit, nor its target market.

I mean, I was always into little scripts, but I used Tcl and then Perl.

Re:Python startup time: milliseconds matter by eesmith on Wednesday May 02, 2018 @03:34PM (#16980415)
Back in the 1990s, Python was promoted as a web programming language. This was back in the days when everyone used CGIs. Python came with an cgi module, while in Perl you had to download cgi-lib.pl. I even helped maintain a Python web application that was all CGI-based.

So I can assure you that at one point Python was trying to be in the "short run applications" space. They may have given up since then, but that's a different issue.

As for me, I do write little scripts in Python. I don't like how most of my run time is spent waiting for Python to get ready.

What I really don't like is using NumPy. I tend to re-implement features I want rather than reach for NumPy because that 0.2s import time irks me so much. And it's because the NumPy developers want people to do "import numpy; numpy.reach.into.a.deep.package", so they import most of its submodules.

They used to also eval() some code at import, causing even more overhead. I don't know if that's gone away.

Re:Python startup time: milliseconds matter by pjmlp on Thursday May 03, 2018 @03:19AM (#16983985)
Ah, the days when I knew quite some people doing Zope consulting.

Apparently it is still around.

Re:Python startup time: milliseconds matter by eesmith on Thursday May 03, 2018 @05:26AM (#16984480)
Ah, Zope. I remember when the IPC Python conference seemed to double in size (I think it was the DC one). 1/2 the people were seemingly there because of Zope.
Re:Python startup time: milliseconds matter by lmm on Wednesday May 02, 2018 @06:30PM (#16981721)
Both Tcl and Perl are dead languages walking these days, and it's Python that's displaced them. It absolutely competes in that market.
Re:Python startup time: milliseconds matter by blacksqr on Thursday May 03, 2018 @12:00AM (#16983264)
Markets are a funny thing. Both "dead" languages are thread safe and can easily run separate interpreters per thread.

See: "THREADS DONE RIGHT... WITH TCL"

https://www.activestate.com/blog/2016/09/threads-done-right-...

Re:Python startup time: milliseconds matter by lmm on Thursday May 03, 2018 @09:27AM (#16985782)
> Markets are a funny thing. Both "dead" languages are thread safe and can easily run separate interpreters per thread.

Perl threading is officially recommended against IIRC? In either case, "threads" in either of them don't share memory (except explicitly and manually), at which point what you have is multiprocessing by a different name.

Re:Python startup time: milliseconds matter by lizmat on Thursday May 03, 2018 @09:55AM (#16986033)
In Perl 5 threading things are only "shared" semantically. In reality, there is an extra interpreter running where the "shared" variables live, and any value fetches and stores are handled with the `tie` interface (see http://www.perlmonks.org/?node_id=288022 for more information).

In Perl 6 on the other hand, everything is always shared and you can use high level constructs such as atomic increments, supplies, taps, `react` and `whenever` so you don't have to think about any (dead)locking issues as a developer.

Re:Python startup time: milliseconds matter by blacksqr on Thursday May 03, 2018 @11:06AM (#16986675)
Tcl has an "easy" threading mode where each thread runs its own interpreter, and a "hold my beer" mode where you can spawn threads within a single interpreter.

Tcl also has synthetic channels, so you can stay in easy mode but open a bi-directional read/write channel with the two ends in separate threads, with readable/writable events assigned, so you can do automatic event-driven information sharing between threads.

I don't know any other language that gives you options like that.

Re:Python startup time: milliseconds matter by catach on Thursday May 03, 2018 @05:10AM (#16984430)
I do have to wonder if Tcl would have gained significantly greater mindshare if the syntax had been more Algol-like.
Re:Python startup time: milliseconds matter by pjmlp on Thursday May 03, 2018 @03:20AM (#16983990)
Quite a few sysadmins around here have a different point of view regarding Perl.
Re:Python startup time: milliseconds matter by vgy7ujm on Thursday May 03, 2018 @03:39AM (#16984067)
Dream on.