xaxisx has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
jonst has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<jonst>
hey, I'm struggling to get the compiler to allow me to initialize a Hash with value type Hash - I can do {"blah" => {"blah2" => "blah3"}} but not Hash<String, Hash<String, String>> - or - {} of String => ({} of String => String). any advice?
snsei has quit [Ping timeout: 246 seconds]
<FromGitter>
<sdogruyol> of Hash(String,String)
<jonst>
thanks!
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #crystal-lang
Cyrus has quit [Ping timeout: 240 seconds]
jonst has quit [Quit: Page closed]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #crystal-lang
splitty_ has quit [Ping timeout: 240 seconds]
mark_66 has joined #crystal-lang
<FromGitter>
<bew> @elorest about indentation in macros, you mean when using `{% debug() %}` ? If so, I'm not sure it's that easy, because that debug macro statement could be anywhere, and the output code is not always valid (and the formatter can only format valid code)
<FromGitter>
<bew> s/of/when
<FromGitter>
<bew> maybe the debug should be indented when its valid code, and left as is, when invalid?
<RX14->
and so many things are being totally elided
<RX14->
I need to port JMH's blackhole class
RX14- is now known as RX14
<FromGitter>
<mverzilli> maybe it's not worth your time :). we can't be on top of just any person who decides to go ahead and write a microbenchmark (of course TechEmpower is different)
<RX14>
yeah but it doesn't take long
<RX14>
plus i'm halfway through now
<RX14>
ok, more than half lol
<FromGitter>
<mverzilli> lol (a whole one)
<FromGitter>
<sdogruyol> :D
<RX14>
i'd like to do some automation around contribution and PRs as well
<RX14>
first study what swift/go/rust do in their contribution workflow
<RX14>
and what ideas we could apply to crystal
<FromGitter>
<sdogruyol> ah
<FromGitter>
<sdogruyol> i really like rustbot
<RX14>
i'd like something that automatically merged fixup! commits
<RX14>
because with github UI you either leave them or squash the whole PR
<RX14>
if you want to fixup you need to manually merge using git rebase -i --autosquash master
<RX14>
it's a shame that fixup! commits aren't the standard when they're so useful (and standard in git)
<Yxhuvud>
I tend to just forcepush to the pr branch.
<TheGillies>
whats a fixup commit?
<RX14>
that has quite a few downsides though
<TheGillies>
like just an interactive rebase?
<Papierkorb>
What Yxhuvud said. I use them freely in PRs
<RX14>
firstly, reviewers can't see how the PR evolved
<RX14>
and what's new since they last reviewed
<RX14>
second, no force pushes 9but that's minor)
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #crystal-lang
<RX14>
TheGillies, it's a commit which "fixes up" an existing commit
<RX14>
you can use git commit --fixup=<sha> to create one
<RX14>
and then git rebase -i --autosquash to automatically squash them
<RX14>
i love them because otherwise you essentially have to review the whole PR again from the start because you're never entirely sure what changed since you last reviewed all the changes
<Yxhuvud>
for bigger tasks I keep the fixup until joining them before the merge. And I tend to not squash commits unless they are fixups- I do rebase followed by no-ff commits to get a history that is both readable and have merges.
wontruefree has joined #crystal-lang
<FromGitter>
<mgarciaisaia> Does anyone know if LLVM 3.8(.1) has any flag to make it *not* depend on libtinfo?
<RX14>
can you list cmake flags?
<RX14>
i did see a list of cmake options fort llvm somewhere
<FromGitter>
<mgarciaisaia> Just found a `cmake -LAH` command - but doesn't seem to list anything tinfo or curses related. I don't really know `cmake`, either.
sz0 has joined #crystal-lang
swarleh has joined #crystal-lang
wontruefree has quit [Quit: Is gone... Just plain old gone]
<RX14>
that 1 gist changed my mind about omnibus from "useless shellscript replacement" to "actually pretty useful"
<swarleh>
is it intended that when using Char::Reader, calling #size moves the position to the end of the string?
zipR4ND has quit [Ping timeout: 246 seconds]
wontruefree has joined #crystal-lang
<swarleh>
is it intended that when using Char::Reader, calling #size moves the position to the end of the string?
<swarleh>
mt
<swarleh>
mt
swarleh has quit [Quit: Leaving]
<RX14>
swarleh, ?
wontruefree has quit [Quit: Is gone... Just plain old gone]
Aytan72 has joined #crystal-lang
<FromGitter>
<mgarciaisaia> @RX14 yeah - it seems it actually does *something else* than just calling `make`
<RX14>
oh yeah lol
<RX14>
cmake generates makefiles
<RX14>
or did I misunderstand you
wontruefree has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
wontruefree has quit [Client Quit]
wontruefree has joined #crystal-lang
<FromGitter>
<mgarciaisaia> No, I mean - it seams `omnibus` does *more than* just calling `make`
<FromGitter>
<mgarciaisaia> Re "useless shellscript replacement"