6 ms·
I wish him luck, though having implemented a significant part of git in JavaScript myself, I wonder how well the end result will work - JavaScript does not do w
by tqc 14y ago
I wish him luck, though having implemented a significant part of git in JavaScript myself, I wonder how well the end result will work - JavaScript does not do well with either large downloads or processing binary data, and git involves a lot of both.
- deleted 14y ago[deleted]
- alexjeffrey 14y agoJavascript is getting better with at least the latter thanks to typed arrays - https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays https://developer.mozilla.org/en-US/docs/JavaScript/Typed_ar...
- tqc 14y agoThat's a start, but it's more suited for smaller tasks I think, with the main benefit being that you don't have to clutter your code with type conversion. A string with custom (no) encoding does fairly well for holding the binary data as is. It was actually memory/GC issues that got me to give up on the js implementation - it's very hard to prevent js from creating huge numbers of temporary variables, which then cause the system to freeze for several seconds while they are cleaned up.
- deleted 14y ago[deleted]
- zodiac 14y agois your implementation publicly available? I'd like to take a look at it