<crystal-gh>
[crystal] MakeNowJust opened pull request #5977: Fix typo 'stritc' in PrettyPrint spec (master...fix/pretty_print/typo) https://git.io/vpYmG
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<crystal-gh>
[crystal] MakeNowJust opened pull request #5978: pp: fix the width and indentation of second and later line contents (master...fix/pretty-print/initial-indent) https://git.io/vpYmA
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter>
<bew> I think that's a feature, but the formatter is not aware of that
<FromGitter>
<bew> but it works only in generic, not in actual named tuples https://carc.in/#/r/3ww0
<FromGitter>
<bew> I'll open an issue about that
<FromGitter>
<girng> LOL i thinkt hat's wat was causing this cmd lag pop up window in sublime. i put the , there and the pop ups are now back to instant flash.
<FromGitter>
<girng> used to be 2-3 sec delay
<FromGitter>
<bew> that's definitely weird ^^
<FromGitter>
<girng> my life is a bug report, it's ok
<FromGitter>
<girng> everything is gonna be ok
<FromGitter>
<bew> don't worry, we'll resolve you soon 😂
<FromGitter>
<girng> nice catch. you knew it was coming! :D
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
Nathanaelle has joined #crystal-lang
Yxhuvud has quit [Client Quit]
Yxhuvud has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter>
<girng> i just created 387,000 classes with https://paste.ee/p/aCc1B but memory usage stays 0.7MB. it never increase beyond that?
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<crystal-gh>
[crystal] bew opened pull request #5980: Deny invalid project name chars '\' & '/'' (master...deny-invalid-project-name) https://git.io/vpYGA
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
<FromGitter>
<bew> it's very annoying to have this error `undefined method 'next_byte' for IO::ARGF (compile-time type is IO+)` evhen when I don't use an `IO::ARGF`...
<FromGitter>
<bew> *even
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
_whitelogger has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter>
<bew> ok I must have a problem somewhere, I don't understand why I get this error...
rohitpaulk has quit [Ping timeout: 256 seconds]
<FromGitter>
<bararchy> @asterite I was thinking regarding compilation and compilation time issue , when we have multi thread support, that means we can compile using multiple cores which supposedly reduce compile time / cores
<FromGitter>
<bararchy> So compile time might be even a lesser issue then we thought because even 8min compile / 8 cores means 1 min which is not that much
<FromGitter>
<bew> I don't think the compilation of a crystal program can be done in parallel
<FromGitter>
<bararchy> @bew can't it be done via some kind of a queue ?
<FromGitter>
<bararchy> Where you can break code-gen and type detection and tests to different fibers ?
<FromGitter>
<bew> huh, they must be done in a specific order, they can't be done in parallel
<FromGitter>
<bararchy> I have 0 idea how the compiler actually works but can't we follow one code path in one fiber and another in another ?
<FromGitter>
<girng> something in me feels like maybe regex docs should mention that because i was reading the api for regex couldn't find anything
<FromGitter>
<girng> i would have never thought of looking at the string API class for the solution, lol but i mean it works im happy =]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter>
<drum445> Multi type Arrays are usefull
rohitpaulk has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
<RX14>
will probably stream a bit more later
<Vexatos>
\o/
<FromGitter>
<girng> \o
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
That_Guy_Anon has quit [Remote host closed the connection]
<crystal-gh>
[crystal] MakeNowJust opened pull request #5981: Don't parse NamedTuple type without comma seperator (master...fix/crystal/dont-parse-named-tuple-type-without-comma) https://git.io/vpYg5
rohitpaulk has joined #crystal-lang
pbodev1 has joined #crystal-lang
<FromGitter>
<faustinoaq> Hi crystal community, any idea how tackle this 👉 https://github.com/crystal-lang/crystal/issues/5821 ? 😅 ⏎ ⏎ I think crystal compiler already generates a lot of intermediate code (macros expanded, types inferred, etc) Could be possible to save that intermediate-code?
rohitpaulk has quit [Ping timeout: 268 seconds]
<FromGitter>
<faustinoaq> Maybe by modifying code generation fase and adding an extra step to emit this intermediate code `--emit-expanded-macros` or `--emit-inferred-code` ?
<FromGitter>
<faustinoaq> I think this can be very useful for creating nice extensions and tools for crystal
<FromGitter>
<faustinoaq> And better debugging
<FromGitter>
<faustinoaq> By Example to fix https://github.com/crystal-lang-tools/vscode-crystal-lang/issues/4 I can use `crystal tool expand` but I need to save the expanded code somewhere, would be nice to have some flag to emit expanded code to a file, and even emit typed code after types inference (Better auto completion, posible refactoring, better simbol listing, faster types on hover and more)
<FromGitter>
<faustinoaq> I guess `crystal tool context` and `crystal tool expand` already do something similar 😅 ⏎ ⏎ Currently these tools only work in a specified cursor location `-c LOC, --cursor LOC`, Would be nice to increase the scope of these tools by generating expanded macros and context (inferred types) for an entire project and allowing to emit their result to multiples files, WDYT?
<FromGitter>
<bew> Typed code after type inference would be niiice yes! (could you add a comment in the issue about that?)
<FromGitter>
<codenoid> q hi
<FromGitter>
<codenoid> hi
<FromGitter>
<codenoid> how to do HTTP POST with application/json content type
<crystal-gh>
[crystal] RX14 closed pull request #5978: pp: fix the width and indentation of second and later line contents (master...fix/pretty-print/initial-indent) https://git.io/vpYmA
<FromGitter>
<straight-shoota> so `puts "\7"` should give you a beep
<mps>
straight-shoota: `puts "\7"` doesn't work but `puts "\u0007"` works
<FromGitter>
<straight-shoota> that's odd
<mps>
sorry, both works
<FromGitter>
<straight-shoota> 👍
<mps>
if I didn't tried right now, I would be sure that I'm tried `puts "\7"` and it didn't worked. But I see now it works :/
<FromGitter>
<straight-shoota> yeah, it definitely should work
<mps>
yesterday I tried, but it printed `7`. Must be that I made mistake somewhere
<mps>
thank you all for the help
<mps>
btw, I'm trying to understand 'fine points' of the crystal before I begin to write program which should be used for real jobs
That_Guy_Anon has joined #crystal-lang
marrow16180 has joined #crystal-lang
<FromGitter>
<r00ster91> uhm can I call it a bug when I get a weird `Invalid memory access (signal 11) at address 0x7fffd0bafff8` error where the following text is very unuseful?
<oprypin>
depends
<oprypin>
show code
<oprypin>
i think likely this is your fault
<FromGitter>
<r00ster91> hm but i think the error should be more helpful
<FromGitter>
<r00ster91> i will try to make it as tiny as possible
<FromGitter>
<asterite> barachy: no, the compiler can't be paralellized, it must all be done in sequence. So multithreading won't help
That_Guy_Anon has quit [Remote host closed the connection]