ponga has quit [Remote host closed the connection]
<asterite>
ozra: I changed it and there was no change :(
<ozra>
asterite: Aha, too bad, I had hopes for that one. It did get used in practise (stupid question)?
<asterite>
Now the difference between rust and cyrstal is the GC, and how rust allocates memory. I think they were using jemalloc, maybe it's better than boehm.
<strcmp1>
there's not manual memory management in rust?
shama has quit [Remote host closed the connection]
<asterite>
In any case, this program isn't very typical, it keeps allocating memory for ever, creating an array of 91_964_701 positions... I don't think many programs out there need to do that
<asterite>
strcmp1: rust memory management is kind of manual
<asterite>
well, you don't need to worry about it, rust takes care about that, but you have to deal with lifetimes, ownership and the borrow checker
blue_deref has joined #crystal-lang
ssvb has quit [Ping timeout: 240 seconds]
ozra has quit [Ping timeout: 246 seconds]
shama has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
<jamie_ca>
strcmp1: biggest choice I'm aware of in rust is that you can force allocations to be heap/stack, which might save a few copies depending on who grabs ownership of the data
ssvb has joined #crystal-lang
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 264 seconds]
havenwood has joined #crystal-lang
ozra has joined #crystal-lang
<ozra>
No, ofc it's atypical, but it's at least indicative of number crunching allocation heavy sw. I'm frankly surprised it didn't speed up. But silly me didn't check bench source and made assumptions. Will have a peek.
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
kulelu88 has joined #crystal-lang
kulelu88 has left #crystal-lang [#crystal-lang]
zamith has quit [Quit: Be back later ...]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 260 seconds]
blue_deref has quit [Quit: bbn]
havenwood has quit [Ping timeout: 260 seconds]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 250 seconds]
waj has joined #crystal-lang
waj has quit [Client Quit]
zamith has joined #crystal-lang
havenwood has joined #crystal-lang
strcmp1 has quit [Quit: Leaving]
zamith has quit [Ping timeout: 250 seconds]
thor77 has quit [Ping timeout: 256 seconds]
strcmp1 has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 256 seconds]
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 260 seconds]
sdogruyol has joined #crystal-lang
sdogruyo_ has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 272 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
sdogruyo_ has quit [Remote host closed the connection]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 250 seconds]
strcmp1 has quit [Ping timeout: 244 seconds]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 240 seconds]
ozra has quit [Quit: Page closed]
ozra has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Client Quit]
elia has joined #crystal-lang
BlaXpirit has joined #crystal-lang
zamith has joined #crystal-lang
zamith_ has joined #crystal-lang
zamith has quit [Ping timeout: 250 seconds]
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 272 seconds]
thor77 has joined #crystal-lang
rossjones has joined #crystal-lang
zamith_ has quit [Quit: Be back later ...]
leafybasil has quit [Remote host closed the connection]
Mo0O has quit [Ping timeout: 244 seconds]
zamith_ has joined #crystal-lang
lokulin has quit [Ping timeout: 244 seconds]
zamith_ has quit [Client Quit]
zamith_ has joined #crystal-lang
zamith__ has joined #crystal-lang
leafybasil has joined #crystal-lang
zamith_ has quit [Ping timeout: 246 seconds]
dbackeus has joined #crystal-lang
ssvb_ has joined #crystal-lang
ssvb has quit [Ping timeout: 244 seconds]
<dbackeus>
what difference is there to build in "release" mode vs non release mode?
lokulin has joined #crystal-lang
<BlaXpirit>
dbackeus, release has optimizations
<BlaXpirit>
in some languages debug mode prevents some crashes and gives more info about them, more runtime checks, while release sacrifices safety for performance
<BlaXpirit>
dbackeus, i dont know details about release mode in crystal, but the gist is it's supposed to be faster, but you're not supposed to use it during development
<dbackeus>
right
<dbackeus>
guess I'll have to try using it and see if the benchmarks show any difference
oal has quit [*.net *.split]
jhass has quit [*.net *.split]
ryanf has quit [*.net *.split]
adam12 is now known as adam
adam is now known as Guest63985
Mo0O has joined #crystal-lang
oal has joined #crystal-lang
jhass has joined #crystal-lang
ryanf has joined #crystal-lang
jbye has quit [Ping timeout: 272 seconds]
jbye has joined #crystal-lang
ssvb_ has quit [Ping timeout: 256 seconds]
dbackeus has quit [Remote host closed the connection]
zamith__ has quit [Quit: Be back later ...]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 246 seconds]
blassin has joined #crystal-lang
<blassin>
hey!
<blassin>
is there any code coverage tool for Crystal?
<blassin>
the only mention I see in the code is in the .gitignore :D
<BlaXpirit>
hm i dont thnk so
<blassin>
ok, thanks!
NeverDie has joined #crystal-lang
blassin has quit [Quit: Page closed]
dbackeus has joined #crystal-lang
<dbackeus>
is there anything similar to .freeze in Crystal to make objects immutable?
<BlaXpirit>
dbackeus, what is immutable?
<BlaXpirit>
u can always just not define setters
<dbackeus>
say you have an array and you want to make sure it doesn't get it's contents changed
<dbackeus>
in ruby you would freeze it
<BlaXpirit>
never heard of this
<BlaXpirit>
u can make a wrapper that only defines []
<BlaXpirit>
probably best make it a struct, not a class
<dbackeus>
yeah that probably makes sense
<dbackeus>
mama mia, I almost just ate a wasp sitting inside my can of Fanta
<dbackeus>
luckily he appeared more dazed than pissed off after I spat him out ;)
<crystal-gh>
[crystal] asterite closed pull request #1074: Adds a working version of the format (%) method on strings (master...string_format) http://git.io/vO3Dp
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<crystal-gh>
[crystal] asterite pushed 2 new commits to master: http://git.io/vOxee
<crystal-gh>
crystal/master ec34ac6 Ary Borenszweig: Fixed #1121: dont't skip assignment when used in combination with `is_a?`
<crystal-gh>
crystal/master 7b0db03 Ary Borenszweig: Added `%<...>` to String#%, which allows to specify formatting options
blue_deref has quit [Quit: bbn]
luislavena has quit [Remote host closed the connection]
luislavena has joined #crystal-lang
ozra has quit [Ping timeout: 246 seconds]
luislavena has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
shama has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
luislavena has joined #crystal-lang
jwaldrip has joined #crystal-lang
luislavena has quit [Ping timeout: 260 seconds]
elia has joined #crystal-lang
jwaldrip has quit [Ping timeout: 250 seconds]
jwaldrip has joined #crystal-lang
luislavena has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 256 seconds]
jwaldrip has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 256 seconds]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 256 seconds]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 244 seconds]
elia has quit [Quit: Computer has gone to sleep.]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 240 seconds]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 260 seconds]
jwaldrip has joined #crystal-lang
elia has joined #crystal-lang
jwaldrip has quit [Ping timeout: 264 seconds]
jwaldrip has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 3 new commits to master: http://git.io/vOpCe
<crystal-gh>
crystal/master 8ef990a Ary Borenszweig: Improved error message of `expect_raises`
<crystal-gh>
crystal/master 8da376b Ary Borenszweig: Fixed #1120: check that Proc and Tuple arguments are types, give error when not
<crystal-gh>
crystal/master 6e4b673 Ary Borenszweig: Added `Int#unsafe_shl` and `Int#unsafe_shr` so we can implement safe versions of `<<` and `>>` on top. Related to #305
blue_deref has joined #crystal-lang
<travis-ci>
manastech/crystal#6e4b673 (master - Added `Int#unsafe_shl` and `Int#unsafe_shr` so we can implement safe versions of `<<` and `>>` on top. Related to #305): The build was broken. https://travis-ci.org/manastech/crystal/builds/74611039
jwaldrip has quit [Ping timeout: 260 seconds]
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vOplV
<crystal-gh>
crystal/master 30e2748 Ary Borenszweig: Missing commented code from the previous commit
dbackeus has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
dbackeus has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
luislavena has quit []
just_this_guy has joined #crystal-lang
<just_this_guy>
hi, is there a Crystal equivalent to RUBY_PLATFORM?
<jhass>
no
<jhass>
though you can do something like
<just_this_guy>
or a list of all predefined CONSTANTS in Crystal?