Nested for loop not working #278
Replies: 7 comments
-
Any ideas on how to fix it? |
Beta Was this translation helpful? Give feedback.
-
I think we should recreate the AST visiting layer of For loop to convert to C++ code... |
Beta Was this translation helpful? Give feedback.
-
Can't we just write a compiler instead of interpreting to c++ like carbon does? |
Beta Was this translation helpful? Give feedback.
-
But it will fail our major objective to gain speed, currently it's converted into c++ in order to access our core libraries which are responsible for fast speed and dynamic typing. |
Beta Was this translation helpful? Give feedback.
-
It can always be optimized, but if we convert to c++ then it will always be the limit. |
Beta Was this translation helpful? Give feedback.
-
Hmm reasonable so we should implement it.. |
Beta Was this translation helpful? Give feedback.
-
[Suggestion/Proposal]
If it is going to be written using another language like C/C++ or others, there are plenty of materials out there. The first step is to define the syntax (which is already done as of now, phew :) ) then what is important and so on. I would suggest a completely different experimental repo to do this so as not to affect the current progress. |
Beta Was this translation helpful? Give feedback.
-
Case 1: Found Weird Behaviour
I have tested a small code:
It worked but for:
It didn't give any output....
Case 2: Checking memory footprint
After looking at converted C++ code i found that, i_iter is not getting changed for every iteration..
Beta Was this translation helpful? Give feedback.
All reactions