<FromGitter>
<johnjansen> im guessing, and i could easily be wrong, that the default size for floats has changed between versions from 32 to 64 bits, see https://play.crystal-lang.org/#/r/2cmw … ill take a look at the release notes for 23 if i can find them
greengriminal has joined #crystal-lang
<FromGitter>
<johnjansen> well if that is the case, its not obvious … anyhoo … testable if you want to play around with it
<FromGitter>
<johnjansen> nope thats not it … but you should still read about the internals of floating point numbers
<FromGitter>
<codenoid> :( You scared me, crystal is my first language
<FromGitter>
<johnjansen> not aimed at you @codenoid … just keep going and for now ignore the details
sz0 has quit [Quit: Connection closed for inactivity]
Dreamer3 has quit [Ping timeout: 248 seconds]
<crystal-gh>
[crystal] MakeNowJust opened pull request #4708: Fix chained comparisons `to_s` to work #4663 (master...fix/crystal/4663-chained-comparisons-to-s) https://git.io/vQ9Wo
havenwood has quit [Quit: ZNC 1.6.5 - http://znc.in]
<FromGitter>
<elorest> Morning.
<FromGitter>
<elorest> 1:28AM here to technically morning.
<FromGitter>
<konovod> i need something like `IO.gets`, but with two arbitrary string delimiters instead of one(stop at first or second delimiter found). any ideas on how to do it in a idiomatic way? It seems that easiest way is to copy `gets` source and modify it.
<FromGitter>
<straight-shoota> konovod, I don't think there is an implementation of this in stdlib, so you're probably gonna need to do it yourself
havenwood has joined #crystal-lang
hightower2 has joined #crystal-lang
havenwood is now known as Guest63175
Guest63175 has quit [Changing host]
Guest63175 has joined #crystal-lang
mark_66 has joined #crystal-lang
bmcginty has quit [Ping timeout: 276 seconds]
hightower2 has quit [Ping timeout: 276 seconds]
Guest63175 has quit [Quit: ZNC 1.6.5 - http://znc.in]
bmcginty has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has quit [Ping timeout: 240 seconds]
Guest74581 has joined #crystal-lang
<FromGitter>
<benoist> hey guys, does anyone know which documentation was used to create the crystal-mysql shard?
Guest74581 has quit [Quit: ZNC 1.6.5 - http://znc.in]
<oprypin>
benoist, maybe just looking at examples
<oprypin>
sqlite shard which was created by core team
<FromGitter>
<benoist> i’m looking for the internal mysql specification
<FromGitter>
<benoist> the binary protocol
<oprypin>
oh ok..... why tho
<FromGitter>
<benoist> there is an issue with running unprepared statements
<FromGitter>
<crisward> Check the source code, I know my pull requests included comments with links to MySQL spec, that was for adding column types. But I'm sure what your after will be in the same place.
<FromGitter>
<bew> @bararchy the `-L` flags aren't added to the final compilation line
<FromGitter>
<bararchy> is it because I'm running spec instead of build ?
<FromGitter>
<bew> how do you define your lib? did you put a `@[Link(...)]` ?
<FromGitter>
<straight-shoota> And I can't find where this originates, seemingly on multiple locations :/ And it used to compile, I don't think I made any significant changes
greengriminal has quit [Quit: This computer has gone to sleep]
rohitpaulk has joined #crystal-lang
greengriminal has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter>
<johnjansen> thanks @konovod im sure @renich will appreciate that explanation ;-)
<FromGitter>
<fridgerator> I hate sounding like a broken record, but is there any word on 0.23.1 ?
<FromGitter>
<johnjansen> @frig
<FromGitter>
<johnjansen> @fridgerator you need to add some clicks an scratch sounds in there ;-)
<FromGitter>
<fridgerator> 🔉 💔
<FromGitter>
<fridgerator> i'm not very good at emojis
<FromGitter>
<johnjansen> more like one of those CD things ;-) that loops in a weird place making it hard to tell (for a few moments) that its looping … usually heard in strange fashions store whilst trailing the wife
<FromGitter>
<johnjansen> seems relevant and a good reminder of process
<FromGitter>
<bew> I have a lib binding for a function that has 13 arguments (holy shit, I know x) ), I'd line to make the bindings a little more readable than putting everything on one line, but the formatter keeps adding a lot of spaces to align the parameters to the `(`.
<FromGitter>
<johnjansen> better still, whats the url
<FromGitter>
<bararchy> Oh, the site is going to be something else each time, it's a generic tool
<FromGitter>
<johnjansen> sounds pretty easy
Renich has joined #crystal-lang
<Renich>
Good day, Crystalians!
<Renich>
p(
<Renich>
o/
<FromGitter>
<renich> Hey @johnjansen thanks a lot for the reply on https://play.crystal-lang.org/#/r/2cmg. It is weird that this was managed on 0.22.0 and it is not on 0.23.0
<FromGitter>
<renich> @johnjansen and, btw, thanks for the reference
<FromGitter>
<johnjansen> @renich i mentioned you in response to a comment posted with regard to `to_s` on Float64 changing
<FromGitter>
<renich> @johnjansen looking for it... I saw @konovod 's comment though
<FromGitter>
<fridgerator> I see that 0.23.1 tag !! 🎉 👏
<FromGitter>
<johnjansen> anyone know of a anything like `addressable` that can merge relative URL’s into absolute ones … or an absolutize method (save me doing that)
<FromGitter>
<renich> @johnjansen found yours. Thanks, btw.
<FromGitter>
<renich> OK, well. I will use round(4) from now on :D
<FromGitter>
<johnjansen> wait ...
* FromGitter
* renich is waiting
<FromGitter>
<straight-shoota> @fridgerator the tag is nearly a week old^^
<FromGitter>
<johnjansen> if its just the `to_s` that changed, then the value underneath might be correct, so test that first i.e. `a == expected`
<FromGitter>
<fridgerator> @johnjansen isn't that the age of the commit? I've been checking daily and havent seen it until just now
<FromGitter>
<johnjansen> im so aged i should be committed ;-)
<FromGitter>
<renich> @johnjansen yep. Thanks!
<FromGitter>
<johnjansen> which will account for why i have no idea what you are talking about @fridgerator, although i do remember something about a broken record
<FromGitter>
<fridgerator> no it does say "tagged 6 days ago".... but I swear it hasn't shown up until today
<FromGitter>
<fridgerator> maybe I'm the one that needs to be commited
<FromGitter>
<bigtunacan> @johnjansen Do you do some Go development as well then?
<FromGitter>
<bigtunacan> (noticed your Go slide above)
<FromGitter>
<johnjansen> no, just track a bunch of languages ;-)
<FromGitter>
<bigtunacan> I know it's been getting pretty decent traction, but I hadn't really paid any attention to it until just recently.
<FromGitter>
<johnjansen> go is huge in silicon valley, especially in the ops community
<FromGitter>
<bigtunacan> I was a bit surprised when I started looking over some of the documentation and realized that it is a procedural language similar to C
<FromGitter>
<bigtunacan> It was like I had warped backwards in time almost 20 years
<FromGitter>
<bigtunacan> I was fully expecting that it was an OO language
<FromGitter>
<johnjansen> @bararchy remember that robots.txt often contains sitemap directives
fenicks has quit [Ping timeout: 260 seconds]
fenicks has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
havenwood_ has joined #crystal-lang
<FromGitter>
<fridgerator> 1) 23.1 is out!
<FromGitter>
<johnjansen> i thought i put that record player out with the trash … hmmm it was so broken ...
<FromGitter>
<johnjansen> ;-)
<FromGitter>
<fridgerator> lol
<FromGitter>
<johnjansen> thanks @fridgerator ;-)
<FromGitter>
<johnjansen> happy thursday
<FromGitter>
<bigtunacan> @fridgerator Is Crecto working with 0.23.1 yet?
<FromGitter>
<bigtunacan> 😄
<FromGitter>
<johnjansen> are there release notes anywhere?
<FromGitter>
<fridgerator> havent checked yet, will woon
havenwood_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
<bmcginty>
johnjonson: I've got some code to do normalizing of urls if you still need it?
<FromGitter>
<johnjansen> that would be nice
hightower2 has joined #crystal-lang
<FromGitter>
<johnjansen> @ bmcginty
havenwood_ has joined #crystal-lang
<FromGitter>
<elorest> Has anyone seen any sort of base91 shard yet? I might start working on one as it’s quite a bit more efficient than base64. When I was a java programmer even in 2005 it was always preferable. In modern times everyone uses base64 for some reason though.
havenwood_ has quit [Changing host]
havenwood_ has joined #crystal-lang
havenwood_ has quit [Ping timeout: 240 seconds]
<FromGitter>
<eliasjpr> Someone forgot to update the version file for v0.23.1
<oprypin>
geez base91 what next
<FromGitter>
<eliasjpr> I have updated the my crystal install but when I do `crystal -v`
<FromGitter>
<eliasjpr> it prints out `0.23.0`
<FromGitter>
<eliasjpr> ahh interesting, nvm I take that back oddly it now shows 0.23.1
<oprypin>
elorest, there doesnt seem to be such a shard. i think it's time for something universal though.
<FromGitter>
<elorest> <oprypin> Base64 is sort of universal but it sucks how it adds around 40% to the file size, yenc is used in usenet but is flawed. base122 is pretty efficient but isn’t ascii complient. Base91 is and a lot of people in the java, c# world use it. It only increases file size by around 15%.
<oprypin>
elorest, not that kind of universal
<oprypin>
i mean BaseWhateverYouLike
<FromGitter>
<elorest> Yeah that would be nice.
<hightower2>
bbase1
<FromGitter>
<fridgerator> @bigtunacan nope, lol
<FromGitter>
<fridgerator> something else broken now
<FromGitter>
<bigtunacan> D'oh!
<FromGitter>
<bigtunacan> Guess I'll still be sitting on Crystal 0.22 for now then
<FromGitter>
<fridgerator> figured it out
<FromGitter>
<fridgerator> I think
<FromGitter>
<fridgerator> travis is still running 0.23.0
<jokke>
hi
<FromGitter>
<straight-shoota> It's gonna take some time for the packages to be built and distributed.
<Papierkorb>
You could kick the Logs part if you'd insist, but the Paste part is rather important for IRC users
<RX14>
i really don't think so
<RX14>
the people who don't use pastebin are all on gitter
<RX14>
lol
<oprypin>
true dat
<RX14>
and if they wind up on IRC they just do it anyway
<RX14>
all the people who read topics know to use a pastebin already
<RX14>
i think overall it's pretty useless, easier to use something like
<RX14>
?paste
<DeBot>
RX14: Nothing known about paste.
<RX14>
...
<oprypin>
oh RX14 can now probably edit gitter settings as well. could put the most common annoyances (e.g. please use pastebin) in gitter room greeting message
<RX14>
well gitter has ``` blocks
<RX14>
lol i love that message "RX14 removes channel operator status from RX14"
<oprypin>
well at least it's not "gives"
<RX14>
heh
<Papierkorb>
would be more entertaining though
<RX14>
looks like it's not possible
<RX14>
i.e. i can't op myself then give myself op again