Compare commits

..

No commits in common. "main" and "solution" have entirely different histories.

3 changed files with 2 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# What every scientist should know about computer architecture # What every scientist should know about computer architecture
## Introduction ## Introduction
- [Puzzle](puzzle.ipynb) - [Puzzle](puzzle.ipynb) ➔ [read-only rendered notebook](https://nbviewer.org/urls/git.aspp.school/ASPP/2024-heraklion-comp-arch/raw/branch/main/puzzle.ipynb)
- Question: how come that swapping dimensions in a for-loop makes out for a huge slowdown? - Question: how come that swapping dimensions in a for-loop makes out for a huge slowdown?
- Let students play around with the notebook and try to find the "bug" - Let students play around with the notebook and try to find the "bug"
- A more thorough [benchmark](benchmark_python/) - A more thorough [benchmark](benchmark_python/)
@ -16,9 +16,6 @@
Two exercises to activate the body and the mind Two exercises to activate the body and the mind
Common goal of both exercises is to sort a deck of tarot cards by value Common goal of both exercises is to sort a deck of tarot cards by value
Before starting, make yourself acquainted with the meanining and the power of the tarot cards. Carefully read [this booklet](https://aspp.school/wiki/_media/tarot-runic.pdf)
### First experiment: human sorting ### First experiment: human sorting
Setup: Setup:
- 1 volunteer to keep the time spent sorting - 1 volunteer to keep the time spent sorting
@ -78,7 +75,7 @@ Setup:
## A final exercise to put it all together ## A final exercise to put it all together
- fork this repo to your account and clone your fork on the laptop - fork this repo to your account and clone your fork on the laptop
- create a branch `ex` and switch to it - create a branch `ex` and switch to it
- work on the [exercise](exercise.ipynb) - work on the [exercise](exercise.ipynb) ➔ [read-only rendered notebook](https://nbviewer.org/urls/git.aspp.school/ASPP/2024-heraklion-comp-arch/raw/branch/main/exercise.ipynb)
- push your solution to your fork and create a Pull Request to this repo - push your solution to your fork and create a Pull Request to this repo

View file

@ -37,7 +37,6 @@
- UTF8 encoded, flexible width from 1B (byte) to 4B (bytes): 1,112,064 Unicode characters (code points) - UTF8 encoded, flexible width from 1B (byte) to 4B (bytes): 1,112,064 Unicode characters (code points)
- ASCII: 7 bits (fits in one byte), 127 characters ➔ [ASCII table](https://upload.wikimedia.org/wikipedia/commons/2/26/ASCII_Table_%28suitable_for_printing%29.svg) - ASCII: 7 bits (fits in one byte), 127 characters ➔ [ASCII table](https://upload.wikimedia.org/wikipedia/commons/2/26/ASCII_Table_%28suitable_for_printing%29.svg)
- [visualization](https://sonarsource.github.io/utf8-visualizer/) - [visualization](https://sonarsource.github.io/utf8-visualizer/)
- actually in Python strings (more precisely: unicode objects) are stored in different formats depending on which characters are stored for memory efficiency. Look at the gory details [here](https://docs.python.org/3.14/c-api/unicode.html) ➔ not for the faint-hearted!
- **hexadecimal notation**: - **hexadecimal notation**:
- base16 ➔ '0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f' - base16 ➔ '0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f'

Binary file not shown.