yes, not a unix os but rather unix-like, and i want to program all of it on python, is that possible?? even the kernel, i want it all python. i know most kernels use c++ or c* but maybe python has a library to turn c* into python?? i’m still sort of a beginner but thanks and i would appreciate the answers

  • bitcrafter@programming.dev
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 hours ago

    Yes, and that’s basically what the CPython interpreter does when you call a Python script. It sometimes even leaves the machine code laying in your filesystem, with the extension .pyc . This is the byte code (aka machine code) for CPython’s implementation of the Python Virtual Machine (PVM).

    This is incorrect; the term “machine code” refers to code that can be run on a real machine, not to code that requires a virtual machine.