Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Cory Mawhorter
@cmawhorter
i found crjdt and the note about scala.js. i'm not familiar with scala.js. any advice on using crjdt from vanilla js?
Frank S. Thomas
@fthomas
@cmawhorter I've not much experience with Scala.js either. It is just that crjdt is cross build for it. There is nothing special in the library for Scala.js.
Cory Mawhorter
@cmawhorter
ah. i found this page but searching the code came up empty. any thoughts on if it's possible to annotate a single top level object to expose the functionality as a standalone crjdt.js script?
also -- are you using crjdt in production? or is it an experiment?
Frank S. Thomas
@fthomas
@cmawhorter Are you trying to use crjdt as pure Javascript library? I don'the know how or if this is going to work.
I'm currently not using it in production but I'd like to make it production-ready if I've the time to do so. Contributions to that end are greatly appreciated ;-)
Cory Mawhorter
@cmawhorter
yes, my hope was to use js client/server. ha, i'm happy to work on this project in all my free time! (unfortunately i have none. :cry:). i'm just experimenting right now myself, and i was looking for alternatives to OTs > found Martin Kleppmann's talk > and here i am. crjdt looks interesting!
Frank S. Thomas
@fthomas
@cmawhorter You could try nudging this guy to make his JS implementation public: https://twitter.com/wincent/status/774658700967456768
Cory Mawhorter
@cmawhorter
ooo. nice. thanks, i'll do that
Frank S. Thomas
@fthomas
Hey @TanUkkii007, I haven't had time yet to look in detail at the issues you've opened. My private life is really busy right now and there's no time left for any substantial open source work. I hope it gets better in a month or two.
Yusuke Yasuda
@TanUkkii007
@fthomas No problem. My time is limited as well. And I have something to progress independently, which includes experiments for me to understand the issues more. In addition I think it would be good to provide full-fledged example application using crjdt. It would be a long way but provide feedback for interface design.
Frank S. Thomas
@fthomas
Yes, a demo using crjdt would be very interesting. It is on my TODO list since "finishing" the implementation ;-)
Mateusz Maciaszek
@speedcom
Hey! @fthomas what is the quickest possible way to get Replica/Node instance from circe Json object?
I couldn't find any relevant method in codebase :shipit:
Frank S. Thomas
@fthomas
@speedcom there is currently no function that does that but I think it shouldn't be too complicated to go from circe.Json to Node
Mateusz Maciaszek
@speedcom
Ok, thanks @fthomas for letting me know! :grinning: BTW: you did a great job! are you going to continue working on this library?
Frank S. Thomas
@fthomas
Thanks @speedcom! Currently it is not at the top of my priority list but I'll process PRs and publish new releases if there is demand for that.
Mateusz Maciaszek
@speedcom
That would be great @fthomas. Actually, I found this as the biggest missed feature. That way, while having it, you can easly go back and forth and have a complete solution. I'm going to use this library in my multi-master CRDT database with mergeable JSON structure.
I would like to have a possibility to accept JSON from clients and convert it then to appropriate CRJDT's type.
I mean, I would love to try to implement this part and do PR then. If that wouldn't be a problem you can give me a couple of hints where I could start this (what has to be implemented, what concerns we should deal with and so on).
Frank S. Thomas
@fthomas
@speedcom IIRC each client has its own replica and the only thing that needs to go over the wire to all other replicas are Operations which should be easy to serialize to JSON