Skip to content

Commit

Permalink
docs: add sections to development tips in creating blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Dec 13, 2019
1 parent ea92f1a commit f91c057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.creating-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1308,13 +1308,17 @@ if a future version of LuaJIT implements the Lua 5.3 language, which has a

## Development Tips

#### REPL

For prototyping with Lua, the LuaJIT REPL is a bit too minimalist to be
productive. As in the original Lua 5.1 REPL, it requires preceding expressions
with "=" to print their value, and it doesn't support dumping tables. I suggest
using Torch's [trepl](https://github.com/torch/trepl) for prototyping,
available in [LuaRocks](https://luarocks.org/modules/vsergeev/trepl-torchless).
It supports table dumping, pretty printing, tab completion, and line history.

#### Prototyping

For some blocks, it may be more productive to prototype signal processing
routines in Python, with libraries like [numpy](http://www.numpy.org/),
[scipy](http://docs.scipy.org/doc/scipy/reference/index.html), and
Expand Down

0 comments on commit f91c057

Please sign in to comment.