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> <Blacksmoke16> hey @vladfaust, is there a way to provide the actual ID of a FK relation?
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5d019ec2c7a8fc263a136f5a]
<FromGitter> <Blacksmoke16> `Group.new(id: 1, name: "Ore", category_id: 1)`, or do i have to provide it a `Category` type im assume?
<FromGitter> <Blacksmoke16> currently im just defining the raw column, and using a method to return the actual category
alex`` has quit [Ping timeout: 248 seconds]
alex`` has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter> <watzon> Would a sigmoid function be classified as calculus or linear algebra?
<FromGitter> <watzon> I'm leaning more towards the latter
jcs has left #crystal-lang [#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
alex`` has quit [Ping timeout: 245 seconds]
<FromGitter> <Nbotz> How would i send Time.local to all clients in a websocket?
<FromGitter> <Nbotz> through ECR and JS?
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
Groogy has quit [Quit: WeeChat 2.4]
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
<FromGitter> <girng> what is ecr?
<FromGitter> <girng> should be able to just send a server timestamp to all the clients
<FromGitter> <bew> ECR is for Embedded CRystal, it's a compile time templating system.. @Nbotz I don't see how that would help though, if you a have a websocket on the backend, you could simply send a message from Crystal with the data you want
<FromGitter> <alex-lairan> I see a lot of Crystal matrix shards, but no one is realy more used than other. ⏎ ⏎ Maybe we could have one shard on `crystal-community` that handle Matrix, and all matrix repo owners join they forces ? ⏎ ⏎ :) [https://gitter.im/crystal-lang/crystal?at=5d020172c12fd52664fc10b3]
<FromGitter> <yxhuvud> there is a bunch of matrix shards based on integrating with external math libraries. Perhaps it is time someone built a native matrix shard, focusing on nice api, while keeping the integration against external libraries separate (but still reasonably feasible to implement)
_whitelogger has joined #crystal-lang
ashirase has quit [Ping timeout: 258 seconds]
<FromGitter> <akrejczinger_gitlab> How can I create a spec for testing the print output of a program? I tried to find a way to reroute output to a file but I don't see a way to do it.
ashirase has joined #crystal-lang
Flipez has quit [Quit: The Lounge - https://thelounge.github.io]
Flipez 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
<FromGitter> <vladfaust> @Blacksmoke16 there is an issue for that -- https://github.com/onyxframework/sql/issues/92#issuecomment-488242220
laaron has quit [Remote host closed the connection]
<FromGitter> <vladfaust> Also `Group.new(id: 1, name: "Ore", category: Category.new(id: 1))`, which doesn't harm performance a lot
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
<livcd> ararchy: did you check the Cyber 2.0 ? It sounds like bullshit...
<FromGitter> <MrSorcus> Hi, why https://github.com/crystal-lang/crystal/issues/6754 can't be done?
alex`` 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
<FromGitter> <straight-shoota> @MrSorcus It *can* be done, but supporting LLVM 7 is not a high priority right now. You can simply use an older version.
<FromGitter> <MrSorcus> @straight-shoota oh, ok. Thanks for answer.
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
Raimondi has quit [Quit: WeeChat 2.4: ¡Chau!]
moei has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.4]
alex`` has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
Raimondi has joined #crystal-lang
<FromGitter> <girng> wtf
<FromGitter> <girng> why would yuou need ECR to send a message to a client from a server
<FromGitter> <watzon> @alex-lairan I'm trying to write an all-encompassing linear algebra library at watzon/apatite (https://github.com/watzon/apatite). I would love to see a Vector and Matrix implementation in the standard library though.
duane has quit [Ping timeout: 245 seconds]
alex`` has quit [Ping timeout: 272 seconds]
alex`` has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
lucasb_ has joined #crystal-lang
Groogy has joined #crystal-lang
<FromGitter> <wontruefree> is there a reason you are monkey patching parts of the stdlib?
<FromGitter> <wontruefree> I just found cadmium. It looks really cool
<FromGitter> <watzon> Adding methods that should be there and aren't. I'll probably refactor that stuff out though. Monkey patching always feels dirty.
DTZUZO has quit [Ping timeout: 248 seconds]
DTZUZO has joined #crystal-lang
alex`` has quit [Ping timeout: 248 seconds]
alex`` has joined #crystal-lang
duane has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron- has joined #crystal-lang
alex``` has joined #crystal-lang
alex`` has quit [Ping timeout: 248 seconds]
Raimondii has joined #crystal-lang
Creatornator has joined #crystal-lang
Raimondi has quit [Ping timeout: 258 seconds]
Raimondii is now known as Raimondi
<pracabor> searching the https://crystal-lang.org/api/0.29.0 docs I don't see the equivalent of https://docs.ruby-lang.org/en/2.6.0/String.html#method-i-unpack . The semantics of pack/unpack are admittedly opaque and difficult to grok -- is this functionality implemented elsewhere under some other method name?
<FromGitter> <watzon> There is no unpack in Crystal unfortunately
<FromGitter> <watzon> There is a shard I believe that replicates some of the functionality that `String#unpack` has though
<FromGitter> <straight-shoota> In Crystal most use cases for String#unpack can be implemented using IO#read_* methods which is more flexible and doesn't require to load all data into a string
dostoyevsky has quit [Ping timeout: 252 seconds]
dostoyevsky has joined #crystal-lang
<pracabor> good to know. Perhaps I'm overthinking this... Given that I'm trying to take a string and operate on it in a bitwise way, do I even need thi
dostoyevsky has quit [Ping timeout: 246 seconds]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duane has quit [Ping timeout: 245 seconds]
moei has quit [Quit: Leaving...]
dostoyevsky has joined #crystal-lang
laaron- has quit [Remote host closed the connection]
laaron has joined #crystal-lang
alex``` has quit [Quit: WeeChat 2.4]
alex`` has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.4]