Changelog for zeolite-lang-0.24.1.0
Revision history for zeolite-lang
0.24.1.0 -- 2024-01-07
Language
-
[fix] Fixes parsing of
<expressions when the left side is an explicit type conversion, e.g.,"123"?String < "456". Previously, the<was assumed to be the start of a param substitution.Note that this shouldn't ever be needed because
<only supports built-inconcretetypes. (Any value with a union/intersection type convertible to one of those types already simplifies to that type, making the union/intersection superfluous.) -
[new] Adds the
<||operator to use the left value unless it'sempty.
optional Int value <- empty
// value is preferred, but 123 is used because value is empty.
Int other <- value <|| 123
- [behavior] Adds source context to traces for crashes during initialization
of
@categorymembers.
Libraries
-
[fix] Fixes
CheckSequence:using(inlib/testing) when using an empty list. -
[new] Adds
AppendHhelpers tolib/util.
Examples
- Adds
example/highlighter, as both a code example and a highlighted-HTML generator for Zeolite source files.
0.24.0.1 -- 2023-12-10
Language
- [fix] Fixes parsing of
&.with prefix/infix function notation, e.g.,a `foo&.bar` b.
Compiler CLI
- [fix] Fixes static linking of binaries for C++ compilers that don't handle weak symbols. Previously, static linking would fail for some compilers with an error message related to functions that handle unboxed types.
0.24.0.0 -- 2023-12-09
Language
-
[breaking] In
testcase, renamescrashtofailure. -
[breaking] Adds the
visibilitykeyword to limit calling of@value/@typefunctions to specific type contexts. This is breaking becausevisibilityis now reserved.concrete Foo { visibility Bar, Baz // Functions below here are only visible from Bar or Baz. @type call () -> () } -
[breaking] Adds function delegation with
delegatekeyword.concrete Foo { @type new1 (Int) -> (Foo) @type new2 (Int) -> (Foo) } define Foo { @value Int value new1 (value) { // Same as Foo{ value }. return delegate -> Foo } new2 (value) { // Same as new1(value). return delegate -> `new1` } }This is a breaking change because
delegateis now reserved. -
[breaking] In
testcase, you can now optionally include a type name thatdefines Testcaseaftersuccess/failure. The test will automatically callstart()andfinish(), which is meant to allow custom checks upon test exit. This is breaking becauseTestcaseis now reserved. -
[breaking] Adds instance identification with the
identifykeyword. This is breaking becauseidentifyis now reserved. -
[fix] Fixes parsing of comments that immediately follow operators, e.g., the
/*b+*/ina+/*b+*/c. -
[fix] Fixes checking that a
@typefunction isn't called on a@value. -
[fix] Fixes cross-module visibility checks with
$TestsOnly$in.0rpwithout$ModuleOnly$. This is primarily to detect if there's usage of a$TestsOnly$category from aprivate_depin a.0rp. -
[fix] Updates parsing of
emptyto allow explicit type conversion, e.g.,empty?String. -
[new] Adds the option to provide enforced labels for function args.
concrete Foo { // First arg has the label value:. @type bar (Int value:) -> () } // ... // Callers _must_ use the label value:. \ Foo.bar(value: 1)Unlike with languages like C++, where the argument name in the function declaration is irrelevant, this is primarily meant to clarify calls to functions with arguments whose purposes are ambiguous.
Note that this doesn't make arguments optional, nor does it allow reordering of arguments. Additionally, there's no requirement that the labels match the argument names, nor that the labels are even unique.
-
[new] Adds the
<-|operator to conditionally overwrite anoptionalvariable if it's empty.optional Int value <- empty value <-| 123 // Assigned, because value was empty. value <-| 456 // Not assigned, because value wasn't empty. -
[new] Adds the
&.operator to conditionally call a function on anoptionalvalue.optional Int value <- 123 optional Formatted formatted <- value&.formatted() -
[new] Updates the return type of inline
<-to use the type on the right side of the expression, rather than the variable's type.optional Formatted value <- empty // Previously, the return type would've been optional Formatted. Int value2 <- (value <- 123) -
[new] Updates type inference to arbitrarily choose the lower bound when a param is bounded above and below with different types. Previously, the compiler would require specifying the param explicitly. This will make param inference succeed in more situations than it did previously.
-
[new] Adds the
<->operator to swap variable values. This can be used to swap the values of writable variables of the same type, i.e., not marked as read-only via a pragma and not a function argument.Int foo <- 123 Int bar <- 456 foo <-> bar -
[new] Allows hex, octal, and binary floating-point literals. (Exponents not allowed due to ambiguity during hex parsing.)
Float value1 <- \xFED.CBA Float value2 <- \o765.432 Float value3 <- \b101.010 -
[new] Adds the
$CallTrace$macro to get a call trace for testing purposes.
Libraries
-
[breaking] Removes
Testingfromlib/testingentirely. Use the new testing approach instead. (More details in items further down.)// Old way. testcase "my tests" { success } unittest test { \ Testing.checkEquals("something", "other") \ Testing.checkBetween(3, 2, 7) }// New way. testcase "my tests" { success TestChecker // <- allows lib/testing to manage test results } unittest test { \ "something" `Matches:with` CheckValue:equals("other") \ 3 `Matches:with` CheckValue:betweenEquals(2, 7) }Also see the
.0rpfiles inlib/testing. -
[breaking] Removes
UtilTestingfromlib/utilentirely. Use the new testing approach instead. -
[new] Adds the
TestCheckertestcasechecker (see previous section) tolib/testingto help support custom matchers. -
[new] Adds support for custom value matchers in tests to
lib/testing, as well as matchers for value comparisons, substring checks, floating-point epsilon, and container comparisons inlib/testing,lib/util, andlib/container. User-defined matchers can compose other matchers to customize matching of more complex value types. -
[new] Implements
SetReader<#k>forHashedMap<#k, #v>andSortedMap<#k, #v>inlib/container. -
[new] Adds
tryValuetoErrorOrinlib/util. -
[fix] Updates
BarrierWaitC++ implementation to compile for MacOS by adding runtime failures if the functionality is used. MacOS doesn't support thread barriers, solib/threadpreviously didn't compile for MacOS.
Compiler CLI
-
[new] Allows single-
-CLI options to be clustered, e.g.,-rfj8, which is expanded to-r,-f, and-j8. -
[behavior] Clearer error messages for categories hidden by
$ModuleOnly$,$TestsOnly$, andprivate_deps. Previously, the compiler would just say that the category wasn't found.
0.23.0.0 -- 2022-10-08
Language
-
[breaking] Adds the
exitbuiltin to terminate the program with an exit code, with the usual semantics, i.e., 0 means success. This is breaking becauseexitis now a reserved name. -
[breaking] Adds the
Pointer<#x>builtinconcretecategory, for use in C++ extensions. (This is breaking becausePointeris now reserved.)
Compiler CLI
-
[new] Adds general pointer storage to
BoxedValueto allow C++ extensions to pass data to each other without marshaling.// Create a value that can be returned/passed in Zeolite function calls. BoxedValue boxed = Box_Pointer<Foo>(&value); // Access the pointer stored in the value. Foo* unboxed = boxed.AsPointer<Foo>();This is only type-safe if the Zeolite code uses a different
#xinPointer<#x>for each different type used withBox_Pointer/AsPointer. For example, the code above usesFoo, soPointer<Foo>should be used everywhere such values are passed around in the Zeolite code. (#xis arbitrary, but it's more clear if the name used in Zeolite corresponds to the name of the C++ type.) -
[new] Adds % code coverage in output of
zeolite --missed-lines.
Libraries
-
[new] Moves
Realtimefromlib/threadtolib/utilsince it doesn't inherently require threads. (This isn't breaking becauselib/utilwas already a public dependency oflib/thread.) -
[new] Adds the
Counter.builder()function tolib/utilto buildIntcounters with more flexibile limits and increments.
0.22.1.0 -- 2022-04-18
Language
-
[fix] Fixes checking of parameter variances in the context of internal inheritance.
-
[fix] Fixes regression in inheritance of interfaces where the specified params contain unions or intersections, e.g.,
refines Foo<[Bar&Baz]>. -
[new] Adds the
$ReadOnlyExcept[...]$definepragma to protect all members except those specified.
Libraries
-
[new] Adds the
AlwaysEmptyempty container tolib/util. -
[new] Adds the
Queue<#x>@value interfaceand theSimpleQueue<#x>container tolib/container.
Compiler CLI
-
[fix] Fixes bug where
extra_fileslisted in.zeolite-modulewould fail to compile if the module contained no public categories. -
[new] Adds the
-j[# parallel]flag tozeoliteto execute compilation of C++ files in parallel. -
[new] Allows C++ extensions to specify internal inheritance in
.zeolite-module. This is necessary if the implementation needs to passPARAM_SELForVAR_SELFas a parent type that is not publicly visible.// Assumes that Foo is also mentioned in extra_files:. extension_specs: [ category { // For Foo<#x>. Do not include the params here. name: Foo refines: [Bar<#x>] defines: [Baz<#x>] } ]
0.22.0.0 -- 2021-12-11
Libraries
-
[breaking] Revises basic input and output provided by
lib/util:-
[breaking] Renames
SimpleInputtoBasicInput. -
[breaking] Renames
SimpleOutputtoBasicOutput. -
[breaking] Removes
LazyStream. To construct and write output, there are a few options:// Incrementally. \ BasicOutput.stderr() .write(someValue) .write("\n") .flush()// Preformatted. \ BasicOutput.stderr().writeNow(String.builder() .append(someValue) .append("\n") .build())
-
-
[breaking] Renames
SearchTreetoSortedMapinlib/container. -
[breaking] Renames
TreeSettoSortedSetinlib/container. -
[breaking]
Vectorchanges (lib/container):-
[breaking] Replaces
Vector:create<#x>()withVector<#x>.new()for consistency with other@valueconstruction. -
[breaking] Removes
Vector:copyFromsince it was too specific.
-
-
[breaking] Removes
setandremovefromAutoBinaryTree, and adds theswapfunction, which can handle bothsetandremoveoperations. -
[breaking] Removes
voidfromVoidinlib/util. UseVoid.default()instead. -
[new] New categories:
-
[new] Adds the
HashedMapandHashedSetcontainers tolib/container. -
[new] Adds
CategoricalReader,RandomCategorical, andGenerateConstanttolib/math. -
[new] Adds
FormattedH:trytolib/utilfor formatting values during debugging and logging. -
[new] Adds the
LessThan2@value interfacetolib/util. -
[new] Adds the
KVExchange,KeyOrder, andValueOrder@value interfaces inlib/containerfor additional map operations.
-
-
[new] New functionality for existing categories:
-
[new] Implements the new
KVExchange,KeyOrder, andValueOrderinterfaces forSortedMap(previouslySearchTree) inlib/container. -
[new] Adds
copyToandduplicateTotoOrderHandReadAtHinlib/utilfor general container duplication. -
[new] Adds
forwardOrder,reverseOrder, anditerateWithtoReadAtHinlib/utilfor iterating overReadAtcontainers. -
[new] Implements
Defaultfor containers inlib/containerandlib/math. -
[new] Implements
Default,Duplicate, andHashedforVoidinlib/util. -
[new] Implements
Sortingfunctions inlib/containerthat use the newLessThan2interface. -
[new] Implements
Append<Formatted>forBasicOutput(previouslySimpleOutput) inlib/util. -
[new] Adds
permuteFromWeighttoRandomizeinlib/math. -
[new] Adds
probabilitytoRandomUniforminlib/math. -
[new] Adds
checkNotEqualstoTestinginlib/testing.
-
Language
-
[breaking] Makes the
Duplicate@value interfacefromlib/utila builtin and implements it forBool,Char,Float,Int, andString. -
[breaking] Adds the
Hashedbuiltin@value interfaceand implements it forBool,Char,Float,Int, andString. -
[breaking] Replaces
@valueconversion for function calls (e.g.,foo.Base.call()to choosecallfromBase) with general type conversions usingvalue?Typesyntax.// Explicitly converts foo to Base. \ foo?Base.call()The primary use-case is still to convert a union or interesection value to a specific type to resolve an ambiguity in function selection. Conversions can also be used to influence type inference in function calls by changing the type of a passed argument.
// Convert the argument when using type inference. \ call<?>(foo?[Container&ReadAt<#x>]) \ call<?>(foo?any)This can also be used to convert the underlying types of
optionalandweakvalues, while still preserving theoptional/weakstorage modifier. -
[fix] Fixes checking of
deferininblocks ofscoped. Previously, adeferred variable was only marked as set if thecleanupset it, even if all paths through theinactually set it.Int value <- defer scoped { // ... } in if (true) { value <- 1 } else { value <- 2 } // Previously, value appeared to be unintialized here. \ foo(value) -
[fix] Fixes a bug in type checking of conversions to a parent
@value interfacewhen therefinescontains#self.concrete Foo { // Previously, there would have been an error converting Foo -> Bar<Foo>. refines Bar<#self> } -
[fix] Fixes bug in validation of internal
@categoryfunctions with a param that has the same name as a category param, where the@categoryfunction has a filter that the category does not have. -
[new] Allows
present,require,strong, andreduce<#x,#y>builtin functions to have unary notation, e.g.,y <- `require` x. -
[new] Compiler now does more work attempting to resolve function calls for
@values with union types. Previously, explicit type conversions were always required to make calls from unions. -
[new] Allows
requiresandallowsfilters to use unions and intersections on the right side, e.g.,#x allows [Foo&Bar]. -
[new] Allows
deferto be used with@valueand@categorymembers. This is primarily because the restriction was somewhat arbitrary. -
[new] Implements
LessThanforBool.
Compiler CLI
- [fix] Makes
PARAM_SELFwork when used in@valueimplementations in C++ extensions.
0.21.0.0 -- 2021-11-19
Compiler CLI
-
[breaking] Combines params and args in function calls into a single object. This breaks all C++ extensions.
Call_foofor functionfoomust now takeconst ParamsArgs& params_argsas its only argument.- Access param
nusingparams_args.GetParam(n). - Access arg
nusingparams_args.GetArg(n).
- Access param
- Function calls must group params and args with
PassParamsArgs(params..., args...)rather than withParamTuple(params...)andArgTuple(args...). - To directly pass the returns from another function call, use that function
call in place of
args..., e.g.PassParamsArgs(params..., TypeValue::Call(Var_foo, Function_Foo_bar, ...)). - Value initialization should be changed to take
ParamsArgsinstead ofValueTuple, since the latter has been removed. (Alternatively, just pass a custom set of arguments.) ReturnTupleusage for returns remains unchanged.
-
[new] Updates dependency check to skip checking the modification times of
$ModuleOnly$.0rpsource files when determining if the target module needs to be recompiled. -
[new] Adds
--cleanmode tozeoliteto clear cached data for a module. -
[new] Allows specifying a root path with
-pin specialzeoliteexecution modes, e.g.,--missed-lines.
Libraries
-
[breaking] Makes
LinkedNodeinlib/containerweak in the reverse direction to avoid reference cycles. -
[new] Adds
Tokentolib/math, for more efficient comparison of strings when used in algorithms. -
[new] Gives
Testing.checkEmptyinlib/testinga parameter to allow values that do not refineFormatted. (This is not breaking because of the new language feature that infers params by default.) -
[new] Adds
getAlltoTypeMapinlib/containerto read all values of a specified type. -
[new] Adds
checkTrueandcheckFalsetoTestinginlib/testing.
Language
-
[new] Makes param inference the default when no params are specified in a function call. For example,
call<?>(foo)can now becall(foo). -
[new] Adds syntax to select a single return value from a function that returns multiple values.
// Previous method: scoped { Foo foo, _ <- call() } in \ foo.bar() // New method: \ call(){0}.bar() -
[new] Adds the
$FlatCleanup[memberName]$pragma to enable non-recursive cleanup for deeply-recursive types like linked lists. -
[behavior] Removes all dynamic allocation when passing params and arguments in function calls.
-
[behavior] Improves efficiency of returning values from function calls.
-
[behavior] Improves efficiency of
Bool,Char,Float, andIntvalues when used in function calls and containers.
0.20.0.1 -- 2021-11-14
Language
- [fix] Fixes a regression where arguments ignored with
_were not skipped over when generating C++. For example,call (_,x) { ... }would result inxbeing assigned the value that should have been ignored.
0.20.0.0 -- 2021-11-13
Language
-
[breaking] Adds the
immutablecategory property. This makes all@valuemembers read-only, and requires their types to also beimmutable. (This is breaking becauseimmutableis now reserved.) -
[breaking] Allows temporarily postponing variable initialization using the
deferkeyword. (This is breaking becausedeferis now reserved.) -
[breaking] Adds compilation error if multiple functions match the name of a function used in a call. This can happen when multiple
requiresordefinestypes have a function with the same name. -
[fix] Fixes merging of multiple functions with the same name inherited internally multiple times.
@value interface Base0 { call (Int) -> () } @value interface Base1 { call (String) -> () } concrete Type {} define Type { refines Base0 refines Base1 // This was previously missed when checking for an explicit merge of call. @value call (Formatted) -> () call (_) {} } -
[fix] Removes the
typesreserved word, which was previously used for internal types. -
[fix] Fixes
updatecalls intraverse. Previously, theupdatewas not called forcontinue. -
[new] Adds
$DisableCoverage$unittestpragma, to disable trace collection in--log-traceswhen theunittestis executed. -
[new] Updates
String.builder()to acceptFormattedvalues, rather than just acceptingString. -
[new] Updates param inference to infer a param that is only used in filters for another param, if that other param occurs as a top-level argument.
// The caller can infer both #x and #y, even though there is no arg with #y. @type call<#x,#y> #x requires Foo<#y> (#x) -> () -
[behavior] Reduces memory size of
Bool,Char,Float,Int, and references to all other value objects. -
[behavior] Efficiency improvements for passing values in function calls.
-
[behavior] Skips calling
getintraverseif the value is discarded.// The _ suppresses the call to get() on the returned Order<Int> value. traverse (Counter.zeroIndexed(100) -> _) { // ... } -
[behavior] Makes dispatching of function calls quite a bit more efficient.
Compiler CLI
-
[breaking] Updates caching of
TypeInstance(i.e.,@type) implementations in C++.- The argument type for
CreateType_Foofor extensionFoomust now be aconst&. For types with params, theInstanceCacheshould be made global andstatic. - A new function
void RemoveType_Footaking the sameparamsargument as the above must be added, which will be called when theTypeInstanceis destructed. For types with params, callRemoveon theInstanceCache. Otherwise, it can be a no-op{}.
(You can also just rerun in
--templatesmode and copy the updatedCreateandRemovefunctions.)Example for
concrete Foo<#x>:static auto& Foo_instance_cache = *new InstanceCache<1, Type_Foo>([](const Params<1>::Type& params) { return S_get(new ExtType_Foo(CreateCategory_Foo(), params)); }); S<const Type_Foo> CreateType_Foo(const Params<1>::Type& params) { return Foo_instance_cache.GetOrCreate(params); } void RemoveType_Foo(const Params<1>::Type& params) { Foo_instance_cache.Remove(params); } - The argument type for
-
[breaking] Removes all passing of
Param_selfin C++ extensions. UsePARAM_SELFwhereParam_selfwas previously used, and delete theParam_selfargument from function signatures. This breaks all existing extensions that have@typefunctions. -
[breaking] Makes all references to
TypeInstanceconstin C++, since Zeolite prohibits@typemembers inconcretecategories.All extensions with
@typefunctions need to be updated:- Make all
Call_foooverridesconstfor@typefunctions. - Update
@valueconstructors to takeS<const Type_Foo>instead ofS<Type_Foo>. - Update local params (e.g.,
Param_foo) to have typeS<const TypeInstance>. - Update
CreateType_Footo returnS<const Type_Foo>instead ofS<Type_Foo>.
- Make all
-
[breaking] Removes
AnonymousOrderC++ class, previously used for creating iterators for C++ extensions. -
[new] Adds
--show-tracesmode tozeoliteto output a list of possible trace contexts when--log-tracesis used in-tmode. -
[new] Adds
--missed-linesmode tozeoliteto output all code lines for a module that are not in a provided file that was created by--log-tracesin-tmode. -
[new]
@valuefunction implementations forimmutablecategories are marked asconstin C++ extensions. -
[new] Allows modules to have additional subdirectories, specified in
.zeolite-modulewith theextra_paths:list section. This allows modules to separate.0rxand.0rtfiles from public.0rpfiles.
Libraries
-
[breaking] Removes iterators from
lib/util(iterator.0rp) because they were awkward, inefficient, and had no current intended use-cases. -
[breaking] Requires the key param in
SearchTreeandAutoBinaryTreeinlib/containerto beimmutable. -
[breaking] Requires the value param in
TreeSetinlib/containerto beimmutable. -
[breaking] Requires the value param in
CategoricalTreeinlib/mathto beimmutable. -
[new] Adds the
LinkedNodeandForwardNodelinked-list types tolib/container, and adds thesortList,sortListWith, andreverseListfunctions toSorting.
0.19.0.0 -- 2021-10-25
Compiler CLI
-
[breaking] Changes how
BoxedValueis created for newTypeValueinstances in C++ extensions. Rather thanBoxedValue(new Foo(...)), you must now useBoxedValue::New<Foo>(...). This breaks all existing extensions that instantiate new values. -
[breaking] Removes all passing of
Var_selfin C++ extensions. UseVAR_SELFwhereVar_selfwas previously used, and delete theVar_selfargument from function signatures. This breaks all existing extensions.
Language
-
[fix] Fixes obscure memory leak in
weakvalues, triggered by a very specific sequence of events between three threads. This leak was unlikely to affect any programs that did not specifically attempt to trigger it. -
[new] Allows
updateblocks fortraverseloops.
Libraries
- [new] Adds
SpinlockMutextolib/util, for more efficient locking when lockouts are rare or extremely short.
0.18.1.0 -- 2021-10-19
Language
- [fix] Fixes issue with explicit return discards skipping generation of
function calls. Previously,
_ <- foo()skipped generating the call tofoo.
Libraries
-
[new] Adds
RandomExponential,RandomGaussian, andRandomUniformtolib/mathfor generating randomFloatvalues. -
[new] Adds
Realtime.sleepSecondsPrecisefunction to allow sleeps that are more precise than the kernel's latency. -
[new] Adds
checkGreaterThanandcheckLessThantoTestinginlib/testing.
0.18.0.0 -- 2021-08-01
Compiler CLI
-
[breaking] Creates a single shared library per Zeolite module, and uses dynamic linking as the default for binaries and
testcases.--fastmode still uses static linking, and static linking can be enabled for a binary using thelink_mode:field in.zeolite-module:root: "../.." path: "your/module" private_deps: [ "lib/util" ] mode: binary { category: YourProgram function: run link_mode: static } -
[breaking] Eliminates dynamic memory allocation for
Bool,Char,Float, andInt, includingoptionalandweakvariants. This improves the efficiency of code that makes a lot of function calls using those types.Note that when used as variable types, those types already avoided dynamic allocation. This therefore only applies to passing them in function calls, and using them with
optionalandweak.This breaks all existing C++ extensions:
S<TypeValue>must be replaced withBoxedValue.- Calls to
S_get(only forValueType) must be replaced with calls to theBoxedValueconstructor. W<TypeValue>must be replaced withWeakValue.- Calls to
W_getmust be replaced with calls to theWeakValueconstructor. - Calls to
->AsBool(),->AsChar(),->AsFloat(),->AsInt(),->AsCharBuffer(), and->AsString()must now use.instead of->. Present,Require, andStrongare now inBoxedValue::instead of inTypeValue::.
(Running
zeolite --templatesagain will provide the correct type signatures and local argument aliasing.) -
[breaking] Updates
zeolite -c(library mode) andzeolite -m(binary mode) to generate a new.zeolite-moduleand exit. Previously, both modes would create.zeolite-moduleand then attempt to compile it. The purpose of this change is to make users more aware that.zeolite-modulecan/should be edited, rather than attempting to generate a "correct" config entirely from CLI flags. -
[new] Updates recompile mode (
zeolite -r) to reorder modules explicitly specified in the command based on dependencies. For example, in the commandzeolite -r foo bar, iffoodepends onbar,barwill be compiled first. Previously, modules would be compiled in the order they were specified.Note that this will not account for indirect dependencies unless recursive mode (
-R) is used. This is because dealing with the intermediate dependency would be ambiguous when not recompiling recursively. -
[behavior] Even more optimization for function calls using 4 or fewer arguments, returns, or function params.
-
[behavior] Updates the
failbuilt-in to useSIGTERMinstead ofSIGABRTto terminate the process, to prevent core dumps whenfailis used to signal an unhandled error.
Language
-
[breaking] Adds the
Bounded@type interfacefor getting theminBound()andmaxBound()of a type, and implements it forIntandChar. (This is breaking becauseBoundedis now reserved.) -
[breaking] Makes
Charunsigned when converting toIntusingasInt(). Previously, the value was signed, i.e., between -128 and 127. This change makes theIntvalues line up better with hex and octCharescapes. The conversion fromInttoChar(withasChar()) is not affected. -
[new] Updates param inference (e.g.,
call<?>(foo)) to handle param filters containing multiple inferred params. Previously, if a function had a filter such as#x requires #yand both#xand#ywere inferred, inference would fail because params were inferred one at a time. -
[new] Adds the
timeoutfield totestcase, to specify the number of seconds to allow eachunittestto run. The default is30, which should be more than enough for most individual tests. The primary purpose of setting a default is to prevent a deadlock or infinite loop from blocking continuous integration (CI) runners. -
[new] Updates parsing to allow calling functions on value intializers, and
Bool,Char, andStringliterals without needing(). For example,Type{ foo }.bar(),true.asInt(),'0'.asInt(),"abc".defaultOrder().IntandFloatliterals still require(); otherwise, the use of.would be ambiguous.
Libraries
-
[new] Adds
ParseCharshelper tolib/util, to parseFloatandIntfromStrings. -
[new] Adds
monoSeconds()toRealtimeinlib/util, to get a monotonic wall time in seconds.
0.17.0.0 -- 2021-04-06
Language
-
[breaking] Adds
CharBuffer, as a random-access, mutableCharbuffer, and makesWriteAta built-in type. (This is breaking becauseCharBufferandWriteAtare now reserved.) -
[fix] Fixes
reduce<String,Container>, which previously failed. -
[fix] Fixes a race condition in function dispatching that was thought to be fixed previously.
-
[behavior] Improves the memory efficiency of function calls that use 4 or fewer arguments, returns, or function params by reusing memory previously allocated for function calls.
Libraries
-
[new] Additions to
lib/util:-
[new] Adds
Ranges, for simple min/max determinations. -
[new] Adds
revZeroIndexedtoCounter, to create a reversed sequence of zero-indexed container indices. -
[new] Adds
Reversed,BySize, andAlwaysEqualcomparators, to modifyLessThanandEqualsbehaviors for objects. -
[new] Adds
OrderHandReadAtH, to extendLessThanandEqualscomparisons to simple containers.
-
-
[new] Additions to
lib/container:-
[new] Adds
Sorting, to support sorting of random-access containers. -
[new] Adds
TreeSet, to manage set membership of any sortable type. -
[new] Adds
AutoBinaryTree, to provide binary search tree (BST) functionality to custom containers that need to augment each node with additional data. -
[new] Implements
Container.size()inSearchTree. -
[new] Adds
KeyValueH, to extendLessThanandEqualscomparisons toKeyValue.
-
-
[new] Adds
CategoricalTreetolib/math, as a dynamic representation of a categorical distribution over objects of any sortable type.
0.16.1.0 -- 2021-04-02
Language
-
[fix] Fixes a regression where a race condition in function dispatching would cause an error saying that a category does not implement the function that was being called.
-
[behavior] Optimizes calls to
@typefunctions when made from@valuefunctions of the same type. -
[behavior] Optimizes
@valueinitialization (e.g.,Type{ }) when done from@typefunctions of the same type.
Libraries
-
[new] Moves
Mutex,SimpleMutex, andMutexLockfromlib/threadtolib/util. This is because they provide basic concurrency protection to objects that should not need to depend on-lpthread.Note that this change is not breaking because
lib/utilwas already a public dependency oflib/thread. In other words, if a module already usedlib/threadthen it gotlib/utilfor free. This means that modules only needing mutex functionality fromlib/threadcan instead uselib/util. -
[new] Adds
getForwardandgetReversetoSearchTree, to allow the caller to iterate after looking up an entry. -
[new] Adds
checkEmpty,checkPresent, andcheckOptionaltoTestinginlib/testing.
0.16.0.0 -- 2021-04-01
Language
-
[breaking] Disallows param filters in
@value interfaceand@type interface. Param filters are only used to allow procedures to call@typeand@valuefunctions. Previously, they were enforced in all situations where param substitution occurred, but this is no longer the case. (See further down in this list.) -
[breaking] Removes support for internal type params for values. This was an obscure feature that was never documented and was only used in some integration tests that had not been touched in over 2 years. This breaks most hand-written C++ extensions, but they can be fixed by removing the
ParamTupleargument passed to the base-class constructor inExtValue_Foofor C++ extensionFoo. -
[breaking] Adds the
traversebuilt-in syntax, which automatically iterates over a container that exposes the (new)Order<|#x>@value interface. (This is breaking becausetraverse,Order, andDefaultOrderare now reserved.)traverse (container.defaultOrder() -> Foo value) { // executed once per Foo in the container } -
[breaking] Marks
@categorymember variables as read-only when initializing other member variables. Essentially, this just means that you can no longer do something like this:@category Int foo <- 1 @category Int bar <- (foo <- 2) -
[new] Removes the requirement that type instances (e.g.,
Type<Int>) satisfy the requirements of the type's parameter filters when not being used in a function call.concrete Type<|#x> { #x requires Foo }In the example above,
Type<Bar>was universally disallowed ifBarcould not be converted toFoo. The new behavior is to enforce that restriction only when calling@typefunctions, initializing values (e.g.,Type<#x>{ }), and using the type as a param in a function call.Since
#xis covariant in this example, you could convert aType<Bar>to aType<any>, even thoughanyis not a child ofFoo. -
[new] Removes variance checks for category-level param filters. Variance was originally not checked, but then the checks were added prior to version
0.1.0.0for obscure mathematical reasons that no longer make sense.In particular, filters such as
#x defines Equals<#x>were not previously allowed except when#xwas invariant, but now it is allowed for all variances.The revised perspective is that param filters form a meta-type for param substitutions as inputs, with the constructed type as the output. Once the output is received, the input constraints are no longer recoverable.
Note that category-level param variance is still checked when params are used on the right side of filters for function params. This is because not doing so could result in bad argument and return types when inheriting functions.
Params also still cannot have both upper and lower bounds at the same time.
-
[new] When inferring type parameters for function calls (e.g.,
call<?>(foo)), allowsallto be a valid lower bound andanyto be a valid upper bound. Previously, an inferred type ofallin covariant positions andanyin contravariant positions would cause inference to fail. -
[new] Allows
$ReadOnly[...]$and$Hidden[...]$for member variables in definitions ofconcretecategories. -
[new] Makes
Argvavailable to all threads. Previously, it was only available to the main thread. (Even thoughArgvis exposed vialib/util, this change also affects C++ extensions that useArgvfromlogging.hpp.) -
[fix] Fixes regression with function names used in stack traces. Previously, if a function was inherited and the types were not overridden, the category name in the trace would be that of the parent, rather than that of the one defining the procedure.
Compiler CLI
-
[breaking] Removes the default compiler mode when calling
zeolite. The previous default was-c, which creates a new.zeolite-modulefor incremental library compilation. The default was removed because accidentally typingzeolite -f fooinstead ofzeolite -t foowould overwrite the.zeolite-moduleforfoorather than running its tests. -
[breaking] Updates how
$TraceCreation$is implemented in C++. This only breaks hand-written C++ extensions that use theCAPTURE_CREATIONmacro, which now must pass a string-literal category name as a macro argument, e.g.,CAPTURE_CREATION("Foo"). -
[new] Adds the
--log-tracesoption for testing mode (zeolite -t) to capture a record of every line of Zeolite code executed when running tests. -
[fix] Fixes dependency resolution for C++ extensions that define
$ModuleOnly$categories. -
[behavior] Improves the efficiency of call dispatching and
reducecalls for categories that inherit a lot ofinterfaces. This is unlikely to affect performance when a category has less than 10 direct or indirect parentinterfaces.
Libraries
-
[new] Adds
ThreadConditiontolib/thread, which allows threads to wait for an arbitrary condition signaled by another thread. (Similar topthread_cond_tin POSIX.) -
[new] Adds
EnumeratedBarriertolib/thread, which can be use to synchronize a fixed number of threads. (Similar topthread_barrier_tin POSIX, but with strict validation to help prevent deadlocks.) -
[new] Adds
Realtimetolib/thread, to allow threads to sleep based on wall time. -
[new] Adds
CounterandRepeattolib/util, to help create sequences for use with the newtraversebuilt-in syntax. -
[new] Implements forward and reverse iteration to
SearchTreeinlib/container.
Examples
- Adds
example/primes, as a demonstration of multithreading.
0.15.0.0 -- 2021-03-24
Language
-
[breaking] Splits
Builder<#x>built-in intoAppend<#x|>andBuild<|#x>to more accurately reflect its semantics. -
[breaking] Splits
ReadPosition<#x>built-in intoReadAt<|#x>,SubSequence, andContainerto be more concise, and to split up reading from subsequencing. This also includes renamingreadSize()to justsize(). -
[new] Adds the
Default@type interface, to specify a default@valuefor the type. -
[fix] Fixes merging of duplicate inherited categories. Previously, if a category
Foowas indirectly inherited multiple times then the compiler would complain about having multiple functions with the same name. -
[fix] Adds support for
^with theBoolbuilt-in type.
Libraries
-
[breaking] Refactors iterators in
lib/util:-
[breaking] Makes
ReadIteratora@value interface. -
[breaking] Adds
AutoReadIterator,AutoWriteIterator, andAutoIteratorhelpers to create iterators fromReadAtandWriteAt. (AutoReadIteratorreplaces the previousReadIterator.) -
[new] Adds
WriteAt,WriteCurrent,WriteIterator, andIterator@value interfaces.
-
-
[new] Adds
lib/container:-
[new]
Vector, a random-access container. -
[new]
SearchTree, a binary search tree. -
[new]
TypeMap, a heterogeneous key-value map of different value types. -
[new] Various
@value interfaces with container usage patterns.
-
-
[new] Adds
lib/thread(must be built manually):-
[new]
ProcessThread, a basic thread runner. -
[new]
SimpleMutexandMutexLock, for basic mutex logic. -
[new] Various
@value interfaces with thread usage patterns.
-
Compiler CLI
-
[breaking] Removes implicit dependence of C++ extensions on built-in categories
Bool,Float,Char,Int,String, andFormatted. Extensions that use these categories without using them in the correspondingconcretedeclaration will need to add them to therequires:field of thecategory_sourcein.zeolite-module.category_source { source: "Extension_MyType.cpp" categories: [MyType] requires: [String,Formatted] } -
[breaking] Cleans up
TypeInstancecaching for C++ extensions with parameters. Seelib/container/src/Extension_Vector.cppfor an example of the new semantics, or use--templatesto create a new template.
Examples
- Removes
example/tree. All of the corresponding code has been moved intolib/container.
0.14.0.0 -- 2021-03-19
Language
- [breaking] Adds the
#selfmeta-type. This is an implicit type param that is dynamically replaced with the type of the object a function is called on. For example, if a@value interfacefunction has a return type of#selfthen any implementation must return an object of its own type from that function. (This is a breaking change because it reserves the param name#self.)
Libraries
- [breaking] Removes the type parameters from
IterateForwardandIterateReverseinlib/util. This was made possible by the addition of the#selfmeta-type.
0.13.0.0 -- 2021-03-17
Language
-
[new] Adds pragmas for local variable rules:
-
[new]
$ReadOnly[foo]$marksfooas read-only in the current context following the line with the pragma. -
[new]
$Hidden[foo]$hidesfooin the current context following the line with the pragma.
-
-
[fix] Fixes a latent issue with the
reducebuilt-in when converting an intersection type to a union type, when one or both sides contains another nested union or intersection. This was previously fixed for compile-time checks, butreducewas missed.
Compiler CLI
-
[breaking] Streamlines C++ extensions to cut down on boilerplate code. This is a massive change that breaks all existing C++ extensions; however, hand-written procedure definitions can be copied-and-pasted into a new extension template. Use
zeolite --templatesto regenerate new templates for C++ extensions. -
[breaking] Adds
microlensandmicrolens-thas dependencies, to help clean up the compiler code. This should not change the compiler's behavior.
0.12.0.0 -- 2020-12-11
Language
-
[breaking] Several more fixes for named returns:
-
[new] Allows initialization of named returns in
if/elif/whilepredicates. Although setting a named return in a predicate has always been allowed, it previously did not count as an initialization for the purposes of checking usage in subsequent statements. -
[breaking] Fixes a bug where named returns used in
if/elif/whilepredicates inside ofcleanupblocks were not getting checked for initialization. This turns a potential runtime error into a compile-time error, which could break buggy code that was never going to be executed. -
[fix] Fixes a bug where a named return with a primitive type was not getting set in an explicit
returnstatement. This only affected code that used primitive named returns inside of acleanupblock where the correspondinginblock used an explicitreturnstatement.@type call () -> (Int) call () (x) { cleanup { \ foo(x) // x was not getting set for this call } in return 1 // 1 was still returned from the function as expected }This did not affect non-primitive types such as
Stringand user-definedconcreteandinterfacecategories.
-
-
[breaking] Updates associativity of infix operators:
-
[breaking] Makes infix
Booloperators&&and||right-associative. For example,x && y && zused to be parsed as(x && y) && z, whereas now it is parsed asx && (y && z). This better reflects the intuition of side-effects happening in order, with respect to short-circuiting. (No other operators currently short-circuit.) -
[breaking] Makes comparison operators (e.g.,
<=) non-associative. This means that expressions such asx < y == truewill no longer compile. This is because an equivalent-looking expressiontrue == x < ymight have a different interpretation. (Note that order operators such as<are not defined forBool, so something likex < y < zwould have already failed previously.)
All other infix operators (including infix function calls such as
x `Math.pow` y) remain left-associative. -
Libraries
- [new] Adds
Math.absforIntabsolute value tolib/math.
0.11.0.0 -- 2020-12-09
Compiler CLI
- [breaking] Switches from
parsectomegaparsecfor parsing, to allow for better structuring of compile-time error messages. This should not affect syntax acceptance, but it has additional transitive dependencies that might prevent installation ofzeolite.
Language
-
[breaking] Several
cleanupfixes:-
[fix] Fixes a bug in
cleanupthat caused thescopedblock to be prepended to it when it was inlined in theinblock. -
[fix] Fixes a bug where
cleanupmight use an uninitialized named return when inlined at abreakorcontinuestatement in awhileloop. Such situations will now cause a compilation error. Previously, this could have allowed an uninitialized value to be passed around, which would only be noticed with aFunction called on null valuefailure at some point. -
[fix] Fixes inlining of
cleanupblocks whencontinueis used inside of theinblock. Previously,cleanupwas skipped whencontinuewas used inside of the respectiveinblock. -
[breaking] Disallows explicit
breakandcontinueinside ofcleanupblocks. Previously this was allowed (butreturnwasn't), which led to ambiguity when theinblock contained areturn. -
[new] Allows
cleanupto refer to variables created at the top level of theinblock.cleanup { \ foo(bar) // bar is created below } in Type bar <- Type.create() // cleanup is inlined after this
-
0.10.0.0 -- 2020-12-05
Language
-
[breaking] Major changes to
.0rtsyntax:-
[breaking] Removes the expression argument from
successandcrashtestcasetypes. Use one or moreunittest(see next point) instead. -
[new] Adds
unittestkeyword to allow the user to define multiple tests within a singlesuccesstestcase.testcase "simple tests" { success } unittest checkInvariant1 { // this is a regular procedure with no return } unittest checkInvariant2 { // this is a regular procedure with no return }This allows multiple tests to use the same setup, while still being able to track multiple test failures.
errorandcrashtestcasetypes are still available. -
[breaking] Allows
testcaseto statically setArgv(seelib/util) using theargskeyword. By default, only the program name is set. Previously,Argvused whatever was passed to the test binary.testcase "with static Argv" { success args "arg1" "arg2" } unittest test { // something that requires Argv.global() }Note that this isn't a library change; this also affects C++ extensions that use
Argvfrombase/logging.hpp. -
[new] Adds
compilesmode fortestcase. This is likesuccessexcept nothing is executed. (successrequires at least oneunittest, whereascompileswill not execute anything even ifunittestare present.)
-
Libraries
- [new] Adds the
lib/testinglibrary with basic helpers for unit tests.
Compiler CLI
-
[new] Updates parsing of
.zeolite-moduleto allow any ordering of the fields. Previously, the fields needed to be in a very specific order. -
[fix] Adds compile-time protection against self-referential expression macros defined in
expression_map:in.zeolite-module. Previously, the result was infinite recursion that could exhaust system resources. -
[breaking] Adds an error when
root/pathin.zeolite-modulediffers from the location of the respective.zeolite-module. This is to catch both typos (e.g., copy-and-paste errors) and ambiguities.
0.9.0.0 -- 2020-11-23
Compiler CLI
-
[breaking] Major changes to C++ extensions:
-
[breaking] Corrects hole in
$ModuleOnly$visibility in C++ extensions. Previously, C++ extensions could directly access categories defined in$ModuleOnly$sources in dependencies. -
[breaking] Randomizes cache paths and
namespaces for generated C++ code so that C++ extensions cannot use static#includepaths to circumvent the visibility rules of a dependency. -
[breaking] Makes
TypeInstances shared in generated C++ and in C++ extensions, to allow for better memory management of@types in the future. -
[breaking] Adds guards to C++ headers for
$TestsOnly$categories, to prevent them from being used in non-$TestsOnly$C++ extensions.
-
-
[fix] Fixes regression where calling
zeolitewith-pwould overwrite an existing.zeolite-module.
Language
-
[breaking] Syntax changes:
-
[breaking] Changes the syntax for calling
@categoryfunctions from$$to:, e.g.,Foo:create()instead ofFoo$$create(). A new error message (to be removed later) will remind the user to stop using$$. -
[breaking] Changes the syntax for calling
@typefunctions from$to., e.g.,Foo.create()instead ofFoo$create(). A new error message (to be removed later) will remind the user to stop using$.
-
-
[breaking] Changes to param usage:
-
[breaking] Updates param inference to be more accurate. The new algorithm will infer a param type iff the best choice is unambiguous given the expected and actual function arguments.
-
[breaking] Disallows bounding a single param both above and below, e.g., having both
#x requires Fooand#x allows Bar. This is primarily to prevent cycles and contradictions in the type system.Previously, the best case for such restrictions was that there are extremely few choices for
#x, and the worst case was that it impliesBarconverts toFoowhen it isn't true, thus making#xunusable. Having either of those requirements likely indicates a design flaw.
-
-
[breaking] Prohibits having a
$TestsOnly$definition for a non-$TestsOnly$category. Previously, aconcretecategory declared in a non-$TestsOnly$.0rpcould bedefined in a$TestsOnly$.0rx, which creates a loophole that allows binaries to utilize$TestsOnly$code. -
[fix] Fixes a latent type-checking bug that could occur when attempting to assign a value with an intersection type to a variable with a union type, if one or both types has another nested type, e.g.,
[A&B]→[[A&B]|C]or[[A|B]&C]→[A|B]. This change shouldn't cause new type-checking failures.
Libraries
- [fix] Implements
subSequenceforArgvinlib/util. This is required byReadPositionbut was forgotten. Calling it prior to this would cause a failure.
0.8.0.0 -- 2020-08-07
Language
-
[breaking] Makes the semantics of
cleanupmore consistent:-
[breaking] Disallows statements that modify
returnvalues withincleanupblocks, i.e.,returnwith values and assigning named returns. -
[new] Allows
cleanupto access named returns that are initialized within the correspondinginstatement. Previously, access required initialization before theinstatement. -
[new] An explicit positional return (e.g.,
return 1, 2) will assign the values to the respective named returns, if applicable. This will make the actual return values available withincleanup.@type get () -> (Int) get () (foo) { // foo is the name of the return variable cleanup { \ bar(foo) // foo has been initialized by the time this is called } in return 1 // 1 is assigned to foo here } -
[fix] Adds unwinding of
cleanupblocks when used withbreakandcontinue, respecting loop boundaries. Previously,cleanupwas ignored.
-
-
[breaking] Skips compilation of unreachable statements. The target use-case is temporary changes to code that circumvent parts of a procedure, e.g., an early
returnfor the purposes of debugging. -
[breaking] Marks statements following
breakandcontinueas unreachable.
Compiler CLI
- [behavior] Adds a compiler warning for
public_depsthat are not required by public.0rpsources within the same module, since they are potentially just cluttering the public namespace of the module.
0.7.1.0 -- 2020-07-13
Language
-
[new] Adds the
$SourceContext$macro, which inserts aStringwith info about source file and code location. -
[fix] Adds context to error messages related to inherited functions that have not been overridden.
0.7.0.2 -- 2020-05-21
Language
- [fix] Improves the likelihood of successful type inference when unions, intersections, or filters are combined with inheritance and type nesting.
0.7.0.1 -- 2020-05-20
Language
-
[fix] Fixes an edge-case where type-inference can be influenced by a param filter for a param with the same name in the scope that is calling the function. (For example, having
#x requires Fooin scope while calling a function that also happens to have a param named#x.) -
[fix] Fixes an edge-case where parameter substitution at the type level can clash with a type parameter scoped to a function. (Related to the above, but actually a separate issue discovered while solving the former.)
-
[behavior] Shows inferred-type assignments in error messages related to expressions containing inferred types.
0.7.0.0 -- 2020-05-19
Language
-
[new] Adds limited inference of type parameters in function calls. The new syntax is
call<?,Int>(foo,bar), where?designates that inference is requested for the first position. -
[behavior] Reduces the memory cost of
$TraceCreation$by avoiding storing the entire trace text.
Compiler CLI
- [behavior] Improves handling of I/O errors when calling
zeolite, and allows compilation to continue in-r/-Rmodes if compilation of one module fails.
0.6.0.0 -- 2020-05-14
Compiler CLI
-
[behavior] Improves error messages for type mismatches and return-count mismatches.
-
[behavior] Improves the efficiency of loading metadata for dependencies.
-
[breaking] Fixes module-staleness check when running tests (
-t). -
[breaking] Prevents binaries from being created from main categories that are defined in
$TestsOnly$sources. (This was the original intention, but it was missed the first time around.)
Language
-
[new] Allows
@categorymembers inconcretecategories to refer to each other during initialization. -
[new] Adds the
$ExprLookup[MACRO_NAME]$pragma, which allows the user to define expression substitutions in.zeolite-module. -
[new] Adds the
$NoTrace$pragma, which skips generating stack-trace information for specific functions. This is useful for deeply-recursive functions whose full trace would not be useful. -
[new] Adds the
$TraceCreation$pragma, which appends a trace for the creation of a value when there is a crash in one of its functions. This is useful when the crash stems from value initialization. -
[fix] Fixes parsing of the
'"'Char-literal.
Libraries
-
[new] Adds the
ErrorOr<#x>category tolib/util. This allows functions to return either the expected type or an error message. -
[new] Adds the
Voidcategory tolib/util. This can be used to ignore type parameters when a value still needs to be instantiated. -
[new] Adds the
readAllfunction toTextReader(inlib/util) to support reading an entire file at once. -
[breaking] Adds crashes when attempting to read
RawFileReaderor writeRawFileWriterif there is a preexisting file error.
0.5.0.0 -- 2020-05-12
-
[new] Adds compiler support for pragmas, which will allow compiler features that aren't a part of the language:
-
[new]
$ModuleOnly$pragma for.0rpfiles, which limits their visibility to the modules that own them. -
[new]
$TestsOnly$pragma for.0rpfiles, which limits their visibility to.0rtfiles, and.0rxfiles that also use$TestsOnly$.
-
-
[new] Adds support for global seach paths for dependencies via a plain-text file at
$(zeolite --get-path)/global-paths. This can be used to set up a separate directory for general-use Zeolite modules. -
[breaking] Better handling of symbols from dependencies. This might break code that inavertently relied on broken visibility. In particular,
..in a dependency path precludes it from resolving to a system module.
0.4.1.0 -- 2020-05-05
-
[new] Adds a compiler mode (
--show-deps) to display the symbolic dependencies of a module. -
[new] Adds a compiler mode (
--fast) to quickly compile a binary from a single source file without needing to create a module. -
[new] Adds a compiler mode (
-R) to recursively recompile modules. -
[new] Improves thread-safety of internal code so that thread support can be safely added later. (Probably via a library.)
-
[new] Adds the
Builderinterface to makeStringconcatenation more efficient. -
[new] Adds support for basic mathematical
Floatoperations, such assin,exp, andsqrt. -
[new] Adds support for bitwise
Intoperations. -
[fix] Fixes broken
--templatesmode when builtin types are used.
0.4.0.0 -- 2020-05-05
-
[new] Allows modules to specify custom linker flags and private include paths in
.zeolite-module. This lets categories written in C++ depend on external libraries written in other languages. -
[behavior] Adds optimization of dependency inclusion for categories that are defined in C++ sources. This should eliminate linking in object files that are not needed by the binary.
-
[behavior] Adds checks to prevent a module from defining a category that was declared in another module.
-
[breaking] Updates the
.zeolite-moduleformat to require associating externally-defined categories with the source files that define them. This allows finer-grained linking of binaries and tests.
0.3.0.0 -- 2020-05-03
-
[breaking] Updates syntax for discarding all returns to use
\instead of~. This will allow~to be used for bitwise-not later on. (Not to mention that~was kind of ugly in that context.) -
[breaking] Cleans up multiple-
returnsyntax by removing{}. This applies to both thereturnand the assignment.
0.2.0.0 -- 2020-05-03
-
[breaking] Requires that
concretecategories defined in.cppfiles be listed asexternalin.zeolite-module. This allows the compiler to ensure that all categories have a definition, which helps avoid linker errors. -
[breaking] Gives
.zeolite-moduleconfigs a proper file format. -
[new] Adds version checking to cached module data.
0.1.3.0 -- 2020-05-01
- [new] Adds support for more versions of GHC.
0.1.2.0 -- 2020-04-28
-
[fix] Fixes a parser issue with empty
{}blocks followingscoped. -
[behavior] Updates
cleanupprocedures to allow setting named-return values. Previously, initializing a named return incleanupwas not sufficient. -
[behavior] Updates
zeolite-setupto unconditionally rebuild supporting libraries. Incidentally, this causes all existing user modules to be out of date.
0.1.1.0 -- 2020-04-27
-
[behavior] Set the default output path for binaries to the module's path rather than the current directory.
-
[new] Allows a base path (
-p) with recompile mode (-r).
0.1.0.0 -- 2020-04-27
- First version. Released on an unsuspecting world.