~/talk

Move Semantics for Nim

Talkat SPLASH 2020 REBASE · 2020-11-16..11-23· [compilers-and-language-design]
links:none on file
slides:none on file

Explains how Nim implements move semantics with three compile-time hooks (copy, sink, destroy) and a sync parameter mode so containers can receive ownership without copies; shows sequence implementation, copy-on-write and atomic-refcount options, and how the compiler emits and optimizes IR via the expand arc command. Claims throughput, latency and memory all improve (benchmarks cited), lets the compiler prove single-owner before sending to another thread, and surfaces exact moves/destructions so deterministic memory/resource management is practical and inspectable.

AI-written summary · about

  1. 0:00Nim - Move semantics
  2. 0:33Introduction
  3. 1:22Motivating example
  4. 2:32What happens in memory (2)
  5. 3:49Shallow copy, copy, move (2)
  6. 5:28Explicit move
  7. 6:48Implicit move (2)
  8. 9:14Sink parameters (2)
  9. 12:40Sink: More examples (2)
  10. 14:17Getters: Lending a value (3)
  11. 17:25Destructors
  12. 21:48Move operator
  13. 22:46Assignment operator
  14. 23:32Accessors
  15. 24:30Hooks: flexibility (1)
  16. 31:37Copy-ellsion is borrowing
  17. 32:50What is Nim?
  18. 33:17Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.