You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/aiken-integration.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ type EqDict<a> {
40
40
}
41
41
```
42
42
43
-
would produce an error like
43
+
would produce an error as follows.
44
44
45
45
```bash
46
46
$ aiken build
@@ -405,7 +405,9 @@ Ideally, one would want to change how Aiken encodes its data types internally so
405
405
Thus, we lose all benefits of Lambda Buffers' efficient encoding when working with Aiken's mechanisms to define types because Lambda Buffers is forced to take an extra step to translate to Aiken's inefficient encoding.
406
406
As such, Aiken's opinionated way of encoding its data is at odds with Lambda Buffers.
407
407
408
-
To resolve the mismatch in the encoding of data between the two, one could alternatively sidestep all of Aiken's methods for defining types and instead use Aiken's opaque types to alias `Data` and provide ones own constructors / record accesses as follows.
408
+
To resolve the mismatch in the encoding of data between the two,
409
+
one could alternatively sidestep all of Aiken's methods for defining types
410
+
and instead use Aiken's opaque types to alias `Data` and provide ones own constructors / record accesses as follows.
409
411
410
412
```rust
411
413
use aiken/builtin as builtin
@@ -546,7 +548,7 @@ Note that this would most likely offer a poor user experience as this would esse
546
548
In either case,
547
549
to mediate the Data serialization / deserialization mismatch of Aiken and Lambda Buffers,
548
550
it puts a bulkier mental overhead on the Aiken developer.
549
-
As in the previous section, an Aiken developer would expect to write a validator as follows.
551
+
For example, as in the previous section, an Aiken developer would expect to write a validator as follows.
550
552
551
553
```rust
552
554
pub type MyRecord {a : Int, b : Int }
@@ -666,7 +668,7 @@ Moreover, Aiken is still in an alpha release and is rapidly changing, so the eff
666
668
Thus, given these challenges, it's clear that it would be unwise to undertake the Aiken implementation currently,
667
669
and it would be wiser to revisit this later and focus on matters of pressing importance today to better foster adoption of Lambda Buffers.
668
670
669
-
Lambda Buffers has fortunately seen industry use in other projects such as [DeNS](https://github.com/mlabs-haskell/DeNS/tree/main), OrcFax, etc.,
671
+
Lambda Buffers has fortunately seen industry use in other projects such as [DeNS](https://github.com/mlabs-haskell/DeNS/tree/main), [TripHut DAO](https://github.com/yaadlabs/DAO-Off-Chain), etc.,
670
672
and there's been feedback to improve the existing facilities in Lambda Buffers which would aid in fostering the adoption of Lambda Buffers in the greater Cardano community.
0 commit comments