1. 12

Kuroko is a dialect of Python with explicit variable declaration and block scoping, with a lightweight and easy-to-embed bytecode compiler and interpreter.

Importantly, it avoids a few gotchas in Python such as default parameters, and scoping rules, but stays generally compatible with Python.

(I am not the project dev.)

  1. 7

    This is part of this larger hobbyist OS project, which also looks fascinating: https://github.com/klange/toaruos

    1. 3

      I have been on the lookout for a good beginner language that is similar to Python, and it seems Kuroko is a strong contender.

      1. 2

        This is a very interesting idea. Python seems like it’s in a weird position. On the one hand, the ecosystem is thriving in a number of niches. It’s huge and hard to see it being displaced. On the other hand, the language designers seem to have lost the thread about what made people like Python in the first place, and packaging in particular is a nightmare that threatens to kill the whole thing. Making a new language that is Zig to Python’s C has a lot of potential: you can fix the language warts, add types in a more integrated way than MyPy, have a solid story about installation, and keep compatibility with Numpy and OpenCV or whatever.

        1. 1

          add types in a more integrated way than MyPy

          Yes, the type and also the existence of variables. They would be nice if they were static. Every time Python throws an attribute error or a type error one hour into a test, i wish i was writing in a static language.

          Lazy me doesn’t see the point in running MyPy before something already smells wrong.