News for hackers. Stuff that matters.
Re:AWS Lambda Is Not Ready for Prime Time by scrollaway on Monday May 23, 2016 @02:51AM (#11752340)
My main issue with lambda so far has been its lack of Python 3 support. I do not understand why there isn't a 3.x runtime available. We have a 3.5 compatible app with parts that depend on 3.4, and we had to cut it in two and cripple it to make it work with lambda.
Re:AWS Lambda Is Not Ready for Prime Time by JPKab on Monday May 23, 2016 @10:25AM (#11754020)
I've heard that the foot-dragging on Python is due to the senior technologist at AWS not liking the language and/or not taking it seriously.

Anyone else heard the same?

Re:AWS Lambda Is Not Ready for Prime Time by ak217 on Monday May 23, 2016 @02:27PM (#11755790)
They upgraded their Node runtime from the legacy 0.10 to 4.2LTS... I'm having a hard time imagining a reason to hate Python that doesn't also apply to Node. Lack of a JIT? (It would be awesome to have Lambda + PyPy + 3.5... though that is of course not yet ready on the PyPy side.)
Re:AWS Lambda Is Not Ready for Prime Time by abstractbeliefs on Monday May 23, 2016 @04:23PM (#11756639)
While I can't say I know anything more about python and aws specifically, hate doesn't have to be logical.

Someone might hate python just because.

Re:AWS Lambda Is Not Ready for Prime Time by badsock on Monday May 23, 2016 @10:32AM (#11754076)
Lambda can run arbitrary executables, including a Python3.5 interpreter. Admittedly it's a little silly to have a Py2 script that does nothing but start up Py3, but it's better than cutting and crippling, I'd bet.
Re:AWS Lambda Is Not Ready for Prime Time by balls187 on Monday May 23, 2016 @12:42PM (#11754966)
> Lambda can run arbitrary executables

Linux executables.

During re:Invent 2015 there was talk about supporting a windows runtime environment.

Re:AWS Lambda Is Not Ready for Prime Time by scrollaway on Monday May 23, 2016 @01:50PM (#11755514)
Well if it can run arbitrary executables, it can run Wine!

:)

Re:AWS Lambda Is Not Ready for Prime Time by OJFord on Monday May 23, 2016 @02:02PM (#11755600)
What is the definition of "Linux executable" that excludes `python3`? Builtins?
Re:AWS Lambda Is Not Ready for Prime Time by balls187 on Monday May 23, 2016 @02:18PM (#11755725)
???

Arbitrary Executables = Arbitrary Linux Executables.

Since Python3 runs on linux, you can invoke python3 scripts.

Re:AWS Lambda Is Not Ready for Prime Time by OJFord on Monday May 23, 2016 @03:01PM (#11756009)
Oh, sorry, I agree. I thought you were disagreeing with parent; saying "it doesn't run arbitrary executables, it only runs linux executables".

Although actually, I see what you mean now. D'oh. Windows was so far out of my mind I wasn't even thinking of it as a distinction to be made.

Re:AWS Lambda Is Not Ready for Prime Time by jedberg on Monday May 23, 2016 @02:52AM (#11752344)
Yeah, that's the biggest problem. It's bugs me too. I'm sure it is coming soon, but the again, most of the big hosted python installs don't support 3.x yet (App engine being the big one).
Re:AWS Lambda Is Not Ready for Prime Time by brianwawok on Monday May 23, 2016 @09:44AM (#11753763)
App engine has 3.4 on their beta flavor right?

But yes in 2016 everyone needs day 1 Python 3 support. Python 2 support is optional.

Re:AWS Lambda Is Not Ready for Prime Time by markbnj on Monday May 23, 2016 @11:33AM (#11754505)
I don't know why you would say that. I'm sure it would be great to support Python 3, but saying that Python 2 is optional is a little strange.
Re:AWS Lambda Is Not Ready for Prime Time by WorldMaker on Monday May 23, 2016 @02:42PM (#11755876)
It's easier to make Python 2 code run on Python 3 than Python 3 code run on 2. Why shouldn't Python 2 be optional at this point? It's the version in maintenance-only mode. Python 2 is the VB6 of Python and it seems clear to me that it should be optional going forward for people spending support time on it.
Re:AWS Lambda Is Not Ready for Prime Time by jedberg on Monday May 23, 2016 @07:45PM (#11757886)
This is why Python 2 isn't optional yet:

http://py3readiness.org/

Of the top 360 libraries, only 332 of them support Python 3 (but almost all of them still support Python 2).

This analysis was done in March and expected even support for Python 3 and 2 around now:

https://blogs.msdn.microsoft.com/pythonengineering/2016/03/0...

So maybe next year it will be optional, but not yet.

Re:AWS Lambda Is Not Ready for Prime Time by markbnj on Monday May 23, 2016 @03:08PM (#11756062)
This isn't the thread for that debate, so I'll refrain from a specific response, other than to note that python2 has clearly not been replaced by python3, whatever the language's maintainers wish had happened.
Re:AWS Lambda Is Not Ready for Prime Time by WorldMaker on Monday May 23, 2016 @04:06PM (#11756497)
You phrase that as if the language maintainers are the antagonist here. At that point, why continue using a language if you don't agree with the direction the language maintainers believe to be the language's present state? Why would you expect hosting companies (such as Amazon in this example) to necessarily pay support costs to continue hosting a deprecated version of a language side by side with the current version?

So yes, it seems to me that from the standpoint of a hosting company like Amazon for example, Python 2 should be the option for them to host, should not be guaranteed, and maybe even shouldn't cost the same as Python 3 moving forward. That's the present of the language. You are asking them to support the past of the language. Perhaps you should be willing to pay for them to support the past of the language.

(Of course, this particular example is moot because it sounds like Amazon themselves have engineers in the "Python 2 or Die" clade, but it's the example at hand.)

Re:AWS Lambda Is Not Ready for Prime Time by vorador on Monday May 23, 2016 @03:08PM (#11756060)
As much as I'd like everybody to be using Python 3, the truth is there's not a lot of immediate benefits, which is why 85% of Python users are still using 2.x.
Re:AWS Lambda Is Not Ready for Prime Time by WorldMaker on Monday May 23, 2016 @03:52PM (#11756409)
As a Python user myself, the better, more reliable Unicode-by-default string handling in Python 3 is more than enough of an immediate benefit that I've stopped installing Python 2.x on my devices entirely at this point. Obviously, ymmv, but there seem to me to be a lot of immediate benefits to Python users and what feet dragging remains to stay in 2.x seems more like a political protest of some sort than one focused on actual benefits.
Re:AWS Lambda Is Not Ready for Prime Time by brianwawok on Monday May 23, 2016 @04:46PM (#11756825)
I am fine with supporting both, but if you are only going to do one - pick the way forward.

The more people that say "no python 2" the sooner it will die.

I don't know, python2vs3 thing is weird. Bet someone has a good book on it.

Re:AWS Lambda Is Not Ready for Prime Time by daveguy on Monday May 23, 2016 @09:57AM (#11753845)
Obviously that is not the case.
Re:AWS Lambda Is Not Ready for Prime Time by brianwawok on Monday May 23, 2016 @11:26AM (#11754450)
Why not?

I can't image rolling out a new python hosting product in 2016 and not even covering python3 ?!?!?