Anton Medvedev and GitHub
772eaba1ca
Add predicate to sum() builtin ( #592 )
...
* Add predicate to sum() builtin
* go mod tidy
2024-04-13 15:37:02 +02:00
Anton Medvedev
01014b4c50
Merge compare-arrays
2024-04-13 10:11:06 +02:00
Daenney and Anton Medvedev
1934e4eaee
Make WithContext work for methods on env struct ( #602 )
...
This makes the WithContext patcher work when passing in a struct for an
env that has methods that take a context.
This is a bit fiddly because we can't quite detect the difference of
function vs. method on a struct, so we have to check both the first and
the second param. Since it's highly unusual to pass the context as
anything other than the first parameter, this should work out just fine
in practice.
Fixes #600 .
2024-04-13 10:09:18 +02:00
Sergey and Anton Medvedev
2c460ecc98
Optimize boolean operations between all, any, none functions ( #626 )
2024-04-13 10:09:16 +02:00
Anton Medvedev
1fab6ed6e0
Revert "Optimize boolean operations between all, any, one, none functions ( #555 )" ( #625 )
...
This reverts commit 8037acf0bb .
2024-04-13 10:08:48 +02:00
needsure and Anton Medvedev
03af7491ad
chore: fix some typos in conments ( #622 )
...
Signed-off-by: needsure <[email protected] >
2024-04-13 10:08:48 +02:00
Anton Medvedev
858f009587
Update README.md
2024-04-13 10:08:48 +02:00
Richard Wooding and Anton Medvedev
28060656f0
Update README.md ( #619 )
...
Add SPAN Digital as an user of expr
2024-04-13 10:08:48 +02:00
zhuliquan and Anton Medvedev
43556eecdd
feat: extract code for compiling equal operator ( #614 )
2024-04-13 10:08:48 +02:00
Anton Medvedev
2ff83e8042
Better map ast printing
2024-04-13 10:08:48 +02:00
Sergey and Anton Medvedev
db0054ab6f
builtin int unwraps underlying int value ( #611 )
2024-04-13 10:08:48 +02:00
Sergey and Anton Medvedev
721b908494
expr.Operator passes before expr.Env caused error (#606 )
2024-04-13 10:08:46 +02:00
Ganesan Karuppasamy and Anton Medvedev
527f3aacaf
Fix -1 not in [] expressions ( #590 )
2024-04-13 10:08:10 +02:00
Ganesan Karuppasamy and Anton Medvedev
6fcc422765
Enable Support for Arrays in Sum, Mean, and Median Functions ( #580 )
2024-04-13 10:08:10 +02:00
Anton Medvedev
3dc373ec9a
Add spans
2024-04-13 10:08:10 +02:00
Sergey and Anton Medvedev
2be09b2554
Support chzained comparisonc1 < 2 < 3 ( #581 )
2024-04-13 10:08:10 +02:00
Daenney and GitHub
13451f69b4
Make WithContext work for methods on env struct ( #602 )
...
This makes the WithContext patcher work when passing in a struct for an
env that has methods that take a context.
This is a bit fiddly because we can't quite detect the difference of
function vs. method on a struct, so we have to check both the first and
the second param. Since it's highly unusual to pass the context as
anything other than the first parameter, this should work out just fine
in practice.
Fixes #600 .
2024-04-12 22:54:01 +02:00
Sergey and GitHub
2835692a5f
Optimize boolean operations between all, any, none functions ( #626 )
2024-04-12 18:49:41 +02:00
Anton Medvedev and GitHub
3205e4186b
Revert "Optimize boolean operations between all, any, one, none functions ( #555 )" ( #625 )
...
This reverts commit 8037acf0bb .
2024-04-10 10:58:17 +02:00
needsure and GitHub
c0d4644255
chore: fix some typos in conments ( #622 )
...
Signed-off-by: needsure <[email protected] >
2024-04-09 13:13:55 +02:00
Anton Medvedev and GitHub
4b2c15770d
Update README.md
2024-04-09 09:47:41 +02:00
Richard Wooding and GitHub
dc40f0eef6
Update README.md ( #619 )
...
Add SPAN Digital as an user of expr
2024-04-08 09:00:54 +02:00
zhuliquan and GitHub
62163f4450
feat: extract code for compiling equal operator ( #614 )
2024-03-28 14:37:51 +01:00
Anton Medvedev
9ca56a8aeb
Better map ast printing
2024-03-27 09:26:56 +01:00
Sergey and GitHub
3f12ea7559
builtin int unwraps underlying int value ( #611 )
2024-03-20 20:06:04 +01:00
Sergey and GitHub
377d126756
expr.Operator passes before expr.Env caused error (#606 )
2024-03-17 08:51:53 +01:00
bizy
db5a6defcb
Add bench and tests for runtime.Equal
2024-03-05 01:31:07 +07:00
Ganesan Karuppasamy and GitHub
650a7f5ac1
Fix -1 not in [] expressions ( #590 )
2024-03-04 14:40:33 +01:00
Ganesan Karuppasamy and GitHub
20d784fe9b
Enable Support for Arrays in Sum, Mean, and Median Functions ( #580 )
2024-03-03 16:44:32 +01:00
Anton Medvedev and GitHub
46d295876f
Add spans
2024-02-29 20:51:34 +01:00
Sergey and GitHub
ee69dbfa99
Equal bools without reflect.DeepEqual ( #585 )
2024-02-28 10:39:01 +01:00
bizy
5bb64800db
Compare any arrays
2024-02-28 00:30:33 +07:00
Sergey and GitHub
26bfa591a9
Support chzained comparisonc1 < 2 < 3 ( #581 )
2024-02-27 14:23:49 +01:00
Ganesan Karuppasamy and GitHub
2f8f25a68d
Enhanced min and max built-in functions to Support Arrays of Integers and Floats ( #576 )
...
* Enhanced min and max built-in functions to Support Arrays of Integers and Floats
* Enhanced min and max built-in functions to Support Arrays of Integers and Floats
2024-02-24 21:12:51 +01:00
Anton Medvedev
14d3c281b2
Remove redundant checks
2024-02-21 00:07:51 +01:00
Anton Medvedev
c3a9aa8f44
Fix naming
2024-02-18 09:55:10 +01:00
Anton Medvedev
ee9b3142d1
Add quotes to error message
2024-02-18 09:45:39 +01:00
Anton Medvedev
b117e690fb
Fix operator overloading recursive
...
Fixes #548
2024-02-18 00:15:39 +01:00
Anton Medvedev
96c6ad6087
Refactor operator override to be purely patcher pkg
2024-02-17 19:56:28 +01:00
Anton Medvedev
6f8353d205
Remove redundant operator override check
2024-02-17 19:20:53 +01:00
Anton Medvedev
8ab750f2a2
Move operator override patcher to correct pkg
2024-02-17 19:17:27 +01:00
Anton Medvedev
3863d18bcc
Update doc
2024-02-17 19:04:31 +01:00
Nikolay Matrosov and GitHub
0ebf2c2574
feat: Operator overload from Function ( #408 )
...
* feat: rewritten Operator overload from Function
* fix: add test
2024-02-17 14:33:07 +01:00
Anton Medvedev
129e6b3669
Fix tests
2024-02-17 11:15:54 +01:00
Anton Medvedev
2af0e981b2
Add more func_types
2024-02-16 23:40:23 +01:00
Anton Medvedev
8cd9257996
Sort func_types
2024-02-16 23:32:07 +01:00
Anton Medvedev
c86f2e2718
Update real_world example
2024-02-16 23:13:44 +01:00
Anton Medvedev and GitHub
0d43107999
Add concat() builtin ( #565 )
...
* Add concat() builtin
* Use pkg deref in builtin
* Use pkg deref in checker
* Use pkg deref in types_table.go
* Use pkg deref in docgen.go
* Use pkg deref in vm
2024-02-16 22:32:35 +01:00
Anton Medvedev and GitHub
b1e82de54a
Refactor groupBy and sortBy ( #562 )
...
* Rearrange opcodes
* Refactor groupBy
* Fix tests
* Super opcodes for GroupBy
* Refactor sortBy builtin
* Fix sortBy bench
2024-02-15 19:53:35 +01:00
Anton Medvedev and GitHub
d1068977c7
Update SECURITY.md
2024-02-12 22:58:19 +01:00