December 5, 2016

Inkling Programming Language: Tips & Tricks for Inkling Code | Bonsai

Inkling Programming Language: Tips & Tricks for Inkling Code | Bonsai

We've written a full language reference in our documentation, and that's the source of truth. But if you're looking for a few quick pointers to get started, read on for a short introduction to Inkling. We'll take a close look at the CartPole sample gym.

Connecting Concepts

When creating Inkling code, concepts have inputs and outputs. These are defined using the “follows”, “predicts”, and “feeds” keywords.

Read our documentation for more information about:

Common Semantic Pitfalls

The Inkling language and compiler are quite robust, but there are some semantic pitfalls that users can run into. Here's a short list:

Conventions for Ordering Code

Even though the Inkling compiler will consume all of your code and evaluate it as a block, it's helpful to:

General notes

We love writing Inkling, and we hope you do to! The guidelines listed above will help you write the best, clearest, and most reliable code out there. 

Come visit us in the forums, or file a support request if you'd like more information. Follow Bonsai at @bonsaiai on Twitter.

Subscribe to our newsletter to stay up-to-date on our latest product news & more!