Hi,

I'm author of TarsaLZP - an lossless data compression algorithm - and I 
decided to port it to various languages. TarsaLZP was originally coded in 
x86 asm but that version is outdated now. Now there's a fresh Java version 
(located at: https://github.com/tarsa/TarsaLZP ) which I want to port to 
JavaScript. The question is: how to do it and where to get information 
about writing such things in JavaScript?

Originally I planned to do a browser version of the JavaScript port but it 
turned out that it's impossible to do piping in browser JavaScript, there 
are not even a standardized and efficient way to save files from a 
JavaScript script. Now I'm thinking about making use of some V8 specific 
functions and run JavaScript from command line, but I can't find any 
information about such functions - particularly I'm interested about 
efficient buffered/ block binary input/ output, something like fread and 
fwrite from C's standard library. Is there something like that? How would 
you approach the problem? I also want to pass some options to the script, 
just like in command line Java version of my program.

PS: I've started the porting initiative to compare performance of VMs/ 
compilers and to learn something new :)

Cheers,
Piotr

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to