Skip to content

Tags

Tags

v1.18.1

Toggle v1.18.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
checker: check nested overloaded calls in linear time (#1010)

An overloaded function, such as the replace, join or sort builtins, checks
its arguments once per overload it tries. Nested calls multiplied this at
every level, so compile time grew exponentially with nesting depth: 42
nested replace calls never finished compiling.

While overloads are being tried, cache the natures of call and builtin
nodes for the rest of the pass, so trying the next overload doesn't check
them again. The cache is cleared on reset, at the start of every pass.

Fixes #1008

v1.18.0

Toggle v1.18.0's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
feat(builtin): add merge() for combining maps (#947)

Add a variadic merge() builtin that shallow-merges two or more maps.
Later maps override earlier ones (last-write-wins). Returns a new map
without modifying inputs. Keys keep their original type, so the result
is map[any]any, the same type fromPairs() returns.

The copy loop uses MapRange rather than MapKeys plus MapIndex, because
MapIndex looks a key up by equality and so drops any key that is not
equal to itself, such as NaN.

Fixes #895

Co-authored-by: Anton Medvedev <anton@medv.io>

v1.17.8

Toggle v1.17.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix impossible unsigned integer comparisons in Abs() function (#919)

v1.17.7

Toggle v1.17.7's commit message

Verified

This commit was signed with the committer’s verified signature.
antonmedv Anton Medvedev
Improve gen.go

v1.17.6

Toggle v1.17.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md (#815)

Add Naoma.AI to the list of companies

Signed-off-by: David Klassen <davidklassen@proton.me>

v1.17.5

Toggle v1.17.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add expr.MaxNodes() option (#799)

* Add expr.MaxNodes() option

* Fix error message

* Add more tests and comments

v1.17.4

Toggle v1.17.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add check for non struct types to fetchField (#794)

Co-authored-by: yigitkanbalci <yigitkan.balci@goodjobgames.com>

v1.17.3

Toggle v1.17.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(785): `get` to work when return is `nil` (#786)

* fix(785): `get` to work when return is `nil`

* improve testing

v1.17.2

Toggle v1.17.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Make expr.Eval faster (#775)

* Make expr.Eval faster

* Add bench_call_test.go

* Make parser config optional

v1.17.1

Toggle v1.17.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix parsing of variable declaration nodes combined with sequence node (…

…#773)

Fixes #772