Questions tagged [virtual-machine]
A Virtual Machine is a software based emulation of computer hardware.
34 questions
4
votes
2
answers
169
views
SimpleStackMachine.java - A virtual stack machine written in Java
In this post, I present my most recent result, a stack-based virtual machine programmed in Java. Frankly, I am lazy to write the unit tests since I am pretty much burned out with it. The full ...
8
votes
2
answers
476
views
Disabling local accounts on Azure Linux virtual machines
We’re enforcing Azure Entra authentication across all Linux VMs, so we’ll disable all local accounts via a custom script. The script will also create a single “break-glass” user with a randomly ...
3
votes
2
answers
393
views
Extremely simple virtual machine in Rust
I wrote a very simple VM to get a bit more familiar with Rust. The VM architecture was not the focus, so that I think that can safely ignored. Is my code idiomatic and clean? I felt that I was very ...
3
votes
1
answer
243
views
Simple stack based interpreter
This was inspired by the question Passing Programs To A Stack Machine Implemented In C++.
I wanted to make it a bit smarter by adding control functions:
instruction
op1
op2
op3
description
...
2
votes
0
answers
99
views
Small language, compiles to register VM bytecode
I am trying to implement a small programming language, in Nim, as a way of improving my (close to non-existent) programming skills. The programming language is intended to have IF-GOTO, variables, and ...
3
votes
1
answer
96
views
Tiny attempt at a register machine in Nim
I am attempting to learn the Nim language by making a small and simplistic register machine.
It is intended to interpret some basic instructions.
The entire parsing lexing process consists of ...
3
votes
1
answer
418
views
Node backend to run user-submitted code in a virtual machine
As per the title, I'm making a webapp that is intended to use as a JS exercise platform. Problems are shown to users, they submit code, that code is run against a few test cases, and a report of the ...
10
votes
2
answers
682
views
An attempt at a toy Vm
I usually use c++ so it may not be best practice for c.
This is a stack based toy vm and as a result it is very primitive, and it has no bitwise
instructions
64k might be a bit overkill for a toy vm.
...
8
votes
2
answers
2k
views
Simpletron simulator in C
I implemented a Simpletron simulator in C for learning C.
Simpletron is a virtual machine invented by Deitel for his books. Simpletron runs programs written in the Simpletron Machine Language, an ...
3
votes
0
answers
119
views
PowerShell script to execute Docker maintenance, optionally non-interactively
Problem
Developers in my team are new to Docker. I wanted to provide a way to accomplish general Docker housekeeping tasks (like pruning unused images and compacting the Hyper-V volume) largely ...
3
votes
1
answer
495
views
Simpletron in C without initial storing [closed]
I'm studying C with a Deitel's book. The book asks me to write a program that simulates a virtual PC (with virtual memory in an array called memory[100]).
Then the ...
2
votes
1
answer
335
views
C++ class for a flag register in a Chip8 emulator
In order to learn C++ I decided to code a Chip8 emulator following a tutorial. When I came across the idea of a flag register and decided it would be fun to implement in order to get familiar with ...
10
votes
1
answer
2k
views
Gameboy emulator in C
I've been coding a Gameboy emulator in C for some time(seems like a common project for people). It's reasonably functional and has some MBC1 support, but has some minor graphical glitches still. I'...
7
votes
1
answer
711
views
Chip 8 Emulator in JavaScript
Lately I've had interest in an emulation. During my free time I worked in this chip 8 emulator.
I believe I have a good chip 8 implementation but my canvas use and draw functions may need a review.
...
2
votes
2
answers
178
views
Process a list of instructions and output the max value reached
Inputs looks like this
b inc 5 if a > 1
a inc 1 if b < 5
c dec -10 if a >= 1
c inc -20 if c == 10
I am concerned that I need to declare ...