Version 4 of NaTcl

Updated 2011-04-11 22:30:54 by stevel

NaTcl is Tcl running under Chrome.

Try it out

  • Get chrome.
  • chrome, google-chrome --no-sandbox
    • on OSX use /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --no-sandbox
  • navigate to about:flags and enable native client
    • on OSX (at least) you will need to restart Chrome after enabling native client
  • http://wiki.tcl.tk/_natcl/
  • http://wiki.tcl.tk/_natcl/shell.html

Serve with Wub

  • Make NaTcl per README
  • mkdir [docroot]/NaTcl and [docroot]/NaTcl/exe
  • cp tcl.nexe [docroot]/NaTcl/exe
  • cp index.html tcl.nmf [docroot]/NaTcl/

Edit tcl.nmf to

{
  "nexes": {
    "x86-32": "exe/tcl.nexe",
  }
}

Add to site.config:

/natcl/ {
    domain File
    root $Wub::docroot/NaTcl
}

/natcl/exe {
    domain File
    root $Wub::docroot/NaTcl/exe
    expires tomorrow
}