Berry is a programming language created in 2018 by 官文亮.
#807on PLDB | 6Years Old |
git clone https://github.com/berry-lang/berry
Berry is a ultra-lightweight dynamically typed embedded scripting language. It is designed for lower-performance embedded devices. The Berry interpreter-core's code size is less than 40KiB and can run on less than 4KiB heap (on ARM Cortex M4 CPU, Thumb ISA and ARMCC compiler).
def fib(x)
if (x <= 1)
return x
end
return fib(x - 1) + fib(x - 2)
end