RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<travis-ci> crystal-lang/crystal#161bea6 (release/0.24 - Merge branch 'ci/nightly' into release/0.24): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/350585700
<FromGitter> <watzon> Yeah it doesn't look like it provides that functionality
<FromGitter> <watzon> I just took a look through the source
<crystal-gh> [crystal] kostya opened pull request #5788: add *.dwarf to auto generated .gitignore (master...dwarf_gitignore) https://git.io/vANR0
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <straight-shoota> But transliteration is part of CLDR, just seems not yet implemented in the shard
hightower2 has joined #crystal-lang
hightower has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#4f9ed8d (release/0.24 - Update changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/350645129
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 240 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter> <watzon> What's the crystal way to do this `[8216].pack("U")`
<FromGitter> <watzon> I think that's basically just a codepoint to string
<FromGitter> <bew> to string or to char?
<FromGitter> <watzon> Either really
<FromGitter> <watzon> I guess there is `unsafe_chr`
<FromGitter> <watzon> Not exactly the same thing though
<FromGitter> <bew> yes was thinking about that
<FromGitter> <watzon> Or I guess there's also just `chr`
<FromGitter> <bew> yes right
<FromGitter> <jwaldrip> is there a TAR package or shard for Crystal?
<FromGitter> <bew> no, iirc asterite tried an implementation, then discarded it, and later someone tried to take its work, then I don't know where it is now
sz0 has joined #crystal-lang
qard has joined #crystal-lang
qard_ has joined #crystal-lang
qard_ has quit [Quit: qard_]
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
qard has quit [Remote host closed the connection]
qard has joined #crystal-lang
qard has quit [Client Quit]
<FromGitter> <watzon> Ok here's an issue. Apparently the compiler doesn't handle arrays with over 40,000 entries very well during compilation
<FromGitter> <watzon> https://github.com/watzon/sterile/blob/master/src/sterile/data/codepoints_data.cr when this code is used it takes a very long time to compile
<FromGitter> <watzon> Just doing this ⏎ ⏎ ```require "sterile" ⏎ p "šţɽĩɳģ".transliterate``` ⏎ ⏎ combined with `crystal run ./file.cr` freezes my computer. The file will compile if I use compile instead of run, but it takes a good 15 - 20 seconds. [https://gitter.im/crystal-lang/crystal?at=5aa0d5356f8b4b994600e135]
rohitpaulk has joined #crystal-lang
<FromGitter> <bew> whyyy are you doing this?
<FromGitter> <vlazar> I've noticed a similar issue with big hashes. Compiling was painfully slow with extra 1.5Gb of RAM consumed.
_whitelogger has joined #crystal-lang
_whitelogger_ has quit [Remote host closed the connection]
<FromGitter> <watzon> Seems like a compiler issue
<FromGitter> <watzon> In some cases there really isn't a way around it
<FromGitter> <bararchy> How would that look in Crystal ? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5aa0ec130a1614b712f63594]
<FromGitter> <bararchy> as in, why isn't this a regular struct declaration? is that a macro or something ?
<FromGitter> <vlazar> @watzon Yes, your case is more valid, than was mine. I was experimenting with a ways to make a single binary with embedded data. Pre-compiling generated hashes was too slow. Loading in runtime works much better for me.
<FromGitter> <bararchy> Can I just translate it to? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5aa0ed14458cbde5570c9027]
<FromGitter> <bew> Yes, and you just add `@[Packed]` above it
sz0 has quit [Quit: Connection closed for inactivity]
flaviodesousa has joined #crystal-lang
<FromGitter> <bararchy> Oh, cool :) thanks
<FromGitter> <bararchy> what does this pack do?
<FromGitter> <bararchy> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5aa0f1b353c1dbb743b9885b]
<FromGitter> <bararchy> like that?
<FromGitter> <bew> Yeah think should work
<FromGitter> <bararchy> damn, it still acts wierd :\
<FromGitter> <bararchy> as in, it's my try in translating the C example to Crystal
<FromGitter> <bew> What is the prototype of hci_inquiry ?
<FromGitter> <bararchy> int hci_inquiry(int dev_id, int len, int num_rsp, const uint8_t *lap, inquiry_info **ii, long flags);
<FromGitter> <bew> ii is a poibter of pointer
<FromGitter> <bew> Not just a pointer
<FromGitter> <bararchy> oh, inquiry_info should be array of inquiry_info
<FromGitter> <bararchy> i guess
<FromGitter> <bararchy> @bew good catch
<FromGitter> <bew> My brain is a compiler/debugger ^^
<FromGitter> <bararchy> XD pro 👍
<FromGitter> <bararchy> So I should create Array(inquery_info) and do a to_unsafe etc.. and pass a pointer of that
<FromGitter> <bararchy> or something right?
<FromGitter> <bararchy> btw @bew do you study at Epitech ?
<FromGitter> <bew> Yes I'm 4th year at Epitech :)
<FromGitter> <bararchy> oh cool
<FromGitter> <bararchy> :)
<FromGitter> <bew> Yes for the array
<FromGitter> <bew> Or a slice
bonemind has joined #crystal-lang
alex`` has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #5788: add *.dwarf to auto generated .gitignore (master...dwarf_gitignore) https://git.io/vANR0
<FromGitter> <bararchy> yey working !
<FromGitter> <bararchy> thanks @bew
<FromGitter> <bew> Cool ;)
<FromGitter> <bew> What do you plan to do with thoses Bluetooth bindings?
<FromGitter> <bararchy> Still need to figure how I translate the damn address https://github.com/bararchy/bluetooth/blob/master/spec/hci_spec.cr lol
<FromGitter> <bararchy> anyway its cool
<FromGitter> <bararchy> @bew do you really wanna know? ;)
<FromGitter> <bararchy> kiddin, its to be a part of the Programs we work on at NeuraLegion
<FromGitter> <bew> Like for getting data from remote sensors or sth?
maattdd_ has joined #crystal-lang
<travis-ci> crystal-lang/crystal#9d2dfbb (master - add *.dwarf to auto generated .gitignore): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/350734159
<FromGitter> <bew> Seems confidential ^^ good night!
alex`` has quit [Ping timeout: 255 seconds]
shb has joined #crystal-lang
<FromGitter> <watzon> Is there an issue already for the slow compile times and large RAM usage when compiling massive arrays and hashes?
shb has quit [Client Quit]
alex`` has joined #crystal-lang
Papierkorb has joined #crystal-lang
Papierkorb has left #crystal-lang ["Konversation terminated!"]
duane has joined #crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Ping timeout: 256 seconds]
greengriminal has joined #crystal-lang
return0e_ has quit [Read error: No route to host]
return0e has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.0.1]
duane has quit [Ping timeout: 268 seconds]
alex`` has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
alex`` has quit [Client Quit]
maattdd_ has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
maattdd_ has joined #crystal-lang
duane has joined #crystal-lang
<crystal-gh> [crystal] codyjb opened pull request #5790: Fixed File.extname edge case for '.' in path with no extension (master...fix/file.extname) https://git.io/vAAEy
rohitpaulk has joined #crystal-lang
<lvmbdv> is the 0.24.2 release on github legit?
bonemind has quit [Quit: WeeChat 2.0.1]
<FromGitter> <bajro17> Hi people can anyone help how to deploy my web app to aws
qard has joined #crystal-lang
<crystal-gh> [crystal] straight-shoota closed pull request #5782: Fix File.extname to handle path with dot in directory name (master...jm/fix/file-extname) https://git.io/vAdSm
<FromGitter> <straight-shoota> lvmbdv, it's just a tag probably still testing stuff out
<FromGitter> <straight-shoota> see #5642
<FromGitter> <straight-shoota> but it seems to be coming
<lvmbdv> it seems so straight-shoota, thanks
flaviodesousa has quit [Ping timeout: 265 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
<crystal-gh> [crystal] r00ster91 opened pull request #5791: Improve readline.cr (master...patch-5) https://git.io/vAAS9
greengriminal has joined #crystal-lang
qard has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 256 seconds]
maattdd_ has quit [Ping timeout: 256 seconds]
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 256 seconds]
<FromGitter> <bararchy> In crystal `char *str` is basiclly `Slice(UInt8)` right ?
<oprypin> bararchy, no, a pointer is a pointer
<oprypin> slice is pointer + size
maattdd_ has joined #crystal-lang
<FromGitter> <fridgerator> crystal is in the chart : https://redmonk.com/sogrady/2018/03/07/language-rankings-1-18/
maattdd_ has quit [Ping timeout: 276 seconds]
rohitpaulk has joined #crystal-lang
alex`` has joined #crystal-lang
<FromGitter> <bararchy> it seems to be Crystal has a nice traction regarding new projects in github, and it also seems to be that Crystal users don't use StackOverflow very much
maattdd_ has joined #crystal-lang
<FromGitter> <bararchy> I think most of the support is Here on gitter and Github issues
maattdd_ has quit [Ping timeout: 256 seconds]
maattdd_ has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
maattdd_ has quit [Ping timeout: 252 seconds]
<wmoxam> I wouldn't consider asking anything on SO anymore
rohitpaulk has joined #crystal-lang
Ven`` has joined #crystal-lang
<FromGitter> <bew> Why not?
maattdd_ has joined #crystal-lang
badeball has quit [Remote host closed the connection]
maattdd_ has quit [Ping timeout: 240 seconds]
<FromGitter> <bararchy> How would I translate this to Crystal? ⏎ ⏎ ```#define htobs(d) bswap_16(d)``` [https://gitter.im/crystal-lang/crystal?at=5aa19848c3c5f8b90d4c7dcd]
<FromGitter> <bararchy> is this somekind of "alias" for bswap_16 ?
<oprypin> bararchy, this says when there is a thing that looks like `htobs(SOMETHING)`, literally rewrite it to `bswap_16(SOMETHING)`
<FromGitter> <bararchy> I see
<FromGitter> <bararchy> thanks oprypin
<FromGitter> <bararchy> and bswap is basiclly array.reverse kind of function right ?
<FromGitter> <bararchy> At least this what it looks like http://www.c-jump.com/CIS77/ASM/DataTypes/T77_0230_bswap.htm
<FromGitter> <bararchy> ok, found out what it actually does
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <watzon> Opened issue #5792 in regards to the large array issue
<DeBot> https://github.com/crystal-lang/crystal/issues/5792 (Extremely slow compilation and high ram usage for large Arrays and Hashes)
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
vikaton has joined #crystal-lang
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
badeball has joined #crystal-lang
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
Ven`` has joined #crystal-lang
duane has quit [Ping timeout: 256 seconds]
<wmoxam> Why not? It's nearly impossible for newcomers to participate
dragonkh has joined #crystal-lang
<dragonkh> evening - how do I get this: (64 + 127) / 128 to make 1.4921875 instead of 1 in Crystal?
<FromGitter> <bew> Use floats
<dragonkh> ok thanks :)
<FromGitter> <bew> This way the result will be a float
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
DTZUZO has joined #crystal-lang
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 265 seconds]
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
maattdd_ has joined #crystal-lang
<crystal-gh> [crystal] RX14 closed pull request #5787: Return early in Time#add_span if arguments are zero (master...jm/feature/time-add-span-early-return) https://git.io/vANea
maattdd_ has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] RX14 closed pull request #5791: Improve readline.cr (master...patch-5) https://git.io/vAAS9
maattdd_ has joined #crystal-lang