<FromGitter>
<dscottboggs_gitlab> I'm so excited that this is a thing holy shit
<FromGitter>
<watzon> Hopefully I'll be introducing a github pages hosted version of the docs later today
<FromGitter>
<dscottboggs_gitlab> shouldn't `Cadmium::Inflectors::PresentTenseVerb.new.singularize("become")` be "becomes" not "became"?
<FromGitter>
<Blacksmoke16> *grammar*
<FromGitter>
<watzon> I'm fairly certain "became" is correct
<FromGitter>
<dscottboggs_gitlab> ...welp. ok
rohitpaulk has joined #crystal-lang
<beepdog>
fish shell for the win!
<FromGitter>
<dscottboggs_gitlab> fish shell is nice but I didn't feel like learning yet *another* scripting language so I'm sticking with ZSH for now since I know POSIX SH decently.
<FromGitter>
<dscottboggs_gitlab> if I'm setting up a computer for a noob to linux though I always install fish and set it as the default shell
<beepdog>
TBH, I still write bash scripts
<beepdog>
but I love having fish for my primary shell
<FromGitter>
<watzon> Oh yeah I forgot you asked about my zsh theme @dscottboggs_gitlab. It's `robbyrussel` from oh-my-zsh
<FromGitter>
<dscottboggs_gitlab> really?
<FromGitter>
<dscottboggs_gitlab> huh.
<FromGitter>
<dscottboggs_gitlab> I thought it looked familiar but... huh. I thought I remembered it being more plain. I should look through the themes again I think.
<FromGitter>
<watzon> I'm also using the Numix-Frost xfce theme with the xfce-4 terminal
<FromGitter>
<watzon> Numix-Frost is where the colors came from I believe
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo28 has quit [Ping timeout: 248 seconds]
<FromGitter>
<watzon> Anyone know if there's an easy way to get the bitsize of an Array?
<FromGitter>
<Blacksmoke16> bytesize?
<FromGitter>
<watzon> I suppose that would work too
<FromGitter>
<watzon> I was thinking size in bits, but bytesize could always be divided by 8
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter>
<Blacksmoke16> prob but i dont have any ideas atm
<FromGitter>
<watzon> I'm surprised a method doesn't exist
<FromGitter>
<watzon> But I cant find one in the docs
<FromGitter>
<Blacksmoke16> im sure there is one, i just dont know where :p
<FromGitter>
<watzon> Those are always going to be 8 and 24 no matter what the array contains. I need to be able to do ⏎ ⏎ ```arr = [12_u64, 42_u64] ⏎ puts arr.bitsize``` ⏎ ⏎ and have it print 128 since the array contains two values of 64 bits each [https://gitter.im/crystal-lang/crystal?at=5cd24fe60824230a77f8d03b]
<FromGitter>
<bew> @watzon the js version uses signed integers, so `x << (32 - len)` is negative
<FromGitter>
<vladfaust> @bew confirming
<FromGitter>
<watzon> @bew how would I fix it then? Changing the UInt64 to a normal Int64 doesn't work.
<FromGitter>
<bew> Yeah i figured.. I'm on phone right now, but i'd say try to see the types of the js version, what are the wanted results, or fully understand the code and redo it in Crystal (maybe a bit differently)
<FromGitter>
<bew> (btw the repls are impossible to use with my phone, the auto completion gets in the way so much and my keyboard is lost :/)
<FromGitter>
<watzon> The JavaScript version returns `1097364144128` and the Crystal version returns `1101659111424`
<FromGitter>
<watzon> I just don't understand. I've been scratching my head for hours lol
<FromGitter>
<vladfaust> @watzon I advise you to split the JS code into logical blocks and understand what each of them does and experiment with inputs and outputs
<FromGitter>
<watzon> I've tried that haha. You wouldn't think that such a small block of code would be so hard to make work correctly
<FromGitter>
<vladfaust> Indeed. I'm dumb in numbers manipulation, so I wouldn't make it work either
* FromGitter
* vladfaust doesn't know numbers, but does frameworks
<FromGitter>
<vladfaust> A little thing to share. I've setup onyx CI on Travis so it triggers dependent builds. This way I'm more confident about the changes
<FromGitter>
<MrSorcus> Hi there. ⏎ `LibC::VaList` in `fun` is not usable?
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 258 seconds]
_whitelogger has joined #crystal-lang
<FromGitter>
<bew> Usable how?
<FromGitter>
<vladfaust> Experimenting with `Thread`s. https://carc.in/#/r/6vf8 works on local machine, but a simple task hangs forever, although putting `task completed` two times -- https://carc.in/#/r/6vfb
<FromGitter>
<vladfaust> `Channel#send` doesn't work in this case for some reason
<FromGitter>
<jwoertink> I love that @Sija will comment in the future about the times being wrong in the past
<FromGitter>
<jwoertink> 😂
rohitpaulk has quit [Remote host closed the connection]
return0e_ has quit [Remote host closed the connection]
olbat has joined #crystal-lang
lucasb has quit [Quit: Connection closed for inactivity]
alexherbo2 has joined #crystal-lang
<FromGitter>
<watzon> Just sent in my resume to Manas :D
jeremycw has quit [Ping timeout: 244 seconds]
<FromGitter>
<bew> @watzon really? Do you apply for an open position?
<FromGitter>
<watzon> @bew nothing specific. I just sent in my resume and cover letter to the jobs email.
rohitpaulk has joined #crystal-lang
<FromGitter>
<bew> Oh ok, nice!
alexherbo20 has joined #crystal-lang
dostoyevsky has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Ping timeout: 250 seconds]
dostoyevsky has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter>
<mwlang> Greetings, folks. I'm looking how to write Crystal bindings for Ruby. I found this: https://www.slideshare.net/AnnaKazakova/how-to-write-ruby-extensions-with-crystal and followed his examples in the slides, but it doesn't work when it comes to compiling with make because there is no /usr/local/opt/crystal/embedded/lib in the HomeBrew installed crystal folder he's referencing.
<FromGitter>
<mwlang> so...google-fu failing me, are there other blogs or articles out there more recent and documenting how to write libraries in Crystal for Ruby consumption?
<FromGitter>
<straight-shoota> > I love that @Sija will comment in the future about the times being wrong in the past ⏎ ⏎ There is something really strange going on with Github's clocks today... But IIRC this has happened before some time ago
<FromGitter>
<mwlang> @straight-shoota well, I did find /usr/local/opt/crystal/src/lib_c and /usr/local/opt/crystal/src/lib_z
<FromGitter>
<mwlang> upgraded from 0.27 to 0.28 and now I have embedded folder.
<FromGitter>
<mwlang> seems to be finding the libraries now, but not the x86_64 architecture.
<FromGitter>
<mwlang> spoke too soon, I reckon. The embedded folder is present, but it's empty.
<FromGitter>
<mwlang> perhaps I need to install with homebrew with flags to get it to populate this folder?
<FromGitter>
<straight-shoota> Crystal 0.28.0 needs a custom build libgc.a which should be distributed with the compiler
<FromGitter>
<straight-shoota> typical path for this would be `$(dirname $(which crystal))/../lib/crystal/lib`
<FromGitter>
<straight-shoota> libevent, libiconv, libcpcre should be installed on your system as dependencies of the crystal package. Maybe you just need to point cc to the correct location?
<FromGitter>
<straight-shoota> It might also be that you're using cc somehow incorrectly here, I don't know.
<FromGitter>
<straight-shoota> As long as you have a `cr_math.o` it's not Crystal's fault though 😆
<FromGitter>
<straight-shoota> But instead of `--cross-compile` you should probably better use `--emit obj`
<FromGitter>
<straight-shoota> Probably doesn't make a difference, but better expresses the intent