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
<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>
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>
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>
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?
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
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]