00:19
Groogy has quit [Ping timeout: 248 seconds]
00:22
<
FromGitter >
<girng> :D
00:45
duane has quit [Ping timeout: 272 seconds]
01:03
<
FromGitter >
<Blacksmoke16> thats a new one
01:04
<
FromGitter >
<watzon> That is a new one
01:07
<
FromGitter >
<Blacksmoke16> interesting
01:18
<
FromGitter >
<Blacksmoke16> and of course these are never easy to reduce
01:22
<
FromGitter >
<watzon> Nope they're the worst
01:28
<
FromGitter >
<Blacksmoke16> alright well its a bug with my serializer shard
01:29
<
FromGitter >
<Blacksmoke16> rofl
01:29
<
FromGitter >
<Blacksmoke16> which seems to be caused by me removing some code i left for testing last release
01:38
<
FromGitter >
<Blacksmoke16> oo i got it
01:38
<
FromGitter >
<Blacksmoke16> now to reduce
01:46
<
FromGitter >
<Blacksmoke16> moving the newing up the of validator into a macro included seems to fix it
01:49
<
FromGitter >
<Blacksmoke16> ill make an issue
01:56
<
FromGitter >
<watzon> I just realized, I actually got that same error recently
01:56
<
FromGitter >
<watzon> I think while working on Apatite
02:00
<
FromGitter >
<Blacksmoke16> Able to reproduce?
02:03
<
FromGitter >
<watzon> Haven't tried. The playground seems sufficient.
02:04
<
FromGitter >
<Blacksmoke16> π
02:15
laaron- has quit [Remote host closed the connection]
02:19
laaron has joined #crystal-lang
02:25
<
FromGitter >
<dscottboggs_gitlab> oh boy that's a nasty one haha
02:25
<
FromGitter >
<Blacksmoke16> nearly the same code
02:26
<
FromGitter >
<Blacksmoke16> well issue there is prob inheritance, so prob not really related
02:37
<
FromGitter >
<Blacksmoke16> easy work around at least
02:41
<
FromGitter >
<Blacksmoke16> @girng i found your music thread :P
02:45
<
FromGitter >
<Blacksmoke16> added some of my fav bands
02:46
laaron- has joined #crystal-lang
03:24
<
FromGitter >
<girng> @Blacksmoke16 4 months too late bro, what's wrong with you
03:24
<
FromGitter >
<girng> π
03:25
<
FromGitter >
<Blacksmoke16> must have been when i wasnt on it too much
03:41
rohitpaulk has joined #crystal-lang
03:54
laaron has joined #crystal-lang
03:55
<
FromGitter >
<watzon> Work in progress, but I don't think it will take me too long to finish
03:55
<
FromGitter >
<Blacksmoke16> happened to see that on github haha
03:56
<
FromGitter >
<Blacksmoke16> dunno if it still works tho
03:56
<
FromGitter >
<watzon> Lol I didn't even think to look for an existing implementation
03:56
<
FromGitter >
<watzon> Oh well, I've been wanting to play with steganography for a while
03:57
laaron has quit [Client Quit]
03:57
<
FromGitter >
<Blacksmoke16> well there you go
03:58
laaron has joined #crystal-lang
04:00
laaron has quit [Client Quit]
04:02
laaron has joined #crystal-lang
04:03
laaron has quit [Remote host closed the connection]
04:06
laaron has joined #crystal-lang
04:07
<
FromGitter >
<girng> wtf
04:07
<
FromGitter >
<girng> why would you want to think you are finding hidden messages through typos
04:09
<
FromGitter >
<watzon> Yeah I don't quite get that version of stego
04:09
<
FromGitter >
<Blacksmoke16> :P
04:09
<
FromGitter >
<girng> sounds like a feature that should be in TempleOS
04:10
<
FromGitter >
<watzon> π
04:10
laaron has quit [Client Quit]
04:11
laaron has joined #crystal-lang
04:13
laaron has quit [Remote host closed the connection]
04:16
laaron has joined #crystal-lang
04:19
<
FromGitter >
<dscottboggs_gitlab> @watzon cool :)
04:40
rohitpaulk has quit [Ping timeout: 245 seconds]
04:55
_whitelogger has joined #crystal-lang
05:37
<
FromGitter >
<girng> ROFL at that Rust comment
06:00
absolutejam3 has joined #crystal-lang
06:38
gangstacat has quit [Quit: Δis!]
06:56
sorcus has joined #crystal-lang
07:04
absolutejam3 has quit [Ping timeout: 246 seconds]
07:17
absolutejam3 has joined #crystal-lang
07:28
_whitelogger has joined #crystal-lang
07:40
gangstacat has joined #crystal-lang
07:49
absolutejam3 has quit [Ping timeout: 258 seconds]
08:31
DTZUZU has quit [Read error: Connection reset by peer]
08:34
alex`` has joined #crystal-lang
08:40
_whitelogger has joined #crystal-lang
09:02
ht_ has joined #crystal-lang
09:10
alex`` has quit [Ping timeout: 244 seconds]
09:12
alex`` has joined #crystal-lang
09:54
laaron has joined #crystal-lang
09:55
<
FromGitter >
<girng> heyyy @r00ster91
09:55
<
FromGitter >
<girng> i see you, how r u, where u been
10:37
<
FromGitter >
<bajro17> @watzon where are you from ?
10:37
<
FromGitter >
<watzon> The US
10:37
<
FromGitter >
<bajro17> I see you are so good in crystal until now
10:38
<
FromGitter >
<bajro17> Can you maybe record udemy course or yt
10:38
<
FromGitter >
<bajro17> on udemy until now 0 courses about crystal I cant find anyway any good course
10:39
<
FromGitter >
<watzon> You know that might not be a bad idea
10:39
<
FromGitter >
<bajro17> I try record courses on yt but my voice is bad and I need time to say something on english :D
10:39
<
FromGitter >
<bajro17> at same time you can help a lot of people to learn and also earn some money
10:41
dwdv has joined #crystal-lang
10:42
<
FromGitter >
<watzon> I'll definitely look into it :)
10:43
<
FromGitter >
<watzon> Well I did it y'all! You'd never know it, but this image contains embedded text
11:05
<
FromGitter >
<bararchy> @watzon Stenography ?
11:06
<
FromGitter >
<bajro17> @watzon if you do it please ping me I will buy it instantly :)
11:09
<
FromGitter >
<girng> should i just do if test.size > 0 ?
11:19
<
dingenskirchen >
try adding a `remove_empty: true` to `split`'s param list
11:23
<
FromGitter >
<girng> @dingenskirchen thanks!
11:23
<
FromGitter >
<girng> works
11:23
<
dingenskirchen >
^^
11:25
sagax has quit [Ping timeout: 258 seconds]
11:42
rohitpaulk has joined #crystal-lang
11:47
rohitpaulk has quit [Ping timeout: 246 seconds]
11:52
<
dingenskirchen >
how bad on the sin scale would you rate adding (limited) UFCS to a language that doesn't have it?
11:58
_whitelogger has joined #crystal-lang
12:10
absolutejam3 has joined #crystal-lang
12:19
alex`` has quit [Ping timeout: 272 seconds]
12:21
alex`` has joined #crystal-lang
12:37
absolutejam3 has quit [Ping timeout: 245 seconds]
13:21
lucasb has joined #crystal-lang
13:25
alex`` has quit [Ping timeout: 246 seconds]
13:27
alex`` has joined #crystal-lang
13:38
alex`` has quit [Ping timeout: 248 seconds]
13:39
alex`` has joined #crystal-lang
13:47
dingenskirchen has quit [Remote host closed the connection]
14:01
<
FromGitter >
<girng> rofl
14:01
<
FromGitter >
<girng> wtf
14:28
_whitelogger has joined #crystal-lang
14:32
alex`` has quit [Ping timeout: 272 seconds]
14:34
alex`` has joined #crystal-lang
14:49
gangstacat has quit [Ping timeout: 252 seconds]
14:54
gangstacat has joined #crystal-lang
15:08
rohitpaulk has joined #crystal-lang
15:11
rohitpaulk has quit [Remote host closed the connection]
15:46
laaron has joined #crystal-lang
16:01
<
jokke >
hey is it possible to have my shard pull git submodules?
16:04
<
jokke >
i need to pull an extension repostitory (not crystal)
16:07
<
FromGitter >
<Blacksmoke16> when its installed?
16:08
<
FromGitter >
<Blacksmoke16> could you add a postinstall hook?
16:09
<
jokke >
yeah i did that
16:09
<
FromGitter >
<Blacksmoke16> that would prob do it
16:09
<
jokke >
but since it's not a git repo at the time it's being called the git submodule commands wont do anything
16:09
<
jokke >
but i just did it with a clone now
16:10
<
jokke >
i call make ext in the postinstall hook
16:10
<
FromGitter >
<Blacksmoke16> that'll work
16:13
<
FromGitter >
<girng> @Blacksmoke16 can you take a look at dingens code above and ELI5 plz
16:16
<
FromGitter >
<Blacksmoke16> not actually sure
16:16
<
FromGitter >
<Blacksmoke16> ah i see
16:17
<
FromGitter >
<Blacksmoke16> looks like he just added a macro that adds a method missing macro hook
16:17
<
FromGitter >
<Blacksmoke16> which adds a `#puts` method to `String`
16:17
<
FromGitter >
<girng> wat lol
16:21
<
FromGitter >
<girng> aww macro shenanigans
16:21
<
FromGitter >
<girng> yeah f that
16:21
<
FromGitter >
<girng> thx for explanation though
16:21
<
FromGitter >
<girng> i don't like macros
16:22
<
FromGitter >
<Blacksmoke16> anymore? :P
16:22
<
FromGitter >
<girng> yeah lol, used to but i just don't use em anymore
16:22
<
FromGitter >
<girng> hard to explain, but yeah
16:23
<
FromGitter >
<girng> i feel like they are "yet another programming language" you need to learn
16:23
<
FromGitter >
<girng> when i already got my bread and butter with crystal
16:23
<
FromGitter >
<Blacksmoke16> do you use `property/getter`?
16:23
<
FromGitter >
<girng> I mean, macroland syntax {%, etc
16:24
<
FromGitter >
<Blacksmoke16> it has its uses
16:24
<
FromGitter >
<girng> true
16:32
<
FromGitter >
<j8r> @girng that's the good approach, not to use macros when not strongly needed
16:32
<
FromGitter >
<girng> thx
16:33
<
FromGitter >
<j8r> else it can quickly become a mess to debug
16:33
<
FromGitter >
<j8r> and understand
16:38
sagax has joined #crystal-lang
16:41
<
FromGitter >
<andrius> Hi, I am not sure is this is a right place to ask. Learning crystal-lang, currently I do some API thing; I have class with `DB.mapping` and `JSON.mapping`, and things works great except I do need special conditional converter: some of `Bool` fields from JSON should be converted to the nil (if they was null) or to a string with values 'yes' and 'no' in the database (and in opposite way). Unfortunately all the
16:41
<
FromGitter >
... experiments I did was failed, can't really get it working right and getting something like this: `Expected string but was bool at 1:32 (JSON::ParseException)`. Any references to start with?
16:45
<
FromGitter >
<Blacksmoke16> sec
16:46
<
FromGitter >
<Blacksmoke16> then use it like `bool_field: {type: Bool, converter: BoolConverter},`
16:57
<
FromGitter >
<girng> blacksmoke is a beast
17:00
<
FromGitter >
<Blacksmoke16> Probably would error if it's null tho
17:01
<
FromGitter >
<Blacksmoke16> Would need to handle that if it's a possible value
17:18
<
FromGitter >
<andrius> And another question, I shall populate through HTTP::Client an big object (reduced swagger-like specification), in ruby that's trivial β I just making hash with all the embedded sub-hashes, convert to json and post. What would be the best way with Crystal? Do I need a builder for given object?
17:22
<
FromGitter >
<Blacksmoke16> Should just be able to do to_json on the hash
17:29
laaron has quit [Remote host closed the connection]
17:32
laaron has joined #crystal-lang
17:48
rohitpaulk has joined #crystal-lang
18:03
rohitpaulk has quit [Remote host closed the connection]
18:48
DTZUZO has joined #crystal-lang
18:59
ht_ has quit [Quit: ht_]
18:59
ht_ has joined #crystal-lang
19:08
dingenskirchen has joined #crystal-lang
19:10
alex`` has quit [Ping timeout: 245 seconds]
19:10
dingenskirchen has quit [Remote host closed the connection]
19:12
alex`` has joined #crystal-lang
19:18
dingenskirchen has joined #crystal-lang
19:24
absolutejam3 has joined #crystal-lang
19:31
DTZUZO has quit [Ping timeout: 245 seconds]
19:42
dingenskirchen1 has joined #crystal-lang
19:43
dingenskirchen has quit [Remote host closed the connection]
19:43
dingenskirchen1 is now known as dingenskirchen
19:47
dingenskirchen has quit [Quit: dingenskirchen]
19:47
dingenskirchen has joined #crystal-lang
19:47
dingenskirchen has quit [Client Quit]
19:48
dingenskirchen has joined #crystal-lang
19:49
laaron- has joined #crystal-lang
19:57
absolutejam4 has joined #crystal-lang
19:57
absolutejam3 has quit [Ping timeout: 268 seconds]
19:59
dingenskirchen has quit [Quit: dingenskirchen]
19:59
dingenskirchen has joined #crystal-lang
20:18
dingenskirchen has quit [Quit: dingenskirchen]
20:20
dingenskirchen has joined #crystal-lang
20:24
dingenskirchen has quit [Client Quit]
20:24
dingenskirchen has joined #crystal-lang
20:30
lucasb has quit [Quit: Connection closed for inactivity]
20:34
ht_ has quit [Quit: ht_]
20:59
lucasb has joined #crystal-lang
21:06
<
FromGitter >
<tenebrousedge> dingenskirchen : why UFCS?
21:17
<
dingenskirchen >
wdym why?
21:18
<
FromGitter >
<tenebrousedge> what's the use-case?
21:18
<
dingenskirchen >
oh right
21:19
<
dingenskirchen >
is a short text by walter bright on the idea
21:19
<
FromGitter >
<tenebrousedge> Using it for `puts` makes sense, but `puts` is somewhat unusual
21:19
<
dingenskirchen >
tl/dr more encapsulation by moving functions operating on objects out of the objects
21:21
<
FromGitter >
<tenebrousedge> isn't that what a mixin/module does?
21:22
<
dingenskirchen >
yeeah it kinda solves a similar problem
21:23
<
dingenskirchen >
it was more of a fun proof of concept than anything serious anyway :V
21:23
<
FromGitter >
<tenebrousedge> well, I appreciate the code and the explanation, thank you
21:24
<
dingenskirchen >
^^
21:24
<
dingenskirchen >
oh god what happened to my nice ascii emote
21:24
<
FromGitter >
<tenebrousedge> looks normal here (Firefox / Linux)
21:25
dingenskirchen has quit [Quit: dingenskirchen]
21:25
dingenskirchen has joined #crystal-lang
21:25
<
dingenskirchen >
probably thunderbird doing weird things
21:48
sorcus has quit [Ping timeout: 276 seconds]
21:49
<
FromGitter >
<asterite> I needed to add a method to JSON::Builder, I'll later send it as a PR but for now you can use that monkey-patch
21:59
<
FromGitter >
<Blacksmoke16> whoa interesting
21:59
<
FromGitter >
<Blacksmoke16> ill check it out, thanks!
22:01
DTZUZO has joined #crystal-lang
22:01
absolutejam4 has quit [Ping timeout: 244 seconds]
22:05
<
FromGitter >
<asterite> I don't have more time today, but maybe tomorrow I'll try integrating it with oq (at least the parts that I can, not the XML right now)
22:06
<
FromGitter >
<asterite> I also kind of dislike that the json and yaml pull parser interfaces are so different... one uses enums, the other symbols... I'll probably change the symbols one to enums, I prefer type-safety
22:06
DTZUZO has quit [Ping timeout: 245 seconds]
22:06
<
FromGitter >
<Blacksmoke16> aye, working on XML input is next on my list
22:07
<
FromGitter >
<Blacksmoke16> i appreciate the help
22:07
DTZUZO has joined #crystal-lang
22:13
DTZUZO has quit [Ping timeout: 268 seconds]
22:22
<
FromGitter >
<Blacksmoke16> i think i see the benefit of this
22:23
<
FromGitter >
<Blacksmoke16> `OQ::Stream.json_to_yaml(ARGF, STDOUT)`
22:23
<
FromGitter >
<Blacksmoke16> `Maximum resident set size (kbytes): 8716`
22:24
<
FromGitter >
<Blacksmoke16> vs `JSON.parse(ARGF).to_yaml(STDOUT)` which has to load it into memory
22:25
<
FromGitter >
<Blacksmoke16> `Maximum resident set size (kbytes): 3038008`
22:25
<
FromGitter >
<Blacksmoke16> π―
22:26
<
FromGitter >
<Blacksmoke16> processing time got a bit better but uses sooo much less memory
22:31
<
FromGitter >
<Blacksmoke16> ill take a stab at the xml version, shouldnt be too bad now that i got something to go on
23:07
<
FromGitter >
<asterite> Yeah, the downside of streaming is that I think it's a bit slower to parse, but shouldn't be that terrible
23:08
<
FromGitter >
<Blacksmoke16> benchmark i did, it finished like 5 sec faster
23:08
<
FromGitter >
<Blacksmoke16> :shrug: ill take it
23:22
<
FromGitter >
<asterite> cool!
23:23
<
FromGitter >
<asterite> maybe faster because no memory needs to be allocated, or at least not that much
23:23
<
FromGitter >
<Blacksmoke16> Could be
23:50
lucasb has quit [Quit: Connection closed for inactivity]