jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
Excureo has quit [Remote host closed the connection]
Excureo has joined #crystal-lang
Cidan has quit [Read error: Connection reset by peer]
Virviil has quit [Ping timeout: 256 seconds]
Sadin has joined #crystal-lang
Sadin has quit [Ping timeout: 240 seconds]
HakanD_ has quit [Quit: Be back later ...]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 250 seconds]
Sadin has joined #crystal-lang
daveshah has joined #crystal-lang
Sadin has quit [Ping timeout: 240 seconds]
sailorswift has joined #crystal-lang
sailorswift has quit [Client Quit]
daveshah has quit [Remote host closed the connection]
waterlin1 has joined #crystal-lang
ozra has quit [Ping timeout: 240 seconds]
waterlink has quit [Ping timeout: 256 seconds]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 256 seconds]
Philpax__ has joined #crystal-lang
Philpax_ has quit [Ping timeout: 256 seconds]
Sadin has joined #crystal-lang
Sadin has quit [Ping timeout: 256 seconds]
waterlin1 has quit [Ping timeout: 256 seconds]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 272 seconds]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 240 seconds]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 250 seconds]
Philpax_ has joined #crystal-lang
Philpax__ has quit [Ping timeout: 256 seconds]
wminor___ is now known as wminor
Philpax_ has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 256 seconds]
Philpax_ has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
HakanD_ has joined #crystal-lang
ozra has joined #crystal-lang
Virviil has joined #crystal-lang
trapped has joined #crystal-lang
HakanD__ has joined #crystal-lang
avdi_ has joined #crystal-lang
A124 has quit [Disconnected by services]
A124 has joined #crystal-lang
adam^ has joined #crystal-lang
CompanionCube has quit [Ping timeout: 240 seconds]
hohenfall has quit [Ping timeout: 240 seconds]
avdi has quit [Ping timeout: 240 seconds]
matp has quit [Ping timeout: 240 seconds]
adam_ has quit [Ping timeout: 240 seconds]
HakanD_ has quit [Ping timeout: 240 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
avdi_ is now known as avdi
vegai has quit [Ping timeout: 260 seconds]
matp has joined #crystal-lang
vegai_ has joined #crystal-lang
vegai_ has quit [Changing host]
vegai_ has joined #crystal-lang
hohenfall has joined #crystal-lang
Ven has joined #crystal-lang
globalkeith has joined #crystal-lang
CompanionCube has quit [Ping timeout: 264 seconds]
globalkeith has quit [Ping timeout: 256 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 256 seconds]
Philpax_ has quit [Ping timeout: 256 seconds]
Philpax_ has joined #crystal-lang
<ytti> http://crystal-lang.org/api/HTTP/Request.html - this does not expose the query sourceIP?
daveshah has joined #crystal-lang
<ytti> what does it mean when 'accept' has been defined twice, without different argument list
<jhass> ytti: one of the accept's takes a block, the other doesn't
<ytti> [ytti@lintukoto ~/git/crystal]% make
<ytti> Syntax error in ./src/io.cr:10: octal constants should be prefixed with 0o
<ytti> O_RDONLY = 00000000
<ytti> i guess i'm not running new enough crystal
<jhass> ytti: uh, yeah
<jhass> ytti: make clean and update from the repo or something
<ytti> is there brew or apt for dailies
<ytti> esssentiallt what i'm trying to:
<ytti> [ytti@lintukoto ~/git/crystal]% git diff|pastebinit
<ytti> [ytti@lintukoto ~/git/crystal]%
<ytti> to have something like this
<ytti> tcp.addr = Socket::Addr(@family="AF_INET", @ip_port=1122, @ip_address="127.0.0.1")
<ytti> tcp.peeraddr = Socket::Addr(@family="AF_INET", @ip_port=40944, @ip_address="127.0.0.1")
<ytti> available in http request
<jhass> uh
<jhass> I don't see why you would need args in the convenience wrappers for that
<ytti> you're probably right
<ytti> maybe client.rb shouldnn't be touched at all
daveshah has quit [Remote host closed the connection]
HakanD__ has quit [Quit: Be back later ...]
<ytti> hmps, same complain with daily
<ytti> [2 ytti@ytti.fi ~/usr/git/crystal]% crystal --version
<ytti> Crystal 0.9.1 [bbd24e1] (Fri Dec 11 23:01:30 UTC 2015)
<ytti> Syntax error in ./src/io.cr:10: octal constants should be prefixed with 0o
<ytti> O_RDONLY = 00000000
<ytti> ^
<ytti> Makefile:26: recipe for target '.build/crystal' failed
HakanD___ has joined #crystal-lang
<jhass> ytti: did you make clean?
<jhass> ytti: oh, also use bin/crystal
<ytti> thanks
<ytti> [ytti@ytti.fi ~/usr/git/crystal]% export PATH="/home/ytti/usr/git/crystal/bin:$PATH"
<ytti> [ytti@ytti.fi ~/usr/git/crystal]% make
<ytti> started to work
daveshah has joined #crystal-lang
daveshah has quit [Remote host closed the connection]
daveshah has joined #crystal-lang
ytti_ has joined #crystal-lang
<ytti_> ooops, i think i broke my server by trying to compile crystal :)
<ytti_> SSH won't even receive ^C to break the compile process
<ytti_> completely unresponsive, pings just fine, and apparently haven't ping timeout yet
<ytti_> should have maybe compiled on my laptop instead
<ytti_> oh there is fork bomb
<ytti_> if i change 'bin/crystal' to
<ytti_> echo "HERE"
<ytti_> crystal "$@"
<ytti_> i get "HERE" printed in loop
<ytti_> yeha, because crystal is calling itself :)
<ytti_> so shouldn't use bin/crystal, makefile uses it, itself
daveshah has quit [Remote host closed the connection]
<ytti_> lessee if i can remotely recover it from host, haven't booted it in >1k days, so might not be bootable
<ytti_> yay, it booted
Philpax_ has quit [Ping timeout: 240 seconds]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ytti has joined #crystal-lang
<ytti> so, don't use bin/crystal as your crystal, but that still leaves me unable to compile crystal :/
ytti_ has quit [Quit: leaving]
<ytti> my bad
<ytti> i don't have latest
<ytti> i had already forked it, and didn't remember, reforked, and assumed i now have latest
<ytti> while refork is no-op in github if you already have it
<ytti> no complains nothing
<jhass> ytti: don't add crystal/bin to your $PATH, invoke it as bin/crystal
<ytti> make already calls it like that, so that's fine
<jhass> the script tries to drop it from the PATH again, but seems like that fails most of the time still
<ytti> what am i doing wrong - http://p.ip.fi/h8Ao
<jhass> ytti: your libpcl went missing/too old
<ytti> Package: libpcl1-dev
<ytti> Version: 1.6-1
<ytti> is what i have
<ytti> (but i didn't have at compile time)
<ytti> of crystal
<jhass> probably too old, 1.12 here
<jhass> the crystal package comes with a newer one, though as .a
<ytti> nwest debian unstable has :/
<ytti> i guess i need some make optins to use bundled
<jhass> kinda, the thing is an .so later in the path shadows an .a earlier
<jhass> so can you remove the libpcl package or dependency hell?
<ytti> removed
<ytti> [ytti@ytti.fi ~/usr/git/sykemittari]% ~/usr/git/crystal/.build/crystal build --release moi.cr
<ytti> /usr/bin/ld: cannot find -lpcl
<jhass> ytti: now export LIBRARY_PATH="/opt/crystal/embedded/lib"
<ytti> seems like it didn't bundle it, or
<ytti> right
<jhass> iirc
<ytti> hooray
<ytti> [ytti@ytti.fi ~/usr/git/sykemittari]% ./moi
<ytti> request.src = Socket::Addr(@family="AF_INET", @ip_port=40668, @ip_address="127.0.0.1")
<ytti> request.dst = Socket::Addr(@family="AF_INET", @ip_port=1122, @ip_address="127.0.0.1")
<ytti> thanks a bunch
<jhass> yw
<ytti> hmm
<ytti> i wonder if IO should expose ipaddr and peeraddr
<ytti> or if openssl/socket should inherit ipsocket
<jhass> probably more the latter
<jhass> TCPSocket even I guess
<ytti> but wouldn't IO always have two connection points?
<ytti> at least
<ytti> not necessarily IP
<jhass> No?
trapped has joined #crystal-lang
HakanD___ has quit [Quit: Be back later ...]
<ytti> probably no point to do PR, as it's likely not the correct way to do it
<ytti> particlarly the openssl part seems dubious
<ytti> the spec mockups don't support src/dst,
<ytti> created PR anyhow, for discussion
<crystal-gh> [crystal] ytti opened pull request #1947: expose socket ADDR in http (master...expose-socket-addr-in-http) http://git.io/v0sqh
<ytti> i wonder if it would be expensive to just expose whole IO instead
<ytti> request.io.peeraddr.address
waterlink has joined #crystal-lang
dylanmei has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
Virviil_ has joined #crystal-lang
Virviil has quit [Ping timeout: 256 seconds]
Raimondi has joined #crystal-lang
<vikaton> can someone ping me when sdogruyol comes on?
<jhass> vikaton: /msg MemoServ help
<vikaton> thanks
ozra has quit [Ping timeout: 256 seconds]
waterlink has quit [Ping timeout: 264 seconds]
vegai_ is now known as vegai
dylanmei has quit [Quit: ZZZzzz…]
_whitelogger has joined #crystal-lang
victor_lowther__ has joined #crystal-lang
emmanueloga_ has joined #crystal-lang
bougyman_ has joined #crystal-lang
hohenfall has quit [*.net *.split]
avdi has quit [*.net *.split]
victor_lowther_ has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
aemadrid has quit [*.net *.split]
mroth has quit [*.net *.split]
jokke has quit [*.net *.split]
bougyman has quit [*.net *.split]
jhass has quit [*.net *.split]
_whitelogger_ has quit [*.net *.split]
aemadrid_ is now known as aemadrid
victor_lowther__ is now known as victor_lowther_
emmanueloga_ is now known as emmanueloga
bougyman_ is now known as bougyman
avdi_ is now known as avdi
jhass has joined #crystal-lang
jokke has joined #crystal-lang
hohenfall has joined #crystal-lang
mroth has joined #crystal-lang
sdogruyol has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdogruyol has quit []
trapped has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
sdogruyol has joined #crystal-lang
<sdogruyol> hey all
<vikaton> hey sdogruyol
<sdogruyol> /msg MemoServ READ NEW
<sdogruyol> oops
HakanD___ has joined #crystal-lang
bdscvr has joined #crystal-lang
<trapped> what are the crystal packages available in the dist.crystal-lang.org PPA?
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bdscvr has left #crystal-lang ["Leaving"]
matp has joined #crystal-lang
<jhass> crystal
<jhass> trapped: ^
<trapped> i thought there used to be a crystal-nightly one too
<trapped> or was it on homebrew
<trapped> hmmm
<trapped> thanks anyway jhass
Philpax has joined #crystal-lang
<jhass> ?nightly
<DeBot> jhass: Nothing known about nightly.
<jhass> ?nightly=You can find nightlies for Crystal at https://nightly.crystal-lang.org
<DeBot> jhass: Set nightly.
sdogruyol has quit []
<trapped> oh thanks jhass
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
Philpax_ has quit [Ping timeout: 240 seconds]
Philpax_ has joined #crystal-lang
HakanD___ has quit [Quit: Be back later ...]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
waterlink has joined #crystal-lang
dylanmei has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
dylanmei has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]