hi all,
As you noticed already PHP finally got simple C-like array, thanks to
Etienne and Tony for their great work!
My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er) hash
table like our current array, it is a C-like array.
Cheers,
Pierre
hi all,
As you noticed already PHP finally got simple C-like array, thanks to
Etienne and Tony for their great work!My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er) hash
table like our current array, it is a C-like array.
and I like that name, because… well it is actually Array (unlike php's
hash/array-mixture) and… well… it is fast ;)
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
hi all,
As you noticed already PHP finally got simple C-like array, thanks to
Etienne and Tony for their great work!My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er)
hash
table like our current array, it is a C-like array.and I like that name, because… well it is actually Array (unlike php's
hash/array-mixture) and… well… it is fast ;)
so the next tweak will lead to EvenFasterArray?
regards,
Lukas Kahwe Smith
mls@pooteeweet.org
so the next tweak will lead to EvenFasterArray?
I can't imagine anything faster (current FastArray can be optimized to
use SIMD, if needed — that would just be "implementation detail")
well.. the proper name, for current "FastArray" would be just "Array",
but that name is already occupied by hash
I don't like how "CArray" refers to C, because similiar constructs
exist in many languages. maybe "FixedArray"?
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
Hello,
FWIW, I'm fine with SplCArray.
Regards,
hi all,
As you noticed already PHP finally got simple C-like array, thanks to
Etienne and Tony for their great work!My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er) hash
table like our current array, it is a C-like array.Cheers,
Pierre
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal
Pierre Joye wrote:
hi all,
As you noticed already PHP finally got simple C-like array, thanks to
Etienne and Tony for their great work!My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er) hash
table like our current array, it is a C-like array.
Why not call it SplVector?
Greg
-----Original Message-----
From: Gregory Beaver [mailto:greg@chiaraquartet.net]
Sent: Monday, June 16, 2008 6:36 AM
To: Pierre Joye
Cc: PHP internals; Etienne Kneuss; Marcus Boerger; Antony Dovgal
Subject: [PHP-DEV] Re: FastArray, great additionWhy not call it SplVector?
I think that's a good suggestion.
I agree we are better off not using Fast in the name.
Andi
-----Original Message-----
From: Gregory Beaver [mailto:greg@chiaraquartet.net]
Sent: Monday, June 16, 2008 6:36 AM
To: Pierre Joye
Cc: PHP internals; Etienne Kneuss; Marcus Boerger; Antony Dovgal
Subject: [PHP-DEV] Re: FastArray, great additionWhy not call it SplVector?
I think that's a good suggestion.
I agree we are better off not using Fast in the name.
Correct me if I'm wrong but vector are dynamic, the SplFastArray is
not automatically resized. After a short discussion on IRC, the name
SplFixedArray seems to get the general concensus.
Cheers,
My only wish is to actually respect the informal decision we took a
while back, to do not use "fast", "improved", "better" or similar
wording in function or extension names. What's about naming it CArray
or something similar? To reflect what it is, it is not a fast(er) hash
table like our current array, it is a C-like array.
I can live with any name, so feel free to choose whatever you like most.
<offtopic> Though I'd like to be able to cast these arrays to PHP's arrays and we need to implement get_properties() handler for that. If there are no objections, I'll commit my patch when I get back home (30th of June).--
Wbr,
Antony Dovgal
Though I'd like to be able to cast these arrays to PHP's arrays and we need
to implement get_properties() handler for that.
If there are no objections, I'll commit my patch when I get back home (30th
of June).
2-way conversion would be perfect ;)
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
Though I'd like to be able to cast these arrays to PHP's arrays and we need
to implement get_properties() handler for that.
If there are no objections, I'll commit my patch when I get back home (30th
of June).2-way conversion would be perfect ;)
There is no way to cast an array to an object of certain class,
but it should not be a problem to add a function to convert array to fastarray.
Want to make a patch yourself?
Should be pretty easy to do, just don't forget to throw an exception on string key.
--
Wbr,
Antony Dovgal
2-way conversion would be perfect ;)
There is no way to cast an array to an object of certain class, but it
should not be a problem to add a function to convert array to fastarray.Want to make a patch yourself?
Should be pretty easy to do, just don't forget to throw an exception on
string key.
I will give it a try
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
Hello,
Though I'd like to be able to cast these arrays to PHP's arrays and we
need
to implement get_properties() handler for that.
If there are no objections, I'll commit my patch when I get back home
(30th
of June).2-way conversion would be perfect ;)
There is no way to cast an array to an object of certain class, but it
should not be a problem to add a function to convert array to fastarray.Want to make a patch yourself?
Should be pretty easy to do, just don't forget to throw an exception on
string key.
I'll take care of it (both "conversions" actually)
Regards
--
Wbr, Antony Dovgal
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal