zaiste has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<drosehn> You want your unix command-line programs to return an exit-code, so that the user can write either pipelines or scripts which can decide want to do based on "success" vs "failure" of your program. And do that without having to parse any outputs (especially since the user may want to re-direct output streams for their own reasons).
<FromGitter>
<watzon> Good news for anyone here using WSL (Windows Subsystem for Linux)
<FromGitter>
<watzon> That is if there is anyone here using WSL...
<FromGitter>
<watzon> I've figured out how to make atom's linters work with binaries installed in WSL, including Crystal https://github.com/watzon/wsl-proxy
<FromGitter>
<picatz> I can appreciate the work even if I might not use it 👏
<FromGitter>
<Qwerp-Derp> which would make `@x` and `@y` both `Int32`
<FromGitter>
<Qwerp-Derp> Just a little syntactic sugar :P
<crystal-gh>
[crystal] Fryguy opened pull request #4798: Expose alt_name for redefine_main (master...alt_name_for_redefine_main) https://git.io/v7rRS
rohitpaulk has joined #crystal-lang
<_tsound>
figured a way to do spinlock, but one last question (sorry for spamming questions)
<_tsound>
How would I include C header files, and do I need to include the source file along with it?
_tsound has quit [Quit: WeeChat 1.9]
_tsound has joined #crystal-lang
_tsound has quit [Client Quit]
_tsound has joined #crystal-lang
snsei has joined #crystal-lang
<_tsound>
lol, wrote a little "kernel", got extremely glad it compiled, and it crashed my computer twice when I tried to run it in virtualbox
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
_tsound has quit [Read error: No route to host]
hightower2 has quit [Ping timeout: 276 seconds]
bradleyd has quit [Remote host closed the connection]
<FromGitter>
<watzon> Ok so as it turns out, `atom-linter` works perfectly with my method, but `atom-crystal` doesn't use `atom-linter` and doesn't work
Renich has quit [Quit: Renich]
<FromGitter>
<Qwerp-Derp> Is there an `elsif`, but for `unless`?
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter>
<watzon> @Qwerp-Derp if you need elsif just use elsif
rohitpaulk has quit [Ping timeout: 248 seconds]
<FromGitter>
<drosehn> what would that be? `elsunless`? 😄
leandrobighetti has joined #crystal-lang
leandrobighetti has quit [Ping timeout: 255 seconds]
<FromGitter>
<GetRektByMe> Pls don't give them any ideas
<FromGitter>
<GetRektByMe> Can't have Crystal becoming a language known for memes like `elsunless`
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
leandrobighetti has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
leandrobighetti has quit [Ping timeout: 255 seconds]
rohitpaulk has quit [Ping timeout: 268 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
alex`` has joined #crystal-lang
alex`` has quit [Ping timeout: 240 seconds]
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
alex`` has joined #crystal-lang
_whitelogger has joined #crystal-lang
Philpax has joined #crystal-lang
tzekid has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest71332
rohitpaulk has quit [Ping timeout: 260 seconds]
tdc has joined #crystal-lang
Guest71332 is now known as Ven``
snsei has quit [Ping timeout: 260 seconds]
<FromGitter>
<LuckyChicken91_twitter> when will crystal probably have the first gui framework?
<FromGitter>
<bew> When someone or some guys decides to make one!
zaiste has joined #crystal-lang
<FromGitter>
<LuckyChicken91_twitter> okay can someone here please decide to make one?
<FromGitter>
<LuckyChicken91_twitter> but how would someone btw begin to make the gui framework?
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vegai>
A new set of languages is gaining ground, notably Crystal (#32), Kotlin (#41), Clojure (#42), Hack (#43) and Julia (#46). Especially Crystal with its jump from position 60 to 32 in one month is doing very well.
<vegai>
Perhaps this went through reddit or somethinh already, but the first time I saw it :)
<vegai>
I know, Tiobe sucks
<vegai>
But people read about it
<FromGitter>
<LuckyChicken91_twitter> wow! crystal is on 32
bmcginty has quit [Ping timeout: 276 seconds]
bmcginty has joined #crystal-lang
Guest27753 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Yxhuvud>
FWIW, #crystal-lang now has more people in it than #ruby-lang had before rails were released.
<Yxhuvud>
The mailing list has less activity though.
<Yxhuvud>
or well, before rails were announced is perhaps a better way to phrase it.
zaiste has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven_ has joined #crystal-lang
<RX14>
interesting stat
<RX14>
how do you know/remember how many people were in it before rails Yxhuvud?
<Yxhuvud>
because I was there.
<Yxhuvud>
and I remember the rails announcement message on the mailing list.
<Yxhuvud>
and you kinda notice when the amount of people go from a tight cozy group of 50 to 400 in a few months..
<RX14>
Yxhuvud, so how did you learn about ruby before rails?
<Yxhuvud>
I found the pickaxe book free to read online
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<LuckyChicken91_twitter> the pickaxe book?
zaiste has joined #crystal-lang
rohitpaulk has joined #crystal-lang
tdc has quit [Ping timeout: 276 seconds]
_whitelogger has joined #crystal-lang
zaiste has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<LuckyChicken91_twitter> is someone here
Ven has joined #crystal-lang
Ven is now known as Guest22119
<FromGitter>
<bararchy> It's a book teaching Ruby coding
http_GK1wmSU has joined #crystal-lang
http_GK1wmSU has left #crystal-lang [#crystal-lang]
<vegai>
I daydreamed about porting the legendary fox book to crystal
<crystal-gh>
[crystal] MakeNowJust opened pull request #4801: Parser: prevent to finish a macro body when {% if/for/begin %} is nested (master...fix/not-finish-macro-control-nested) https://git.io/v7rNr
miketheman has quit [Read error: Connection reset by peer]
leandrobighetti has joined #crystal-lang
leandrobighetti has quit [Remote host closed the connection]
chamar has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
leandrobighetti has joined #crystal-lang
leandrobighetti has quit [Client Quit]
<oprypin>
yes
<FromGitter>
<LuckyChicken91_twitter> how?
<FromGitter>
<bararchy> @LuckyChicken91_twitter Do you need a specific structure ?
<FromGitter>
<bararchy> UUID, hex ? other formats ?
<FromGitter>
<LuckyChicken91_twitter> eehm
<FromGitter>
<LuckyChicken91_twitter> no i dont think i need a specific structure
<FromGitter>
<LuckyChicken91_twitter> oh i thinked its maybe a method. *rands* or something like that
<FromGitter>
<bararchy> rand is like a (random : Int32)
<FromGitter>
<bararchy> as in, it will return an int
<FromGitter>
<LuckyChicken91_twitter> i know
<FromGitter>
<straight-shoota> @bararchy that will create a random string with mostly higher unicode characters which is probably not the best thing in most cases
<FromGitter>
<straight-shoota> could maybe even produce invalid strings, i'm not sure
<FromGitter>
<LuckyChicken91_twitter> so im just getting undefined constant SecureRandom
<FromGitter>
<straight-shoota> you need `require "secure_random"`
<FromGitter>
<LuckyChicken91_twitter> ooh
<FromGitter>
<straight-shoota> and you could try `SecureRandom.base64` - this will produce a more sane string using only printable and visible ASCII characters.
<FromGitter>
<LuckyChicken91_twitter> oh nice
<FromGitter>
<LuckyChicken91_twitter> hmm but at the end of this generated thing theres is always "=="
<FromGitter>
<LuckyChicken91_twitter> why?
<FromGitter>
<straight-shoota> they're padding from base64 encoding. it's not always two `=` it might just be one or none.
<FromGitter>
<straight-shoota> it's not a great method to generate a random string, because it's original purpose is to encode binary data. But it is easy and gives reasonable results
<FromGitter>
<LuckyChicken91_twitter> at me theres always a =
<FromGitter>
<straight-shoota> it depends on length % 3
<FromGitter>
<LuckyChicken91_twitter> okay
<FromGitter>
<LuckyChicken91_twitter> why is there btw no srand in crystal? like in ruby
Guest4921 has quit [Read error: Connection reset by peer]