I'm a Senior Computer Science student
@ShanghaiTech. I'm
honored to be under polished by three system related Professors
Foo,
Shu and
Toast no matter for my research career, my course journey
and high performance cluster competitions.
case class DRAM(tag: String, taste: String, percentage: Int)
val OnCrash = List(
DRAM("HPC Training", "Nice", 40),
DRAM("NVRAM Hooligon", "Damm Hard" 41),
DRAM("Compiler TA", "Thankless", 18),
DRAM("Course Work", "Indifferent", 1))
val CoffeeTime =
for (OnCrash <- Machine if Machine.percentage.delta + Machine.mt19937ar.rand >= 1
&& strcmp(Machine.taste,"So So") >0 && Machine.percentage--) //lazy eval
yield Machine.tag
CoffeeTime.foreach(println)