00:14
ukd1 has quit [Quit: Lost terminal]
00:16
laaron has joined #crystal-lang
00:40
laaron has joined #crystal-lang
01:46
_whitelogger has joined #crystal-lang
02:42
return0e has quit [Read error: Connection reset by peer]
03:19
Ring0` has joined #crystal-lang
03:20
<
Ring0` >
Hi! Google doesn't want to help me on that one. Is there an equivalent for Array#drop? (drops n elements from the beginning of a array)
03:21
<
FromGitter >
<tenebrousedge> you can always use `slice`
03:22
<
Ring0` >
yup, that's what I did, but just wanted to spare few bytes, you know ;) ruby style
03:24
<
Ring0` >
that's the one!
04:28
laaron has quit [Remote host closed the connection]
04:32
laaron has joined #crystal-lang
04:35
laaron has quit [Remote host closed the connection]
04:37
alex`` has quit [Ping timeout: 272 seconds]
04:37
ht_ has joined #crystal-lang
04:41
laaron has joined #crystal-lang
05:06
ht_ has quit [Remote host closed the connection]
05:14
alex`` has joined #crystal-lang
05:43
rohitpaulk has joined #crystal-lang
05:47
rohitpaulk has quit [Ping timeout: 244 seconds]
06:00
DTZUZU has joined #crystal-lang
06:16
sagax has quit [Write error: Connection reset by peer]
06:22
sagax has joined #crystal-lang
06:30
rohitpaulk has joined #crystal-lang
06:35
rohitpaulk has quit [Ping timeout: 258 seconds]
06:46
ua has joined #crystal-lang
07:47
laaron has quit [Remote host closed the connection]
07:49
laaron has joined #crystal-lang
08:08
alex`` has quit [Ping timeout: 268 seconds]
08:08
laaron has quit [Remote host closed the connection]
08:08
laaron- has joined #crystal-lang
08:11
<
mps_ >
aarc64, I mean
08:16
sorcus has joined #crystal-lang
08:46
devil_tux has joined #crystal-lang
09:13
devil_tux has quit [Ping timeout: 258 seconds]
09:19
<
FromGitter >
<andrius> I have input string from IO with hex codes, like this: `request%3A%20async`. Is there any method that convert them to the "normal" string?
09:25
<
FromGitter >
<straight-shoota> `URL.decode`
09:25
<
FromGitter >
<straight-shoota> (or `URL.unescape` in Crystal < 0.30.0)
09:30
devil_tux has joined #crystal-lang
09:39
return0e has joined #crystal-lang
09:44
return0e has quit [Read error: Connection reset by peer]
09:46
return0e has joined #crystal-lang
09:55
devil_tux has quit [Ping timeout: 258 seconds]
10:09
devil_tux has joined #crystal-lang
10:44
teardown has quit [Ping timeout: 248 seconds]
10:48
devil_tux has quit [Ping timeout: 245 seconds]
10:51
teardown has joined #crystal-lang
10:56
devil_tux has joined #crystal-lang
11:31
<
FromGitter >
<greenbigfrog> @Blacksmoke16 thanks for answering. `STDOUT.sync = true` makes output work. ⏎ I'm not sure how I'm able to get the same effect with the `CustomLogHandler` I posted later. ⏎ Will need to investigate once I get off work
11:32
<
FromGitter >
<greenbigfrog> Still weird why this only happens in once of 4 docker containers I have in this project
11:32
<
FromGitter >
<greenbigfrog> (s/container/image)
11:35
devil_tux has quit [Ping timeout: 248 seconds]
12:13
lucasb has joined #crystal-lang
12:14
devil_tux has joined #crystal-lang
12:45
<
FromGitter >
<j8r> I figured a workaround for being unable to do `Int?`, do `Int::Signed | Int::Unsigned | Nil`
12:46
<
FromGitter >
<j8r> or no, better `Int::Primitive? `
12:46
<
FromGitter >
<j8r> I think it could be suggested
12:54
dingenskirchen has quit [Read error: Connection reset by peer]
12:54
dingenskirchen1 has joined #crystal-lang
12:57
dingenskirchen1 is now known as dingenskirchen
13:01
<
FromGitter >
<tenebrousedge> wow
13:02
<
FromGitter >
<tenebrousedge> I didn't think that was possible
13:06
alex`` has joined #crystal-lang
13:15
<
FromGitter >
<Blacksmoke16> > I think it could be suggested ⏎ ⏎ but that works already?
13:18
<
FromGitter >
<j8r> @Blacksmoke16 `Error: can't use Int as generic type argument yet, use a more specific type`
13:18
<
FromGitter >
<j8r> I suggest something like `Error: can't use Int as generic type argument yet, use a Int::Primitive instead`
13:19
<
FromGitter >
<Blacksmoke16> ah for generic
13:19
<
FromGitter >
<Blacksmoke16> was going to say using it for method arg type restriction works
13:20
laaron- has quit [Remote host closed the connection]
13:24
laaron has joined #crystal-lang
13:30
laaron has quit [Remote host closed the connection]
13:30
<
FromGitter >
<j8r> Not that easy to do, not sure it worth it
13:33
laaron has joined #crystal-lang
13:35
<
FromGitter >
<j8r> If we are able to interpret a string line to Crystal, we may be able to replace macro methods
13:36
devil_tux has quit [Ping timeout: 268 seconds]
13:37
devil_tux has joined #crystal-lang
13:40
laaron has quit [Remote host closed the connection]
13:42
laaron has joined #crystal-lang
13:42
devil_tux has quit [Ping timeout: 272 seconds]
13:42
sz0 has joined #crystal-lang
14:18
<
sorcus >
psql "postgres://test@[::]:5432/test_db" - this works.
14:19
<
FromGitter >
<j8r> `[::]`?!
14:19
<
FromGitter >
<j8r> Do you mean `[::1]`
14:20
<
sorcus >
But with any IPv6 crystal failed.
14:20
<
FromGitter >
<j8r> how can you connect to `0.0.0.0`, or `[::]`?
14:21
<
FromGitter >
<j8r> perhaps it may work, but it's confusing IMO
14:26
<
FromGitter >
<j8r> infact 0.0.0.0 or :: redirect to localhost... didn't know
14:27
<
sorcus >
j8r: but i can't connect to remote database too... Remote db available on only IPv6. No IPv4...
14:28
<
FromGitter >
<j8r> On what Crystal version are you, what give you when `URI.parse` the string?
14:29
<
sorcus >
j8r: Crystal 0.30.0 (2019-08-05), LLVM: 8.0.1, Default target: x86_64-pc-linux-gnu
14:30
<
FromGitter >
<j8r> if you do `[::1]` instead?
14:31
<
FromGitter >
<j8r> hum I've maybe caught where the issue is
14:33
<
sorcus >
j8r: Caused by: No address found for [::1]:5432 over TCP (Socket::Addrinfo::Error)
14:34
<
sorcus >
j8r: HTTP::Client works good with `http://[::]:8080/`.
14:34
<
FromGitter >
<j8r> got it
14:35
<
FromGitter >
<j8r> try to monkey patch it and try again (or modify it in `lib/pg/src/pq/conninfo.cr`)
14:38
<
sorcus >
j8r: Yeap, you right.
14:38
<
sorcus >
Works now.
14:38
<
FromGitter >
<j8r> I submit a patch mainstream
14:39
<
sorcus >
j8r: You really cool. Thank you so much.
14:44
<
FromGitter >
<j8r> no problem sorcus :)
14:52
<
mps_ >
j8r: I'm preparing 0.30.0 for Alpine, will push it in a few hours but will disable aarch64 for now, only x86_64. sorry
14:54
<
mps_ >
when it appears on edge repo, someone with knowledge and aarch64 machine could try to fix it and post patches, ofc
14:56
<
FromGitter >
<j8r> that's too bad there is no aarch64 CI
14:58
<
rkeene >
Should be pretty easy to add, no ?
14:58
<
FromGitter >
<j8r> mps_ thank you very much for your work!
14:58
<
mps_ >
maybe it could be done with drone.io
14:59
<
rkeene >
QEMU ARM64 seems to be relatively well supported from what I can tell
14:59
<
FromGitter >
<j8r> I had an idea to fork crystal, and pull everyday to trigger a Drone CI with Alpine x86_64 and aarch64
15:08
<
rkeene >
Why fork it ?
15:10
<
mps_ >
rkeene: yes, qemu aarch64 works quite fine on Alpine
15:10
<
FromGitter >
<j8r> rkeene: to run the CI
15:10
<
FromGitter >
<j8r> I already fork it to contribute, that's how GitHub works :/
15:11
<
mps_ >
I wrote small guide and script which create and install alpine qemu aarc64
15:17
<
sorcus >
j8r: Cool. Thank you.
15:42
ht_ has joined #crystal-lang
15:51
duane has quit [Remote host closed the connection]
16:11
sz0 has quit [Quit: Connection closed for inactivity]
16:45
olbat[m] has quit [Remote host closed the connection]
16:52
_whitelogger has joined #crystal-lang
16:57
olbat[m] has joined #crystal-lang
17:10
<
FromGitter >
<Blacksmoke16> just know those are not the same thing
17:11
<
FromGitter >
<Blacksmoke16> the wiki page is talking about multi threading, while the forum thread is about fiber (concurrency)
17:11
<
FromGitter >
<Blacksmoke16> @kalinon ^
17:21
<
FromGitter >
<straight-shoota> @kalinon Multithreading is actively worked on
17:21
<
FromGitter >
<kalinon> Yeah thats where i get all confused, but the thread made note that Multithreading was not ready yet
17:22
<
FromGitter >
<kalinon> which is what i assumed, but i dont think i have the knowledge to help with that stuff
17:22
<
FromGitter >
<kalinon> lol
18:28
<
FromGitter >
<andrius> Who do use linuxbrew? Crystal upgrade to 0.30 takes ages
18:29
<
FromGitter >
<andrius> Just curious, is it my case or not..
18:29
<
FromGitter >
<Blacksmoke16> prob is installing from source
18:29
<
FromGitter >
<Blacksmoke16> i.e. downloading llvm and building it
18:30
<
FromGitter >
<andrius> yes, with all the patches
18:34
<
FromGitter >
<Blacksmoke16> that would do it
18:41
<
FromGitter >
<absolutejam_gitlab> Is the backtick essentially `Process.run` with `sh -c`?
18:41
<
FromGitter >
<tenebrousedge> probably
18:46
<
FromGitter >
<tenebrousedge> no, uses LibC
18:55
<
FromGitter >
<Blacksmoke16> anyone familar with creating homebrew bottles?
19:07
<
FromGitter >
<Blacksmoke16> my assumption is if i have it bottled it doesnt have to install the dependencies and stuff?
19:08
<
FromGitter >
<Blacksmoke16> oo i see what i missed
19:08
<
oprypin >
oh dang it wrong channel
19:09
<
oprypin >
you didn't see anything 😗
19:10
* FromGitter
* tenebrousedge waves to the man behind the curtain
19:14
<
FromGitter >
<Blacksmoke16> i fixed it, needed to make crystal a build only dep
19:17
<
FromGitter >
<Blacksmoke16> anyone want to test it for me? :S
19:23
<
FromGitter >
<Blacksmoke16> can install `oq` via brew now
19:23
<
FromGitter >
<Blacksmoke16> 💯
19:28
laaron has joined #crystal-lang
19:56
<
FromGitter >
<greenbigfrog> why are dependencies so hard to manage...
20:05
<
Nekka >
have you tried specifying a different shard version
20:08
<
FromGitter >
<greenbigfrog> Not yet
20:10
<
sorcus >
j8r: Are you here?
20:16
<
sorcus >
Or someone else.
20:16
<
FromGitter >
<greenbigfrog> somebody is here. If you have a quesiton just go ahead and ask it. Else you might never get an answer
20:18
<
sorcus >
HTTP::WebSocket.new(URI.parse("ws://[::]:8085/")) failed with `Unhandled exception: No address found for [::]:8085 over TCP (Socket::Addrinfo::Error)`
20:19
<
FromGitter >
<j8r> Nice!
20:25
<
FromGitter >
<j8r> sorcus: good job!
20:26
<
sorcus >
j8r: Yeap. :-[
20:27
<
FromGitter >
<j8r> I guess you will send a PR?
20:27
<
FromGitter >
<absolutejam_gitlab> I never did like the term PR
20:27
<
FromGitter >
<absolutejam_gitlab> MR makes so much more sense to me
20:29
<
sorcus >
j8r: just replace `host` with `hostname`?
20:31
<
FromGitter >
<j8r> @absolutejam_gitlab subimit a patch would be the best for git vocabulary
20:33
<
mps_ >
j8r: +1 for terminology
20:33
<
FromGitter >
<j8r> sorcus: I don't understand, is it a question? That what you have done, no?
20:34
<
sorcus >
j8r: I mean nothing gonna break?
20:35
<
FromGitter >
<greenbigfrog> WTF. I got all shards "installed", but now I'm suddenly getting a `can't find file` for a previously working shard
20:37
<
FromGitter >
<Blacksmoke16> rip
20:37
<
FromGitter >
<j8r> sorcus: if you look at the implementations of `URI#host` and `URI#hostname`, you will see that most probably - no
20:37
<
FromGitter >
<Blacksmoke16> is possible mosquito needs its redis dep updated?
20:38
<
FromGitter >
<j8r> also you can run the websocket specs, and submit the PR anyway. If there is something wrong, probably other people will tell you
20:38
<
sorcus >
j8r: Probably... I like it :-D Ok, i will send PR.
20:38
<
FromGitter >
<j8r> if it break some things not caught, it will be reverted or fixed
20:40
<
FromGitter >
<Blacksmoke16> dunno, it can get hard when dealing with not as maintained libs
20:44
<
FromGitter >
<Blacksmoke16> could try clearing cache?
20:44
<
FromGitter >
<Blacksmoke16> `rm -rf ~/.cache/shards ./lib`
20:45
sorcus has quit [Ping timeout: 252 seconds]
20:45
<
FromGitter >
<greenbigfrog> I simply removed `./lib/kemal-session-redis`
20:45
<
FromGitter >
<j8r> looks like @greenbigfrog was showing us it was a symlink
20:50
sorcus has joined #crystal-lang
20:51
<
FromGitter >
<greenbigfrog> now back to fucking version conflicts I can't explain
20:53
<
FromGitter >
<greenbigfrog> this might actually be a bug. ⏎ I'm getting almost 500k lines of output from `shards update`
21:01
rohitpaulk has joined #crystal-lang
21:23
<
sorcus >
j8r: Spec failed without patch and work with.
21:39
<
FromGitter >
<straight-shoota> sorcus, you don't need to duplicate the entire spec. Making sure the provided address works should be enough.
21:39
<
FromGitter >
<straight-shoota> But that probably already requires quite a bit code, so a more elegant solution would be to use `each_ip_family`from the socket spec_helper
21:42
<
FromGitter >
<straight-shoota> Essentially, you wrap the entire `negotiates over HTTP correctly` sample and call `server.bind_tcp`with the IP address provided as second block argument
21:43
ht_ has quit [Remote host closed the connection]
21:50
rohitpaulk has quit [Ping timeout: 245 seconds]
21:55
<
FromGitter >
<straight-shoota> yes 👍
22:13
<
FromGitter >
<j8r> Good sorcus!
22:59
lucasb has quit [Quit: Connection closed for inactivity]
23:19
<
FromGitter >
<absolutejam_gitlab> @Blacksmoke16 what's the brew command?
23:24
MasterdonX has quit [Ping timeout: 245 seconds]
23:31
MasterdonX has joined #crystal-lang
23:37
<
sorcus >
Good night everyone.
23:38
<
FromGitter >
<watzon> Hmm, there's no way to take a NamedTuple and create a new one without certain values right? NamedTuple doesn't have a `#delete` method.