RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.2 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <bcardiff> @piedoom it's because initially the website was hosted in github pages and it doesn't allow plugins like jekyll-haml. And we prefer to write haml than html. It could change now for sure, and remove the build rake tasks
<travis-ci> crystal-lang/crystal#d657b9a (master - Fixed #3332: incorrect cast placement of `to_u32`): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/161757499
<DeBot> https://github.com/crystal-lang/crystal/issues/3332 (GC_generic_malloc_many sigfault)
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
Philpax has quit [Ping timeout: 276 seconds]
Philpax has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
Cyrus has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Philpax has quit [Ping timeout: 276 seconds]
soveran has quit [Remote host closed the connection]
sandelius has joined #crystal-lang
mark_66 has joined #crystal-lang
A124 has quit [Ping timeout: 255 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
sandelius has joined #crystal-lang
ponga has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
bjz has quit [Read error: Connection reset by peer]
bjz 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
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
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vi5Om
<crystal-gh> crystal/master 1fff36d O_o: fix base64 decode bug (#3337)
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vi5Os
<crystal-gh> crystal/master 26abbe9 Ary Borenszweig: Fixed #3339: incorrect type for unpacked block argument after block
<crystal-gh> crystal/master 85f99ae Ary Borenszweig: Missing function LibGC.size
<travis-ci> crystal-lang/crystal#1fff36d (master - fix base64 decode bug (#3337)): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/161886135
<travis-ci> crystal-lang/crystal#26abbe9 (master - Fixed #3339: incorrect type for unpacked block argument after block): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/161886238
<DeBot> https://github.com/crystal-lang/crystal/issues/3339 (variables of the same name used inside a block and outside a block causing a compiler error)
pawnbox has joined #crystal-lang
<FromGitter> <Val> Does *Crystal* handle virtual filesystems unlike others ? ⏎ ⏎ ```File.read("/proc/cpuinfo") # => ""``` [https://gitter.im/crystal-lang/crystal?at=57e3cde3aabc89857fc32b93]
<BlaXpirit> hm that's an interesting find
<BlaXpirit> >> File.open("/proc/cpuinfo").gets_to_end
<DeBot> BlaXpirit: # => "processor\t: 0\nvendor_id\t: GenuineIntel\ncpu family\t: 15\nmodel\t\t: 6\nmodel name\t: Common 32-bit KVM processor\nstepping\t: 1\nmicrocode\t: 0x1\ncpu MHz\t\t: 3411.482\ncache size\t: 4096 KB\nphysical id\t: 0\nsiblings\t: 1\ncore id\t\t: 0\ncpu cores\t: 1\napicid\t\t: 0\ninitial apicid\t: 0\nfdiv_bug\t: no\nf00f_bug\t: no\ncoma_bug\t: no ... - https://carc.in/#/r/1aiz
<FromGitter> <Val> I just wanted to get cores count to manage parallelism...
<BlaXpirit> use this as a workaround and feel free to investigate why these behave differently and maybe raise an issue
<FromGitter> <Val> BlaXpirit: Ok, thx
<FromGitter> <Val> I'll take a look
<BlaXpirit> Val, um probably don't use this actual code. the file needs to be closed, or better use the block version of File.open
<FromGitter> <Val> Ok
<FromGitter> <Val> @BlaXpirit : it comes from https://github.com/Val/crystal/blob/master/src/file.cr#L385 because the size of the file is `0`: ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57e3d31adf21a757301adf77]
<BlaXpirit> yeah makes sense
<BlaXpirit> who knows, arguably maybe this is even the correct behavior
<BlaXpirit> in that case it needs a remark in the docs
<BlaXpirit> nah this can't be right
<FromGitter> <Val> ```ruby -e "puts File.read('/proc/cpuinfo').size" ⏎ 8176``` [https://gitter.im/crystal-lang/crystal?at=57e3d377c8af41d45f38c6b2]
<BlaXpirit> first of all it could be a race condition
<BlaXpirit> reading the size, later reading the file
<BlaXpirit> the file may even have been truncated by that time
<FromGitter> <Val> Why a file couldn't be read 'till the end if encoding is not available ?
<FromGitter> <Val> It's the purpose of `File.read` method ?
<FromGitter> <Val> hum... in case of a binary file it may help
<FromGitter> <Val> forget it
trapped has joined #crystal-lang
Philpax has quit [Ping timeout: 255 seconds]
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
mgarciaisaia has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
mgarciaisaia has left #crystal-lang [#crystal-lang]
A124 has joined #crystal-lang
<FromGitter> <raydf> RX14, Is there a shard for this PR? https://github.com/crystal-lang/crystal/pull/3243?. I need an uploading behaviour in a webapp :).
dhk has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<RX14> @raydf, no
<RX14> but there should be
<FromGitter> <raydf> ok, thanks
<RX14> @raydf, i'll make one tonight
<FromGitter> <raydf> Thanks RX14, that would help me a lot :).
Oliphaunte has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
dhk_ has joined #crystal-lang
dhk has quit [Ping timeout: 265 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
<travis-ci> crystal-lang/crystal#4fad8f4 (test/fix-travis - Use latest Docker image in Travis build): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/161964721
Oliphaunte has joined #crystal-lang
dhk_ has quit [Ping timeout: 265 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
A124 has quit [Ping timeout: 244 seconds]
dhk_ has joined #crystal-lang
A124 has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has quit [Remote host closed the connection]
<crystal-gh> [crystal] waj pushed 1 new commit to master: https://git.io/vidWm
<crystal-gh> crystal/master 50cee13 Juan Wajnerman: Use latest Docker image in Travis build
dhk_ has quit [Quit: Leaving]
Oliphaunte has quit []
nnn_ has joined #crystal-lang
nnn_ has quit [Client Quit]
<travis-ci> crystal-lang/crystal#50cee13 (master - Use latest Docker image in Travis build): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/161996604
kulelu88 has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
<sp4rrow> what does weakref do in crystal lang?
<BlaXpirit> sp4rrow, keeps a reference to the object without keeping it from being collected by GC
<BlaXpirit> i can't even make an example for it
<sp4rrow> thanks I will have to check it out
<sp4rrow> is this to keep things out of global namespaces or something ?
<sp4rrow> also would this put objects in being of danger of never being garbage collected?
<BlaXpirit> sp4rrow, i think you missed the point
<RX14> BlaXpirit, i think weak refs are only collected when there's a big allocation
<RX14> i.e. it needs the memory
<RX14> if weakr efs were collected just for being there they would be quite pointless
<BlaXpirit> ...
johnjansen has joined #crystal-lang
pawnbox has joined #crystal-lang
johnjansen has quit [Client Quit]
johnjansen has joined #crystal-lang
<BlaXpirit> can we just get a reference counting GC please... this one is so terrible and unpredictable
<Papierkorb> They would not be "pointless" in that case. Far from it.
pawnbox_ has joined #crystal-lang
<Papierkorb> E.g., a library which uses weak refs to be 'notified' when an external object is no longer referenced anywhere else and thus cleans up other data structures
<Papierkorb> BlaXpirit: Would be great, much easier to port too :D
pawnbox has quit [Read error: Connection reset by peer]
<sp4rrow> interesting
<sp4rrow> thanks
Francy has joined #crystal-lang
<Francy> !kick Francy
Francy is now known as Francy02
Francy02 has left #crystal-lang [#crystal-lang]
johnjansen has quit [Quit: johnjansen]
<RX14> BlaXpirit, why should a GC be predictable?
<RX14> they exist to trade off accuracy with memory usage
<RX14> and speed
sp4rrow has quit [*.net *.split]
pabs has quit [*.net *.split]
Raimondi has quit [*.net *.split]
Liothen has quit [*.net *.split]
tliff has quit [*.net *.split]
justinmcp has quit [*.net *.split]
x0f has quit [*.net *.split]
bazaar has quit [*.net *.split]
matp has quit [*.net *.split]
DeBot has quit [*.net *.split]
jfontan has quit [*.net *.split]
avdi has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
badeball has quit [*.net *.split]
buggs has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
mjblack has quit [*.net *.split]
trajing has quit [*.net *.split]
kulelu88 has quit [*.net *.split]
onionhammer has quit [*.net *.split]
swav has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
jamie_ca_ has quit [*.net *.split]
FromGitter has quit [*.net *.split]
foca has quit [*.net *.split]
A124 has quit [*.net *.split]
ssvb has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
jhass has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
mroth has quit [*.net *.split]
aarongodin has quit [*.net *.split]
adam12 has quit [*.net *.split]
Davy_CC has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
jokke has quit [*.net *.split]
avdi has joined #crystal-lang
DeBot has joined #crystal-lang
jfontan has joined #crystal-lang
emmanueloga has joined #crystal-lang
badeball has joined #crystal-lang
daemonwrangler has joined #crystal-lang
matp has joined #crystal-lang
buggs has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
trajing has joined #crystal-lang
mjblack has joined #crystal-lang
Majost has quit [Ping timeout: 265 seconds]
aarongodin has joined #crystal-lang
adam12 has joined #crystal-lang
jokke has joined #crystal-lang
Kilo`byte has joined #crystal-lang
Yxhuvud has joined #crystal-lang
greenbigfrog has joined #crystal-lang
Davy_CC has joined #crystal-lang
[spoiler] has joined #crystal-lang
jhass has joined #crystal-lang
ssvb has joined #crystal-lang
A124 has joined #crystal-lang
danzilio has quit [Ping timeout: 250 seconds]
avdi has quit [Ping timeout: 252 seconds]
daemonwrangler has quit [Ping timeout: 252 seconds]
guilleiguaran__ has quit [Ping timeout: 252 seconds]
sp4rrow has joined #crystal-lang
Raimondi has joined #crystal-lang
Liothen has joined #crystal-lang
tliff has joined #crystal-lang
pabs has joined #crystal-lang
x0f has joined #crystal-lang
justinmcp has joined #crystal-lang
bazaar has joined #crystal-lang
emmanueloga has quit [Ping timeout: 248 seconds]
FromGitter has joined #crystal-lang
foca has joined #crystal-lang
jamie_ca_ has joined #crystal-lang
swav has joined #crystal-lang
BlaXpirit has joined #crystal-lang
onionhammer has joined #crystal-lang
kulelu88 has joined #crystal-lang
johnjansen has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Majost has joined #crystal-lang
avdi has joined #crystal-lang
danzilio has joined #crystal-lang
tomchapin has joined #crystal-lang
tomchapin has quit [Client Quit]
guilleiguaran__ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
emmanueloga has joined #crystal-lang
mroth has joined #crystal-lang
daemonwrangler has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnjansen has quit [Quit: johnjansen]
Philpax has joined #crystal-lang
ponga has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]