<FromGitter>
<KCreate> Are Codecamp sessions being recorded? I'm particularly interested in the Day 2 "Oh my compiler" talk
<FromGitter>
<fridgerator> ^^ same
Aytan72 has joined #crystal-lang
<FromGitter>
<mverzilli> CodeCamp sessions are not going to be recorded, except for an open Q&A session at the end of day 2, let me check for the registration link
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zipR4ND has quit [Ping timeout: 240 seconds]
yogg-saron has joined #crystal-lang
matp has joined #crystal-lang
matp has quit [Client Quit]
<FromGitter>
<krg7880> I attempting to create a new Date object and running into the following error. Any ideas on what I'm doing wrong? Looks like the format string is breaking it. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=590b3ce6e1b61e93281140ce]
<FromGitter>
<l3kn> `Time.new` creates an `Time` object, not a string
<FromGitter>
<l3kn> so at the time you are constructing it, there is no need to pass in the format. To get the string you can use `time.to_s("%a %b %d %Y %T")`
<FromGitter>
<krg7880> Makes sense... But I believe the document says I can pass the format at the time of construction, no?
<FromGitter>
<l3kn> you mean the `kind` parameter?
<FromGitter>
<krg7880> Yeah, guess I'm misunderstanding that bit
<FromGitter>
<sdogruyol> @RX14 how did you fix techempower benchmark ?
<FromGitter>
<sdogruyol> did you use Kemal master?
<FromGitter>
<sdogruyol> oh looks like
<FromGitter>
<sdogruyol> have you tested on your local?
<RX14>
yes I have
<RX14>
@sdogruyol at the end of each benchmark run, when all the HTTP connections disconnect, there's a lot of "Error writing file: Broken pipe" errors
<FromGitter>
<sdogruyol> ugh
<FromGitter>
<sdogruyol> not good
<RX14>
well it doesn't affect performance
<RX14>
and I think the errors really should just be eaten up by kemal
<RX14>
idk
<RX14>
it's very hard to detect whether it's a legit error or not
<FromGitter>
<sdogruyol> they're just warnings right?
<RX14>
yeah
<FromGitter>
<sdogruyol> it confuses me also
<RX14>
all it means is the client ended the TCP connections while kemal was sending the response
<FromGitter>
<sdogruyol> how's the performance
<RX14>
it's... okay
<RX14>
i can't really tell
<RX14>
since it's in a VM
<RX14>
it seems to do pretty OK vs go now
<RX14>
but we can't really tell still
<FromGitter>
<sdogruyol> yeah
<FromGitter>
<sdogruyol> a vm vs 40 core instance :D
<RX14>
well the problem is that it's 40 shite cores
<RX14>
which really is disadvantageous to crystal
<FromGitter>
<sdogruyol> you mean with low ghz?
<RX14>
low singlecore performance
<RX14>
I think
<RX14>
cpubenchmark doesn't really have a benchmark available
<RX14>
which sucks
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/v9zhu
<crystal-gh>
crystal/master d2dcc02 Brian J. Cardiff: Fixes #4378 sample/tcp_server.cr
wontruefree has joined #crystal-lang
<wontruefree>
did the UUID patch ever get merged I thought that was merged a while ago but I dont see it
<FromGitter>
<Sija> ATM there’s only `SecureRandom.uuid`
<wontruefree>
ok
<wontruefree>
interesting
<wontruefree>
thanks
<wontruefree>
what is the most used web framework these days? I was going to try and do a project in Crystal but I see there are many linked in awesome-crystal in various states
<FromGitter>
<Sija> Kemal i guess
<FromGitter>
<Sija> although it’s rather Sinatra-like barebones
<wontruefree>
cool
<wontruefree>
yeah I think I had tried that a while ago
Cyrus has quit [Read error: Connection reset by peer]
Cyrus has joined #crystal-lang
Cyrus is now known as Guest4409
wontruefree has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wontruefree has joined #crystal-lang
<FromGitter>
<fridgerator> are bmp's still used? (serious question)
<FromGitter>
<jwoertink> I've seen them used in video games a lot. Like 2d style ones. Not really sure why though
<FromGitter>
<fridgerator> I had a pretty mean collection back in middle school
<FromGitter>
<redcodefinal> I use them in a couple kinds of projects, only when I need a simple format to store color values without compression.
<FromGitter>
<redcodefinal> They are also great for pixel art, so I'd prefer them over PNG or GIF
<FromGitter>
<fridgerator> ah ok
<Papierkorb>
with PNG you shouldn't have any artifacts either though
<FromGitter>
<redcodefinal> I'm mostly using them for this little esoteric language I've been writing. Basically it turns a bitmap into a grid of instructions like befunge. Maybe I wrote the code wrong but I tested it with PNG at the time and was having issues with the colors sometimes being just 1 off. (ex 0x000000 would become 0x010101) Does PNG compression cause this?
<Papierkorb>
PNG is loss-less, it shouldn't by itself cause any difference
<FromGitter>
<redcodefinal> Hmm must have been something I did then.
<Papierkorb>
Looks like a filter (next section) could cause bytes and thus pixels to be "off" to some degree.
olbat has joined #crystal-lang
<FromGitter>
<redcodefinal> > PNG compression method 0 (the only compression method presently ⏎ defined for PNG) ⏎ ⏎ Looks like all that time I spent playing around with the compression slider in GIMP was for nothing. [https://gitter.im/crystal-lang/crystal?at=590b82475c89dc5361777b31]
<Papierkorb>
zlib supports differing compression rates, it's not nonsense, but tbh, when I store PNGs, I always use 9
<FromGitter>
<l3kn> Maybe the offset is from converting between different bit-depths, I don't think filters could introduce such errors
<FromGitter>
<redcodefinal> It's possible, I'm actually trying some stuff out now with StumpyPNG, the last time I tried it I was using some ruby library, maybe RMagick or something.
<RX14>
as I said before I believe it'll pick up again but failing to keep momentum is a failing of the core team
<Papierkorb>
well let's be fair, it's not an easy undertaking and I'd guess that they also never did anything like this
<Papierkorb>
I think however that having attainable one or two month milestones would be nice
<FromGitter>
<fridgerator> It is frustrating, everyone has the taste for windows support and parallelism (v 1.0), and the bountysource donations are higher now than ever
<FromGitter>
<redcodefinal> I say use this down time to start porting over what we need to as a community to get to a good level in terms of packages. Good time to get things like telnet done
<RX14>
ideally any member of the core team could disappear and crystal would carry on fine
<FromGitter>
<redcodefinal> I want offical RPi support before I want Windows but I understand thats the gold standard
<RX14>
but that doesn't seem to be the case at the moment
<RX14>
we have official RPi support...
<RX14>
in that ARM is supported
<RX14>
and we even have a debian repo now
<FromGitter>
<redcodefinal> Yeah but it's not "official" that being said I am playing around with it right now ;D
<RX14>
it is official support
<RX14>
it's been official support since the ARM pr was merged
<RX14>
it's just that there was no build for it until recently
<RX14>
now it's both official and simple
<wontruefree>
parallelism seems cool
<wontruefree>
I would like that
<FromGitter>
<redcodefinal> Huh I didn't know, in the past Ive tried using the apt-get method of install on RPi and it failed because there were no arm targets
<RX14>
yes
<RX14>
that's different from not having official support
<FromGitter>
<redcodefinal> Can we add the repo and `apt-get` now?
<FromGitter>
<redcodefinal> on RPi I mean?
<RX14>
unofficial support to me means that bug reports will be put at the bottom of the stack
<RX14>
but no, the code is in master and bugs for ARM are just as important
<RX14>
and yes, now you can apt-get it but you have to use a different repo
<FromGitter>
<redcodefinal> Thats good to hear. I have a project that uses GPIO and I'd be happy to port GPIO
<FromGitter>
<redcodefinal> yeah @ysbaddaden sent that to me
<FromGitter>
<redcodefinal> I literally just talked to him about it two days ago
wontruefree has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wontruefree has joined #crystal-lang
<crystal-gh>
[crystal] bcardiff closed pull request #4272: Tool: refactor context/expand/implementation in point of traversaling typed defs (master...fix/crystal-tool/refactor-type-processor) https://git.io/vSXB8
Guest4409 has quit [Quit: WeeChat 1.7]
<FromGitter>
<mgarciaisaia> :wave: Sorry for the delay
<FromGitter>
<mgarciaisaia> I've read the e-mail, I'm about to send the reply
<FromGitter>
<Sija> huh, *Art Of Living* is everywhere… maybe they could spend few bucks on Crystal? ;)
<FromGitter>
<mgarciaisaia> :)
<FromGitter>
<mgarciaisaia> There's nothing that big going on - we're working on Crystal as always, with news and changes... as always :)
bjz has joined #crystal-lang
Ven has joined #crystal-lang
<FromGitter>
<Sija> @mgarciaisaia OT: I’d recommend checking out some criticism in regard to AOL, since fake gurus are havin’ a gr8 biz like always, just sayin’... ;)
Ven is now known as Guest59987
<FromGitter>
<mverzilli> no worries Sija, I'm pretty sure it's a sarcastic avatar
<FromGitter>
<Sija> :+1:
<FromGitter>
<mgarciaisaia> OT: before becaming the keen, good-looking guy I now am (?!?!), I *really* used to look like Sri Sri Ravi Shankar ¯\\\_(ツ)\_/¯
<FromGitter>
<mgarciaisaia> Anyways, know I'm a nice person and have just sent an update on what's going on - 📬
<FromGitter>
<Sija> haha, so now it’s the Sri Sri Ravi’s time to look like/upon you ;)
<FromGitter>
<bew> how to be on mailing list? pleeeease? :smile:
wontruefree has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zipR4ND1 has joined #crystal-lang
zipR4ND has quit [Ping timeout: 268 seconds]
wontruefree has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
wontruefree has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<mverzilli> No prob, I'll check it out tomorrow and merge, thanks 🙏
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<Sija> :+1:
<FromGitter>
<elorest> I’m running into a weird compile issue when trying to convert a namedtuple to hash. ⏎ ⏎ ``` unless args.empty? ⏎ set_attributes(args.to_h) ⏎ end``` ⏎ ⏎ `Can't convert an empty NamedTuple to a Hash` [https://gitter.im/crystal-lang/crystal?at=590bb4e2631b8e4e61a34376]
<FromGitter>
<elorest> wouldn’t the fact that I’m saying do it `unless args.empty?` stop that error from happening?
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest59987 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<bew> The compiler doesn't handle things like that, only types iirc.. ⏎ @elorest how is `args` defined?
<FromGitter>
<elorest> `def initialize(**args)`
<FromGitter>
<elorest> so it can clearly end up being empty. which I’m fine with if not for this error.
<FromGitter>
<elorest> problem is that I can’t have both `initialize` and `initialize(**args) as they override each other.
<FromGitter>
<Sija> try `**options : Object`
<FromGitter>
<elorest> @Sija So far that appears to work. thanks.
<FromGitter>
<Sija> you’re missing parenthesis needed for compiler to differentate between a `Proc` and a `Hash/NamedTuple`
<FromGitter>
<elorest> puts has thrown me off way to many times.
<FromGitter>
<Sija> it’s the same story with every method call i think
<FromGitter>
<elorest> probably yes. other methods I always put parens. `puts block` to me seems similar to `a = block` so it’s caused me problems in the past
<FromGitter>
<bew> so there is an exception for `a = {b: 1}` ? (given `a = anything` handled as a method call is already an exception, I think yes..)