<BlaXpirit>
i didn't run into this problem by accident
<BlaXpirit>
i studied the code when writing deque imp[lementation
waj has joined #crystal-lang
Ven has joined #crystal-lang
waj has quit [Ping timeout: 244 seconds]
Netfeed has quit [Quit: WeeChat 0.3.0]
Netfeed has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
Netfeed has quit [Quit: WeeChat 0.4.2]
Netfeed has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zipR4ND has joined #crystal-lang
zipR4ND has quit [Ping timeout: 265 seconds]
ssvb has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
sardaukar has quit [Ping timeout: 256 seconds]
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]
sardaukar has joined #crystal-lang
strcmp1 has joined #crystal-lang
waj has joined #crystal-lang
kostya has joined #crystal-lang
waj has quit [Ping timeout: 252 seconds]
dbackeus has quit []
oal has quit [Ping timeout: 245 seconds]
sailorswift has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flou has joined #crystal-lang
daphee has joined #crystal-lang
havenwood has joined #crystal-lang
<daphee>
Hi, I expect this: http://carc.in/#/r/br7 to print "test, false, true" and find the output "test, true, false" quite unintuitive. What is going on there?
<BlaXpirit>
daphee, u must test a:"test", c:"true"
<jhass>
daphee: http://carc.in/#/r/br8 no keyword arguments for required parameters yet, a="foo" is just an assignment
<BlaXpirit>
because... yeah^
<BlaXpirit>
wait, jhass, so now why doesn't that work?
Ven has joined #crystal-lang
<jhass>
because we don't have keyword arguments for required parameters yet
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sadin has quit [Quit: leaving]
kostya has quit [Remote host closed the connection]
shama has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 246 seconds]
zamith has joined #crystal-lang
Raimondii is now known as Raimondi
<crystal-gh>
[crystal] PragTob opened pull request #1212: Sort enumerable methods (+ new specs) (master...sort-enumerable-methods) http://git.io/v3jK5
<BlaXpirit>
what, is there no opposite to succ ???
<BlaXpirit>
but I want Range.reverse_each :(
<jhass>
in Ruby it's pred
<BlaXpirit>
why doesnt crystal have it?
<jhass>
because nobody implemented it?
<jhass>
you should be used to that answer by now :P
<BlaXpirit>
i mean... if someone was implementing succ, why not make pred
<jhass>
because the usecases for it are lot rarer and nobody thought of it
<BlaXpirit>
oh i think there are only 3 succ methods total
<BlaXpirit>
should be easy to make pred
<BlaXpirit>
and then i also implement Range.reverse_each
<BlaXpirit>
well i actually implemented it already
zamith has quit [Quit: Be back later ...]
havenwood has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 250 seconds]
Raimondii is now known as Raimondi
<BlaXpirit>
hm, can't build Crystal on Ubuntu. undefined reference to `LLVMInitializeInstrumentation' and a ton of other "undefined reference to `LLVM...'"
<BlaXpirit>
LLVM is installed
<BlaXpirit>
crystal from repository is instaled
<BlaXpirit>
this is Ubuntu 14.04
<jhass>
BlaXpirit: which version of LLVM?
<BlaXpirit>
i dont even know
<jhass>
llvm-config -v or something iirc
<BlaXpirit>
jhass, 3.4
<jhass>
that's too old, we'll need 3.5 or later
<BlaXpirit>
jhass, good news, there is a package "llvm-3.5" :D
<BlaXpirit>
lol, that works like a charm even for `make`
<BlaXpirit>
not for `make spec` though
<BlaXpirit>
env LD_LIBRARY_PATH=/opt/crystal/embedded/lib/ LIBRARY_PATH=/opt/crystal/embedded/lib/ make spec this seems to be taking a long time without failing
<BlaXpirit>
maybe it will be successful
<BlaXpirit>
so it gave an error so huge that i had to output to a file to see it /usr/bin/ld: cannot find -lyaml
<jhass>
time to get libyaml! :P
<jhass>
?libraries
<DeBot>
jhass: Nothing known about libraries.
<jhass>
mmh
<BlaXpirit>
yeah, it was fun hunting these libs one by one
<jhass>
cina: the compiler would need to track all possible values in the arrays with distinct types per position in the array to generate the right call
<jhass>
keep in mind that your code isn't interpreted as it's run like in Ruby
<cina>
what if all the elements are of the same type? e.g. arr = [] of String
<jhass>
the compiler still would need to track the size
<jhass>
which might not even be constant at a given point in the code
<cina>
I see
<jhass>
because things are inserted on conditions only available at runtime
<cina>
thanks for the explanation!
<jhass>
yw
<jhass>
so it works for tuples because they're limited in ways that makes all that possible for the compiler, known and constant size and known types per position
<crystal-gh>
[crystal] BlaXpirit opened pull request #1215: Add `pred` operation (opposite to `succ`) (master...pred) http://git.io/vselS
<BlaXpirit>
now I doubt if Range.reverse_each is something desirable, because Ruby doesn't have it\
<jhass>
no it makes sense for Crystal
<jhass>
Ruby took ages to even get reverse_each :P
<jhass>
for Array
<BlaXpirit>
jhass, how does it work if i base a new pull request on this branch which hasn't been merged?
kulelu88 has joined #crystal-lang
<BlaXpirit>
i mean.. it would probably have those commits included as well, but what happens after they get merged
<jhass>
BlaXpirit: if you make sure it stays the same commit (no rebase) GH should update as the former is merged
<BlaXpirit>
nice
<jhass>
(and if asterite doesn't cherry pick or something ;) )
<jhass>
but if that doesn't happen just rebase them out then (update your master, git rebase -i your second branch onto it, throwing the duplicates out)