-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram for Firefox OS? #25
Comments
I want to develop something. |
Thank you! I'm pretty sure you can find some help (if needed) on the Mozilla's list: Also, @loqui developers maybe interested on this. |
I don't have much experience with emscripten, but would it work for this? Best Regards, |
Hi guys I recommend this e-book https://leanpub.com/quickguidefirefoxosdevelopment/ for want learn the first steps in Firefox OS |
I have many busy in work but I don't gave up of the ideia. |
I'm working on it (learning the API first). |
Would you guys be OK if I create an organization (Telegram FFOS) and added you guys to it so we can collaborate? |
No problem. |
@dannluciano cool, I've added you to the org. I was planning on doing it as my final school project. I'm also looking into Emscripten edit: @sebasmagri about Emscripten I think it should work, we would only have to work on the UI then. Except for the part where we have to extract what is just the API from this project because we don't need the whole CLI stuff. So In a way (I think) we need to turn this into a library, not a client (which would be really good since it would open up possibilities for clients in other languages). So far I'm trying to comment and document the code because it's terribly commented. |
So I tried building with Emscripten and (as expected) did not work out of the box. |
@rcsole Do you think there is some reusable out of the Emscripten output? We'd need to determine if it's worth the effort or if we'd go with a new API upon FxOS specific TCPSocket API as referenced at loqui/im#161 (Spanish). |
@sebasmagri Honestly, I have no clue. The Emscripten doesn't not get far enough to output anything. I am, however, trying to isolate the API from this project, comment it, and then run Emscripten on it because this does seem like a viable project and having a base on C instead of JavaScript does sound like a better plan. Either way I think the way to go is write some C (or C++) code which afterwards let's us run Emscripten on it, because that's be helpful if anyone were to try and port it to say python or lua (the C part, not the JS part). I'll add you to the org @sebasmagri |
@rcsole having a base C library does sound great. It would be extracted from tg's code and tg would be able to use it also. |
@sebasmagri exactly my idea. But I am going rather slow because this code, while great, is poorly commented (actually not commented whatsoever) and it does have a couple thousand lines in total. |
It would be amazing to get some support from tg for this... ;-) |
Indeed, it would be really great. I don't think it's going to happen though. I'll start by commenting the code on the Telegram-FFOS fork, and I guess I'll send pull requests every now and then. Ideally I'll create a new repo containing the API only. I'll keep in touch! |
i like the idea |
@sebasmagri What do you want from this C library? In particular, how do you see it's interface? |
@vysheng a pretty straight forward library with methods for common API operations needed for a client would suffice. It doesn't need to deal with UI, just API operations. |
@sebasmagri Problem is with data structures that are used to represent user, message and so on. |
@vysheng I have not had time to deeply look at the code. Could you please elaborate? Thanks for showing up! Regards, |
@sebasmagri I use some big structures where I can put everithing, that server can tell me about this peer (user, for example). It is easy to use in app, because you have all information about peer in one structure, but for library it is not so good, because it will use more memory, then user wants. |
@vysheng a good starting point would be to break such big structures in smaller types for each entity exposed in the API. You could use such types and keep them in your big structure later if you want to. |
http://zhukov.github.io/webogram may be this is helpful. Someone already wrote a web based client for telegram. |
@pravi thank you! |
I would like to join the Telegram FFOS team! Thanks. |
The webogram project looks like it is already going good. I think it would be wise to join this project for a FFOS version, because FFOS runs webapps anyway. I don't completely understand the idea of having a C library as a base, you can't run any C in web apps. Besides that, the app will comunicate with the Telegram API, so why would you need some shared codebase anyway? |
I'll just post it here and see what happen next... :)
Try it! just as http://loqui.im/ is trying. Do you have any plan on it?
The text was updated successfully, but these errors were encountered: