dbaumgarten / yodk

Development Kit for Starbase's ingame programming language YOLOL
MIT License
57 stars 16 forks source link

Exponential Overflow #85

Closed AstraLuma closed 3 years ago

AstraLuma commented 3 years ago

Describe the bug Behavior mismatch in exponential overflow

Example code

:a = 5
:a = 3 ^ 39
:b = 6
:b = 3 ^ 40
:c = 7
:c = 3 ^ 41

Ingame results image

Yodk results

🐚 yodk debug test.nolol
Loaded and paused programs. Enter 'c' to start execution.
>>> c
>>> vars
--Variables--
:a -9223372036854775.808
:b -9223372036854775.808
:c -9223372036854775.808
dbaumgarten commented 3 years ago

Exponentiation-overflow seems to behave exactly like the game to me. Are you running this on a basic chip? Basic-chips don't have the ^ operator. In this case it would just skip the line and produce the results you are getting.

AstraLuma commented 3 years ago

Oh maybe, I forgot about that.

In which case, yoloxide might have a bug.

dbaumgarten commented 3 years ago

Yoloxide is extemely outdated and hasn't received updates on forever. As my ingame experiments did work out fine, I will just assume that your results were cased by using a basic chip. Therefore: closed