Releases: greenfork/jzignet
Releases · greenfork/jzignet
0.7.4
0.7.2
jzignet 0.7.1
- Library fixes
- Janet update to 1.31.0-e3f4142d
Thanks @iacore for contributing.
jzignet 0.7.0
Updated versions:
- Zig 0.11.0
- Janet 1.31.0
Added zon as a new way to add a dependency.
Thanks @iacore for contributing.
jzigner 0.6.0
Update Janet to 1.23.0 🔥
Jzignet 0.4.0
Updated to Zig 0.9.0!
Jzignet 0.3.0
All changes are most probably breaking.
- Janet was upgraded to 1.19.0.
- Major overhaul of C API.
- Module example is fully automated and native to jpm.
C API
- Functions were moved into structs to be "methods":
continue
into FibercontinueSignal
into Fiberstep
into Fiberstackstrace
into Fiberpcall
into Functioncall
into FunctiontryInit
into TryStatetry
into TryStaterestore
into TryState
wrap
function overhaul:- All the functions which are applicable to data structures are moved into
these structures, for examplewrapTable
is moved intoTable.wrap()
. - All the named wrap functions are now with a signature
wrap(comptime T: type, value: T) Janet
so you can use it like
wrap(i32, 3)
. wrapNumberSafe
is renamed tonumberSafe
.
- All the functions which are applicable to data structures are moved into
unwrap
function overhaul:- All the functions except for abstract have changed their signature to
unwrap(janet: Janet, comptime T: type) !T
so you can use it like
try Janet.unwrap(i32)
.
- All the functions except for abstract have changed their signature to
string
function and corresponding for keyword and symbol are moved into
their data structures into functionsinit
.stringv
function and corresponding for keyword and symbol are moved into
Janet into functionsstring
,keyword
andsymbol
.symbolGen
function is moved intoSymbol.gen
.abstract
function is moved intoAbstract.init
andAbstract.initVoid
.- Introduce new
Environment
struct which is same asTable
but only allows
operations specific to environment manipulation. - More data structures now have
init
orinitN
functions whereinitN
initializes with supplied data for collection data structures. Signal
return value is transformed intoSignal.Error!void
where
Signal.Error
is anything butok
signal.- Functions such as
pcall
only take[]const Janet
instead of both pointer
and argument length. doString
anddoBytes
functions always returnJanet
value instead of
accepting a pointer*Janet
as an argument.printf
->print
,eprintf
->eprint
.registerAbstractType
is removed in favor of justregister
.- Marshal/unmarshal type-specific functions live inside
MarshalContext
. getType
andoptType
functions are reworked to receive type as the
very first argument.- "View" functions are moved inside
Janet
struct and now return a corresponding
view data structure instead of getting the view from parameters by reference. getAbstractType
is moved insideJanet
.in
,get
,next
,getIndex
functions have their return type changed
Janet
->?Janet
.JanetType
is nowJanet.Type
.fixarity
renamed tofixArity
.
Big thanks to @GrayJack for his https://github.com/GrayJack/janetrs library which was an inspiration for this release.