RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.1 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
soveran has quit [Remote host closed the connection]
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<FromGitter> <jwoertink> Is there a way to use the crystal-db without a block format?
<FromGitter> <jwoertink> or is it just common to open and close it every time you want to run a query?
<FromGitter> <jwoertink> It just feels weird to always do `DB.open() { |db| db.query "" }` all over the code
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
sp4rrow has joined #crystal-lang
<FromGitter> <bcardiff> yes ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=58549298e7bdfe4e29640384]
<FromGitter> <bcardiff> @jwoertink `DB.open`is a connection pool actually. so I would recommend to create it only one.
<FromGitter> <jwoertink> Ah
<FromGitter> <jwoertink> Ok then that works
<FromGitter> <jwoertink> Thanks!
<FromGitter> <bcardiff> I published a couple of hours ago https://crystal-lang.org/docs/database/connection_pool.html
<FromGitter> <bcardiff> and https://crystal-lang.org/docs/database/index.html has a basic intro.
<FromGitter> <david50407> cool
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
vivus-ignis has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
vivus-ignis has quit [Ping timeout: 256 seconds]
sp4rrow has joined #crystal-lang
Davy_CC has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<crystal-gh> [crystal] samueleaton opened pull request #3717: Move line break to front of line break rather than end (master...docs-flag-newlines) https://git.io/v17Wv
vivus-ignis has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 246 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
dhk has joined #crystal-lang
dhk has quit [Read error: Connection reset by peer]
dcheung has joined #crystal-lang
<FromGitter> <raydf> Nice
matp_ has joined #crystal-lang
matp has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
bjz has joined #crystal-lang
vivus-ignis has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 265 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
bjz_ has joined #crystal-lang
ssvb has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
dcheung has left #crystal-lang [#crystal-lang]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
Raimondii is now known as Raimondi
soveran has joined #crystal-lang
akwiatkowski has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
vivus-ignis has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 264 seconds]
vivus-ignis has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 248 seconds]
soveran has joined #crystal-lang
vivus-ignis has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
soveran has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
vivus-ignis1 has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 256 seconds]
vivus-ignis1 is now known as vivus-ignis
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Raimondii has joined #crystal-lang
akwiatkowski has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3720: Remove internal phony target (master...fix/makefile/phony) https://git.io/v17ou
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
Ven has joined #crystal-lang
matp has joined #crystal-lang
matp_ has quit [Ping timeout: 250 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 256 seconds]
dhk has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
_whitelogger has joined #crystal-lang
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
soveran has quit [Ping timeout: 256 seconds]
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/v177A
<crystal-gh> crystal/master 55c7584 Ary Borenszweig: Compiler: workaround for missing LLVMWriteBitcodeToMemoryBuffer in LLVM 3.5.0
<crystal-gh> crystal/master de4d506 Ary Borenszweig: Compiler: small refactor in macro methods
<crystal-gh> crystal/master 43c222f Ary Borenszweig: Added `compare_versions` macro methods to correctly compare semver versions at compile-time
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v175v
<crystal-gh> crystal/master af707fd Ary Borenszweig: Hash: include Iterable. Related to #3703
dhk has quit [Quit: Leaving]
mgarciaisaia has joined #crystal-lang
<travis-ci> crystal-lang/crystal#af707fd (master - Hash: include Iterable. Related to #3703): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/184790125
<DeBot> https://github.com/crystal-lang/crystal/pull/3703 (Revive Iterator#flatten from type inference hell)
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
<RX14> @asterite wow, on linux compile times for std_spec went from 1m7s to 12s in the bc+obj stage!
Ven has quit [Ping timeout: 250 seconds]
<RX14> and yep, I cleaned ~/.cache/crystal/
Ven has joined #crystal-lang
<RX14> 1:55.35 -> 48.012
<RX14> total time
<RX14> oh, and thats all_spec too, so it's even quicker to build the compiler!
<RX14> this is amazing
mgarciaisaia has joined #crystal-lang
soveran has joined #crystal-lang
<crystal-gh> [crystal] firejox opened pull request #3723: fix unexpected behavior in Slice(T)[] with T is numeric type (master...fix-unexpected-slice) https://git.io/v17xB
soveran has quit [Ping timeout: 256 seconds]
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
dhk has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
soveran has joined #crystal-lang
<FromGitter> <asterite> Yeah... the compiler did `fork` for each "compilation unit". In the compiler there were about 1200 units, so 1200 forks in linux seems to be really slow. On mac it's fast, I don't know why... since I develop on mac, it didn't affect me. But finally I decided linux devs should have some speedup too :-)
<FromGitter> <asterite> In the future we could further reduce times, when we implement incremental compilation at the semantic level
<FromGitter> <asterite> (but that might be a while from now)
sp4rrow has joined #crystal-lang
<RX14> @asterite forking only cores.times is the fastest on both platforms so i'm glad we made this improvement!
mgarciaisaia has joined #crystal-lang
<BlaXpirit> did u try cores+1 ?
<BlaXpirit> or cores*2
<BlaXpirit> things like these are often seen in thread pool implementations
<FromGitter> <asterite> I tried it, but it was slower. You can try it, just pass `--threads=16` for example
<BlaXpirit> ok thanks
<FromGitter> <asterite> Well, I actually tried it on mac... never on linux yet. So if in linux forking a bit more times gives better results, we should improve that too
<Yxhuvud> Is it cpu-, memory- or io-bound?
<RX14> should be CPU
Ven has quit [Ping timeout: 258 seconds]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven has quit [Ping timeout: 248 seconds]
Ven has joined #crystal-lang
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #crystal-lang
Ven has quit [Ping timeout: 250 seconds]
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
Ven has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
mjago has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Ven has quit [Ping timeout: 245 seconds]
mgarciaisaia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Ven has joined #crystal-lang
dhk has quit [Quit: Leaving]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
mgarciaisaia has quit [Ping timeout: 258 seconds]
mgarciaisaia has joined #crystal-lang
Ven has quit [Ping timeout: 258 seconds]
soveran has joined #crystal-lang
Ven has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 250 seconds]
Ven has quit [Ping timeout: 264 seconds]
A124 has quit [Remote host closed the connection]
A124 has joined #crystal-lang
Ven has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
Ven has quit [Ping timeout: 265 seconds]
Ven has joined #crystal-lang
<Papierkorb> What are the current options for OpenGL for 3D stuff?
<Papierkorb> Thanks
<BlaXpirit> for opengl itself, i made something but not sure if it's best or if it even works still https://github.com/BlaXpirit/crystal-raw-gl
<Papierkorb> BlaXpirit: Have you planned something on making it easier to use crsfml?
<BlaXpirit> well i made it harder kinda but better
<BlaXpirit> no changes planned now
soveran has quit [Remote host closed the connection]
Ven has quit [Ping timeout: 256 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Philpax has joined #crystal-lang
sagax has quit [Ping timeout: 265 seconds]
<Papierkorb> So much stuff to build, so few time. And besides doing uni stuff I don't feel like building something at all -.-;
vivus-ignis has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
vivus-ignis has quit [Ping timeout: 248 seconds]