Skip to content
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

Tried using Emscripten? #22

Closed
relaxnow opened this issue Aug 8, 2013 · 1 comment
Closed

Tried using Emscripten? #22

relaxnow opened this issue Aug 8, 2013 · 1 comment

Comments

@relaxnow
Copy link

relaxnow commented Aug 8, 2013

You're going to be asked this multiple times I suppose, might as well have some place to point them, but have you tried using Emscripten with libgit?

@creationix
Copy link
Owner

So, two of the main goals of jsgit are to be lightweight and extremely portable (running on a variety of platforms and storage and network backends). The C libraries make a lot of assumptions about the platform they run on that make that extremely difficult. Also many of the C libraries that would be useful to me are GPL or LGPL licensed and I want to keep js-git more open using MIT.

The main technical problem with enscripten, even if the C libraries were exactly what I needed, is that it generates a lot of javacsript. I don't want 2mb of generated code. I want something hand-coded so that it can be a lot leaner. Remember this is just a library and not an entire application. It's just a part of someone else's project.

Also the emscripten toolchain is a pain to setup, especially on platforms like ChromeOS where I expect people to use js-git a lot. I would really like it if people could hack on js-git on the same platforms that use it. There is no emscripten (not one that runs at usable speeds at least) in browser-style environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants