Skip to content

hackwaly/pepper-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play PNacl with Nim lang

Why port nim to Chrome's native client?

Because I would NOT like to use C++ for native programming. And nim can compile to C. More than just for fun.

How to taste it

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.

Todos

  • Nim pepper api bindings

About

Play PNacl with Nim lang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published