Ozzie Gooen
606f24ff24
Cleanup and addition of toInternalSampleArray
2022-05-15 21:34:36 -04:00
Ozzie Gooen
15965b0b05
First simple version of samplesMap
2022-05-15 17:24:54 -04:00
Quinn Dougherty
fd17da83b8
Merge remote-tracking branch 'origin/develop' into log-score-attempt
2022-05-05 20:42:39 -04:00
Umur Ozkul
99f54f596c
ternary operator (tested)
2022-05-04 22:36:34 +02:00
Umur Ozkul
888b615445
Merge branch 'reducer-dev-F-ifthenelse' into ternary
...
packages/squiggle-lang/src/rescript/Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltInMacros.res
packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res
packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression_Builder.res
packages/squiggle-lang/src/rescript/Reducer/Reducer_MathJs/Reducer_MathJs_ToExpression.res
2022-05-04 21:51:15 +02:00
Umur Ozkul
ad220ed2b4
foreign function interface
2022-05-04 20:44:46 +02:00
Quinn Dougherty
cfa83e552d
Merge remote-tracking branch 'origin/develop' into log-score-attempt
2022-05-04 13:05:40 -04:00
Quinn Dougherty
f5f5be2cfb
?? build broke, had to add a ModuleName.
prefix to a constructor
...
Value: [1e-7 to 1e-5]
2022-05-04 11:43:44 -04:00
Umur Ozkul
5de6aa8e0d
map reduce reduceReverse reverse keep
2022-05-04 17:32:25 +02:00
Umur Ozkul
ae48bd6420
pass reducer to dispatch
...
to define functions that has lambda arguments, dispatching requires a
reducer
2022-05-04 15:33:51 +02:00
Umur Ozkul
33ee0b27d5
remove inspect performance completely
...
Redesign required on the function interface
2022-05-04 15:14:34 +02:00
Umur Ozkul
11d4a3bc8b
do not export private modules from Reducer module
2022-05-02 23:42:11 +02:00
Umur Ozkul
6a3b35eb4a
fixed function f not bound
2022-05-02 23:12:57 +02:00
Umur Ozkul
5a0b436932
No 666
2022-05-02 18:00:47 +02:00
Umur Ozkul
9e41f0399f
RENotAFunction
2022-05-02 15:55:02 +02:00
Umur Ozkul
ba104e4dfe
Catching unreduced values. This is not a lazy language
2022-05-02 15:55:02 +02:00
Umur Ozkul
c68138e5f6
arity error
2022-05-02 14:19:04 +02:00
Umur Ozkul
c0fad8c668
define lambdaValue record as payload
2022-05-02 12:27:07 +02:00
Umur Ozkul
bbe8eced29
format
2022-04-29 19:31:34 +02:00
Umur Ozkul
3bbc5e7149
Add evaluate partial for back compatibility
2022-04-29 19:03:58 +02:00
Umur Ozkul
351381339c
bug fixed
...
logs removed
2022-04-29 18:19:52 +02:00
Umur Ozkul
8e318a8aa9
refactor reducer
...
removed some extra array references
rename Builder to ExpressionBuilder
Expression Builder
Trash Warning
remove parsePartial/Outer, add context to lambda
format
module Bindings
simplify types
module Macro
reduceValueList
do macro call
result map
bindings stop replacing on macro calls
Macro Test
doBindStatement
bind a statement
bindings tested. TODO bind shadowing in lambda
block tests defined
block tests defined
blocks tested
macro lambda test defined
2022-04-29 16:40:32 +02:00
Umur Ozkul
7b052ee3c3
format
2022-04-27 22:24:06 +02:00
Umur Ozkul
d33f430073
Merge branch 'Umur-develop' into Umur-reducer-dev
2022-04-27 22:08:35 +02:00
Umur Ozkul
54f8b10a95
Reducer: Environment (Give environement to all function dispatches) - closes #169
2022-04-27 22:00:42 +02:00
Sam Nolan
ba412f2df6
Fix resolution issue
2022-04-26 14:15:37 -04:00
Umur Ozkul
7d4e3072b8
commite related issue note
2022-04-25 18:35:15 +02:00
Umur Ozkul
6878523186
cancel performance hook
2022-04-25 18:27:04 +02:00
Umur Ozkul
ac8827da28
ternary with bindings (failed)
2022-04-25 17:15:28 +02:00
Umur Ozkul
cbc2b73b20
Evaluate ternary operator (tested)
2022-04-25 16:19:56 +02:00
Umur Ozkul
c810c4576d
reducer semantics ternary (tested)
2022-04-25 15:30:27 +02:00
Umur Ozkul
4d801c0b10
ternary operator mathjs parse (tested)
2022-04-25 15:11:50 +02:00
Umur Ozkul
3788cb0c9a
fix variant warnings
2022-04-25 10:52:13 +02:00
Umur Ozkul
8d92941736
Merge branch 'develop' into Umur-reducer-dev
2022-04-25 09:28:53 +02:00
Umur Ozkul
c5e08cfdb6
modify lambda
2022-04-25 09:17:38 +02:00
Umur Ozkul
eba087329f
called lamda with arguments (tested)
2022-04-25 08:49:17 +02:00
Umur Ozkul
1fb9218a94
refactor passToFunction
2022-04-25 08:19:18 +02:00
Umur Ozkul
d214bddc82
lambda expressions bound to function call symbols
2022-04-25 06:30:25 +02:00
Umur Ozkul
7b080ff4c2
bind function calls
2022-04-25 03:01:58 +02:00
Umur Ozkul
e3ef08839f
Function definition evaluated
2022-04-25 02:48:49 +02:00
Umur Ozkul
1f989de11c
lambda binding
2022-04-25 01:53:37 +02:00
Umur Ozkul
fe4e355fbe
format
2022-04-24 18:42:54 +02:00
Ozzie Gooen
1102ceb4ec
Show correct errors early on when log(distribution) has bad arguments
2022-04-23 17:51:41 -04:00
Umur Ozkul
88b6d49ad3
function definition parse (tested)
2022-04-23 21:13:43 +02:00
Sam Nolan
dfd2f83c9d
Merge pull request #345 from quantified-uncertainty/invalid-ops
...
Change NaN operations to results
2022-04-23 14:51:50 -04:00
Ozzie Gooen
21975f2c0b
Fixed the linting of reducer files
2022-04-23 12:25:33 -04:00
Umur Ozkul
a915e68049
MathJs functionAssingmentNode parsed, comments passed (tested)
...
Just found out that comments were already done
2022-04-23 18:07:47 +02:00
Umur Ozkul
99906446c5
resi declaration consistency
2022-04-23 15:40:04 +02:00
Umur Ozkul
e456726e53
Merge branch 'reducer-dev-F-debugging' into Umur-reducer-dev
2022-04-23 15:21:11 +02:00
Sam Nolan
508f673873
Change NaN operations to results
...
- Also deleting old GenericDist_Types
- Also removing some string errors
2022-04-22 16:27:17 -04:00