GithubHelp home page GithubHelp logo

Telegram for Firefox OS? about tg HOT 27 CLOSED

vysheng avatar vysheng commented on August 15, 2024
Telegram for Firefox OS?

from tg.

Comments (27)

dannluciano avatar dannluciano commented on August 15, 2024

I want to develop something.
But I fear have to rewrite all c libs in javascript.
In my vacations after the new year I hope to start the project.

from tg.

mautematico avatar mautematico commented on August 15, 2024

Thank you!

I'm pretty sure you can find some help (if needed) on the Mozilla's list:
http://lists.mozilla.org/

Also, @loqui developers maybe interested on this.

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

I don't have much experience with emscripten, but would it work for this?

Best Regards,

from tg.

dannluciano avatar dannluciano commented on August 15, 2024

Hi guys I recommend this e-book https://leanpub.com/quickguidefirefoxosdevelopment/ for want learn the first steps in Firefox OS

from tg.

dannluciano avatar dannluciano commented on August 15, 2024

I have many busy in work but I don't gave up of the ideia.
I am a teacher and I have a few students in a research group that could take the first steps.
I will meet in the coming week.

from tg.

iamricard avatar iamricard commented on August 15, 2024

I'm working on it (learning the API first).

from tg.

iamricard avatar iamricard commented on August 15, 2024

Would you guys be OK if I create an organization (Telegram FFOS) and added you guys to it so we can collaborate?

from tg.

dannluciano avatar dannluciano commented on August 15, 2024

No problem.
Me and 'my' students, we are learning the api of FFOS.
The goal for the semester is develop the user interface.

from tg.

iamricard avatar iamricard commented on August 15, 2024

@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.

from tg.

iamricard avatar iamricard commented on August 15, 2024

So I tried building with Emscripten and (as expected) did not work out of the box.

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

@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).

from tg.

iamricard avatar iamricard commented on August 15, 2024

@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

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

@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.

from tg.

iamricard avatar iamricard commented on August 15, 2024

@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.

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

It would be amazing to get some support from tg for this... ;-)

from tg.

iamricard avatar iamricard commented on August 15, 2024

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!

from tg.

novia713 avatar novia713 commented on August 15, 2024

i like the idea
i know javascript but no idea of C
count on me, please!

from tg.

vysheng avatar vysheng commented on August 15, 2024

@sebasmagri What do you want from this C library? In particular, how do you see it's interface?

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

@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.

from tg.

vysheng avatar vysheng commented on August 15, 2024

@sebasmagri Problem is with data structures that are used to represent user, message and so on.

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

@vysheng I have not had time to deeply look at the code. Could you please elaborate?

Thanks for showing up!

Regards,

from tg.

vysheng avatar vysheng commented on August 15, 2024

@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.

from tg.

sebasmagri avatar sebasmagri commented on August 15, 2024

@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.

from tg.

pravi avatar pravi commented on August 15, 2024

http://zhukov.github.io/webogram may be this is helpful. Someone already wrote a web based client for telegram.

from tg.

iamricard avatar iamricard commented on August 15, 2024

@pravi thank you!

from tg.

jcatumba avatar jcatumba commented on August 15, 2024

I would like to join the Telegram FFOS team! Thanks.

from tg.

gitaarik avatar gitaarik commented on August 15, 2024

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?

from tg.

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.