jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
deavmi has quit [Ping timeout: 260 seconds]
deavmi has joined #crystal-lang
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 256 seconds]
postmodern has joined #crystal-lang
_whitelogger has joined #crystal-lang
zorp has joined #crystal-lang
postmodern has quit [Quit: Leaving]
Human_G33k has quit [Remote host closed the connection]
Human_G33k has joined #crystal-lang
Dreamer3 has joined #crystal-lang
<FromGitter> <Blacksmoke16> got updates and deletes working in my PoC
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f25bf876334d26a7e6ac2db]
<FromGitter> <Blacksmoke16> notice unchanged values are not included in the update query
<FromGitter> <chasestory> @watzon yeah, I am in salt lake, sorry for the delay in response.. Crazy week at work!
zorp has quit [Ping timeout: 240 seconds]
<FromGitter> <j8r> @Blacksmoke16 looks clean so far! You may have an idea on this: I'm doing a byte protocol - order matters. In my out-of-the-box (de)serialization library, I need to have this information somehow. Having an annotation on top of the object sounds good, like `Crystalizer::Object(fields_order: ["first_ivar", "another_one", "etc"])`. I like better than having to write one with an index on each ivar.
<FromGitter> <j8r> Now, it would be great to have information about this order in the API docs – how would you do this?
<FromGitter> <j8r> Maybe generate comments with macros...
<FromGitter> <j8r> Ho, and for `String` and `Bytes` type, an annotation is needed to know the max size.
<FromGitter> <Blacksmoke16> annotations arent documented in the API docs atm so yea
<FromGitter> <Blacksmoke16> maybe you could add docs to the type, but not sure if that would totally override the other docs on it or what
<FromGitter> <j8r> I wonder, it is possible to generate comments for an object with an annotation?
<FromGitter> <Blacksmoke16> additionally maybe define some pseudo constant that you could apply the comment/order to
<FromGitter> <j8r> I see what you mean by overwriting the comments
<FromGitter> <j8r> Got an idea, the object annotation can have an option to tell that
<FromGitter> <Blacksmoke16> you can do something like
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f25d6d903d73b60ee5e20d6]
<FromGitter> <Blacksmoke16> but you lose the original docs yea
<FromGitter> <j8r> :thinking:
<FromGitter> <Blacksmoke16> > additionally maybe define some pseudo constant that you could apply the comment/order to
<FromGitter> <j8r> Yep
<FromGitter> <Blacksmoke16> thats be fairly easy to do
<FromGitter> <j8r> Which had a name that can be customized with the annotation!
<FromGitter> <Blacksmoke16> there you go :p
<FromGitter> <j8r> Thank you, that's a good idea :slight_smile:
<FromGitter> <Blacksmoke16> np, better solution would be showing the annotations + values on a type/method etc but thats another story...
<FromGitter> <j8r> I agree, for sure
sagax has quit [Quit: Konversation terminated!]
<FromGitter> <yorci> does File.read_lines locks file?
<FromGitter> <yorci> multiple instance program got deadlock by shared file (i guess)
<FromGitter> <yorci> one of that instances is still working while others became zombie
<FromGitter> <Blacksmoke16> probably not?
<FromGitter> <lebogan> Any way to get 0.35.1 for raspberrypi? At 0.33.0 now from the public portilier.com. Thanks.
<FromGitter> <Blacksmoke16> cross compiling it yourself or maybe using docks would be easiest
<FromGitter> <lebogan> Thanks. I'll give cross compiling another try
<FromGitter> <Blacksmoke16> wew, got `find` support now
zorp has joined #crystal-lang
<FromGitter> <Blacksmoke16> `em.find User, 1 # => #<User:0x7fc5f30aacc0 @alive=true, @id=1, @name="Jim">`
<FromGitter> <Blacksmoke16> since the em manages the states of the entities, if you were to do it twice, it wouldn't need to make a query the second time since its already managed
Dreamer3 has quit [Quit: Leaving...]