Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add ZetScript #15

Open
jespa007 opened this issue Apr 24, 2018 · 1 comment
Open

Please add ZetScript #15

jespa007 opened this issue Apr 24, 2018 · 1 comment

Comments

@jespa007
Copy link

jespa007 commented Apr 24, 2018

Hi r-lyeh,

I would like to know whether is possible to eval ZetScript in your performance list test.

Currently ZetScript links dinamically by default but I attached the static version below,

zetscript-1.3.0_static.zip

And the equivalent Fibonacci script for ZetScript is typed below,

function fibR(n)
{
    if (n < 2) { 
     	return n; 
    }

    return fibR(n-2)+fibR(n-1);
}

print("fib: " + (fibR(34)) );

Cheers,

@jespa007
Copy link
Author

jespa007 commented Jan 10, 2024

Hi @r-lyeh-archived and happy new year,

I have recently updated ZetScript at 2.0.0. The speed it has increased ~2.5 times.

I attach the new release here,

zetscript-2.0.0.tar.gz

Howewer, with all the changes made, fib.zs script it has to change into the following,

function fibR(n)
{
    if (n < 2) { 
     	return n; 
    }

    return fibR(n-2)+fibR(n-1);
}

Console::outln("fib: {0}", fibR(34) );

By default cmake project it compiles ZetScript statically so I think it fits the requirements.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant