kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.63k stars 61 forks source link

Add string.{char, lower, upper, reverse} to stdlib #21

Open cjcole opened 5 years ago

cjcole commented 5 years ago

I believe that a "sufficiently smart compiler" would compile this String::new to the same machine code as the existing implementation. (Pretty sure rustc isn't that compiler, though.)

Could retain the existing implementation for performance.

XVilka commented 1 year ago

Should be rebased to resolve conflicts