Proposal Title
Proposal Title
Catalyst Fund9 — Developer Ecosystem
Proposal Summary
Proposal Summary
◼
Wolfram Research will work with experienced Haskell developers from Tweag.io to develop a connection between Wolfram Language and Haskell. The Wolfram Language can integrate Haskell into our ExternalEvaluate framework to execute Haskell across Wolfram Notebooks and Wolfram Client Libraries to call the Wolfram Language from Haskell.
◼
Wolfram has implemented this feature for several languages, including Python, NodeJS, Julia and Ruby and will work with Tweag to do so for Haskell
Examples—External Evaluate
Examples—External Evaluate
Python
Python
As a function:
In[]:=
ExternalEvaluate["Python","[i**2 for i in range(10)]"]
Out[]=
{0,1,4,9,16,25,36,49,64,81}
As a cell:
In[]:=
[i**2 for i in range(10)]
Out[]=
{0,1,4,9,16,25,36,49,64,81}
You can also get an that can be used as if it were a Wolfram Language function:
In[]:=
def addtwo(x, y): return x + y
Out[]=
ExternalFunction
In[]:=
%[3,4]
Out[]=
7
If you start a session, you can use it repeatedly and maintain state:
In[]:=
session=StartExternalSession["Python"]
Out[]=
ExternalSessionObject
In[]:=
ExternalEvaluate[session,"x = 2"]
In[]:=
ExternalEvaluate[session,"x"]
Out[]=
2
There is a mapping between Python types and Wolfram types wherever possible, such as dates:
In[]:=
ExternalEvaluate[session,"from datetime import datetimedatetime.today()"]
Out[]=
Julia
Julia
The features are similar for Julia and a number of other programming languages:
In[]:=
ExternalEvaluate["Julia","map(sqrt, 1:1:10)"]
Out[]=
{1.,1.41421,1.73205,2.,2.23607,2.44949,2.64575,2.82843,3.,3.16228}
Explanation—Client Library
Explanation—Client Library
Client Library Explanation
Client Library Explanation
Another aspect of the Wolfram Language and Haskell integration is what we would call a Wolfram Client Library for Haskell. This is a Haskell library that makes it easy to call the Wolfram Language in a number of ways:
1) Evaluating strings of Wolfram Language code from Haskell
2) Constructing Wolfram Language expressions directly in Haskell and submitting them for evaluation
3) Seamlessly converting data types between the languages
4) Calling Wolfram Language APIs that have been deployed locally, to the Wolfram Cloud, to Wolfram Enterprise Private Cloud or to Wolfram Application Server
Python Client Library
Python Client Library
The Wolfram Client Library for Python lets Python programs directly integrate Wolfram Language capabilities. Connect either to a local Wolfram Engine or to the Wolfram Cloud (or a private Wolfram Cloud).
Visual Timeline
Visual Timeline
We have a seven-month timeline for the execution of all items in the plan, assuming a start date of October 2 2022
Intervals on the timeline represent periods in which our work and activities will occur.
Intervals on the timeline represent periods in which our work and activities will occur.
Out[]=
Discovery Phase: July - October 2022
If the project is not funded, we may wind it down and delay the completion until future funding rounds or pursue other avenues of funding.
If the project is not funded, we may wind it down and delay the completion until future funding rounds or pursue other avenues of funding.
◼
Haskell Wolfram Language Connection
◼
Evaluate a connection to the Wolfram Language from Haskell and a connection to Haskell from the Wolfram Language.
◼
Enterprise Use Cases
◼
Review increasing the functionality of Haskell to include Wolfram Language functionality.
Working Phase: October 2022 - February 2023
Develop the connection to the Wolfram Language from Haskell and the connection to Haskell from the Wolfram Language.
Develop the connection to the Wolfram Language from Haskell and the connection to Haskell from the Wolfram Language.
Final Phase: February 2023
Final testing of the connection to ensure full functionality and scoped requirements are met.
Final testing of the connection to ensure full functionality and scoped requirements are met.
Core Team
Core Team
◼
Team Introductions: Watch the video here.
Jon Woodard—CEOjwoodard@wolfram.comJon Woodard is the CEO at Wolfram Blockchain Labs, where he coordinates the decentralized projects that connect the Wolfram technology ecosystem to different DLT ecosystems. Previously, at Wolfram Research, Jon worked on projects at the direction of Wolfram Research CEO Stephen Wolfram, and prior to that, he was a member of the team that worked on the monetization strategies and execution for Wolfram|Alpha. Jon has a background in economics and computational neuroscience. He enjoys cycling in his spare time. (LinkedIn)Johan Veerman—CTOjohanv@wolfram.comJohan Veerman is General Manager at Wolfram Research South America and CTO at Wolfram Blockchain Labs. Previously, he was Science Advisor at the Ministry of Foreign Affairs in Peru and Chief Scientist on two Antarctic expeditions. Johan’s background is in physics and business management. He enjoys playing soccer and is a certified cave diver. (LinkedIn)Steph Macurdy—Blockchain Analystsmacurdy@wolfram.comSteph Macurdy is a Blockchain Analyst at Wolfram Blockchain Labs and has a background in economics, with a focus on complex systems. He attended the Real World Risk Institute in 2019, led by Nassim Taleb, and has been investing in the crypto asset space since 2015. He previously worked for Tesla as an Energy Advisor and Cambridge Associates as an Investment Analyst. Steph is a youth soccer coach in the Philadelphia area and is interested in permaculture. (LinkedIn)Karla Santana—Project Managerkarlas@wolfram.comKarla Santana is a Technical Project Manager at Wolfram Research. She manages projects at Wolfram Research South America and has been with the company for six years. Karla has a background in computer science and has worked in the blockchain initiative since she joined the company. She is a certified aerial arts instructor and enjoys crocheting and spending time with her many pets. (LinkedIn)Jesús Hernández—Senior Technologistjhernandez@wolfram.comJesús Hernández is Senior Technologist at Wolfram Research, where he helps various business units explore new opportunities and partnerships. He has been with the company for 10 years and is continually learning how Wolfram technology can be applied in new areas. He has a background in theoretical atomic physics. Jesús enjoys cooking, listening to almost all forms of music and watching his favorite sports teams inevitably lose. (LinkedIn)
Consulting Team - Tweag.io
Consulting Team - Tweag.io
Steve Purcell - Vice President of Engineering
Steve Purcell - Vice President of Engineering
Jonathon Bartlett - Sales Director
Jonathon Bartlett - Sales Director
Jonathon leads the Sales team at Tweag. His team is charged with finding projects which fit the Tweag mission to help the industry build better software through improving developer and scientist experience; whether that be through better languages, processes or tooling. Jonathon is passionate about working on great projects with great people - something that he gets to do each day with Tweag and their clients.
Facundo Domínguez - Senior Software Engineer
Facundo Domínguez - Senior Software Engineer
Facundo is a software engineer supporting development and research projects at Tweag. Prior to joining Tweag, he worked in academia and in industry, on a varied assortment of domains, with an overarching interest in programming languages.
Cheng Shao - Software Engineer
Cheng Shao - Software Engineer
Cheng is a Software Engineer who specializes in the implementation of functional programming languages. He is the project lead and main developer of Tweag’s Haskell-to-WebAssembly compiler project codenamed Asterius. He also maintains other Haskell projects and makes contributions to GHC(Glasgow Haskell Compiler). Outside of work, Cheng spends his time exploring Paris and watching anime.