Giter Site home page Giter Site logo

Comments (9)

yasserf avatar yasserf commented on May 2, 2024 2

Hey Sanderpick, thank you for reaching out!

We are actually transpiling our objective-c codebase from java using J2OBC. You can see all the artifacts here

The work on the iOS side is creating a swift wrapper, ensuring everything works and creating an pod via CI to publish releases.

I would really appretiate if you can see anything in the API that doesn't make sense in iOS land. Currently the main thing I'm aware of is that we using GSON rather than a native JSON parser.

Thanks!

from deepstream.io.

yasserf avatar yasserf commented on May 2, 2024 2

Hey Nathan,

Thanks for the recommendation! We were actually thinking about having a main Java repo that transpiled to javascript as well, but I agree native implementations are what makes SDKs powerful and alot of javascript would be lost in the move.

Our ( early 2017 ) term milestone is to have a native C++ client that will deal with core functionality and then allow most other languages to call into. This means you'll be able to use the advantages of languages while the core logic ( records / merge issues / timeouts / permissions / etc ) will be written once and not need to be transpiled.

Great news on the swift client! Community editions are always nice, if you could post a link at some point that would be great!

Another thing is we are dropping TCP and EngineIO and will only use Websocket connections going forward. This is because we are using uWS which gives us an insane about of performance improvements and reliability. Just a heads up so you don't spent any time implementing TCP handling!

from deepstream.io.

sanderpick avatar sanderpick commented on May 2, 2024

Is there a branch with any work on thing? I'd love to peep it / contribute if so.

from deepstream.io.

NathanFlurry avatar NathanFlurry commented on May 2, 2024

I understand you guys are almost done with this already, but I feel that if you insist upon transpiling, it would be better to use Kotlin (which has a Java -> Kotlin transpiler, so it'd be fairly easy to migrate). This will allow you to target Android, iOS/macOS/tvOS/watchOS (in Swift), and JavaScript all at once.

However, I always prefer handwritten implementations of libraries that utilize the native language features. I understand that you are writing a Swift wrapper around the Objective-C, transpiled code, but I'm not convince it will be Swift-y enough (but feel free to prove me wrong!).

Also, just an FYI, I'm about half way done with a pure Swift implementation of the Deepstream client (built on top of vapor/engine, so it works seamlessly on the backend and frontend). Hopefully it'll be finished within two to three weeks, since I'm only working on it in my little free time.

from deepstream.io.

viniciusrmcarneiro avatar viniciusrmcarneiro commented on May 2, 2024

About dropping "TCP and EngineIO".... with the current version... on node environment there is any to not use TCP connection? I looked at the code and I couldn't found any thing.

from deepstream.io.

arunkjn avatar arunkjn commented on May 2, 2024

Does dropping EngineIO mean no websocket fallback for browser clients?

from deepstream.io.

WolframHempel avatar WolframHempel commented on May 2, 2024

We were initially planing a HTTP longpolling fallback, but we've been doing a lot of research in the last couple of weeks and have yet to find a case where it is actually needed. Corporate firewalls are convinced by the current Websocket protocol's initial HTTP-like handshake and subsequent update and websocket support is ubiquitous in browsers http://caniuse.com/#feat=websockets

from deepstream.io.

WolframHempel avatar WolframHempel commented on May 2, 2024

There are additional benefits as well. E.g. AWS' elastic load balancer and similar distributed load balancers weren't able to maintain sticky sessions between protocols, cookies can be used in a unified fashion etc.

from deepstream.io.

yasserf avatar yasserf commented on May 2, 2024

This has been done a while ago by converting the java codebase! Yaay

from deepstream.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.