Functional Python with Mochi
summary
Mochi is a Python-like functional language that compiles to Python 3 and PyPy 3 bytecode and interoperates with existing Python libraries. It implements tail recursion optimization, pattern matching, persistent data structures, a pipeline operator, better anonymous functions, Erlang-style actors and Lisp-style macros. The compiler emits Python AST/bytecode and .pyc files and runs inside IPython notebooks; pattern-matching examples run currently about four times slower than simple recursion. The project is early but usable, uses pytest for tests and needs more documentation and optimization.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:39Mochi
- 1:37Features
- 2:43Pipeline Operator
- 3:33Wrapper
- 4:27Scripts
- 4:52Tests
- 5:32Source code
- 6:14Numpy
- 7:06Flask
- 7:19Factorial
- 8:30Pattern Matching
- 9:54Pattern Matching Example
- 11:59No Loops
- 12:48Pipeline Operators
- 14:05Persistent Data Structures
- 14:53Anonymous Functions
- 16:06Mochi Notebook
- 17:45Sprint
- 18:21Thank you
- 20:48How much work
- 21:54Functional programming languages
- 26:03Inspiration
- 26:29Multithreading
related talks
11mIs Mojo programming language just a hype?
27mFunctional Programming for Pythonistas
39mFunctional Programming in Python
02h 43mFunctional Python
29mWriting Functional Code in Python
43mFunctional Programming in an Imperative World. Maybe
30mFunctional Programming in Python
46mFunctional programming in Python with PyToolz
