objectionary / ideas

Here we keep ideas for future research in EO programming language and Polystat static analyzer
https://www.eolang.org
7 stars 0 forks source link

Algorithmization of object composition #16

Closed yegor256 closed 4 months ago

yegor256 commented 1 year ago

Consider this EO code:

[x] > f
  plus. > @
    x.times x
    42

It can be converted to (it's pseudo language):

[x] > f
  algo
    """
    input x;
    return x*x + 42;
    """

Let's invent a mechanism of doing such transformations and implement a tool that would take .xmir file and create a new optimized one.

Full paper is here: https://www.overleaf.com/read/svbnjqxvhmmd

MikhailLipanin commented 1 year ago

@yegor256, I took this one

yegor256 commented 1 year ago

@MikhailLipanin ok, go ahead