Skip to content

WorkhorsyTest/unrar.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unrar.js

A port of UnRAR to JavaScript using WebAssembly.

http://www.rarlab.com/rar/unrarsrc-5.5.3.tar.gz

!!!!!!!!!!!!!!!!!!!!!!

This project is just getting started, and does not work yet!

!!!!!!!!!!!!!!!!!!!!!!

Install WebAssembly:

git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk install sdk-incoming-64bit binaryen-master-64bit
./emsdk activate sdk-incoming-64bit binaryen-master-64bit

Build:

./make_web.sh

Run:

python3 -m http.server 8000

FIXME:

  • Change to be a module, rather than emscripten main loop

  • extract one file at a time

  • Make a simple library for passing data between C++ and JS

  • Remove vector, string to make wasm smaller

  • Replace progress printing to console with callbacks

  • Replace the Emscripten generated file with a simple example

  • Passing between C++ and JavaScript is uber slow. As we pass it one byte at a time.

  • It blocks when it does anything. Add functions for Web Workers.

About

Uncompress RAR files with WebAssembly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages