<oprypin>
(vagrant is just a way to get a fresh ubuntu vm, dont mind that)
<FromGitter>
<r00ster91> I didnt really configured anything myself. I just installed this ubuntu 18.04 from the windows store. There are also the other distributions like kali linux. And on kali linux I got an similar error
<oprypin>
dont use kali linux lol
<oprypin>
r00ster91, is your system time correct?
<FromGitter>
<r00ster91> yes im pretty sure
<FromGitter>
<r00ster91> hmm maybe i should try debian distribution. But its weird that 18.04 ubuntu doesnt works but the old ubuntu does
<oprypin>
r00ster91, i literally just showed you that it works
<FromGitter>
<r00ster91> i mean it doesnt works at me
<oprypin>
girng, omg dont you remember that GC does not release memory from the previous thread you made
<oprypin>
well there is no such thread, must have been something else
<FromGitter>
<girng> but, in nodejs they got gc, and memory didn't go up. so i was thnking maybe i did my server.cr wrong (leak)
<FromGitter>
<girng> i originally thought it was because of all the Game classes i was creating (when @faustinoaq was helping me), so i reduced my example into just 1 class (GameServer) hopefully that helps
<oprypin>
MrSorcus, doesnt look like an ipv6 address at all
<Yxhuvud>
oprypin: it looks like one of the ways to write a compacted version of an ipv6 address.
<oprypin>
i dont think there's any syntax that allows writing ipv6 with no digits at all
<FromGitter>
<MrSorcus> > *<oprypin>* @MrSorcus, doesnt look like an ipv6 address at all ā ā `Error: No address found for [2a01:4f8:a0:438a:2eea:xx:xx:xxdf]:8080 over TCP` - this too?
<FromGitter>
<Val> @MrSorcus try `::1`
<FromGitter>
<Val> ``````
<FromGitter>
<MrSorcus> > @MrSorcus try `::1` ā ā Not working.
<FromGitter>
<vladfaust> Good day all, may I? Please see https://carc.in/#/r/43np, it's my trial to parse Int from generic Param value. Can it be somehow fixed?
<oprypin>
D:
<FromGitter>
<vladfaust> It's for Prism again. Params can be either strings or complex object (say, JSON body). Fixing this would solve lots of problems
<FromGitter>
<girng> @oprypin how do we close the connections from the server? (TCP). i close them with socket.close. however, when i do `netstat -an | wc -l`, it still shows 1,xxx or so. ā and, i even unplugged my modem after i made the connections. and re-logged on the vps, and did netstat again, and they are still established...
greengriminal has quit [Quit: Leaving]
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter>
<manveru> when i build with `crystal build --static --release --no-debug` the binary still seems to have debug info according to `file`
<FromGitter>
<manveru> any idea why?
<FromGitter>
<bew> Well you said `--no-debug`
<FromGitter>
<bew> Ah sorry misread
<FromGitter>
<bew> What debug info do you still have?
<FromGitter>
<manveru> ah, good point :)
<FromGitter>
<manveru> it's from glibc/openssl/etc
<FromGitter>
<manveru> i forgot building them without
<oprypin>
why didnt anyone tell me that i had a `return` in there? what a silly mistake
<oprypin>
i say it's the neighbors that aren't letting me concentrate
<Yxhuvud>
@jaysneh: looks like somthing is creating more prepared statements than the database allows.
sherjilozair has joined #crystal-lang
<FromGitter>
<jaysneg> I need to insert a lot of data from files. How to fix it?
ua has quit [Ping timeout: 265 seconds]
<Yxhuvud>
Well, it may be a good idea to file an issue at the Granite git repo, and then my suggestion would be to try to find a small example that shows the error and then dig into the code.
<FromGitter>
<drujensen> this should create multiple statements instead of just one large one
<oprypin>
:)
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<Yxhuvud>
but why is it creating so many prepared statments? Unless every line is very different from other lines, why not reuse the prepared statements?
<FromGitter>
<jaysneg> I am parsing json and insert it to db
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter>
<manveru> it seems a bit strange that the compiler doesn't complain if i don't rescue a `File.read` which might go wrong
<oprypin>
manveru, complaining would be way stranger
<oprypin>
exceptions are not to be feared
<FromGitter>
<manveru> I don't like runtime errors :)
<oprypin>
this is basically Go
sz0 has joined #crystal-lang
<FromGitter>
<silentworks> Anyone using Crystal to build CLI tools?
<FromGitter>
<00dani> Hi! I'm using the Crystal 0.24.2_1 bottle from Homebrew, under MacOS 10.13.5 Beta (17F70a) and it'sā¦ suddenly stopped being able to compile stuff? I get a *huge* stack trace from the compiler, starting with `Invalid memory access (signal 11) at address 0x7ffeec7c6f98` - I searched that error and found it could occur when Crystal's linked to older LLVMs, but the Homebrew formula explicitly depends on LLVM 5 so
<FromGitter>
... it should be fine. Any ideas? š®
<FromGitter>
<00dani> It appears to do this regardless of what Crystal code I try to compile.
<FromGitter>
<bew> Did you try to make a clean install of crystal?
<FromGitter>
<00dani> You mean like building it from source rather than using a bottle, or?
<FromGitter>
<bew> No, by uninstalling crystal, cleaning some cache (crystal's & homebrew's), and reinstalling
<FromGitter>
<00dani> Ah. Yeah, I tried that already.