Some other good cases for arenas are rendering of a frame in a video game and handling of a http request. The memory is contained within that context and short lived.
2,552 karma · joined August 20, 2008
Some other good cases for arenas are rendering of a frame in a video game and handling of a http request. The memory is contained within that context and short lived.
I'm using sqlite in production for a backend service. There are plenty of downsides, but to focus on the positives:
- I can run all tests in a database in memory. It's incredibly fast to "spin up" and I can use a separate database per test
- Related, I find that I write more tests against the database instead of mocking a database, which cuts down on time writing tests.
- I don't need to start a database to run the backend
- I can have snapshots of the databases in a single files for various scenarios
All in all, the development process feels a lot faster. When something takes a millisecond instead of seconds, you do things differently.
FWIW, you can replace twitter.com with nitter.net to see it (depending on why you don't want to visit twitter)
Or, rather, you can read the two first chapter easily in one sitting. Chapter one gives a brief overview and examples. Chapter two describes the whole language, every function and every variable! The rest of the book is just more examples. I really love this style!
The big downside is that my wallet and everything in it can run out of battery. That's not very redundant. Suddenly I won't be able to pay, identify, call, etc.
With the keyboard there, I feel like I'm practicing copying that, instead of learning the chords. Especially with the timer ticking. I'd be curious to hear about your reasons for putting it there. Possibly your goal is very different from mine.
https://johanneshoff.com/sheet/ is for getting faster at recognizing note values in sheet music. I used this for about five minutes a day for some time and it really improved my reading. A musician friend of mine said it had limited use, since notes are always in context, and here it's just random notes. I think this is a good start, though, but the journey from there is probably some other tool.
https://johanneshoff.com/intervals/ to practice intervals. For this one I recommend a MIDI-keyboard and the 'meander' mode. Start out with just a few intervals and take it from there. I found it absolutely crucial to pick some songs that represent the interval. See for instance https://www.youtube.com/watch?v=PhDIm_2qS5s
This series teaches you so much about how a computer works from the ground up. Although I had already learned that you can build a CPU with only NAND-gates, this is what really made it click. It's also densely packed with facts and techniques (debugging, using an oscilloscope, ...). It's quite refreshing compared to other youtube content where every little fact needs a ten minute video.
From a mathematical standpoint, I've never seen a use for returning -2 here. I want something unique for the group, so I can ask e.g. `x mod 3 == y mod 3` and have it work regardless of whether x or/and y are negative.
It reminds me of some bilingual kids I know that can understand their dad's language perfectly, but they have a really hard time speaking it (since they always reply in their mom's language). You only learn what you practice.
If q3k's answer wasn't sufficient, maybe you can find more answers in the github repo that builds everything? https://github.com/mattvenn/wokwi-verilog-gds-test
Otherwise, there's a discord where the author (Matt) very active: https://discord.gg/rPK2nSjxy8
Process substitution:
bash: diff <(echo hello) <(echo world)
fish: diff (echo hello | psub) (echo world | psub)
Rsync directories:
rsync -a -v --dry-run other:dir/ dir/
Syncs the contents of dir (`/` needed)
Script exit handler:
bash:
function finish {
# exit handling code
}
trap finish EXIT # EXIT is special and works on normal exit as well as interrupts