00:27
pawnbox has joined #crystal-lang
00:32
pawnbox has quit [Ping timeout: 265 seconds]
00:33
<
crystal-gh >
[crystal] grosser opened pull request #3246: OptionParser: parse arguments from shorflag if it is only referenced … (master...grosser/short-arg)
https://git.io/viOC7
01:01
pawnbox has joined #crystal-lang
01:05
pawnbox has quit [Ping timeout: 244 seconds]
01:17
onethirtyfive has quit [Remote host closed the connection]
01:40
pawnbox has joined #crystal-lang
01:45
pawnbox has quit [Ping timeout: 252 seconds]
02:20
pawnbox has joined #crystal-lang
02:24
pawnbox has quit [Ping timeout: 244 seconds]
02:38
<
crystal-gh >
[crystal] grosser opened pull request #3247: OptionParser: make flag addition code simpler and faster (master...grosser/fast-string)
https://git.io/viO4g
02:45
<
crystal-gh >
[crystal] will opened pull request #3248: Array.new(size, &block) accepts UInt32, other Ints (master...uintarraynew)
https://git.io/viO4K
02:49
pawnbox has joined #crystal-lang
02:53
pawnbox has quit [Ping timeout: 240 seconds]
03:11
kulelu88 has quit [Quit: Leaving]
03:32
willl has joined #crystal-lang
03:38
triangles has joined #crystal-lang
04:17
onethirtyfive has joined #crystal-lang
04:55
_whitelogger has joined #crystal-lang
05:32
bungoman has joined #crystal-lang
06:13
pawnbox has joined #crystal-lang
07:14
gour has joined #crystal-lang
07:48
<
FromGitter >
<sdogruyol> Yeah.
07:58
gour has left #crystal-lang ["Leaving"]
07:59
<
FromGitter >
<gour> everyone is on gitter these days...
08:00
<
FromGitter >
<sdogruyol> Isn't that a good thing
08:01
<
FromGitter >
<gour> well, i still have a need for old IRC, while those bridges do not work well, actually it seems that Slack's one is even better
08:03
<
FromGitter >
<sdogruyol> I see your point
08:04
<
FromGitter >
<gour> btw, how do you see Crystal as lang for desktop gui apps? it seems it's more suitable for web apps?
08:17
<
BlaXpirit >
gour, that would be amazing but there seems to be very little interest. no Windows support and no major GUI library ported
09:09
<
BlaXpirit >
it seems like there is no way to extract the expression from a 'Not' node :(
09:09
<
BlaXpirit >
>> macro test(exp); {{exp.exp}}; end; test(!5)
09:26
trapped has joined #crystal-lang
09:44
<
dom96 >
gour: you've been searching for the best GUI to use for years now, maybe it's time you wrote your own?
09:48
<
FromGitter >
<sdogruyol> Lol
10:16
Nik736 has joined #crystal-lang
10:42
triangles2 has joined #crystal-lang
10:45
triangles has quit [Ping timeout: 240 seconds]
10:45
pawnbox has quit [Remote host closed the connection]
10:45
pawnbox has joined #crystal-lang
10:46
pawnbox has quit [Remote host closed the connection]
10:47
pawnbox has joined #crystal-lang
11:01
ponga has joined #crystal-lang
11:10
bew78 has joined #crystal-lang
11:11
bjz_ has joined #crystal-lang
11:12
bjz has quit [Ping timeout: 250 seconds]
11:35
tomchapi_ has joined #crystal-lang
11:36
tomchapin has quit [Ping timeout: 265 seconds]
11:47
bew78 has quit [Ping timeout: 258 seconds]
12:46
trapped has quit [Read error: Connection reset by peer]
13:06
matp has quit [Remote host closed the connection]
13:08
mini-me_ has joined #crystal-lang
13:09
<
FromGitter >
<sdogruyol> hey
13:09
<
mini-me_ >
hey sdog! lol what a coincedence
13:09
<
mini-me_ >
i was looking at your project Kemal
13:09
<
FromGitter >
<sdogruyol> great
13:09
<
mini-me_ >
10 minutes ago
13:10
<
mini-me_ >
i am trying to make an http api, i come from Ruby
13:10
<
FromGitter >
<sdogruyol> yeah, it should be simple enough if you're a Rubyist
13:10
<
mini-me_ >
and just the very basics, i know a bit about socket programming
13:11
<
mini-me_ >
where i am stuck is this: i want to retrieve a string from the socket, then send it out to REDIS
13:12
<
FromGitter >
<sdogruyol> that's simple
13:12
<
mini-me_ >
from your example, i used spawn for every server.accept
13:12
<
mini-me_ >
this is working fine, and no problems.
13:12
<
FromGitter >
<sdogruyol> do you have any gist to share?
13:13
<
mini-me_ >
no sorry, i don't yet have a github account
13:13
<
mini-me_ >
i am planning on it tho
13:13
<
FromGitter >
<sdogruyol> ugh
13:13
<
FromGitter >
<sdogruyol> a gist would be very helpful
13:14
<
FromGitter >
<sdogruyol> it's a chat app built with Kemal and React
13:14
<
mini-me_ >
yes is came across it, it mainly uses websockets?
13:14
<
FromGitter >
<sdogruyol> yeah
13:15
<
mini-me_ >
yes i see, but i first want it to work with basic http
13:16
<
FromGitter >
<sdogruyol> that's also simple, isnt it?
13:16
<
mini-me_ >
yes, i have some socket, http experience with ruby, that's why i am trying http
13:16
<
FromGitter >
<sdogruyol> okay
13:17
<
mini-me_ >
later on i want to implent websocket support, but still not there yet
13:17
matp has joined #crystal-lang
13:17
<
FromGitter >
<sdogruyol> i see
13:17
<
mini-me_ >
if i want to make an http request inside the socket callback, do i have to use another spawn inside it?
13:18
<
FromGitter >
<sdogruyol> well, if you don't want to block the socket client
13:18
<
FromGitter >
<sdogruyol> you should use another spawn
13:18
<
mini-me_ >
aha yeah i was thinking along the same line
13:19
<
FromGitter >
<sdogruyol> something like this should be ok
13:20
<
mini-me_ >
aha! and if the client was dependend on that callback, i don't have to use a spawn
13:20
<
mini-me_ >
because the other requests are also spawns, so non-blocking
13:20
<
FromGitter >
<sdogruyol> yeah
13:20
<
mini-me_ >
that's really cool
13:20
<
FromGitter >
<sdogruyol> well, it's all about your architecture
13:21
<
mini-me_ >
yeah it's a simple http api that gets data from redis
13:21
<
FromGitter >
<sdogruyol> furthermore you can use Channel's to sync
13:21
<
mini-me_ >
with channel's i have less experience
13:21
<
FromGitter >
<sdogruyol> you can get a good idea here
13:21
<
mini-me_ >
it's the data stream between fibers i read
13:21
<
FromGitter >
<sdogruyol> it's really enlightening once you grok
13:22
<
FromGitter >
<sdogruyol> understand*
13:22
<
mini-me_ >
ah, do i have to use channels in the code example you gave me
13:22
<
FromGitter >
<sdogruyol> not necessarily
13:23
<
FromGitter >
<sdogruyol> but if you want to sync two fibers
13:23
<
FromGitter >
<sdogruyol> you should
13:26
<
mini-me_ >
but the more i use fibers in a socket callback, the more complex it gets right
13:26
<
mini-me_ >
and adds latency
13:28
<
FromGitter >
<sdogruyol> well
13:28
<
FromGitter >
<sdogruyol> it definitely adds some overhead but it's nonblocking so
13:28
<
FromGitter >
<sdogruyol> Fibers are cheap to create
13:29
<
FromGitter >
<sdogruyol> even thousands of them are OK
13:29
<
mini-me_ >
it reminds me of a bidirectional pipe
13:29
<
FromGitter >
<sdogruyol> yeah
13:32
aldum has left #crystal-lang [#crystal-lang]
13:32
<
mini-me_ >
do you know of a way to capture all errno errors?
13:32
<
mini-me_ >
without the program crashing
13:32
<
mini-me_ >
i use this in my ruby socket program
13:33
<
mini-me_ >
or capture all main errors without crashing?
13:39
<
mini-me_ >
i don't know if you implent something that in your program, i can't find it
13:53
<
mini-me_ >
yes i see
13:53
<
mini-me_ >
but is there a way to capture a main program crash?
13:57
* mini-me_
searching through my ruby code
14:02
unshadow has joined #crystal-lang
14:11
<
mini-me_ >
or is this not possible?
14:18
g3funk is now known as braidn
14:42
matp has quit [Remote host closed the connection]
14:47
matp has joined #crystal-lang
14:52
<
crystal-gh >
crystal/master fad767c Ary Borenszweig: Merge pull request #3248 from will/uintarraynew...
14:52
<
crystal-gh >
crystal/master c0debf9 Will Leinweber: Array.new(size, &block) accepts UInt32
14:54
<
crystal-gh >
crystal/master 33111b2 Ary Borenszweig: Compiler: fixed a few issues with tuples, unions and downcasting. Fixes #3132
14:54
<
crystal-gh >
crystal/master 7b7380d Ary Borenszweig: Compiler: fixed macro hooks for generic types. Fixes #3250
15:17
pawnbox has quit [Remote host closed the connection]
15:18
pawnbox has joined #crystal-lang
15:20
pawnbox has quit [Remote host closed the connection]
15:20
pawnbox has joined #crystal-lang
15:58
Ven_ has joined #crystal-lang
15:59
Ven_ has quit [Client Quit]
16:00
Ven_ has joined #crystal-lang
16:03
Ven_ has quit [Client Quit]
16:06
Ven_ has joined #crystal-lang
16:07
Ven_ has quit [Client Quit]
16:11
Ven_ has joined #crystal-lang
16:12
Ven_ has quit [Client Quit]
16:12
Ven_ has joined #crystal-lang
16:13
Ven_ has quit [Client Quit]
16:14
<
mini-me_ >
a very good day , and thank you sdog!
16:14
mini-me_ has left #crystal-lang [#crystal-lang]
16:15
<
FromGitter >
<sdogruyol> Thanks a lot
16:16
Ven_ has joined #crystal-lang
16:21
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:24
Ven_ has joined #crystal-lang
16:25
Ven_ has quit [Client Quit]
16:25
Ven_ has joined #crystal-lang
16:26
Ven_ has quit [Client Quit]
16:29
Ven_ has joined #crystal-lang
16:31
Ven_ has quit [Client Quit]
16:33
Ven_ has joined #crystal-lang
16:34
Ven_ has quit [Client Quit]
16:38
Ven_ has joined #crystal-lang
16:39
Ven_ has quit [Client Quit]
16:39
Ven_ has joined #crystal-lang
16:40
mkl0501 has joined #crystal-lang
16:44
Ven_ has quit [Client Quit]
16:47
Ven_ has joined #crystal-lang
16:48
Ven_ has quit [Client Quit]
16:48
Ven_ has joined #crystal-lang
16:49
Ven_ has quit [Client Quit]
16:52
Ven_ has joined #crystal-lang
16:52
Ven_ has quit [Client Quit]
16:53
Ven_ has joined #crystal-lang
17:20
daekano has quit [Ping timeout: 250 seconds]
17:21
matp has quit [Ping timeout: 276 seconds]
17:21
Liothen has quit [Ping timeout: 276 seconds]
17:22
matp has joined #crystal-lang
17:29
daekano has joined #crystal-lang
17:32
Liothen has joined #crystal-lang
17:35
Liothen has quit [Changing host]
17:35
Liothen has joined #crystal-lang
17:39
Yxhuvud has quit [Ping timeout: 260 seconds]
18:00
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:11
unshadow has quit [Quit: leaving]
18:37
bungoman has quit [Read error: Connection reset by peer]
18:37
bungoman has joined #crystal-lang
18:38
bungoman has quit [Max SendQ exceeded]
18:41
Yxhuvud has joined #crystal-lang
20:45
pawnbox has quit [Remote host closed the connection]
20:55
pawnbox has joined #crystal-lang
20:56
x0f_ is now known as x0f
20:59
pawnbox has quit [Remote host closed the connection]
20:59
pawnbox has joined #crystal-lang
21:05
<
Yxhuvud >
Hmm. Is it intentional to not have a default handler for C-c C-c that exit the program?
21:12
<
BlaXpirit >
Yxhuvud, i don't understand
21:14
<
Yxhuvud >
well a default handler to whatever interrupt is usually generated for C-c C-c. That would be SIGINT, perhaps?
21:14
<
BlaXpirit >
Yxhuvud, nothing is done against it. i've been able to interrupt just fine.
21:16
<
Yxhuvud >
hmm. seems it handles SIGQUIT but not SIGQUIT by quitting.
21:16
<
Yxhuvud >
the second sigquit shoudl be sigint.
21:37
coderobe has joined #crystal-lang
21:56
pawnbox has quit [Remote host closed the connection]
21:57
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:06
pawnbox has joined #crystal-lang
22:07
steenuil has joined #crystal-lang
22:11
pawnbox has quit [Ping timeout: 260 seconds]
22:15
bjz has joined #crystal-lang
22:33
bjz has quit [Read error: Connection reset by peer]
22:41
ssvb has quit [Ping timeout: 276 seconds]
22:48
Philpax has quit [Ping timeout: 250 seconds]
22:56
pawnbox has joined #crystal-lang
23:00
pawnbox has quit [Ping timeout: 250 seconds]
23:06
ssvb has joined #crystal-lang
23:12
Philpax has joined #crystal-lang
23:44
<
RX14 >
whyy is unbuffered_read private
23:44
<
RX14 >
i'm trying to use an inotify file descriptor for fucks sake
23:44
<
RX14 >
i can't read 8192 bytes
23:45
pawnbox has joined #crystal-lang
23:50
pawnbox has quit [Ping timeout: 276 seconds]