Questions tagged [janet]

Use this tag for questions about the janet programming language

Janet is a functional and imperative programming language and bytecode interpreter. It is a lisp-like language, but lists are replaced by other data structures (arrays, tables (hash table), struct (immutable hash table), tuples). The language also supports bridging to native code written in C, meta-programming with macros, and bytecode assembly.

3 questions
3
votes
1 answer

How to install Janet language on ubuntu?

Do you know how to install Janet on Ubuntu 20.04? I've downloaded the latest release Janet 1.10.1 for Linux but it's not explained how to install it on README.
1
vote
1 answer

Printing test case name in jpm test command

When running a janet test suite with the jpm command there is no listing of test cases. $ jpm test running test/test.janet ... Failed: (= "hello" "holla") Expected: "hello" Actual: "holla" Test: this should faild Tests: 1/3 passed Duration:…
oz123
  • 27,559
  • 27
  • 125
  • 187
0
votes
1 answer

Correct way of using janet_wrap_array

I am trying to use janet c api on ncurses and I am not getting what I expected. I tried to define the function as such on the c file static Janet jgetyx(int32_t argc, Janet *argv){ janet_fixarity(argc, 1); WINDOW *win = (WINDOW *)…