willl has quit [Quit: Connection closed for inactivity]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pabs has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
mark3 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
Philpax has quit [Ping timeout: 260 seconds]
bam0 has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
brunto has joined #crystal-lang
brunto has quit [Quit: Lost terminal]
brunto has joined #crystal-lang
brunto_ has joined #crystal-lang
brunto has quit [Client Quit]
brunto_ has quit [Client Quit]
brunto has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
brunto_ has joined #crystal-lang
Dreamer__ has joined #crystal-lang
asterite_ has joined #crystal-lang
acetoxy_ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
brunto has quit [*.net *.split]
bam0 has quit [*.net *.split]
maxpowa has quit [*.net *.split]
iamstef has quit [*.net *.split]
acetoxy has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
fmcevoy has quit [*.net *.split]
toydestroyer has quit [*.net *.split]
trajing has quit [*.net *.split]
fnux has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
asterite has quit [*.net *.split]
asterite_ is now known as asterite
maxpowa has joined #crystal-lang
iamstef has joined #crystal-lang
daemonwrangler has joined #crystal-lang
bam0 has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
brunto_ has quit [Ping timeout: 244 seconds]
Kilo`byte has quit [Ping timeout: 268 seconds]
Philpax has quit [Read error: Connection reset by peer]
Kilo`byte has joined #crystal-lang
Philpax has joined #crystal-lang
Liothen has quit [Ping timeout: 268 seconds]
brunto has joined #crystal-lang
soveran has joined #crystal-lang
Liothen has joined #crystal-lang
brunto has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
brunto has joined #crystal-lang
trapped has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
jeromegn has quit [Read error: Connection reset by peer]
jeromegn has joined #crystal-lang
jhass has quit [Ping timeout: 264 seconds]
braidn has quit [Ping timeout: 264 seconds]
pleiosaur has quit [Ping timeout: 264 seconds]
Netfeed has quit [Ping timeout: 264 seconds]
grindhold_ has joined #crystal-lang
justinmcp has joined #crystal-lang
grindhold has quit [Ping timeout: 264 seconds]
DeBot has quit [Ping timeout: 264 seconds]
justinmcp_ has quit [Ping timeout: 264 seconds]
pleiosaur has joined #crystal-lang
<crystal-gh>
[crystal] ssvb opened pull request #2446: Promote results of +-*|&^ operations to 64-bit if any operand is 64-bit (master...20160413-fix567) https://git.io/vVhMp
<rolha>
it's possible to hardcode the iftrue and iffalse, but it's nice to have the freedom to specify them. They might not be constants, they might another random generator
<rolha>
*be
<rolha>
the code builds a simulation model, and it's nice a nice API to add a variable in that fashion, say: model.add_variable(:x, switch({y < 10.0}, {4.0}, {z + 1}) etc...
<rolha>
but it's just the original API I'm following, I guess in the first pass I'll just "translate" the code, they I'll make it more idiomatic perhaps (once it's working...)
<rolha>
*then
DeBot has joined #crystal-lang
<jhass>
rolha: I think you're looking for proc (lambda) literals
<jhass>
they're a bit verbose in crystal
<jhass>
as you need to specify the types of the arguments
<rolha>
jhass, thanks! I still need to get my head around the difference between blocks, procs and lambdas
<jhass>
well Crystal makes no difference between proc or lambda (Ruby does however)
<jhass>
you could also consider an OOP based design by capturing and converting blocks to procs, say switch { random() < 0.5 }.on_success { 4.0 }.on_failure {|z| z + 1 }
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Excureo has quit [Remote host closed the connection]
ldleworker has joined #crystal-lang
pawnbox has joined #crystal-lang
omninonsense has joined #crystal-lang
broz has quit [Remote host closed the connection]
waj- has quit [*.net *.split]
ldlework has quit [*.net *.split]
Renich has quit [*.net *.split]
Dreamer__ has quit [*.net *.split]
leafybasi has quit [*.net *.split]
Dreamer3_ has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
Tophe has quit [*.net *.split]
waj has joined #crystal-lang
Rinkana has quit [Read error: Connection reset by peer]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
pawnbox has quit [Ping timeout: 260 seconds]
broz has joined #crystal-lang
Renich_ has quit [Quit: leaving]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
broz has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran_ has joined #crystal-lang
wmoxam_ has quit [Ping timeout: 264 seconds]
pleiosau1 has quit [Ping timeout: 264 seconds]
wmoxam has joined #crystal-lang
soveran_ has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 264 seconds]
dzv has quit [Ping timeout: 264 seconds]
dzv has joined #crystal-lang
pleiosaur has joined #crystal-lang
pawnbox has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
DeBot has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
A124 has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
<crystal-gh>
[crystal] skunkworker opened pull request #2448: Changed Crypto::Subtle.constant_time_compare to return a boolean. (master...add_string_secure_compare) https://git.io/vwvco