News for hackers. Stuff that matters.
Re:Show HN: Simperium, a realtime data layer by Void_ on Wednesday May 09, 2012 @06:13PM (#3950738)
This one is the best so far:

1. Works with any JavaScript library

2. You can write server-side logic

3. Operational Transformation baked in

Seriously I cannot find anything bad about this project. (I really wanted to.)

My questions:

1. Is the server side written in Python?

2. Is there offline support for JavaScript apps too?

(I tried this with my own library and I think it was a wrong direction -- it only made it more complicated than it should be)

3. How about relationships in JavaScript objects? How does that work? (I suppose it's all automatic in Core Data objects, but how about JavaScript?)

Thanks!

Re:Show HN: Simperium, a realtime data layer by ecksor on Wednesday May 09, 2012 @06:16PM (#3950748)
1. Server side is all python (combination of tornado/gevent/zeromq)

2. We've experimented with it, we'll likely add it as an option in the future since there may be security concerns depending on the app.

Re:Show HN: Simperium, a realtime data layer by Void_ on Wednesday May 09, 2012 @06:18PM (#3950758)
Thanks! Can you please tell me something about the number 3. Sorry just edited it!
Re:Show HN: Simperium, a realtime data layer by erichocean on Wednesday May 09, 2012 @09:35PM (#3951434)
I can see a few missing things (correct me if I'm wrong):

1. peer-to-peer sync (no intermediate server)

2. cloud server isn't passive and stateless

No. 2 is very important for scalability. 1 is mostly a nice to have, especially on the WAN, where you can sync directly from, e.g. an iPad to your iPhone.

Both are doable (I did both in HubSync back in 2009).

Re:Show HN: Simperium, a realtime data layer by cloudmike on Wednesday May 09, 2012 @06:24PM (#3950785)
I'll take number 3. Core Data one-to-many relationships are indeed handled automatically. On the JavaScript side, you'll see these relationships reflected in both directions using unique identifiers, but you need to interpret them accordingly. This is pretty straightforward using collections in libraries like Backbone.js.
Re:Show HN: Simperium, a realtime data layer by kt9 on Wednesday May 09, 2012 @10:09PM (#3951523)
I missed the part about writing server side logic. How does this service allow you to write service side logic?
Re:Show HN: Simperium, a realtime data layer by ecksor on Wednesday May 09, 2012 @10:48PM (#3951627)
We provide endpoints for you to monitor all changes across all users - using this you can run a service that could validate each piece of data as it is changed, making updates if necessary, or do things like mirror the entire datastore.