Hacker GitHub

← All repos

jakogut/tinyvm

View on GitHub ↗ ★ 3,330 C

TinyVM is a small, fast, lightweight virtual machine written in pure ANSI C.

10 mentions on Hacker News by 9 people: 3 stories, 7 comments · first 2011-07-02 · latest 2018-03-18

Mentions per year 10 mentions · busiest year 2011 (6)
20082026
  1. Here's the switch statement, if you're looking for it: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv...
  2. I'm kind of worried about usage of strcmp here: https://github.com/jakogut/tinyvm/search?q=strcmp It's also very easy to crash the thing, either with a malformed input file or afl-fuzz. Are you sure C was the right choice here?
  3. I’ve found that switch fast, in a few clicks, reading this on my phone: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv... I’ve used the info you provided as the start, of course.
  4. ▲ 241
    TinyVM – A small and easy to understand virtual machine in C
    story by jxub · 2018-03-17 · 30 comments
  5. …with around, say, 2^5 instructions. What I have in mind here is something like TinyVM [1]. [1] https://github.com/GenTiradentes/tinyvm
    comment by javert · 2011-09-05 · in The Immutable Laws of Computer Security
  6. ▲ 121
    TinyVM 1.0 released; adds 16 lines of code, registers, a VM stack and more
    story by davedx · 2011-08-26 · 22 comments
  7. …direct, and in the second, you seem to be assuming that JMP is indirect. It appears to be direct: https://github.com/GenTiradentes/tinyvm/blob/master/tvm.c#L5... You could, of course, do it with self-modifying code if that's possible. (I'm…
  8. …in half an hour of looking at the code, I found seven bugs in a single 60-line routine. Details at: https://github.com/GenTiradentes/tinyvm/commit/e78c192313c35...
  9. check the commit message: https://github.com/GenTiradentes/tinyvm/commit/35c2fdbdabc63...
  10. ▲ 113
    TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C
    story by coderdude · 2011-07-02 · 62 comments