Dear Jeremy,

Yes, I'm aware that the PHP version is optimized - this is something =
which will be corrected (de-optimized).

Kind regards,
Samuel

On 4/05/2010, at 11:15 AM, Jeremy Woertink wrote:

> Not that it matters, but I was curious as to why the doors examples =
are=20
> different.
>=20
> For example, the ruby example could be written:
>=20
> for i in (1..100) do
>  root =3D Math.sqrt(i)
>  state =3D (root =3D=3D root.ceil) ? "open" : "closed"
>   puts "Door #{i}: #{state}"
> end
>=20
> which would closer match the PHP one:
>=20
> <?php
> for ($i =3D 1; $i <=3D 100; $i++) {
>    $root =3D sqrt($i);
>    $state =3D ($root =3D=3D ceil($root)) ? "open" : "closed";
>    echo "Door $i: $state";
> }
> ?>
>=20
> I just think having a side by side comparison of closer related =
methods=20
> might help.
> Good luck with the project! I'll probably use it if you throw=20
> Objective-C or Lua on there :) I really want to learn those two, and =
the=20
> resources I have found aren't that great.
>=20
>=20
> ~Jeremy
> --=20
> Posted via http://www.ruby-forum.com/.
>=20