Down the Lambda (Functions) Hole!

Related image

Further adventures Down the Lambda (Functions) Hole...

I decided to learn Python for Data Analytics recently so jumped into the language for a few days. I soon noticed that it support Lambda Functions. Cool, they've been around for a ages.

Alonzo Church invented Lambda Calculus in the 1930's, and this influenced languages like LISP (which I learnt years ago but soon replaced with Prolog as my preferred AI language).

So the Clever Thing about Lambda Functions is that they are anonymous (no name), and are used in conjunction with Higher Order Functions (Functions that can take Functions are arguments and return Functions).

A number of questions came to mind in relationship to Data Analytics, AWS, languages etc:

1 Is Python the best/only DA language to support Lambda Functions?
2 Are they useful/essential for DA?
3 What's the connection to Map/Reduce (from LISP but now Hadoop etc)?
4 Does Java support Lambda Functions? Well?
5 What good examples are there in for them in DA (other than MapReduce? And is MapReduce actually Lambda?)
6 What about AWS Lambda Functions? Are they actually???
7 Are there other Cloud/Serverless architectures that ARE Lambda Functions?

In no particular order, AWS Lambda Functions. Are they? Not really.  As this blog points out they are NOT anonymous, but do take a single arg. Can they be recursive? Take and return functions? Not sure TODO.

https://www.developmentseed.org/blog/2016/03/08/aws-lambda-functions/


Does Java support Lambda Functions? Yes, since Java 8 (whoops, missed it).

https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html

http://www.javaworld.com/article/2092260/java-se/java-programming-with-lambda-expressions.html 

And Lambda and Streams example: http://javarevisited.blogspot.com.au/2014/02/10-example-of-lambda-expressions-in-java8.html 

How do they work in Java? Here's a good under the hood explanation.

And yes, Java Lambdas are Higher Order functions. 

A good intro to functions in Python.

And another.

And confusion around Python Lambda functions and AWS Lambdas functions.

But AWS Lambda functions can be called recursively, which lots of people have used to solve various limitations including timeouts, for SQS, etc.



Comments

  1. It is usually acknowledged as a big pool of programs that helps us to stay related with personal or public networks and to supply dynamically scalable infrastructure for knowledge, file storage and utility.This is great blog. If you want to know more about this visit here AWS Cloud Certification.

    ReplyDelete
  2. Download the Microsoft 98-361 Q&A PDF file easily to prepare Software Development Fundamentals exam. It is particularly designed for Microsoft 98-361 exam and our Microsoft specialists have created this 98-361 Question Dumps observing the original 98-361 exam.

    ReplyDelete
  3. Thank you for sharing wonderful information with us to get some idea about that content.
    Learn AWS Online
    AWS Certification Online

    ReplyDelete

Post a Comment

Popular posts from this blog

Chapter 11: AWS Directory Service, Cloud Directory

AWS Solution Architecture Certification Postscript

Chapter 2: Amazon Simple Storage Service (S3) and Amazon Glacier Storage (for storing your beer?)