srk 2017-02-23 21:45:45
the problem is that readZ function uses ask to get TBQueue from reader and reads from that queue
srk 2017-02-23 21:46:12
I would somehow need to split queues for each app
jle` 2017-02-23 21:50:26
halogenandtoast: :D
halogenandtoast 2017-02-23 22:17:26
jle`: yeah, why are you some damned helpful?
halogenandtoast 2017-02-23 22:18:02
I actually expected haskell as a language to attract exactly the opposite kind of person (pretentious), but this channel has always proven the opposite.
MarcelineVQ 2017-02-23 22:20:19
I'm reasonably pretentious
halogenandtoast 2017-02-23 22:20:27
I can accept that.
srk 2017-02-23 22:24:40
feels like I've ended up with yet another bug ridden implementation of erlang :D
halogenandtoast 2017-02-23 22:24:56
Are you writing an Erlang interpreter/compiler?
srk 2017-02-23 22:25:07
nah, just p2p messaging
srk 2017-02-23 22:25:28
it's quite limited compared to erlang. testing mocked up workers
srk 2017-02-23 22:26:35
try if you want, it's an implementation of zre protocol using zeromq as a backend - https://git.48.io/zre/
halogenandtoast 2017-02-23 22:29:29
srk: awkward territory, untrusted code :p I have to now read all of your code.
srk 2017-02-23 22:30:03
:D
jle` 2017-02-23 22:31:43
\
jle` 2017-02-23 22:31:57
\
jle` 2017-02-23 22:35:10
i consider myself better than others because i am not pretentious, unlike other people
halogenandtoast 2017-02-23 22:35:10
srk: hmm I don't trust this: zgsSig = 0xAAA0 :: Word16
halogenandtoast 2017-02-23 22:35:10
looks like buffer overflow to me...
srk 2017-02-23 22:35:10
woot :D
srk 2017-02-23 22:35:10
it's a zgossip protocol identifier, gossip is not yet implemented, only protocol part
srk 2017-02-23 22:35:10
with gossis peers don't have to rely on working multicast and can find peers in other subnets
halogenandtoast 2017-02-23 22:36:45
So many files to go through
srk 2017-02-23 22:37:59
yeah, and it needs even more refactoring/splitting of API and internal types..
halogenandtoast 2017-02-23 22:38:15
no tests...
srk 2017-02-23 22:38:28
yeah, still learning to write that
halogenandtoast 2017-02-23 22:38:54
I actually found writing tests in Haskell easier than writing tests in any other language
halogenandtoast 2017-02-23 22:38:57
which susprised me.
srk 2017-02-23 22:39:02
I'm now testing this against reference C implementation and if works quite nice
halogenandtoast 2017-02-23 22:39:15
hspec is top class imo
halogenandtoast 2017-02-23 22:39:30
as is quickcheck.
srk 2017-02-23 22:39:41
indeed
srk 2017-02-23 22:39:56
but who needs tests when you have STM :D
srk 2017-02-23 22:40:28
nah, just joking. they would be handy for protocol encoding stuff