devyn changed the topic of #elliottcable to: yorickpeterse is undergroin
<joelteon>
hey guys, i have a question that i desire advice on
<alexgord_>
joelteon: hi
Sgeo has joined #elliottcable
<devyn>
jesus ~$12 trillion worth of bitcoins in existence
<devyn>
whitequark: cool
<devyn>
whitequark: haha, I thought about doing that, but then I remembered that it takes fucking ridiculously long to get money between exchanges and the fees involved are crazy in many circumstances
<joelteon>
ok
<joelteon>
hang on a sec
yorick has quit [Remote host closed the connection]
<whitequark>
devyn: hi!
<devyn>
whitequark: hi!
<whitequark>
devyn: wanna continue?
<devyn>
sure. I suppose I should make the candlestick chart
* whitequark
nods
<whitequark>
hm, I leak memory somewhere. :/
<whitequark>
up to 36M from 10M yesterday
<devyn>
valgrind it?
<whitequark>
er, no
<whitequark>
it doesn't use malloc of course, it has a generational gc
<whitequark>
moving even
<devyn>
er, yeah, lol
<purr>
lol
<whitequark>
but there's a variant of runtime with memory profiling, I'll install that
<devyn>
ok
<devyn>
GHC has pretty comprehensive profiling if you compile with rtsopts and profiling enabled
<devyn>
so OCaml should have something similar I guess?
<whitequark>
well, there's heap profiling and cpu profiling
<whitequark>
ocaml's builtin cpu profiling frankly sucks, but it doesn't matter very much, because there's amazing linux perf tools
<whitequark>
so you just compile a native executable and profile it as you would a C program
<whitequark>
heap profiling is done with this custom runtime, I've never used it in the past
niggler has quit [Quit: Computer has gone to sleep.]
<whitequark>
ocaml's tooling is not so amazing, but it has improved *a lot* recently
<whitequark>
mainly due to a company (janestreet) dedicating a lot of very qualified people to production-quality software in ocaml
<whitequark>
fun fact: "Jane Street is a quantitative trading firm with a unique focus on technology and collaborative problem solving."
<whitequark>
there's a few ladies who deserve that *shrug*
<purr>
¯\(º_o)/¯
<devyn>
the world would be better off if arguments didn't get to that point
<whitequark>
there's a sad joke about it
<whitequark>
"everything is bad in Russia, so people deserved to resurrect Stalin. the scientists did a good job, so here he stands, more alive than ever. people: everything is bad, what do we do, Stalin?
<whitequark>
Stalin: execute everyone in the government and paint Kremlin blue
<whitequark>
people: but, why blue?
<whitequark>
Stalin: so there's no objections to execution"
<devyn>
because blood is red, or...?
<whitequark>
no. the idea is that no one doubts the absolute incompetency of government, so it's not even a question
<whitequark>
or rather, even less of a question than something so insignificant as the color of kremlin
<devyn>
oh, I get it haha
<whitequark>
you know what pisses me off
<whitequark>
storing money in float
<devyn>
especially bitcoins :/
<whitequark>
worst of all, btc-e seems to actually serialize floats to json
<whitequark>
(you technically can serialize bigdecimal to json without quotes. ocaml's yojson can do that)
<whitequark>
because of visible rounding errors
<whitequark>
>0.01000994
<whitequark>
it's not even double?..
<devyn>
well, it could have been someone's bot that did that
<whitequark>
mhm, perhaps
<devyn>
I know for a fact that there are people making simple bots with limited programming experience
<whitequark>
I think bitcoins are divisible down to 8 decimal places
<whitequark>
and all derivatives seem to work the same way, since they all share codebase
<devyn>
at the moment, though I believe that's subject to change
<devyn>
potentially
<devyn>
idk
<whitequark>
that's... 27 binary digits
<whitequark>
so I could conceivably store them as fixed point, 32.31 numbers in ocaml's 63-bit ints on amd64
<whitequark>
how the fuck do you convert fractional part of a fixed-point number to string
<devyn>
iteration
<whitequark>
meh
<devyn>
so, yes you could, but nothing else seems to be that accurate anyway and it would just make all of your math and everything slower
<devyn>
well, the official bitcoin client I think is fixed point
<whitequark>
well, fixed point math won't be slower
<whitequark>
in fact it will be as fast or faster
<whitequark>
serializing and deserializing, however...
<devyn>
whitequark: well, I'm going to have to stop here; I have an exam tomorrow. but check it out - I have a demo up of what I've done so far
<whitequark>
devyn: nice, thanks!
Sorella has joined #elliottcable
Sorella has joined #elliottcable
Sorella has quit [Changing host]
fwg has quit [Ping timeout: 245 seconds]
fwg has joined #elliottcable
<cuttle>
“I like putting uplifting elements in something that’s moody as fuck. Make them appear for a moment, and then take them away. That’s the sound I love…like embers in the tune…little glowing bits of vocals…they appear for a second, then fade away and you’re left with an empty, sort of air-duct sound…something that’s eerie and empty. Like you’re waiting just inside a newsagent in the rain…a little sanctuary, then you walk out in it. ...
<cuttle>
... I love that.”
_whitelogger has joined #elliottcable
fwg has quit [Ping timeout: 250 seconds]
alexgord_ has joined #elliottcable
Sgeo has quit [Read error: Connection reset by peer]
<whitequark>
ARGGHGHWEWSDfsjkdlsdf
<whitequark>
fucking internet dance
<whitequark>
my landline is (hopefully temporarily) out of order, so I'm sitting on 4G
<whitequark>
but there is barely any signal
<whitequark>
the dongle can rx/tx quite well with just 1dB SINR
<whitequark>
but, of course, it just randomly walks between -1dB and 1dB
<whitequark>
you could sometimes get better results by repositioning it in space, presumably changing pattern of multipath interference or something, but
<whitequark>
it's definitely not the only thing which matters, because I can unplug it, then plug it back and it's down to -3dB from 1dB
<whitequark>
which means it also tries to automatically choose modulation and doesn't even report it
fwg has joined #elliottcable
<whitequark>
devyn: do you ever clear the trade logs inside frontend?
<whitequark>
after a while, switching takes ages
alexgord_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alexgord_ has joined #elliottcable
yorick has joined #elliottcable
niggler has joined #elliottcable
fwg has quit [Ping timeout: 246 seconds]
<joelteon>
ok, quick sanity check
<joelteon>
if i build a binary on ubuntu 12.04 x64, will it run on centos 6.4 x64
eligrey has joined #elliottcable
fwg has joined #elliottcable
eligrey has quit [Quit: Leaving]
eligrey has joined #elliottcable
<alexgord_>
joelteon: maybe
<alexgord_>
joelteon: depends which dynamic libraries it's linked against
<joelteon>
see, why didn't i think of that before
<joelteon>
am i retarded
* alexgord_
is working on bilingual paragraph alignment again
<alexgord_>
punctuation actually works pretty well
<alexgord_>
like, question marks generally stay question marks
<alexgord_>
and quotation marks are also kept
<alexgord_>
this is by far the most interesting algorithm I've ever written though
Sorella has quit [Quit: Ex-Chat]
<joelteon>
god i'm stupid
<dnyy>
joelteon: i still ly
<joelteon>
ty
duckinator has quit [Quit: Nickname collision due to Services enforced nickname change, your nick was overruled]
duckinator has joined #elliottcable
<devyn>
whitequark: yeah, I limit it to 100 entries... I'll have to look into optimizing that bit. probably has to do with how I've arranged the array or something
<devyn>
(I had noticed it before, btw)'
fwg has quit [Ping timeout: 250 seconds]
fwg has joined #elliottcable
<joelteon>
chrome canary is a lot more useless than it used to be
<joelteon>
so guys
<joelteon>
turns out
<joelteon>
i completely forgot about this, but
<joelteon>
i can just use swap on digitalocean to build stuff using GHC
<yorick>
EW
<yorick>
EWEWEW
<joelteon>
what
<yorick>
swap
<joelteon>
well, it's on SSD
<joelteon>
i'd say it's a net positive based on how long it takes to set up an appropriate centos VM
<joelteon>
also since I don't have to build, gzip, and upload
<devyn>
that last part really should be automated lol
<purr>
lol
<joelteon>
well, it is
<joelteon>
it's still a pain in the ass
<devyn>
'k
<alexgord_>
holy shit this is working
<devyn>
?
<alexgord_>
IT
<alexgord_>
it's... working
<devyn>
you got laid?
<alexgord_>
haha
<alexgord_>
no...
<alexgord_>
but I SHOULD get laid for an algorithm this cool
<alexgord_>
whitequark is the expert on that though
<joelteon>
getting laid or algorithms
<alexgord_>
getting laid by algorithms
<alexgord_>
I can't remember the details
<joelteon>
oh
<devyn>
whitequark wrote a compiler; there's a lot of sex involved in that
<devyn>
whitequark: optimized it. the optimal solution was, happily, the more elegant one
<alexgord_>
omg it's actually working perfectly
<alexgord_>
!!!!!!
* purr
scolds alexgord_ and puts them in a time out.
<alexgord_>
:(
<alexgord_>
purr: I LOVE YOU
<purr>
alexgord_: thank you! ^_^
<alexgord_>
<3
<alexgord_>
soooo ridiculously cool
<alexgord_>
I've taught a computer to read
fwg has quit [Ping timeout: 240 seconds]
<cuttle>
ELLIOTTCABLE: oh shit you're listening to because the internet?