String comparison isn't yet really implemented. Right now it probably compares the pointers. To be fixed.
However, what I meant is that in V8, the sort function seems to sort the numbers as if they were strings by default:
d8> a = [3, 4, 34] 3,4,34 d8> a.sort() 3,34,4
Are you sure that V8 removes everything? The following test says the
contrary:
% d8 V8 version 3.1.1 [console: dumb] d8> var a = [1,2,3]; d8> a.splice(0); 1,2,3
d8> var a = [1,2,3]; d8> b = a.splice(0) 1,2,3 d8> b 1,2,3 d8> a
d8>
- Maxime
On 11-02-14 05:20 PM, Marc Feeley wrote:
On 2011-02-14, at 5:07 PM, Marc Feeley wrote:
By "lexicographical" you mean when comparing strings? In that case it is out of my hands... it will depend on the definition of x>y when x and y are strings.
Indeed, Tachyon does not compare strings properly:
Tachyon initialization complete
Entering read-eval-print loop. Type commands below and press enter to execute them. For a listing of special commands, type /help To exit, type /exit
t> print("bbb"> "baaaaaaaa"); false
% d8 V8 version 3.1.1 [console: dumb] d8> print("bbb"> "baaaaaaaa"); true
Marc
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list