Optimisation Opportunities #138
Replies: 6 comments 2 replies
-
|
Removed optimizations in ca4073a. |
Beta Was this translation helpful? Give feedback.
-
|
References may be a thing down the line - could they be replaced with direct usage at thr bytecode level? |
Beta Was this translation helpful? Give feedback.
-
|
From #133 Duplicate strings in bytecode. |
Beta Was this translation helpful? Give feedback.
-
|
Done, and controlled via a command line switch to the repl. |
Beta Was this translation helpful? Give feedback.
-
|
Removing scope-pushes in single-line blocks? In this case, pushing and popping a scope isn't needed. If something is declared, then you'd still need a scope. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/Ratstail91/Toy/blob/9f459250722aadda2dc5f743b719f6f15fa88ea9/scripts/example-print.toy#L11
Concat on raw strings is a good candidate.
Snipping out
Toy_AstGroupwhen encountered.Compute literal value expressions (like,
3*5would be15in the bytecode, etc.).Beta Was this translation helpful? Give feedback.
All reactions