This release brings the usual bug fixes as well as improvements to the bytecode compiler, which should result in some small performance wins across the board.
- Add
forever
macro. - Add
any?
predicate to core. - Add
jpm list-pkgs
subcommand to see which package aliases are in the listing. - Add
jpm list-installed
subcommand to see which packages are installed. - Add
math/int-min
,math/int-max
,math/int32-min
, andmath/int32-max
for getting integer limits. - The gc interval is now autotuned, to prevent very bad gc behavior.
- Improvements to the bytecode compiler, Janet will now generate more efficient bytecode.
- Add
peg/find
,peg/find-all
,peg/replace
, andpeg/replace-all
- Add
math/nan
- Add
forv
macro - Add
symbol/slice
- Add
keyword/slice
- Allow cross compilation with Makefile.
- Change
compare-primitve
tocmp
and make it more efficient. - Add
reverse!
for reversing an array or buffer in place. janet_dobytes
andjanet_dostring
return parse errors in *out- Add
repeat
macro for iterating something n times. - Add
eachy
(each yield) macro for iterating a fiber. - Fix
:generate
verb in loop macro to accept non symbols as bindings. - Add
:h
,:h+
, and:h*
indefault-peg-grammar
for hexidecimal digits. - Fix
%j
formatter to print numbers precisely (using the%.17g
format string to printf).