Compare commits

..
1 Commits
Author SHA1 Message Date
dwrz 4cd9ba10fd Add README 2026-10-27 14:05:49 +00:00
+7 -9
View File
@@ -1,25 +1,24 @@
* Talks
This repository contains slides and example code from two technical presentations given in 2020.
Slides and example code from two technical presentations given in 2020.
Slides use [[https://orgmode.org/][org-mode,]] and were presented in Emacs with [[https://github.com/rlister/org-present][org-present]].
** [[file:concurrency/][Concurrency]] (June 2020)
** Concurrency (June 2020)
Introduction to concurrency.
** Slides
*** Slides
- Sequential vs. concurrent execution, I/O latency, interrupts, and cooperative vs. preemptive scheduling
- Concurrency vs. parallelism, processes vs. threads, and language runtimes (C, JavaScript event loop, Go scheduler)
- Shared memory synchronization vs. message passing, backpressure, and distributed data races
** Examples
*** Examples
- temperatures: concurrent HTTP requests fetching city temperatures from OpenWeatherMap.
- mutex: data race demonstration and mutual exclusion on a shared bank account balance (~go run -race ./main.go~).
- csp: pipeline of goroutines and channels reading a CSV of zip codes, querying weather data with a concurrency limiter, and displaying a live top-ten leaderboard.
*** Running Go examples
To run the examples:
#+begin_src shell
# Mutex example (with and without race detector):
cd concurrency/cmd/mutex
@@ -32,7 +31,7 @@ cd concurrency/cmd/temperatures && go run .
cd concurrency/cmd/csp && go run .
#+end_src
** [[file:x86-assembly/][x86 Assembly]] (November 2020)
** x86-64 Assembly (November 2020)
A brief tour of x86-64 assembly on Linux.
@@ -50,8 +49,7 @@ A brief tour of x86-64 assembly on Linux.
- stack: pushing bytes onto the stack and printing from ~%rsp~.
- func: function call, stack frame setup (~%rbp~ / ~%rsp~), and return.
*** Running x86-64 examples
To run the examples:
#+begin_src shell
as exit.s -o exit.o
ld exit.o -o exit