Code: Jennifer 0.28: what's new, what's deprecated, what breaks
Jennifer 0.28: the code
The programs behind the slides. They need no decks and run with Jennifer 0.28.0 from this folder. Only kvstore-backend.j can use a server, and it runs without one.
kinds.j: the library's own error kind for bad JSON,"closed"for a closed handle and a secondclosethat does nothing,kv.incron an absent key,strings.replacewith an emptyold, and%f|precrounding ("Breaking: error kinds", "Breaking: smaller changes"). It writes and removesdemo-kinds.txtin this folder. Run:jennifer run kinds.jkvstore-backend.j: akvstore.Storefromredis.kvStore, the 0.28.0 replacement ofkvstore.redisStore, or an in-process store when no server is set ("Breaking: network halves move"). Run:jennifer run kvstore-backend.j. With a Redis™ server:docker run --rm -d --name talk-redis -p 127.0.0.1:6379:6379 redis:7, thenREDIS_HOST=127.0.0.1 jennifer run kvstore-backend.jwriters.j:binary.fromUint,fromInt,fromFloat,setIntandfromInts, read back with theread*functions, and a value that does not fit ("New:binarywriters"). Run:jennifer run writers.jspawn-group.j:os.spawnWithwithcleanEnv,envandgroup,os.waitTimeout, andos.signalstopping a shell and its background job (Unix only; "New: bounded child processes"). Run:jennifer run spawn-group.jseek.j: a durable rename withfs.syncandfs.syncDir, thenfs.tellandfs.seekto resume a read ("New: bounded child processes"). It writes and removesdemo-seek/in this folder. Run:jennifer run seek.jalloc-budget.j:task.setAllocBudgetstops a task that builds a large list with a catchable"limit", while the program goes on ("New: a memory budget per task"). Run:jennifer run alloc-budget.j
| File | Size | |
|---|---|---|
| LICENSE | 899 B | raw |
| README.md | 1.7 KiB | raw |
| alloc-budget.j | 709 B | raw |
| kinds.j | 1004 B | raw |
| kvstore-backend.j | 999 B | raw |
| seek.j | 934 B | raw |
| spawn-group.j | 674 B | raw |
| writers.j | 1.0 KiB | raw |