jonathanhogg / flitter

A functional programming language and declarative system for describing 2D and 3D visuals
https://flitter.readthedocs.io
BSD 2-Clause "Simplified" License
39 stars 1 forks source link

Functions and function calling needs a cleanup #38

Closed jonathanhogg closed 8 months ago

jonathanhogg commented 8 months ago

The function code is a bit of a mess, particularly where it comes to a division between native Python functions and Flitter functions. This is what I think needs doing:

An advantage of all of this is that it will allow for higher-order functions, like passing Flitter functions into native functions as arguments. It'll also let me Cython-optimise the, currently quite slow, sample() function.

This also paves the way for possibly allowing functions to be passed into the rendering pipeline as attributes of Nodes…