; find ./ \( -iname '*.png' \) -type f -exec ls -lt --time-style=+"%Y-%m-%d %T" {} + | sort -k6,7 | grep "fun" | awk {'print '} | sxiv -i This post covers the outcome of a multi-stage Dockerfile for Rust, which handles the app artifact binary to the last layer, discarding the build layer.
- High-level container runtime: Podman
- Low-level container runtime: crun
- Trunk with wasm-bidgen as dependency for a Yew project.
OCI Setup specs:
| #!/usr/bin/bash | |
| # | |
| # ccr: check container runtime | |
| # | |
| checker() { | |
| exists_wgh=$(which podman 2>&1 | grep -o "no" | head -n 1) | |
| exists_command=$(command -v podman &>/dev/null) | |
| # bash square bracket eval to check for empty expanded variable in a string, |
sudo pacman -Sy yay lib32-ncurses ncurses tmux qemu-user-static qemu-user-static-binfmt neovim
setxkbmap -model abnt2 -layout br -variant abnt2
cat <<"EOF" > ~/.tmux.conf
## ~/.tmux.conf
## Use vim keybindings in copy mode
set-option -g mouse on
setw -g mode-keys vi(This is a translation of the original article in Japanese by moratorium08.)
(UPDATE (22/3/2019): Added some corrections provided by the original author.)
Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.
Note: this was originally several Reddit posts, chained and linked. But now that Reddit is dying I've finally moved them out. Sorry about the mess.
URL: https://www.reddit.com/r/ProgrammingLanguages/comments/up206c/stack_machines_for_compilers/i8ikupw/ Summary: stack-based vs register-based in general.
There are a wide variety of machines that can be described as "stack-based" or "register-based", but not all of them are practical. And there are a lot of other decisions that affect that practicality (do variables have names or only address/indexes? fixed-width or variable-width instructions? are you interpreting the bytecode (and if so, are you using machine stack frames?) or turning it into machine code? how many registers are there, and how many are special? how do you represent multiple types of variable? how many scopes are there(various kinds of global, local, member, ...)? how much effort/complexity can you afford to put into your machine? etc.)
- a pure stack VM can only access the top elemen
