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> <faustinoaq> You can compile scry from spurce or download it from https://github.com/crystal-lang-tools/scry/releases
<FromGitter> <Blacksmoke16> mmm
duane has quit [Ping timeout: 276 seconds]
<FromGitter> <faustinoaq> mmm
<FromGitter> <faustinoaq> What OS are you using?
<FromGitter> <Blacksmoke16> Debian
<FromGitter> <Blacksmoke16> `Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux`
<FromGitter> <faustinoaq> Oh nice, can you run `./scry` in a terminal
<FromGitter> <faustinoaq> It should keep listening with no output
<FromGitter> <Blacksmoke16> yup
<FromGitter> <faustinoaq> Ok, is there any /tmp/scry.out.* files?
<FromGitter> <Blacksmoke16> let me look
<FromGitter> <Blacksmoke16> yes
<FromGitter> <faustinoaq> Oh nice, what is the content of those files?
<FromGitter> <Blacksmoke16> sec
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5abed1c55f188ccc1515143a]
heaven31415 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<FromGitter> <faustinoaq> Oh, nice, can you open an issue about that? https://github.com/crystal-lang-tools/scry/issues ⏎ ⏎ Would be our first issue related to Intellij-Idea
<FromGitter> <faustinoaq> 😄
<FromGitter> <Blacksmoke16> alright, not super sure what LSP is/does tho so its basic just going to be what we chatted about here and those images
<FromGitter> <faustinoaq> Seems, we have some LSP protocol mismatch here 😅
<FromGitter> <Blacksmoke16> if you say so
<FromGitter> <Blacksmoke16> xD
<FromGitter> <Blacksmoke16> need anything else?
<FromGitter> <faustinoaq> Thank you so much! 👏 ✨
<FromGitter> <Blacksmoke16> np
<FromGitter> <Blacksmoke16> now what was i doing....:p
heaven31415 has joined #crystal-lang
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
That_Guy_Anon1 has joined #crystal-lang
That_Guy_Anon has quit [Ping timeout: 255 seconds]
<heaven31415> oprypin: why you didn't just used CSFML to write CrSFML?
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heaven31415 has quit [Ping timeout: 260 seconds]
qard has joined #crystal-lang
<FromGitter> <faustinoaq> https://blogs.msdn.microsoft.com/typescript/2018/03/27/announcing-typescript-2-8/?utm_source=t.co&utm_medium=referral ⏎ ⏎ ^ The type syntax in TypeScript is getting insane
That_Guy_Anon2 has joined #crystal-lang
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
That_Guy_Anon1 has quit [Ping timeout: 256 seconds]
<FromGitter> <girng> saw that article, alt-tabbed back to my crystal editor, thanks
return0e_ has quit [Ping timeout: 240 seconds]
return0e has joined #crystal-lang
<FromGitter> <Blacksmoke16> who here knows PostGres
<FromGitter> <Blacksmoke16> and can tell me why im getting an error on my query
<FromGitter> <Blacksmoke16> `INSERT INTO items(type_id, type_name, price, published) VALUES (?,?,?,?),(?,?,?,?),(?,?,?,?): [111, "Rhea", 16.99, true, 666, "Ark", 16.0, false, 99, "Anshar", 99.0, true]`
<FromGitter> <Blacksmoke16> `syntax error at or near "," (DB::Error) ⏎ `
<FromGitter> <Blacksmoke16> oo
<FromGitter> <Blacksmoke16> ? have to do prepare so have to use the $# format i guess
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
That_Guy_Anon1 has joined #crystal-lang
yxhuvud has joined #crystal-lang
That_Guy_Anon2 has quit [Ping timeout: 255 seconds]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
alex`` has joined #crystal-lang
<FromGitter> <bararchy> RX14 @straight-shoota @bew what say you about https://github.com/crystal-lang/crystal/issues/5886
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <bararchy> It seems to get some thumbsup :)
<FromGitter> <bew> 'don't think that's a good idea, but I'm sorry I have a big headache right now so I won't go into details, if I' m the only one thinking that I may explain later, but just not now
qard has joined #crystal-lang
qard has quit [Client Quit]
<FromGitter> <bararchy> @bew I also don't think its a 'good' idea, I think its better then nothing though
<FromGitter> <bararchy> Also, take your time and feel better :)
cyberarm has quit [Ping timeout: 264 seconds]
cyberarm has joined #crystal-lang
return0e has quit [Read error: No route to host]
return0e has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
That_Guy_Anon1 has quit [Quit: Leaving]
rohitpaulk has joined #crystal-lang
Jenz has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.1]
That_Guy_Anon has joined #crystal-lang
<Jenz> How is the current lldb support?
Papierkorb has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <faustinoaq> Jenz, still work in progress, see: https://github.com/crystal-lang/crystal/issues/4457
<FromGitter> <faustinoaq> I use GDB BTW
heaven31415 has joined #crystal-lang
<FromGitter> <faustinoaq> > rxtx_callbacks sample on one end, as fast as C ⏎ ⏎ ^ https://github.com/S-YOU/dpdk.cr#performance ⏎ ^ Interesting project 😄 [https://gitter.im/crystal-lang/crystal?at=5abf6346458cbde55795f796]
Papierkorb has left #crystal-lang ["Konversation terminated!"]
alex`` has joined #crystal-lang
<Jenz> gdb works on crystal programs? :eyes:
<Jenz> @faustinoaq
<Jenz> Forget it XD
<Jenz> And thanks for something to read up on
alex`` has quit [Ping timeout: 260 seconds]
<Groogy2> "Morning" o/
Groogy has quit [Disconnected by services]
Groogy2 is now known as Groogy
Groogy_ has joined #crystal-lang
yaewa has joined #crystal-lang
Jenz has quit [Ping timeout: 260 seconds]
moei has quit [Ping timeout: 268 seconds]
Jenz has joined #crystal-lang
<heaven31415> is there any way to debug crystal programs?
<Groogy> I think gdb works?
<heaven31415> cool!
<Groogy> not tried myself though but heard it does at some point
<heaven31415> XD
<heaven31415> that's is even more cooler
<Jenz> Both gdb and lldb *works*
<heaven31415> btw
<heaven31415> i never used gdb before, how good it is anyway?
<Groogy> eh it's a cli debugging utility... it's not that great because of the interface
<Groogy> my opinion on it
<Groogy> don't mind working with command line interfaces, but some tasks are just not suited for it
heaven31415 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<FromGitter> <unn4m3d> > I use GDB BTW ⏎ I use `puts` 😅
<FromGitter> <faustinoaq> @unn4m3d or `pp` as well 👍
yaewa has quit [Quit: Leaving...]
moei has joined #crystal-lang
<Jenz> I like the gdb ui
<crystal-gh> [crystal] ysbaddaden pushed 1 new commit to master: https://git.io/vxKsL
<crystal-gh> crystal/master 4532389 r00ster91: Fix Random example (#5728)
Jenz has quit [Ping timeout: 260 seconds]
That_Guy_Anon has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 264 seconds]
hightower3 has joined #crystal-lang
alex`` has joined #crystal-lang
<travis-ci> crystal-lang/crystal#4532389 (master - Fix Random example (#5728)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/360616122
Jenz has joined #crystal-lang
Jenz has quit [Ping timeout: 240 seconds]
Jenz has joined #crystal-lang
<FromGitter> <bararchy> @faustinoaq how did you achieve debug in vscode ?
Jenz has quit [Ping timeout: 256 seconds]
Jenz has joined #crystal-lang
Jenz has quit [Ping timeout: 264 seconds]
Jenz has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
Jenz has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
Jenz has joined #crystal-lang
Jenz has quit [Ping timeout: 256 seconds]
Jenz has joined #crystal-lang
Jenz has quit [Ping timeout: 268 seconds]
qard has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
<oprypin> Sija, you normally shouldn't force push to github pull requests. it gives no advantage but destroys previous statuses (what have I reviewed? how did travis like this previous iteration?)
<oprypin> @Sija,
<yxhuvud> Huh, it gives the advantage of the commits being reviewed being the commits that eventually will be merged. If it is worth it or not depends on the nature of the pull request.
That_Guy_Anon has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
<RX14> but not really because it'll always be rebased anyway
<RX14> plus it being the actual commit has basically no advantages
<RX14> you can see the correct diff always
<FromGitter> <faustinoaq> > how did you achieve debug in vscode ? ⏎ ⏎ @bararchy see https://amberframework.org/guides/recipes/debugging/vs-code-debug.md#vs-code-debug
<FromGitter> <faustinoaq> ^ crystal debugging Is still very experimental though 😅
<yxhuvud> I'm one of the fanatics that think every commit matter and should be independent (and that the github review system really suck, as it doesn't help with reviewing from that perspective).
<yxhuvud> I guess it is a function of how I was initially initialized to code review.
<RX14> Yxhuvud, yeah me too
<RX14> sometimes you do want 2 commits in a PR
<RX14> and then you should use --fixup commits
<RX14> and then rebase at the end
<RX14> then merge
rohitpaulk has joined #crystal-lang
heaven31415 has joined #crystal-lang
<heaven31415> hi
<oprypin> heaven31415, I imagine that you couldn't have seen my reply - https://github.com/oprypin/crsfml/tree/master/voidcsfml#why-not-csfml
<heaven31415> ohh, thanks dude
<FromGitter> <bararchy> oprypin what does you co-workers say about Crystal? if you had a chance to talk with them about it
<oprypin> bararchy, "never heard" "oh that's nice"
<FromGitter> <bararchy> no one was like "omg lets replace GO with it" ? XD
<FromGitter> <bararchy> (a dev can dream no?)
rohitpaulk has quit [Ping timeout: 264 seconds]
<FromGitter> <bararchy> oprypin what main languge do you use daily ?
<oprypin> bararchy, Python
<FromGitter> <bararchy> does it also being used for heavy lifting etc?
That_Guy_Anon has quit [Ping timeout: 276 seconds]
return0e has quit [Ping timeout: 240 seconds]
heaven31415 has quit [Ping timeout: 264 seconds]
return0e has joined #crystal-lang
<crystal-gh> [crystal] Sija opened pull request #5891: Expand Int#to_s optimization from 0..1 to 0..9 (master...expand-int-to_s-optimization) https://git.io/vxKRD
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] RX14 closed pull request #5891: Expand Int#to_s optimization from 0..1 to 0..9 (master...expand-int-to_s-optimization) https://git.io/vxKRD
<crystal-gh> [crystal] RX14 closed pull request #5882: Use Char for single char strings (master...use-char-for-single-char-strings) https://git.io/vxa7D
<crystal-gh> [crystal] RX14 closed pull request #5833: Print exception cause when inspecting with backtrace (master...feature/inspect-cause) https://git.io/vxYgo
rohitpaulk has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
<Groogy> ARe there do whiles in crystal?
<travis-ci> crystal-lang/crystal#945557b (master - Use Char for single char strings (#5882)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/360682104
<FromGitter> <vlazar> ```loop do ⏎ do_something ⏎ break if some_condition ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5abfdd635f188ccc1518a6c2]
<DeBot> https://github.com/crystal-lang/crystal/pull/5882 (Use Char for single char strings)
<FromGitter> <Sija> @oprypin I agree, yet in the case of #5882 I see no advantage of having multiple commits
<DeBot> https://github.com/crystal-lang/crystal/pull/5882 (Use Char for single char strings)
<oprypin> Sija, there is actually no disadvantage in force pushing, and much disadvantage, as I've noted
<oprypin> wait what
<oprypin> Sija, there is actually no *advantage* in force pushing, and much disadvantage, as I've noted
<RX14> the advantage to me is that it's a little easier because i'm cherry-picking commits into PR branches from my windows branch
<RX14> which means it's more work to not force push because I have to go through more steps than just resetting to master and cherry-picking again
<RX14> but thats a super weird case
<oprypin> RX14, i dont get it
<RX14> When i'm working on windows I always author commits on the windows branch in my fork
<RX14> then when I pr them in I have to cherry-pick the commits from that branch
greenbigfrog has quit [Ping timeout: 256 seconds]
<oprypin> ok then it's an advantage to you in the case when you're making a PR
<oprypin> not generally
<RX14> <RX14> but thats a super weird case
<RX14> i.e.
<RX14> I agree
<RX14> but here's the one weird situation i'
<RX14> m in where it isn't
<RX14> AND I still do fixup commits half the time
<RX14> by reset --hard
<RX14> cherry-pick
<RX14> reset --soft to the original PR commit
<RX14> then git commit --fixup
<oprypin> that's complicated
<RX14> is it?
<RX14> it's only 4 commands
commavir has quit [Ping timeout: 256 seconds]
<RX14> git reset --hard origin/master && git cherry-pick windows~5 && git reset --soft RX14/feature/whatever && git commit --fixup
<oprypin> oh i see what you're trying to do here
<oprypin> that's nice
<RX14> yeah
<RX14> git's really flexible
<RX14> pretty easy to compose what you want
commavir has joined #crystal-lang
<FromGitter> <Sija> @oprypin having commit history containing only essential ones, instead of bunch of fixup commits is an advantage in my eyes
<RX14> it's not for the reviewer
<RX14> knowing exactly what changed since last time is fucking great
<RX14> and the mess doesn't make it into master
DTZUZU has quit [Quit: WeeChat 1.9]
<RX14> so what's the problem?
<oprypin> Sija, you will not see those when it's squash-merged
<FromGitter> <Sija> fair ‘nuff, point taken
<RX14> when it's a 100 line diff meh I can re-review it all
<RX14> when it's a 1000 line diff you bet I want to just review what changed instead of the whole thing again
commavir has quit [Ping timeout: 276 seconds]
commavir has joined #crystal-lang
commavir has quit [Ping timeout: 276 seconds]
rohitpaulk has quit [Ping timeout: 255 seconds]
<FromGitter> <Sija> I get your drift, true story
heaven31415 has joined #crystal-lang
greenbigfrog has joined #crystal-lang
commavir has joined #crystal-lang
DTZUZU has joined #crystal-lang
qard has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.1]
<heaven31415> hi
Jenz has joined #crystal-lang
<Jenz> Here's a pretty portable Makefile for crystal projects https://gist.github.com/Jens0512/aa5da9465e2aa6bf246d7d2ade4b44ac
<oprypin> noooo
<oprypin> man i'm so happy i never have to deal with makefiles
<Jenz> Makefiles are great fun man
<Jenz> At least I think so
<Groogy> ugh gave up on 3d
<oprypin> how so?
<Groogy> for one reason or another I couldn't get the math right on how to unproject a point on the screen
<Groogy> and figured the point is not to make fancy 3d but to just visually represent stuff. So can just as well do that with 2D
<Groogy> so if it is going to be more of a bother in the future, it's a hinderence, not actually helping me
<oprypin> maan i remember that one project where i disabled the depth buffer
Jenz has quit [Ping timeout: 264 seconds]
<RX14> oprypin, makefiles are great lol
<RX14> as long as you ignore portability and don't make it long like this one
<oprypin> ..
<RX14> and that makefile is also terrible lol
<RX14> ok it could be much better
johndescs has joined #crystal-lang
That_Guy_Anon has quit [Ping timeout: 255 seconds]
That_Guy_Anon has joined #crystal-lang
<Groogy> exact same data I was working with before but representing it as a staggered isometric map instead https://i.imgur.com/t2chACa.png
<Groogy> went really fast to switch everything out
heaven31415 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
alex`` has joined #crystal-lang
baweaver is now known as baweaver_away
<FromGitter> <faustinoaq> Groogy Really Awesome!!! 8D
t0nyaway is now known as t0nyandre
That_Guy_Anon has quit [Quit: Leaving]
<FromGitter> <Blacksmoke16> @faustinoaq You ever see this in granite?
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ac01d8dbb1018b37a474bea]
<FromGitter> <Blacksmoke16> has something to do with how im importing timestamps