Because I would NOT like to use C++ for native programming. And nim can compile to C. More than just for fun.
Setup nacl_sdk and set env variable NACL_SDK_ROOT
(eg. "/usr/local/lib/nacl_sdk/pepper_42").
Download naclports then build and install glibc-compat pkg.
Note that gclient sync
after git checkout ...
is unnecessary otherwise it will produce errors.
cd naclports/src
./make_all.sh glibc-compat
Setup nim lang. Mac OS X users can use brew install nim
.
Checkout and make:
git clone https://github.com/hackwaly/pepper-nim.git
cd pepper-nim
make
Then load unpacked extension with pepper-nim
folder in chrome://extensions/
developer mode.
Inspect the background page of pepper-nim
then see what's console dumps. "hello" should be printed.
- Nim pepper api bindings