RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Blacksmoke16> rip, previous_def doesnt work for macros
<FromGitter> <dscottboggs_gitlab> oh shit 😬
<FromGitter> <dscottboggs_gitlab> Like you can just monkey-patch your version of a library or even crystal itself right in your project directly.
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c9c0fa06a9761361b12587a]
<FromGitter> <Blacksmoke16> my work around
<FromGitter> <Blacksmoke16> oh wait
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c9c10398df8b02f046f8341]
<FromGitter> <Blacksmoke16> there :P just make it the same as the top level one, but throw a `# :nodoc:` on that one ha
<FromGitter> <dscottboggs_gitlab> someday I'll understand the compiler well enough to be able to monkey-patch `and` and `or` back into the language as aliases for `&&` and `||` πŸ˜†
<FromGitter> <Blacksmoke16> xD
<FromGitter> <dscottboggs_gitlab> I don't get it. that's what you had before
<FromGitter> <Blacksmoke16> well before i was just using an empty macro
<FromGitter> <Blacksmoke16> which was overriding the top level one
<FromGitter> <Blacksmoke16> ayy, all specs are passing again
<FromGitter> <Blacksmoke16> we're getting there
<FromGitter> <Blacksmoke16> going to be a big release, lots of new goodies :)
<FromGitter> <dscottboggs_gitlab> nice :)
laaron- has quit [Remote host closed the connection]
<FromGitter> <Blacksmoke16> be in a good place after this for setting up auto generation of swagger specs
<FromGitter> <dscottboggs_gitlab> what
<FromGitter> <Blacksmoke16> you dont know about that?
<FromGitter> <Blacksmoke16> sec
<FromGitter> <Blacksmoke16> ```code paste, see link```
<FromGitter> <Blacksmoke16> basic allows you to like auto generate nice docs like in that editor, clients for reading data from that api, and servers to serve it
<FromGitter> <Blacksmoke16> like would auto generate all your rails routes/models etc
<FromGitter> <Blacksmoke16> is pretty slick
<FromGitter> <dscottboggs_gitlab> Oh that's really nice
<FromGitter> <Blacksmoke16> Indeed
olbat has quit [Ping timeout: 272 seconds]
olbat has joined #crystal-lang
laaron has joined #crystal-lang
marmotini_ has joined #crystal-lang
DmitryBochkarev has joined #crystal-lang
shmibs has quit [Quit: leaving =o]
shmibs has joined #crystal-lang
DmitryBochkarev has quit [Ping timeout: 250 seconds]
DmitryBochkarev has joined #crystal-lang
marmotini_ has quit [Ping timeout: 245 seconds]
marmotini has joined #crystal-lang
flaviodesousa has joined #crystal-lang
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #crystal-lang
DmitryBochkarev has quit [Remote host closed the connection]
DmitryBochkarev has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 268 seconds]
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 246 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 245 seconds]
marmotini has quit [Ping timeout: 245 seconds]
marmotini_ has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
ashirase has quit [Ping timeout: 246 seconds]
marmotini has quit [Ping timeout: 255 seconds]
ashirase has joined #crystal-lang
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini_ has joined #crystal-lang
marmotini_ has quit [Ping timeout: 246 seconds]
marmotini has joined #crystal-lang
johndescs has quit [Ping timeout: 252 seconds]
johndescs has joined #crystal-lang
marmotini has quit [Ping timeout: 255 seconds]
marmotini has joined #crystal-lang
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 268 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 250 seconds]
<FromGitter> <girng> If anyone has some free time today, please visit https://forum.crystal-lang.org/t/ways-to-spread-the-word-and-keep-the-community-engaged/613 and share your ideas!
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 250 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 272 seconds]
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 246 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
lucasb has quit [Quit: Connection closed for inactivity]
marmotini has quit [Ping timeout: 250 seconds]
marmotini_ has quit [Ping timeout: 245 seconds]
marmotini_ has joined #crystal-lang
DmitryBochkarev has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 245 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 250 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 255 seconds]
<FromGitter> <iambudi> Does crystal has Firebird database support?
marmotini has quit [Ping timeout: 244 seconds]
marmotini_ has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
<FromGitter> <Blacksmoke16> could probably use https://github.com/crystal-lang/crystal-db
<FromGitter> <Blacksmoke16> but would need to see if there is a driver shard for that specifically
<FromGitter> <Blacksmoke16> otherwise could create one ;)
marmotini_ has quit [Ping timeout: 255 seconds]
marmotini_ has joined #crystal-lang
marmotini has joined #crystal-lang
<FromGitter> <alex-lairan> Hi, can I create pipe between a Crystal and C++ program ? ⏎ ⏎ I am using named pipe
<FromGitter> <alex-lairan> Is `IO#pipe` can do it ?
marmotini_ has quit [Ping timeout: 272 seconds]
gangstacat has quit [Ping timeout: 250 seconds]
<FromGitter> <kinxer> @girng Are you available?
DmitryBochkarev has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
<FromGitter> <j8r> with any program yes @alex-lairan
marmotini has quit [Ping timeout: 272 seconds]
<FromGitter> <j8r> you can create a pipe to send data on it
<FromGitter> <j8r> or a socket?
DmitryBochkarev has joined #crystal-lang
laaron- has joined #crystal-lang
laaron has quit [Remote host closed the connection]
<FromGitter> <vladfaust> Is is possible to call superclass method from another method within a child?
<FromGitter> <vladfaust> Given that this method is overriden in the child
<FromGitter> <vladfaust> https://carc.in/#/r/6ls7
<FromGitter> <vladfaust> https://carc.in/#/r/6ls9 =(
<z64> yes, probably either cast or accept `parent : Bool` that falls onto `return super if parent`, etc
<FromGitter> <vladfaust> Cast doesn't work, as seen in https://carc.in/#/r/6ls9
<z64> ah, misread. been reading too much "foo" and "bar" lately :P
<FromGitter> <vladfaust> `parent` argument looks like an ugly workaround
<FromGitter> <vladfaust> But looks like I have nothing left
<FromGitter> <vladfaust> Thanks
<z64> that, or you simply don't use an override
gangstacat has joined #crystal-lang
<FromGitter> <kinxer> @vladfaust You could make a copy-constructor in the parent and then instantiate a new parent and call the method. It's not pretty, but I like it better than the extra method argument (and casting doesn't work).
<FromGitter> <vladfaust> Well, doesn't fit my case
<FromGitter> <vladfaust> Yeah, that what I come to simultaneously with you, @z64 :)
<FromGitter> <vladfaust> Shouldn't cast work, though?
<z64> no, i don't think so
<FromGitter> <vladfaust> Can you briefly explain why?
<z64> using `as` doesn't change the address of the functions that will be called on that instance of the object. it just asserts the type, nothing more
<FromGitter> <vladfaust> I see, thanks
<FromGitter> <vladfaust> But should there be a way to do what I've mentioned, in an ideal OOP language?
<z64> i've never seen anything like what you mentioned / anyone needing something like it
<FromGitter> <vladfaust> Of course
<FromGitter> <yxhuvud> If it seems necessary, refactor until it isn't.
<FromGitter> <vladfaust> Thanks, I did refactor it
flaviodesousa has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
lucasb has joined #crystal-lang
<FromGitter> <j8r> I've advanced a bit on my experiment: https://carc.in/#/r/6lt2
<FromGitter> <j8r> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c9ce260e422d1519929b436]
<FromGitter> <vladfaust> Very nice
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 246 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
marmotini has quit [Remote host closed the connection]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 246 seconds]
<jokke> do you guys see any kind of off by one error or similar in this logic? https://p.jokke.space/3IuHt/
<jokke> (the hashes don't match)
<jokke> with highlighting
<jokke> i have tested before that the length of the response body indeed is 1024 bytes long
<FromGitter> <straight-shoota> Why don't you take a look at the raw content?
<FromGitter> <bew> `super` ?
<FromGitter> <bew> arf didn't see the other messages..
Raimondi has quit [Quit: WeeChat 2.3: Β‘Chau!]
<jokke> hm yeah i just did
<jokke> and it's equal
<jokke> weird..
<FromGitter> <straight-shoota> why are you using hashs for comparison anyway? with only 1024 bytes it's probably easier to directly compare the data slices
<jokke> yeah
<jokke> this passes
DmitryBochkarev has quit [Ping timeout: 250 seconds]
<jokke> oh
<jokke> sorry
<jokke> old one
<jokke> !shrug
Raimondi has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 250 seconds]
return0e has joined #crystal-lang
return0e_ has quit [Ping timeout: 246 seconds]
marmotini has quit [Remote host closed the connection]
<FromGitter> <Blacksmoke16> https://github.com/Blacksmoke16/athena/issues/9#issuecomment-477716915 updated the RFC i made for CORS with some more details on how the overall feature will work if anyone has any feedback
<FromGitter> <bew> So amazing, it's the natural path, but I've been wanting a cross plateform light vm in the last few days... This is exactly what i want! Can't wait to have wasm (not for browser) in cr :p ⏎ ⏎ https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/
return0e has quit []
return0e has joined #crystal-lang
DmitryBochkarev has joined #crystal-lang
ua has quit [Ping timeout: 255 seconds]
ua has joined #crystal-lang
DmitryBochkarev has quit [Ping timeout: 246 seconds]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #crystal-lang
moei has quit [Quit: Leaving...]
lucasb has quit [Quit: Connection closed for inactivity]