ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.29.0 | 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> <omidathari> @watzon Interesting indeed. ⏎ The task ahead of me is I am trying to link to a C library and call a function that takes a uint8 * as argument (which is actually a string in C). And it appears that the pointer I provide to the function is causing issues. Have you ever attempted this before?
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter> <watzon> I definitely haven't
<FromGitter> <omidathari> Thanks @watzon
<FromGitter> <watzon> @omidathari wait, so since it takes a UInt8* you're trying to pass bytes in? You know you can still pass it a string right?
lucasb has quit [Quit: Connection closed for inactivity]
lvmbdv has joined #crystal-lang
jemc has joined #crystal-lang
<FromGitter> <watzon> Multi-threading ftw
<FromGitter> <watzon> Also, my laptop sucks
alex`` has quit [Ping timeout: 258 seconds]
moei has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 245 seconds]
Raimondii is now known as Raimondi
<FromGitter> <bararchy> @watzon hmmmmm interesting
<FromGitter> <bararchy> how much
<FromGitter> <bararchy> how come*
<FromGitter> <watzon> Just not enough ram and not a new enough processor. Not good enough for training neural networks anyway
mntmn has quit [Ping timeout: 252 seconds]
OvermindDL1 has quit [Ping timeout: 252 seconds]
OvermindDL1 has joined #crystal-lang
mntmn has joined #crystal-lang
<FromGitter> <bararchy> Hahahaja story of my life
<FromGitter> <bararchy> What neural net are you building?
<FromGitter> <watzon> I'm actually working on an implementation of GLOVE for Cadmium. It's like Word2Vec, but better for multithreaded workloads
<FromGitter> <watzon> And I've actually got it working too which is the exciting part
<FromGitter> <bararchy> Ohhhhh interesting , using multiple processes ?
<FromGitter> <watzon> Yup!
<FromGitter> <watzon> Still playing around and trying to make sure it's working right
<FromGitter> <watzon> But so far it seems to be
vegai_ has joined #crystal-lang
<FromGitter> <bararchy> Cool! Will explore once its in ;
jemc has quit [Ping timeout: 245 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
flaviodesousa has joined #crystal-lang
<FromGitter> <watzon> You know, that explains a lot
laaron has quit [Remote host closed the connection]
<FromGitter> <yxhuvud> I take that as a "no" :P
laaron has joined #crystal-lang
devil_tux has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Client Quit]
laaron has joined #crystal-lang
devil_tux has quit [Ping timeout: 248 seconds]
devil_tux has joined #crystal-lang
BaldEagleX02 has quit [Ping timeout: 250 seconds]
<FromGitter> <bararchy> @z64 I saw you took the discordcr under your wings ?
devil_tux has quit [Ping timeout: 268 seconds]
devil_tux has joined #crystal-lang
BaldEagleX02 has joined #crystal-lang
devil_tux has quit [Ping timeout: 245 seconds]
devil_tux has joined #crystal-lang
<z64> @bararchy in a way, yeah. i've been contributing to the library and working with its users for a long time; since i dont have push access atm, its been more convenient for me to maintain a fork since the other maintainers have been busy
alex`` has joined #crystal-lang
lucasb has joined #crystal-lang
<FromGitter> <j8r> mps we have a problem with the recent update of shards 0.9.0
<mps> j8r: didn't know. can you tell what is the problem
<FromGitter> <j8r> for example, take this shards.yml: https://github.com/DFabric/dppm/blob/master/shard.yml
<FromGitter> <j8r> `shards install` seems to be stuck if there are too many dependencies
<FromGitter> <j8r> sorry mps, that's probably a shards bug - unrelated to your work
<mps> np, I suspect that there is 'heisenbug' somewhere in crystal, so maybe also in shards
<FromGitter> <j8r> heisenbug?
<mps> Heisenberg's principle of indeterminacy (translation to english from head)
<FromGitter> <j8r> i see
<mps> bug which appears randomly in strictly same environment and context
jemc has joined #crystal-lang
<FromGitter> <j8r> this one seems to be linked to performance
<mps> I've seen bugs (segfault, iirc) when compiling crystal binary (apk) and just repeating build bug doesn't appears. sometimes have to repeat two times. and mostly on aarch64
<FromGitter> <j8r> weird :/
<mps> I can post log with this bug later. I'm out right now
<FromGitter> <j8r> I have git bisected it, it succeded
oz has quit [Quit: EOF]
oz has joined #crystal-lang
OvermindDL1 has quit [Ping timeout: 248 seconds]
OvermindDL1 has joined #crystal-lang
<FromGitter> <alex-lairan> > Crystal is a programming language with the following goals: ⏎ > - Have a syntax similar to Ruby (but compatibility with it is not a goal) ⏎ ⏎ Is this line should stay ? Because the syntax moved a lot between the two languages ⏎ Ruby : `5 |> to_s` ... [https://gitter.im/crystal-lang/crystal?at=5d0907eda8d9871b32b88263]
<FromGitter> <Blacksmoke16> there was a discussion about the pipe operator
<FromGitter> <alex-lairan> Hope we don't implement the same as the ruby one
<FromGitter> <Blacksmoke16> its prob not going to happen
<FromGitter> <wontruefree> I totally dont get the ruby one
<FromGitter> <wontruefree> it is just dot syntax
<Yxhuvud> I suppose it might happen IF it turns out to be reasonably common and ideomatic in Ruby-land.
devil_tux has quit [Ping timeout: 268 seconds]
<FromGitter> <Blacksmoke16> read thru that issue, unless someone has a good use case of them being useful that cant be done already without them as nicely, then no point in having them
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
devil_tux has joined #crystal-lang
<FromGitter> <watzon> Is there a good way to test for memory leaks in Crystal
<FromGitter> <watzon> I'm pretty sure I have a pretty massive one
<Yxhuvud> valgrind? but it probably won't catch references that you hold but don't want to
<FromGitter> <watzon> Thanks I've never used valgrind before but I've heard of it
<FromGitter> <watzon> Trying it now
<FromGitter> <asterite> the way I test memory leaks is looping and then trying to reduce the code (sorry, my tools are always very primitive)
duane has joined #crystal-lang
<FromGitter> <watzon> I think I found the issue. My Matrix class in my linear algebra library is supposed to be immutable, so every time you retrieve a row or column from the Matrix it creates a new vector and returns that. I think that's causing issues.
<oprypin> it really shouldn't by itself
<oprypin> but also: don't make it immutable
<FromGitter> <watzon> Yeah I'm going to change that
<FromGitter> <watzon> Hmm is there a reason this ⏎ ⏎ ```@text = @text.gsub(/([^[:alpha:]]+)|((?=\w*[a-z])(?=\w*[0-9])\w+)/, " ")``` ⏎ ⏎ would be giving me an `Uninitialized Read` error? [https://gitter.im/crystal-lang/crystal?at=5d0922d1faf70031f944eca0]
<FromGitter> <watzon> With Dr. Memory and Valgrind
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/master/String.html#at%28index%3AInt%29-instance-method shouldnt this have a `DEPRECATED` tag on the docs since its annotated as such? i remember that being a feature of the annotation
<oprypin> Blacksmoke16, bring it up regardless
<oprypin> (as in, an issue)
<FromGitter> <Blacksmoke16> 👍
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #crystal-lang
<FromGitter> <Blacksmoke16> also made one for the UUID slice issue discussed a bit yesterday https://github.com/crystal-lang/crystal/issues/7894
alex`` has quit [Ping timeout: 258 seconds]
<oprypin> 👍👍
alex`` has joined #crystal-lang
devil_tux has quit [Ping timeout: 248 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<z64> :)
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/7375 camel case should prob default to lower = true
<FromGitter> <Blacksmoke16> pretty sure thats pascalcase :S
jemc has quit [Ping timeout: 245 seconds]
laaron- has joined #crystal-lang
laaron has quit [Remote host closed the connection]
duane has quit [Ping timeout: 258 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
alex`` has quit [Ping timeout: 248 seconds]
jemc has joined #crystal-lang
alex`` has joined #crystal-lang
jemc has quit [Ping timeout: 245 seconds]
<FromGitter> <j8r> I hope shards 0.9.1 will be out soon : /
<FromGitter> <j8r> The new SAT solver has issues with long dependencies lists
sz0 has quit [Ping timeout: 252 seconds]
sz0 has joined #crystal-lang
moei has quit [Quit: Leaving...]