microproofs
|
33d6d3049e
|
add compute for the new terms constr and case
|
2023-09-03 11:52:49 -04:00 |
microproofs
|
e566c4e1de
|
feat(uplc): add Case and Const terms
- parsering
- interning
- flat encoding and decoding
- pretty printing
- debruijn conversion
Co-authored-by: Lucas Rosa <x@rvcas.dev>
|
2023-09-03 11:52:49 -04:00 |
microproofs
|
564939ab61
|
feat
* remove more Rc's
* reconstruct Value::Builtin only when needed
Co-authored-by: Lucas Rosa <x@rvcas.dev>
|
2023-04-13 01:28:27 -04:00 |
microproofs
|
09a6ea51d6
|
feat(machine): reduce term allocations
* remove term from VBuiltin
* and also means we don't need the useless wrapping
Co-authored-by: Lucas Rosa <x@rvcas.dev>
|
2023-04-13 01:28:27 -04:00 |
rvcas
|
70f12d3fc5
|
chore: new branch with some things from the bumpalo branch
|
2023-04-13 01:28:27 -04:00 |
rvcas
|
1444c9328d
|
fix some typos
|
2023-04-07 16:51:18 -04:00 |
rvcas
|
bd7b8792bf
|
feat: introduce EvalResult type
|
2023-03-08 10:19:36 +01:00 |
Kasey
|
f3cdc05875
|
fix: the refactor on discharge value env (#393)
|
2023-02-18 20:49:29 -05:00 |
rvcas
|
c1d67e95e1
|
feat: fix errors and add tests for BigInt changes
|
2023-02-09 15:01:30 -05:00 |
KtorZ
|
bd4aeb779c
|
Implement integer_log2 on BigInt
Comparing it with the Haskell's implementation.
|
2023-02-09 18:14:00 +01:00 |
KtorZ
|
e76d26eb3c
|
Fixup: follow compiler.
|
2023-02-09 16:09:49 +01:00 |
rvcas
|
ec58279424
|
test(machine): integer overflow
|
2023-02-09 09:44:06 -05:00 |
Kasey White
|
3123ad9079
|
change eval_builtin_app to return Rc so that ifthenelse and chooselist are faster
|
2023-02-01 18:53:11 -05:00 |
Kasey White
|
456b08a205
|
minor performance improvements
Changed a couple cases where the inner Rc object was cloned to use the Rc object instead
|
2023-02-01 18:53:11 -05:00 |
rvcas
|
9c4e921e79
|
feat: more Rc in machine
|
2023-02-01 18:53:11 -05:00 |
rvcas
|
c8efe60843
|
feat: use Rc for more things, fib_iter runs almost 3 seconds faster now
|
2023-02-01 18:53:11 -05:00 |
Kasey White
|
b5d9a9bb52
|
Change discharge_value and discharge_value_env to use a stack machine
|
2023-02-01 18:53:11 -05:00 |
rvcas
|
790e8ba680
|
fix: start trying to get rid of recursion for discharge value
|
2023-02-01 18:53:11 -05:00 |
Kasey White
|
afd040fda5
|
feat: Finish up assert feature
Better error reporing on NonFunctionalApplication Error
Refactor redundant code
Add handling of whens with one clause.
|
2023-01-29 05:21:55 -05:00 |
Kasey White
|
2f7131e9b8
|
feat: add tuples and streamline conversion of types to and from data
|
2022-12-07 08:40:23 -05:00 |
alessandrokonrad
|
28b9fed8e5
|
added i128 integer support
|
2022-10-17 08:35:45 -04:00 |
alessandrokonrad
|
3eb4fb7523
|
fixed bugs
|
2022-09-24 23:09:55 +02:00 |
Kasey White
|
c45643bb01
|
empty bytestring should return 0 not 1
|
2022-09-23 04:09:28 -04:00 |
Kasey White
|
472cea6c41
|
parameratize cost model
|
2022-09-17 21:12:48 -04:00 |
rvcas
|
348ed3b719
|
fix: changes from pallas bump
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
|
2022-09-14 22:00:52 -04:00 |
rvcas
|
336af376e1
|
chore: bump pallas version
|
2022-09-14 18:52:42 -04:00 |
Kasey White
|
c88e5df8b1
|
finish up builtin implementations for Vasil
|
2022-08-30 18:15:50 -04:00 |
Kasey White
|
73e367ad53
|
add a data builtin and do ex_mem for pairs, list, data
|
2022-08-29 14:07:13 -04:00 |
Kasey White
|
09ae98065c
|
remaining buitlins for list and integer
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-08-24 00:06:17 -04:00 |
Kasey White
|
2bb482d9ec
|
Using rc we now get code that runs much faster and
can run jpg contract with no inputs
|
2022-08-17 22:40:32 -04:00 |
Kasey White
|
fb81955f51
|
start changing machine to use rc instead of box (does compile)
|
2022-08-17 22:40:32 -04:00 |
Kasey White
|
c050a5647f
|
remove some unnecessary clones with more optimizations to come
|
2022-08-17 22:40:32 -04:00 |
Kasey White
|
11ee99c199
|
Add several builtins for strings and bytestring
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-08-07 22:21:58 -04:00 |
Kasey White
|
d14920265e
|
flat encoding for list and pairs
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-08-05 00:38:41 -04:00 |
Kasey White
|
a3a175d74b
|
switch to stack model for plutus eval
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-28 02:48:08 -04:00 |
Kasey White
|
4acbd704e0
|
fix compilation issue
|
2022-07-27 11:27:27 -04:00 |
Kasey White
|
234ab7c7cb
|
Try out recursion for environment and frames
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-27 11:27:27 -04:00 |
Kasey White
|
b3cb9c4510
|
use expect instead of unwrap
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
9e62181caa
|
feat: new Error not a constant
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
77a7b11467
|
feat: finish to_ex_mem for constant
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
f332dfeb38
|
feat: 3 new error cases and more generic pretty printing
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
598c5364fe
|
implement force for builtins
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
22f90bf07f
|
feat: impl ifThenElse kinda
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
83b9294ac1
|
chore: print runtime
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
9f977f7e58
|
add costing capability for builtins
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
84df3be139
|
start filling in builtin cost model
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
a5140513de
|
fix: debruijn index - 1
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-24 19:51:57 -04:00 |
rvcas
|
d55409d8c5
|
feat: basic builtin execution
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
9ea57aa461
|
Add some runtime types
|
2022-07-24 19:51:57 -04:00 |
Kasey White
|
045dc8fed8
|
add builtin cost model
Co-authored-by: rvcas <x@rvcas.dev>
|
2022-07-24 19:51:57 -04:00 |