Skip to content

Instantly share code, notes, and snippets.

@jnschaeffer
jnschaeffer / indego.rs
Last active January 20, 2020 04:24
Indego CSV parsing
use std::env;
use std::error::Error;
use std::process;
use csv::Reader;
use serde::Deserialize;
#[derive(Debug, Deserialize)]
enum PassholderType {
Indego30,
@jnschaeffer
jnschaeffer / actress.scm
Created March 3, 2020 23:13
demonstration of concurrency in 8sync
(use-modules (oop goops)
(8sync)
(ice-9 atomic))
(define-actor <actress> (<actor>)
((recv actress-recv)))
(define (actress-recv actress message)
(8sleep 1)
(format #t "received message at ~a\n" (strftime "%c" (localtime (current-time)))))