Hello,
this code:
"bbbbabbbbb" => string foo;
foo => stdout;
"bbbbabbbbb" => stdout;
produces this output:
bbbbbbbbbb
bbbbabbbbb
The fifth char is incremented by one for any string.
I am using the windows binary, version 1.1.5.2.
--
Fredrik Arnerup
Hi!
this code:
"bbbbabbbbb" => string foo; foo => stdout; "bbbbabbbbb" => stdout;
produces this output:
bbbbbbbbbb bbbbabbbbb
This is a cool bug. On big endian systems (like mac) the 8th byte is incremented (instead of 5th). the 2nd 4-byte word is getting added by one. We tracked this down to reference counting in the VM instructions, and found that strings are not correctly prepared for the reference counting in the VM. There is a temporary fix where strings are now "primitive" like int and float. You can find this: http://chuck.cs.princeton.edu/release/snapshots/ chuck - mac os 10.3 exe chuck.exe - win32 exe chuck_type.cpp - if you want to recompile, replace chuck_type.cpp with this (1.1.5.2) All of this will be properly fixed once objects and arrays are in place - we hope it will be done soon, currently we are working hard to prepare the audicle prototype for ICMC next week. Please let us know if the fix is good. Best, Ge!
lör 2004-10-23 klockan 08.23 skrev Ge Wang:
this code:
"bbbbabbbbb" => string foo; foo => stdout; "bbbbabbbbb" => stdout;
produces this output:
bbbbbbbbbb bbbbabbbbb
[snip]
http://chuck.cs.princeton.edu/release/snapshots/
chuck - mac os 10.3 exe chuck.exe - win32 exe chuck_type.cpp - if you want to recompile, replace chuck_type.cpp with this (1.1.5.2)
[snip]
Please let us know if the fix is good.
Well. I actually don't usually use windows, so I can't confirm the fix
on that platform, but it does the trick for linux, x86.
Thanks,
--
Fredrik Arnerup
On Sat, 23 Oct 2004, Fredrik Arnerup wrote:
lör 2004-10-23 klockan 08.23 skrev Ge Wang:
this code:
"bbbbabbbbb" => string foo; foo => stdout; "bbbbabbbbb" => stdout;
produces this output:
bbbbbbbbbb bbbbabbbbb
[snip]
http://chuck.cs.princeton.edu/release/snapshots/
chuck - mac os 10.3 exe chuck.exe - win32 exe chuck_type.cpp - if you want to recompile, replace chuck_type.cpp with this (1.1.5.2)
[snip]
Please let us know if the fix is good.
Well. I actually don't usually use windows, so I can't confirm the fix on that platform, but it does the trick for linux, x86.
I just tried it with the http://chuck.cs.princeton.edu/release/snapshots/chuck.exe on win2k, and the behaviour is not, alas, improved. -- Mikael Johansson To see the world in a grain of sand mikael@johanssons.org And heaven in a wild flower http://www.mikael.johanssons.org To hold infinity in the palm of your hand http://blog.mikael.johanssons.org And eternity for an hour
this code:
"bbbbabbbbb" => string foo; foo => stdout; "bbbbabbbbb" => stdout;
produces this output:
bbbbbbbbbb bbbbabbbbb
http://chuck.cs.princeton.edu/release/snapshots/
chuck - mac os 10.3 exe chuck.exe - win32 exe chuck_type.cpp - if you want to recompile, replace chuck_type.cpp with this (1.1.5.2)
I just tried it with the http://chuck.cs.princeton.edu/release/snapshots/chuck.exe on win2k, and the behaviour is not, alas, improved.
That was caused by my indiscriminate uploading. My apologies. http://chuck.cs.princeton.edu/release/snapshots/chuck.exe now should work correctly. double check the version on the new file: 1.1.5.2b. Best, Ge!
participants (3)
-
Fredrik Arnerup
-
Ge Wang
-
Mikael Johansson