Pluto is a unique dialect of Lua with a focus on general-purpose programming

by 90s_devon 7/1/2025, 12:58 AMwith 9 comments

by Rochuson 7/1/2025, 6:48 AM

Interesting, apparently the source also includes a (modified) version of the PUC Lua VM. Why don't they just generate bytecode for the existing VM and leave it as is (unless the modified version somehow would significantly increase performance)? What changes were necessary to the original VM to implement the language?

by tzuryon 7/1/2025, 5:45 AM

Well, this is a very poor design, one which makes me think what is the purpose of this project in the first place?

    for i = 1, 10 do -- Loop 1.
        for ii = 1, 5 do -- Loop 2.
            break 1 -- This will break from Loop 2.
            break 2 -- This will break from Loop 1.
        end
    end
https://pluto-lang.org/docs/New%20Features/Break%20Statement

by wavemodeon 7/1/2025, 4:32 AM

Curious how this compares with Luau: https://luau.org

by 90s_devon 7/1/2025, 12:59 AM

Basically a more convenient/intuitive Lua for JS/C/Java/C++ users, plus optional static typing. May in fact use this instead of Lua.