ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.2 | 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> <sergiotapia> Hey guys, quick Q before I dive into Crystal. Can I build a static binary from my Crystal code? I want to build a web app and just have people download a .exe and run it locally without having to install ANYTHING. Is this possible with Crystal?
<RX14> well building an exe isn't possible because crystal doesn't support windows yet
<RX14> but it's possible with some effort
<RX14> it's not too hard to static link for linux in docker
<RX14> no idea how hard it would be in windows
<RX14> for macos it's largely impossible
<RX14> at elast not fully static but you can get a portable executable
<FromGitter> <sergiotapia> this seems bare: https://github.com/crystal-lang/crystal/wiki/Static-Linking
<FromGitter> <sergiotapia> Is this feature a WIP then? I would love to revisit once I can just compile a runnable binary like in Go
pabs has quit [Ping timeout: 276 seconds]
pabs has joined #crystal-lang
<FromGitter> <eliasjpr> Instead of investing in Crystal they went to create their own ruby compiler
TCZ has quit [Quit: Leaving]
Nathanaelle has joined #crystal-lang
Nathanaelle has quit [Read error: Connection reset by peer]
Nathanaelle has joined #crystal-lang
alex`` has joined #crystal-lang
Nathanaelle has quit [Read error: Connection reset by peer]
Nathanaelle has joined #crystal-lang
rohitpaulk has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
Nathanaelle has quit [Read error: Connection reset by peer]
Nathanaelle has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
alex`` has quit [Ping timeout: 265 seconds]
<FromGitter> <bew> @asterite why constants are implemented as types in the compiler?
return0e has quit [Remote host closed the connection]
<crystal-gh> [crystal] bew opened pull request #6160: Allow redefining None to 0 for @[Flags] enum (master...allow-redefine-None-to-0-in-enum-flags) https://git.io/vhly9
return0e has joined #crystal-lang
<FromGitter> <aisrael> Hi, all! Is there any suggested way for a YAML mapping to call a custom setter rather than set an instance variable directly?
<FromGitter> <aisrael> (I'm trying to create an "alias" for a boolean property that sets the property to the inverse value. E.g. `nullable` and `required`)
<FromGitter> <Grabli66> Hi! How to break loop from block?
<hightower3> Hi Grabli66, 'break'
<hightower3> oh from block...
dragonkh has joined #crystal-lang
<FromGitter> <S-YOU> break, next, return, raise xD
<FromGitter> <Grabli66> Break and return does not break loop. Compiler raises error
<FromGitter> <Grabli66> I can raise exception in block and catch it in loop. But i think it's bad.
<FromGitter> <S-YOU> what kind of loop is that?
<FromGitter> <Grabli66> loop do ... end
<FromGitter> <Grabli66> Block is inside of that loop
<hightower3> You call it with block.call and/or yield, and want that block to exit the loop?
<FromGitter> <Grabli66> It's strange. Compiler does not raises error. But does not work as it should
<FromGitter> <Grabli66> Or i breaking case, not a loop? :)
<FromGitter> <Grabli66> No. It also does not work https://play.crystal-lang.org/#/r/47m3
<FromGitter> <S-YOU> captured block has its own scope, you need to use next and checkout value inside loop and break manually there.
<FromGitter> <S-YOU> it was non capture block, you can use break
<FromGitter> <Grabli66> i think while is better https://play.crystal-lang.org/#/r/47mc
<FromGitter> <S-YOU> yes
<FromGitter> <S-YOU> loop has extra counter variable that you don't need or not using.
<FromGitter> <Grabli66> Release? 😄
<travis-ci> crystal-lang/crystal#e4a9f55 (ci/32bits - Update to use all64 make target): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/387665479
<crystal-gh> [crystal] bcardiff closed pull request #3652: Add button in playground to run formatter (master...feat-playground-formatter) https://git.io/v1gki
<FromGitter> <bew> you' better not wait for it and be surprised, than wait for it and spam F5 every 5min and loose your time :p
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<travis-ci> crystal-lang/crystal#b1bc037 (master - Add button in playground to run formatter (#3652)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/387679935
<DeBot> https://github.com/crystal-lang/crystal/pull/3652 (Add button in playground to run formatter)
<FromGitter> <Grabli66> Sorry, it was a bad joke about release 😄
<travis-ci> crystal-lang/crystal#ebac192 (ci/32bits - Update to use all64 make target): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/387687724
Raimondii has joined #crystal-lang
Vexatoast has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 276 seconds]
thews_ has joined #crystal-lang
Raimondi has quit [*.net *.split]
thews has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Vexatos has quit [*.net *.split]
kosmonaut has quit [*.net *.split]
Raimondii is now known as Raimondi
kosmonaut has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
go|dfish has joined #crystal-lang
<crystal-gh> [crystal] bcardiff opened pull request #6161: Add File.same?(path) with follow_symlinks option (master...fix/file-info-equality) https://git.io/vh8fq
Nathanaelle has quit [Read error: Connection reset by peer]
Nathanaelle has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<travis-ci> crystal-lang/crystal#a24601c (ci/32bits - Update to use all64 make target): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/387713026
dragonkh has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
That_Guy_Anon has quit [Quit: Leaving]
rohitpaulk has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
dragonkh has joined #crystal-lang
<FromGitter> <Grabli66> Where is no covariance for generics? 😟
rohitpaulk has quit [Ping timeout: 265 seconds]
dragonkh has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rohitpaulk has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
Nathanaelle has quit [Ping timeout: 256 seconds]
Nathanaelle has joined #crystal-lang
Nathanaelle has quit [Quit: Quit]
dragonkh has joined #crystal-lang
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #crystal-lang
Nathanaelle has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
<oprypin> i created my gitlab acc already
Nathanaelle has quit [Ping timeout: 256 seconds]
<FromGitter> <fridgerator> gitlab has seen a big spike in imported repos
Nathanaelle has joined #crystal-lang
<crystal-gh> [crystal] bcardiff closed pull request #6147: Allow HTTP::Client to use ipv6 addresses (master...fix/uri-ipv6) https://git.io/vhZ0l
<FromGitter> <hugoabonizio> in case no one linked this official post yet: https://blog.github.com/2018-06-04-github-microsoft/
rohitpaulk has joined #crystal-lang
duane has joined #crystal-lang
Nathanaelle has quit [Ping timeout: 240 seconds]
<hightower3> Same here about gitlab
Nathanaelle has joined #crystal-lang
Nathanaelle has quit [Ping timeout: 245 seconds]
Nathanaelle has joined #crystal-lang
<crystal-gh> [crystal] bcardiff opened pull request #6162: Update readme to show red beryl sponsors (master...readme-sponsors) https://git.io/vh8lx
bbobb has joined #crystal-lang
<crystal-gh> [crystal] bcardiff closed pull request #6162: Update readme to show red beryl sponsors (master...readme-sponsors) https://git.io/vh8lx
<FromGitter> <alex-kampa> Hello, has anyone here done RSA and/or ECDSA keypair generation using crystal?
Nathanaelle has quit [Ping timeout: 240 seconds]
Nathanaelle has joined #crystal-lang
pabs has quit [Ping timeout: 240 seconds]
pabs has joined #crystal-lang
dragonkh has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tilpner has quit [Remote host closed the connection]
tilpner has joined #crystal-lang
<Yxhuvud> nice to see the activity from bcardiff in the repo :D
<FromGitter> <bcardiff> 👋
<FromGitter> <HCLarsen> So with this acquisition, is Crystal moving to gitlab, or staying here?
<FromGitter> <bcardiff> At least for now, staying I would say. Until something that affect us regarding adoption or infraestructure there I am comfortable with satying. But it's just my opinion.
<FromGitter> <bcardiff> Is there anybody from Budapest?
<FromGitter> <HCLarsen> Good to know, thanks.
<jokke> hey! is there something like the the modular version of sinatra for kemal?
<jokke> i would want to be able to write controllers that define their own routes and then merge them to one router somehow
alex`` has joined #crystal-lang
Nathanaelle has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 248 seconds]
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vh86P
<crystal-gh> crystal/master 4e48495 Brian J. Cardiff: Add File.same?(path1, path2) with follow_symlinks option (#6161)
<FromGitter> <hmans> jokke, that's pretty much how Crappy functions, but I'm afraid I have no immediate plans to release it as a shard since I don't want to pile more stuff on to the heap of web frameworks we already have.
<FromGitter> <hmans> (if I ever do, it will not be called Crappy, no worries.)
<jokke> heh
<jokke> it's also pretty much how crouter functions
<jokke> i added it to the pile a long time ago
<jokke> but i wouldn't dare to call it a framework ^^
<jokke> not to be confused with router.cr! :D
<FromGitter> <hmans> Crappy doesn't have separate concepts of routes and controllers, its DSL just allows you to implement a routing tree, kind of like Toro, which I was pointed towards a few days ago.
<jokke> oh
<jokke> never heard of toro :D
<jokke> people really like reinventing the wheel ^^
<FromGitter> <hmans> In the project where I would be extracting Crappy from, I'm using it to build separate Routes which are essentially handlers for HTTP::Server. See https://github.com/hmans/crankypants/tree/master/src/crankypants/web/routers
<jokke> (i do too)
<jokke> yeah same with crouter
<jokke> it's just a handler
<FromGitter> <hmans> Yeah, I wasn't aware of Toro when I started, otherwise I would probably just have used that. It seemed very basic (ie. unfinished) though.
<jokke> mhm
<jokke> i haven't built in web socket support either
<FromGitter> <hmans> Either way, I don't want to release Yet Another Half-Done Framework so that's that.
Nathanaelle has joined #crystal-lang
<jokke> i release half-done stuff just so i can use it as a dep in other projects
<FromGitter> <bararchy> BTW , shards support gitlab ?
<FromGitter> <bew> Yes
<FromGitter> <bararchy> Coll
<FromGitter> <bararchy> Cool
<FromGitter> <bararchy> Now just to add gitlab support for shards.info and crystalshards.xyz
pabs has quit [Ping timeout: 240 seconds]
pabs has joined #crystal-lang
<FromGitter> <bararchy> @bcardiff how is it to be Crystal dev full time?
<FromGitter> <bcardiff> Wanting to be in 8 repos at the same time :-)
<travis-ci> crystal-lang/crystal#4e48495 (master - Add File.same?(path1, path2) with follow_symlinks option (#6161)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/387884891
<DeBot> https://github.com/crystal-lang/crystal/pull/6161 (Add File.same?(path1, path2) with follow_symlinks option)
<FromGitter> <bcardiff> It's great to have some formal allocation on this. Although I like programming a lot I am happy to have other interest that every now and then take me away from the keyboard.
<jokke> heh i'm just running the "which_is_the_fastest" benchmarks and it looks like docker-proxy is the bottle neck
<FromGitter> <bew> Are you on macos?
<jokke> nope
<jokke> linux
<jokke> docker-proxy has way more cpu load than the actual test program
<FromGitter> <bararchy> @bcardiff totally, I fill my after hours with family and D&D ;)
<jokke> here it's like 100 % docker-proxy 75 % server 70 % client
<FromGitter> <bew> @bcardiff you're doing great!! I'm really happy that you're working on Crystal, don't hesitate to ask help from the community if you need ;)
<FromGitter> <bew> Sometimes it's good to power down your brain too ^^
<FromGitter> <bew> @bararchy what is D&D ?
<jokke> dungeons and dragons
<jokke> a role playing game
<FromGitter> <bew> Ah ok
<FromGitter> <bararchy> Yeha :) what jokke said
<FromGitter> <bew> I heard about this game but never tried it (yet?)
<jokke> you need the right people to try it with %%
<jokke> ^^
<jokke> it involves really investing in the game and sort of acting.
<jokke> i played it for the first time with a few people i didn't know that well and it was a bit awkward :P
<FromGitter> <bew> I'l keep that in mind, ty :p
<jokke> yw :D
<FromGitter> <bcardiff> For me is mostly family & dancing (swing & blues). But during these weeks is travelling a bit luckily. Thanks @bew
<jokke> oh cool! lindy hop?
<FromGitter> <bcardiff> Exactly :-)
<jokke> nice!
<jokke> i've been dancing lindy hop for a bit over a year now
<jokke> i still feel like i can't dance for shit :D
<jokke> i _hate_ six count
<FromGitter> <bcardiff> it's only get better. keep doing it. and then travel with dancing as an excuse. Festival & x-changes are awesome.
<jokke> it messes with my brain
<jokke> yeah i'll keep doing it
<FromGitter> <HCLarsen> I've got a total brain fart here. How do I iterate through a hash, changing values, and returning the changed hash?
<FromGitter> <HCLarsen> Nevermind.
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
pabs has quit [Ping timeout: 245 seconds]
pabs has joined #crystal-lang
<FromGitter> <faustinoaq> > They will soon add github to that list ⏎ ⏎ @bararchy OMG, you were right! 😅
<FromGitter> <faustinoaq> 😅 😅 😅 ^^
<FromGitter> <faustinoaq> > i use vscode but i can't see the definition of the code when i hovered it like other language does ⏎ ⏎ @fidellr vscode-crystal-lang support that feature, see: https://github.com/crystal-lang-tools/vscode-crystal-lang/wiki/Settings#hover
<FromGitter> <faustinoaq> Although, this vscode extension is still WIP, I'm working on scry (https://github.com/crystal-lang-tools/scry) to support more advanced stuff ✨ 😉
<FromGitter> <faustinoaq> > the vscode docs tell i should have package.json ⏎ ⏎ @fidellr Where? 😅 I know we need some scry docs, though. I opened an issue about that, see: https://github.com/crystal-lang-tools/scry/issues/56
<FromGitter> <faustinoaq> > but it seem still unstable tho ⏎ ⏎ @fidellr wrq, yeah, vscode-crystal-lang has some features disabled by default because Node.JS backend is a bit unstable 😅 ⏎ ⏎ I'm already working on migrate NodeJS backend to Scry 😄 [https://gitter.im/crystal-lang/crystal?at=5b1594ede26c847ac8b88b98]
<FromGitter> <faustinoaq> However, Scry depends on `crystal tool` so, we still have some limitations here, hover feature would work on things like variables, arguments and some other simple stuff 😅
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
Nathanaelle has quit [Quit: Quit]
duane has quit [Ping timeout: 265 seconds]
duane has joined #crystal-lang
duane has quit [Ping timeout: 265 seconds]
duane has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
<ben___> Hey guys, that's pretty cool. Many years ago I am loving C, but I do not have enough time for it. Today, i am learning Crystal because Crystal is awesome on so much things. I didn't want to kill Crystal in benchmarks, but today I had a little bit of time, running Crystal against Swoole PHP - with that, PHP is very fast, but Crystal wins mostly with 120%. I was happy, everything is good. But some hours later, in this
<ben___> moment, I thought, ok ... ... It's time ... ... Run against C ... Huh ... Should I do? ... Ok ... Let's go ... And - sorry - it was a fully useless benchmark and my time today is over, but, optimised compiling for both in several ways - and I thought, I have to do much better in Crystal - no need - Crystal kills C with more than 200% - unbelievable !!!
<ben___> Crystal is left side
<ben___> 😁
<FromGitter> <bew> Hehe welcome to Crystal awesomeness :D
<ben___> 😁 just for fun I prepared both terminals, than started C, switching to Crystal terminal, started Crystal - and is end before C - yes!! 😅💜
<That_Guy_Anon> i am curious in what code optimized crystal can beat optimizec C, but it is awesome that you like the language :)
<That_Guy_Anon> or rather, can beat it by that much :D
<ben___> Sorry, I mean build release for Crystal
<FromGitter> <bew> An optimized C program cannot be beaten, almost
<FromGitter> <bew> So your benchmark is not fully accurate
<ben___> Yes pretty cool, I thought, this was the first round for C, but no chance in this stupid calculation benchmark, Crystal did it
<FromGitter> <bew> Also, did you enabled full optimization for C?
<FromGitter> <bew> With `-O3`
<ben___> Yes, I run several tests
<ben___> What would you choose?
<ben___> Oh fuck -
<ben___> But, now it's same, Crystal 1.413 and C 1.473
<ben___> Something must go wrong - to happy for the first time - but Crystal wins again 😜
<FromGitter> <faustinoaq> ben___, Yeah, nice! Also remember, take benchmarks with a grain of salt 😉
<ben___> Yes, I hadn't do this at this time but I never thought Crystal was so close
<ben___> Stop - in every previous run Crystal takes 1.174 seconds till 1.4 seconds, C needs every time more than 1.462 seconds, so Crystal is nearly 30% faster
<ben___> again
<That_Guy_Anon> is C with boehmGC or GC-less. and these are more numbers i had expected. but as faustinoaq said, benchmarks are more for a general direction that really precise comparisions.
TCZ has joined #crystal-lang
<ben___> This was just for fun, Fast as C - I never thought it's really true - but now, that's nice, I am happy with that - no matter, just a little test 😜 Ok, good night 😁
TCZ has quit [Read error: Connection reset by peer]
<ben___> There is no GC on C side
<That_Guy_Anon> oh it def is, on most common benchmarks they are head to head often, or at least relatively close to each other. though memory usage might differ greatly :D
<ben___> Yes, but is low compared to many other languages 👍
duane has quit [Ping timeout: 260 seconds]
<FromGitter> <faustinoaq> ben___, Interesting 😄 👍
<That_Guy_Anon> that indeed is interesting. can you check memory consumption?
<FromGitter> <faustinoaq> That_Guy_Anon, Yeah, let me try
<That_Guy_Anon> i wonder how the assembler of C looks, i am surprised that it is so much slower
<That_Guy_Anon> also, you are missing a \n, shame on you :P
<FromGitter> <faustinoaq> lol
<FromGitter> <faustinoaq> That_Guy_Anon, https://godbolt.org/g/ntUPHm
<FromGitter> <faustinoaq> This tool doesn't support crystal yet ^^
<FromGitter> <faustinoaq> Opened issue here: https://github.com/mattgodbolt/compiler-explorer/issues/673
<That_Guy_Anon> that is a cool tool
<ben___> Oh guys that's now very crazy interesting, but I must go sleep 😖😖
<That_Guy_Anon> the coloring is a really nice touch. and tbh the doesn't look inherintly terrible for me, so that is interesting indeed
dragonkh has joined #crystal-lang
<FromGitter> <faustinoaq> ben___ That_Guy_Anon ^^
<That_Guy_Anon> yeah, i guessed that. but still, the speed difference is remarkable :D
<That_Guy_Anon> thank you for the prof of my assumption though :P
<FromGitter> <faustinoaq> That_Guy_Anon, Yeah, also build time on crystal is almost 10x slower 😅
<That_Guy_Anon> crystal has a notoriously slow compiler.
<That_Guy_Anon> now it would be interesting to get Clang in the mix for C :P
<FromGitter> <faustinoaq> Oh, BTW, I just realize I wrote `KB` 😅 , this is wrong, the right metric unit is `B` (Bytes), my bad XD
<That_Guy_Anon> didn't even realise, just compared the numbers :D
<dom96> Something seems off with that benchmark :P
<dom96> You should definitely try clang
<dom96> Actually, I wouldn't be surprised if it's caused by the use of `printf` in C
<dom96> oh no, nvm
<dom96> Thought that was in the hot path
<That_Guy_Anon> if the assembler generated on the site is the same as on the system(aka faustinoaq used gcc8.1) then the assembler does look normal to me
<That_Guy_Anon> though i am really not used to x64, only weird assembler :D
<faustinoaq> dom96, Can you try to reproduce this result? :)
<dom96> Do you have a gist link to the code?
<faustinoaq> dom96, That_Guy_Anon Oh, looks like Clang is 2x+ faster than crystal ;-)
<dom96> lol
<faustinoaq> wait...
<faustinoaq> dom96, That_Guy_Anon, ben___ ^^
<faustinoaq> I was wrong, Crystal is still almost twice fast than Clang or GCC in this micro-bench )
<That_Guy_Anon> for me c is faster
<That_Guy_Anon> gcc 7.3
<FromGitter> <bew> @faustinoaq that codes are probably not optimized at all, but it's definitely weird
<That_Guy_Anon> i am not sure how to force the crystal compiler to completely build now and not reuse some sort of cash, so i can'T compare these numbers, but hte execution C tops.
<That_Guy_Anon> 0.91s 2872B vs 0.89s 1404B
<FromGitter> <bew> just delete the cache
<FromGitter> <bew> `crystal env` will give you the cache directory
<faustinoaq> That_Guy_Anon, That's a very small difference :)
<That_Guy_Anon> it fits though, it is the usual difference you see in most benchmarks. defenietly way more expected than what you got :D
<faustinoaq> @bew Why?, I'm sure using optimization flags :)
<dom96> lol
<dom96> -o3 for clang causes it to output a `3` binary
<faustinoaq> Oh
<FromGitter> <bew> `-O3` not `-o3`
<dom96> so yeah, be careful with that guys
<dom96> It seems Crystal and C (clang) are equivalent for me
<That_Guy_Anon> hm, i did a few more runs, to get an average. (and with -O3 and not o3, cuz i am stupid)
<dom96> Both ~1.1 second
<That_Guy_Anon> crystal got 0.9, C got 0.74 as average on 10 runs each
<faustinoaq> Clang: https://glot.io/snippets/f1omoye6nm (Fixed -O3)
<dom96> So I don't think this benchmark actually benchmarks anything significant]
<faustinoaq> Yeah, Crystal and Clang are pretty similar :)
<That_Guy_Anon> yeah, i mean i think we mostly got curious because fuatinoaw got like 3 times slower on C, which threw us off dom96
<faustinoaq> dom96, That's true, we do benchmark just for fun ;)
<dom96> I've noticed :)
TCZ has joined #crystal-lang
<That_Guy_Anon> now it is just time to figure out how your gcc result happened faustinoaq. :P
<faustinoaq> Well, Maybe Clang is better optimized :)
<FromGitter> <bew> let's play:
<FromGitter> <bew> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b15bbd4352b9e1a4b5ba185]
<That_Guy_Anon> i used gcc and got 0.91 vs 0.74, so i bet it was clang that made gcc run away in terror as fast as it could
<FromGitter> <bew> compile that with `crystal build --prelude=empty file.cr --release`
<FromGitter> <bew> I get 0.928 with clang and 0.937 with crystal
<FromGitter> <bew> ah and using `puts` instead of `printf` in C gives 0.943
<FromGitter> <bew> weir
<FromGitter> <bew> weird
<faustinoaq> lol
<FromGitter> <bew> nah it's just too small, the time is the same, really
<That_Guy_Anon> yeah, benchmarks in the under 1 second area are iffy. that can easily be variation
<faustinoaq> #movingtogitlab hashtag is being popular
<That_Guy_Anon> and i hope gitlab servers take the load. because the more diverse the market is the better
<That_Guy_Anon> there is a twitter account @movingtogitlab xD
p0p0pr37_ has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
<faustinoaq> lol
TCZ has quit [Quit: Leaving]
<faustinoaq> Well, I guess I gonna use https://gitlab.com/faustinoaq more often :)
<FromGitter> <bew> there is no way to follow the activity of an account on gitlab, you can only track repositories (and issues/MR/etc..)
<FromGitter> <fgimian> Hey there guys, is there any way to create a property, getter or setter for class variables in Crystal? i.e. those that begin with `@@`?
<That_Guy_Anon> if enough ppl request it i am sure it will come. besides that, it is open source opposed to GitHub, so anyone can propose a PR
<FromGitter> <bew> @fgimian just prepend `class_` :) so for example `class_getter`
<FromGitter> <fgimian> oh wonderful! thank you
<FromGitter> <fgimian> that works beautifully! 😄
<FromGitter> <fgimian> oh and one more little question if I may; if I want to access class variables inside instance methods, I'm currently using `self.class.<name>`, is that the best way?
<FromGitter> <bew> you can just do `TheType.<name>`
<FromGitter> <fgimian> ah yes
<FromGitter> <fgimian> cool!
<FromGitter> <fgimian> thanks again @bew 😄
<FromGitter> <bew> you're welcome ;)
That_Guy_Anon has quit [Quit: Leaving]
dragonkh has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 256 seconds]
pabs has quit [Ping timeout: 260 seconds]