parsonsmatt / parsonsmatt.github.io

My Github pages website
Other
77 stars 25 forks source link

TChan vs TQueue #31

Open henrylaxen opened 5 years ago

henrylaxen commented 5 years ago

I tried running your code (test3) from https://www.parsonsmatt.org/2018/10/12/tchan_vs_tqueue.html and the output was:

λ> test3 FiSrescto ntdh rteharde arde creeicveeidv:e d1: o1n o#n: #1: 6 FiSrescto ntdh rteharde arde creeicveeidv:e d2: o2n o#n: #2: 7 FirsSte ctohnrde atdh rreeacde irveecde:i v3e do:n 3# :o n3

: 8

FiSrescto ntdh rteharde arde creeicveeidv:e d4: o4n o#n: #4: 9 FirSsetc otnhdr etahdr eraedc erievceedi:v e5d :o n5 #o:n 5# : 10

I think you're missing some MVars.

parsonsmatt commented 5 years ago

That's odd. I copied the output directly from ghci.

henrylaxen commented 5 years ago

I think I know what happened. I ran it with -O2. No worries.