00:11
<
FromGitter >
<wwalker> anyone using crystal to push bulk docs into elasticsearch? If so, which of the shards are you using? (Before I go write code, test, and benchmark the 8 top hits ...)
01:02
quazimodo has quit [Ping timeout: 248 seconds]
01:04
quazimodo has joined #crystal-lang
04:36
<
FromGitter >
<Blacksmoke16> uhh
04:42
<
FromGitter >
<wwalker> That is a succinct response. ⏎ ⏎ I had to open irb to see how that worked in ruby...
04:44
wwalker has left #crystal-lang [#crystal-lang]
04:44
<
FromGitter >
<Blacksmoke16> @revskill10
04:55
ur5us has quit [Ping timeout: 255 seconds]
05:25
_whitelogger has joined #crystal-lang
05:53
uncomfy has joined #crystal-lang
07:10
uncomfy has quit [Quit: uncomfy]
07:40
_ht has joined #crystal-lang
07:49
ur5us has joined #crystal-lang
08:15
Sankalp has joined #crystal-lang
08:45
ur5us has quit [Ping timeout: 248 seconds]
11:14
<
FromGitter >
<revskill10> @Blacksmoke16 Thanks for the partial trick. Is it to currying a method ?
12:25
hightower2 has quit [Ping timeout: 248 seconds]
12:26
jmdaemon has quit [Ping timeout: 252 seconds]
12:50
Sankalp has quit [Ping timeout: 256 seconds]
12:50
Sankalp has joined #crystal-lang
13:00
hightower2 has joined #crystal-lang
13:03
hightower3 has joined #crystal-lang
13:06
hightower2 has quit [Ping timeout: 248 seconds]
13:20
quazimodo has quit [Ping timeout: 248 seconds]
15:33
<
FromGitter >
<Blacksmoke16> im not too familiar with what that means
15:36
brycek has joined #crystal-lang
15:40
<
brycek >
am i holding something wrong? trying to work with a `IO::Memory | File` and it keeps flattening into a `IO` and losing the `size` method
15:41
<
FromGitter >
<Blacksmoke16> got some example code?
15:42
<
brycek >
alias IOBuf = IO::Memory | File
15:42
<
brycek >
typeof(IO::Memory.new.as(IOBuf))
15:42
<
brycek >
(working on a bigger reproducer)
15:42
<
FromGitter >
<Blacksmoke16> right, but whats the use case you need a union of those two?
15:43
<
brycek >
conditionally reading the output of a process from stdout buffered in the memory buffer or from a file on disk
15:44
<
brycek >
got a workaround where there's a getter that returns the union type but it's gonna bug me still
15:44
<
FromGitter >
<Blacksmoke16> pretty sure thats just the compile time type, and could still use overloads of `is_a?` checks to handle it
15:45
<
FromGitter >
<Blacksmoke16> overloads or*
15:45
<
brycek >
so the compiler finds a common ancestor as an optimization or something?
15:46
<
FromGitter >
<Blacksmoke16> deff would be easier to just base your implementation on `IO` tho
15:52
<
brycek >
the other half is i'm trying to figure out the `size` which doesn't make sense for, like, an fd or socket
15:52
<
FromGitter >
<Blacksmoke16> what are you using the size for?
15:54
<
brycek >
killing the subprocess if it goes past the output limit
15:54
<
FromGitter >
<Blacksmoke16> to just have it stop reading once a certain amount is read
15:56
<
brycek >
possibly? i'm a bit fuzzy with how that works with an `IO::Memory` on a subprocess's stdout
15:57
<
brycek >
how that'd work, rather
15:57
<
brycek >
this was mostly a curiosity question tbqh
15:57
<
FromGitter >
<Blacksmoke16> do you have to use the `IO::Memory`? iirc theres a block version of `Process.run` that exposes the output of the process as its happening
16:01
<
brycek >
the destination for the buffer's the database, so it's going to linger around in an io::memory anyways (the process dies afterwards so using a memory buffer is less risk of filling up the disk)
16:01
fifr_ has quit [Read error: Connection reset by peer]
16:01
fifr_ has joined #crystal-lang
16:06
<
FromGitter >
<Blacksmoke16> creates a string of the processes output up to size n, terminating the process once that size is reached
16:12
<
brycek >
still need to write the tests for that heh
16:15
fifr- has joined #crystal-lang
16:17
fifr_ has quit [Ping timeout: 248 seconds]
16:22
fifr- has quit [Read error: Connection reset by peer]
16:22
fifr_ has joined #crystal-lang
16:30
fifr- has joined #crystal-lang
16:31
fifr_ has quit [Ping timeout: 252 seconds]
16:34
fifr- has quit [Read error: Connection reset by peer]
16:35
fifr_ has joined #crystal-lang
16:40
fifr- has joined #crystal-lang
16:40
fifr_ has quit [Ping timeout: 268 seconds]
16:53
jmdaemon has joined #crystal-lang
17:02
__ht has joined #crystal-lang
17:04
__ht has quit [Client Quit]
17:06
_ht has quit [Ping timeout: 268 seconds]
17:09
_ht has joined #crystal-lang
17:36
Sankalp has quit [Ping timeout: 252 seconds]
17:42
Sankalp has joined #crystal-lang
18:09
ur5us has joined #crystal-lang
18:24
_ht has quit [Quit: _ht]
18:29
_ht has joined #crystal-lang
19:14
ua_ has quit [Ping timeout: 252 seconds]
19:16
ur5us has quit [Ping timeout: 255 seconds]
19:46
ua_ has joined #crystal-lang
20:21
ur5us has joined #crystal-lang
20:22
taupiqueur1 has joined #crystal-lang
20:24
taupiqueur has quit [Ping timeout: 252 seconds]
20:28
taupiqueur1 has quit [Ping timeout: 248 seconds]
20:30
taupiqueur1 has joined #crystal-lang
20:38
taupiqueur2 has joined #crystal-lang
20:38
taupiqueur1 has quit [Ping timeout: 248 seconds]
20:45
taupiqueur2 has quit [Ping timeout: 248 seconds]
20:46
taupiqueur2 has joined #crystal-lang
21:08
_ht has quit [Quit: _ht]
22:04
quazimodo has joined #crystal-lang
22:50
Sankalp- has joined #crystal-lang
22:50
Sankalp has quit [Ping timeout: 268 seconds]
22:50
Sankalp- is now known as Sankalp