Add loop operator in fcode #889

Open
zxq9 wants to merge 27 commits from loop-op into master
zxq9 commented 2022-07-03 04:58:18 +09:00 (Migrated from gitlab.com)

Created by: radrow

Added loop construction in fcode to optimize list comprehensions and sequencing operator (and get rid of implicit imports)

*Created by: radrow* Added `loop` construction in fcode to optimize list comprehensions and sequencing operator (and get rid of implicit imports)
zxq9 commented 2022-07-08 19:00:04 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Any numbers on how much better this is?

*Created by: hanssv* Any numbers on how much better this is?
zxq9 commented 2022-07-09 04:38:07 +09:00 (Migrated from gitlab.com)

Created by: radrow

Good point Hans, recent progress in REPL allowed checking that after my """fix""" it uses 3x more gas... Although I think it's a performance bug in my definition of .., not in the idea of loop itself. Or maybe I messed up the optimizer?

*Created by: radrow* Good point Hans, recent progress in REPL allowed checking that after my """fix""" it uses 3x more gas... Although I think it's a performance bug in my definition of `..`, not in the idea of loop itself. Or maybe I messed up the optimizer?
zxq9 commented 2022-07-10 01:42:04 +09:00 (Migrated from gitlab.com)

Created by: radrow

Maybe it's because of the tuple?

*Created by: radrow* Maybe it's because of the tuple?
This pull request has changes conflicting with the target branch.
  • src/aeso_ast_to_fcode.erl
  • src/aeso_fcode_to_fate.erl

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin loop-op:loop-op
git checkout loop-op
Sign in to join this conversation.
No description provided.