jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.2 | Fund Crystals 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
pawnbox has joined #crystal-lang
<pawnbox> Anyone here?
<tilpner> You should usually ask your question instead of asking for blanket help.
<pawnbox> :)
<pawnbox> Class vars are not allowing for generic classes. Is there a workaround for it.
<pawnbox> ?
<tilpner> I don't know. My presence is useless in this case.
<pawnbox> Something like this fails. https://carc.in/#/r/ywt
<pawnbox> I need a way to keep track of instances of a generic class.
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ragmaanir has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
ragmaanir has quit [Quit: Leaving]
<willl> memo pawnbox https://carc.in/#/r/yx4
<willl> I don't know how to work debot :<
<willl> !memo pawnbox https://carc.in/#/r/yx4
<DeBot> willl: Added memo for pawnbox.
akwiatkowski has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
akwiatkowski has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
onionhammer has quit [Ping timeout: 276 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
Guest57540 has quit [Ping timeout: 244 seconds]
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest3827
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
ryanw-se has quit [Quit: Leaving...]
soveran has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
soveran has quit [Ping timeout: 276 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
trapped has joined #crystal-lang
[spoiler] has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
mark_66 has joined #crystal-lang
elia has joined #crystal-lang
soveran has quit [Remote host closed the connection]
ql6wlld has joined #crystal-lang
<txdv> do you guys know where the documentation location is?
<txdv> like the github repo for it?
Guest3827 has quit [Ping timeout: 240 seconds]
<txdv> man this is driving me crazy
<txdv> Dwant to ficx a typo and cant find where
soveran has joined #crystal-lang
akwiatkowski has joined #crystal-lang
<RX14> Libui looks like the UI library I was always looking for, crystal bindings would be awesome
<txdv> yeah
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
hangyas has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
<crystal-gh> [crystal] txdv opened pull request #2623: Fix typo. (gh-pages...gh-pages-typo-fix) https://git.io/vru4T
jmoriau has joined #crystal-lang
elia has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #2623: Fix typo. (gh-pages...gh-pages-typo-fix) https://git.io/vru4T
elia has quit [Ping timeout: 250 seconds]
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest46964
elia has quit [Quit: Computer has gone to sleep.]
nwmcsween_ has joined #crystal-lang
Guest46964 has quit [Ping timeout: 240 seconds]
nwmcsween__ has joined #crystal-lang
ql6wlld has quit [Quit: WeeChat 1.4]
nwmcsween_ has quit [Ping timeout: 240 seconds]
|2701 has joined #crystal-lang
nwmcsween_ has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vruoP
<crystal-gh> crystal/master 5212724 Jonne Haß: Update and fix TypeNode macro method docs
nwmcsween__ has quit [Ping timeout: 246 seconds]
nwmcsween__ has joined #crystal-lang
nwmcsween_ has quit [Ping timeout: 240 seconds]
nwmcsween_ has joined #crystal-lang
nwmcsween__ has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
elia has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5212724 (master - Update and fix TypeNode macro method docs): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131680547
akwiatkowski has quit [Read error: No route to host]
akwiatkowski has joined #crystal-lang
akwiatkowski has quit [Client Quit]
rvchangue has quit [Ping timeout: 276 seconds]
<jeromegn> I'm having some troubles with macros. Not sure since what version exactly, but it seems to also be a caching issue. "--: /Users/jgn/.cache/crystal/crystal-run-macro-run-_Users_jgn_projects_jeromegn_slang_spec_support_process_file.cr.tmp: No such file or directory"
<jeromegn> so I looked in that directory, and it seems to have my process.cr.tmp but not my process_file.cr.tmp
<jhass> nuke the cache?
<jeromegn> I tried :(
<jeromegn> same error
<jhass> reproducer?
<jeromegn> jhass: if you clone https://github.com/jeromegn/slang and run crystal spec you should get the same error
<jeromegn> it's a spec macro it seems
<asterite> jeromegn: let me try
<asterite> ysbadadden was having a similar issue, I think
<jeromegn> interesting
A124 has quit [Read error: Connection reset by peer]
<asterite> Yeap, was able to reproduce it. Now to investigate :)
<jhass> asterite: are you following the mailing list thread btw? I see some improvement there too, mainly .constants should probably return ArrayLiteral(Path) and we should add a .constant(SymbolLiteral|MacroId|StringLiteral) for fetching a Path from a TypeNode or Path even
A124 has joined #crystal-lang
<asterite> jhass: yes, so it early today. Do you want to make those changes and implement .constant and send a PR? :-)
<asterite> I even think there was an issue about adding `constant`, but it was inside another issue so got lost
<jhass> I'll think about it, don't hesitate if you find the time/want to
<jhass> and yeah, people need to focus on a single topic -.-
<jhass> I considered closing that macro issue because of that...
<asterite> I can implement it too, should be easy. I can try to do it today, maybe
ozra has joined #crystal-lang
<asterite> if I can fix the issue with the cache I'll probably release 0.17.3. I want to have correct Tuple.new and NamedTuple.new for 0.18.0 :-P
<jhass> :P
<pabs> why not, it's been hours since 0.17, hours i say!
<jhass> do you have a plan for 0.18 already? concurrency already or fixing generics?
<jhass> execve("/bin/sh", ["/bin/sh", "-c", "clang -o \"/home/jhass/.crystal/crystal-run-macro-run-_home_jhass_scratchpad_slang_spec_support_process_file.cr.tmp\" \"$ {@}\" -rdynamic /usr/lib/crystal/ext/libcrystal.a -levent -lrt -lpcre -lgc -lpthread -ldl", "--", "_main.o"], [/* 56 vars */]) = 0
<jhass> gets compiled for sure
<jhass> I guess it's really the cache cleaner reaping it too early
<jhass> execve("/home/jhass/.crystal/crystal-run-macro-run-_home_jhass_scratchpad_slang_spec_support_process.cr.tmp", ["/home/jhass/.crystal/crystal-run-macro-run-_ho me_jhass_scratchpad_slang_spec_support_process.cr.tmp", "span attr=\"hello world\"", "__str__"], [/* 54 vars */]) = 0
<jhass> successful run is in there too
poulet_a has joined #crystal-lang
<asterite> jeromegn: jhass: found it https://github.com/crystal-lang/crystal/issues/2624
<jeromegn> nice
<jhass> asterite: mkay, I suspected that too but a STDERR.puts in that wouldn't show up, I guess run macro's also don't forward their stderr to the compilers stderr?
<asterite> jhass: from now on I plan to stablize things: fixing bugs, etc. I can try to tackle generics, though I want to think it well with waj but he'll take some time off for about a month. And he said after that he wants to tackle concurrency. I guess the two main big issues we need to solve before 1.0 are those: generics and concurrency. So maybe it doesn't matter which comes first :-)
<jhass> would be good to change that then
<jhass> asterite: well I can imagine properly working generics can influence the result of concurrency ;)
<asterite> jhass: yes, definitely. For me generics are more important because they are part of the language. Concurrency is more of a standard library thing, though it will need some language support. And I think there are many more issues with generics than with concurrency, which kind of works well single-threaded
<jhass> though, missed to put a debug print into cleanup_files
<asterite> STDERR seems to appear in the macro run output (as the generated program)
<asterite> brb
<jhass> yeah, just forgot to do it in cleanup_files too, sorry
<ozra> +1 on generics before issues that goes on top of that :-)
<asterite> jeromegn: I have a fix, but I run slang specs and in the output I have a bunch of "hello" and "world"... is that intentional?
fryguy9 has joined #crystal-lang
<jeromegn> hmm, I'm not sure. I couldn't run the spec since 0.16. I was trying to fix them this morning for the latest crystal, but I couldn't get them to run :) so I'm not sure what it will output.
<jeromegn> oh, I think it's normal for some. like the output.slang does `= p "hello"`
<jeromegn> so it prints it
<jeromegn> and returns it
<jeromegn> I should write that test in another way, but basically the hello and world are probably normal asterite
<jeromegn> do the spec pass?
<asterite> The "renders a basic document" fails
<asterite> but that's the only one... I'll check why
<BlaXpirit> asterite, if you do implement advanced concurrency, that's gonna make porting to Windows harder
<BlaXpirit> maybe some of the ideas used wouldn't even be compatible with windows
<asterite> jeromegn: it fails because of a whitespace difference. In any case, I guess I fixed the bug
<asterite> BlaXpirit: why not?
<asterite> golang works in windows, right?
<jeromegn> asterite: yea, I'll fix my own spec. Thanks for the quick fix!
<asterite> It's so good you found this bug and a way to reproduce it. Otherwise I wouldn't have a good excuse to release 0.17.3 with some other things I'd like to use right now :-P
<jeromegn> Hah
<crystal-gh> [crystal] asterite opened pull request #2625: Fixed #2624: Running multiple macro runs doesn't work (master...feature/fix_cache_tempfiles) https://git.io/vrze3
<crystal-gh> [crystal] jhass closed pull request #2620: Docker: Preinstall git in released docker image (master...docker-git) https://git.io/vrETR
mark_66 has quit [Quit: Leaving.]
<jhass> asterite: shall I merge you that to release/0.17 properly? :P
<asterite> jhass: please! I'm a disaster with git. I think I'm making some kind of crochet here. Would you also show me how? I think you mentioned it somewhere but I lost it
<asterite> (once travis checks pass, of course)
<jhass> asterite: the easiest is to get https://github.com/github/hub
<jhass> then just hub am -3 pull_request_url in the branch you want to merge it to
<jhass> and then merge that branch back to master
<asterite> So first I merge it into 0.17 and then to master?
<jhass> yes
<asterite> My worry is that the two branches diverged, I changed the way a type is represented in master
<jhass> master should still be a superset of release/0.17, no?
<jhass> I saw you merging it into master all the time
<asterite> I onced cherry picked something from master into 0.17, but then had to change it
<asterite> that commit is only present in 0.17, not in master. So maybe if I merge 0.17 back to master I'll get that wrong change?
<jhass> perhaps, I usually fix such stuff in the merge commit then
<jhass> (you can just --amend a local merge commit)
<asterite> Oh, I see... the problem is that I noticed that mistake later, after I pushed the change
<jhass> https://github.com/crystal-lang/crystal/compare/release/0.17..master comes up empty, which suggests everything is fine so far, just duplicated commits which gives a ugly history
<asterite> Maybe just for now I can cherry pick this PR into 0.17, release 0.17.3 and "close" the branch (I won't push any more updates into it), and for 0.18 I can do things well
<asterite> Oh, ok
<jhass> mmh, curious though that https://github.com/crystal-lang/crystal/compare/master..release/0.17 is empty too
<jhass> oh, I forgot a dot
<asterite> Hehe, yes, I was going to say that (arrived there via the UI)
<jhass> and I get merge conflicts on a local merge attempt
<asterite> I think it's because I messed things up :(
<jhass> it's still fixable, no worries
<jhass> we just have to resolve that conflict
<jhass> then have some discipline in always merging the release branch into master and never master into the release branch
<asterite> Good
<jhass> (and thus merge things which should go into the release branch there first)
<asterite> jhass: but I can't merge via github's UI in that case, right?
<jhass> right
<jhass> https://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20160520_170651.png first conflict, I guess the top version should go into master, right?
<asterite> Yup
<asterite> travis failed, I'll check why
trapped has joined #crystal-lang
<asterite> yes, master uses NamedArgumentType instead of a tuple
<jhass> cool
<jhass> that's all the conflicts already
<asterite> :)
<jhass> I'll run specs and push then
<asterite> Mmm... ok, but travis failed, and I can reproduce it locally
<jhass> I mean the release/0.17 -> master merge only for now
<asterite> Ah, ok
mgarciaisaia has joined #crystal-lang
<travis-ci> crystal-lang/crystal#6909d79 (master - Merge pull request #2620 from splattael/docker-git): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131717587
|2701 has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vrzI5
<crystal-gh> crystal/master 4603586 Jonne Haß: Merge branch 'release/0.17'
poulet_a has left #crystal-lang [#crystal-lang]
<jeromegn> ohhh, are we getting 0.17.3 today? :)
<asterite> jeromegn: I hope so! Just bug fixes, though
mgarciaisaia has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#4603586 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131727840
fryguy9 has quit [Quit: Leaving.]
icezimm has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vrz3y
<crystal-gh> crystal/master 7325a32 Jonne Haß: Merge branch 'release/0.17'
fryguy9 has joined #crystal-lang
<jhass> mh, bummer, it ate half of the output
<jhass> asterite: https://p.jhass.eu/1t.txt
<jhass> quite simple really
<travis-ci> crystal-lang/crystal#7325a32 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131736983
<asterite> jhass: <3
<asterite> So now I'll update the Changelog in the release/0.17 branch, push to release/0.17. Then merge in master, right? Or can I rebase now? What's better?
<jhass> asterite: neither, git checkout release/0.17; $EDITOR Changelog.md; git commit Changelog.md; git checkout master; git merge release/0.17; git push origin release/0.17 master;
<jhass> do work you want included in release/0.17 there initially, then merge it into master
<asterite> Great :)
kulelu88 has joined #crystal-lang
kulelu88 has quit [Changing host]
kulelu88 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrzlK
<crystal-gh> crystal/master 995032f Ary Borenszweig: Merge branch 'release/0.17'
kulelu88 has left #crystal-lang ["Leaving"]
fryguy9 has quit [Quit: Leaving.]
elia has quit [Quit: Computer has gone to sleep.]
tomchapin has joined #crystal-lang
crystal-lang455 has joined #crystal-lang
tomchapin has quit [Client Quit]
<crystal-lang455> I'd like to use crystal in a Jupyter notebook, is there anyou work started on creating a jupyter kernel?
<jhass> I never even head about jupyter before
<travis-ci> crystal-lang/crystal#995032f (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131747987
crystal-lang455 has quit [Ping timeout: 250 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
|2701 has joined #crystal-lang
Dan_ has joined #crystal-lang
Dan_ is now known as Guest56201
Guest56201 has quit [Client Quit]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.3 | Fund Crystals 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 joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 260 seconds]
jwaldrip has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrzbW
<crystal-gh> crystal/master 6b926e6 Ary Borenszweig: Merge branch 'release/0.17'
hangyas has quit [Quit: hangyas]
<travis-ci> crystal-lang/crystal#6b926e6 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/131792065
fryguy9 has joined #crystal-lang
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #crystal-lang
_whitelogger has joined #crystal-lang
<jokke> i need some help with OpenSSL::Cipher
<jokke> this script: https://p.jreinert.com/Tm9yj/crystal causes EVP_CipherFinal_ex (OpenSSL::Cipher::Error) when trying to decrypt data that was encrypted earlier with the same script
dome22xl has joined #crystal-lang
<dome22xl> Any ideas how i make of pointer of type Pointer(UInt8) -> Void ?
<jokke> dome22xl: but i think i misunderstood your question
<jokke> do you mean a pointer to a proc of Pointer(UInt8) -> Void?
<dome22xl> Yes i think that would work actually
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<dome22xl> So how do i get ->{ return true}.class to return Void then ?
<dome22xl> that gives me Bool for example
<dome22xl> ->{ return Void}.class fair enough lol
<jokke> :)
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 252 seconds]
trapped has quit [Read error: Connection reset by peer]
<BlaXpirit> jokke, why use this pastebin when you get syntax highlighting and code execution at http://carc.in/ ?
Raimondii is now known as Raimondi
<dome22xl> The first 2 types i have working but the last is causing the issue - must be (Pointer(UInt8), Pointer(LibPcap::PcapPkthdr), Pointer(UInt8) -> Void)
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #crystal-lang
<jokke> BlaXpirit: does carc.in have an api
<BlaXpirit> jokke, yes
<jokke> BlaXpirit: oh cool
<jokke> any docs to it?
<BlaXpirit> jokke, i dunno, use browser network inspection
fryguy9 has quit [Read error: Connection reset by peer]
<jokke> m(
<BlaXpirit> https://carc.in/languages is the first part, 2nd part is POST and harder to describe
fryguy9 has joined #crystal-lang
<jokke> BlaXpirit: i have a command line client for my pastebin
<BlaXpirit> k
<jokke> and can paste straight from my editor
bjz has joined #crystal-lang
<jokke> which makes it very nice to use
<jokke> i also have a history of all my pastes
<BlaXpirit> so use gist.github.com which is still better in every way?
<jokke> and i can paste any file, have multipastes (multiple files)
<jokke> gist isn't better in any way
<jokke> except that it knows crystal syntax highlighting
<tilpner> You can also clone multi-file gists via git. That's pretty cool.
<jokke> but didn't you already write a pygments plugin for crystal?
<BlaXpirit> jokke, I implemented crystal syntax highlighting for pygments, my pull request has been ignored for 2 months
<BlaXpirit> the fork works though
<jokke> BlaXpirit: i'll add a +1 for all it's worth. do you have a link to the pr?
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #crystal-lang
<BlaXpirit> yay, got 2 fake reviews
<fryguy9> ;)
soveran has quit [Remote host closed the connection]
dome22xl has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 252 seconds]
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #crystal-lang
emancu has joined #crystal-lang
<emancu> asterite: hey, are you there ?
emancu has quit [Read error: Connection reset by peer]
emancu has joined #crystal-lang
soveran has joined #crystal-lang
fryguy9 has quit [Quit: Leaving.]
<emancu> @here is there any way to append a key/value to a named tuple ?
soveran has quit [Ping timeout: 276 seconds]
elia has joined #crystal-lang
ozra has quit [Ping timeout: 276 seconds]
ozra has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]