tinyvm icon indicating copy to clipboard operation
tinyvm copied to clipboard

Comments.

Open technetos opened this issue 8 years ago • 7 comments

Please comment this code. It looks like a really excellent project for learning about virtual machines but people wont use it that way if its a pain to figure out whats going on.

If not comments then please provide documentation.

technetos avatar Mar 18 '18 00:03 technetos

Also README and/or repository description should state what type of a virtual machine is it. Is like hardware-level one like Qemu/virtualbox or language-level like JVM?

vi avatar Mar 18 '18 20:03 vi

Why not adding some benchmarks also, to know about the performances of the VM on a few algorithms such as the fibbonacci sequence or the factorial ?

SuperFola avatar Mar 18 '18 20:03 SuperFola

I agree with @vi. This project, even though very promising, it's not clear what its actual nature is.

I am interested in VM for programming languages to be honest with you, not for VM OS hosting emulators.

stefanos82 avatar Mar 19 '18 00:03 stefanos82

Id be totally willing to contribute to the docs if you set some up :smiley:

technetos avatar Mar 19 '18 02:03 technetos

@stefanos82 by reading the code i think this is for a programming language

SuperFola avatar Mar 19 '18 05:03 SuperFola

Nice! Thank you @SuperFola for letting me know.

stefanos82 avatar Mar 19 '18 16:03 stefanos82

@technetos Some years ago, I started this project because I wanted to know more about how virtual machines work, so I wrote one. The syntax and function of the VM is described in the SYNTAX document.

@SuperFola There are example programs in programs/tinyvm, including Project Euler solutions, and a few comparable programs in C and x86 assembly.

I've been working on an off on a C library replacement that can host this project as well, which is linked as a submodule from mlibc.

As far as further documentation goes, PRs are welcome.

jakogut avatar Mar 22 '18 21:03 jakogut