@elaraai/east 1.0.108 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/analyze.d.ts.map +1 -1
- package/dist/src/analyze.js +58 -0
- package/dist/src/analyze.js.map +1 -1
- package/dist/src/builtins.d.ts +1 -1
- package/dist/src/builtins.d.ts.map +1 -1
- package/dist/src/builtins.js +25 -0
- package/dist/src/builtins.js.map +1 -1
- package/dist/src/codegen/codegen.spec.js +66 -0
- package/dist/src/codegen/codegen.spec.js.map +1 -1
- package/dist/src/codegen/printer.d.ts.map +1 -1
- package/dist/src/codegen/printer.js +47 -2
- package/dist/src/codegen/printer.js.map +1 -1
- package/dist/src/codegen/spellings.d.ts +7 -5
- package/dist/src/codegen/spellings.d.ts.map +1 -1
- package/dist/src/codegen/spellings.js +4 -0
- package/dist/src/codegen/spellings.js.map +1 -1
- package/dist/src/codegen/spellings.spec.js +2 -1
- package/dist/src/codegen/spellings.spec.js.map +1 -1
- package/dist/src/compile/builtins/dict.d.ts +2 -0
- package/dist/src/compile/builtins/dict.d.ts.map +1 -1
- package/dist/src/compile/builtins/dict.js +6 -0
- package/dist/src/compile/builtins/dict.js.map +1 -1
- package/dist/src/compile/builtins/key_range.d.ts +63 -0
- package/dist/src/compile/builtins/key_range.d.ts.map +1 -0
- package/dist/src/compile/builtins/key_range.js +80 -0
- package/dist/src/compile/builtins/key_range.js.map +1 -0
- package/dist/src/compile/builtins/primitives.d.ts +1 -1
- package/dist/src/compile/builtins/set.d.ts +2 -0
- package/dist/src/compile/builtins/set.d.ts.map +1 -1
- package/dist/src/compile/builtins/set.js +6 -0
- package/dist/src/compile/builtins/set.js.map +1 -1
- package/dist/src/containers/range.d.ts +77 -0
- package/dist/src/containers/range.d.ts.map +1 -0
- package/dist/src/containers/range.js +68 -0
- package/dist/src/containers/range.js.map +1 -0
- package/dist/src/containers/range.spec.d.ts +6 -0
- package/dist/src/containers/range.spec.d.ts.map +1 -0
- package/dist/src/containers/range.spec.js +254 -0
- package/dist/src/containers/range.spec.js.map +1 -0
- package/dist/src/containers/sortedmap.d.ts +25 -0
- package/dist/src/containers/sortedmap.d.ts.map +1 -1
- package/dist/src/containers/sortedmap.js +29 -0
- package/dist/src/containers/sortedmap.js.map +1 -1
- package/dist/src/containers/sortedset.d.ts +26 -0
- package/dist/src/containers/sortedset.d.ts.map +1 -1
- package/dist/src/containers/sortedset.js +30 -0
- package/dist/src/containers/sortedset.js.map +1 -1
- package/dist/src/expr/dict.d.ts +86 -0
- package/dist/src/expr/dict.d.ts.map +1 -1
- package/dist/src/expr/dict.js +106 -0
- package/dist/src/expr/dict.js.map +1 -1
- package/dist/src/expr/key_range.d.ts +105 -0
- package/dist/src/expr/key_range.d.ts.map +1 -0
- package/dist/src/expr/key_range.js +124 -0
- package/dist/src/expr/key_range.js.map +1 -0
- package/dist/src/expr/set.d.ts +74 -0
- package/dist/src/expr/set.d.ts.map +1 -1
- package/dist/src/expr/set.js +94 -0
- package/dist/src/expr/set.js.map +1 -1
- package/dist/src/fuzz.d.ts +13 -0
- package/dist/src/fuzz.d.ts.map +1 -1
- package/dist/src/fuzz.js +26 -11
- package/dist/src/fuzz.js.map +1 -1
- package/dist/src/fuzz.spec.d.ts +6 -0
- package/dist/src/fuzz.spec.d.ts.map +1 -0
- package/dist/src/fuzz.spec.js +45 -0
- package/dist/src/fuzz.spec.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +1 -0
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +2 -0
- package/dist/src/internal.js.map +1 -1
- package/dist/src/key_bound.d.ts +94 -0
- package/dist/src/key_bound.d.ts.map +1 -0
- package/dist/src/key_bound.js +183 -0
- package/dist/src/key_bound.js.map +1 -0
- package/dist/src/key_bound.spec.d.ts +6 -0
- package/dist/src/key_bound.spec.d.ts.map +1 -0
- package/dist/src/key_bound.spec.js +158 -0
- package/dist/src/key_bound.spec.js.map +1 -0
- package/dist/src/serialization/beast2/v5/lazy.d.ts +4 -0
- package/dist/src/serialization/beast2/v5/lazy.d.ts.map +1 -1
- package/dist/src/serialization/beast2/v5/lazy.js +36 -11
- package/dist/src/serialization/beast2/v5/lazy.js.map +1 -1
- package/dist/src/serialization/beast2/v5/project.spec.js +2 -12
- package/dist/src/serialization/beast2/v5/project.spec.js.map +1 -1
- package/dist/src/serialization/beast2/v5/stream.d.ts +138 -1
- package/dist/src/serialization/beast2/v5/stream.d.ts.map +1 -1
- package/dist/src/serialization/beast2/v5/stream.js +224 -1
- package/dist/src/serialization/beast2/v5/stream.js.map +1 -1
- package/dist/src/serialization/beast2/v5/view.d.ts +108 -0
- package/dist/src/serialization/beast2/v5/view.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/view.js +227 -0
- package/dist/src/serialization/beast2/v5/view.js.map +1 -0
- package/dist/src/serialization/beast2/v5/view.spec.d.ts +6 -0
- package/dist/src/serialization/beast2/v5/view.spec.d.ts.map +1 -0
- package/dist/src/serialization/beast2/v5/view.spec.js +509 -0
- package/dist/src/serialization/beast2/v5/view.spec.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A key range of a paged Set or Dict (#1616, D4): a view of its pager.
|
|
7
|
+
*
|
|
8
|
+
* A range of a lazily opened collection holds the pager it reads through and
|
|
9
|
+
* its two bounds, and reads nothing to be made. Its rows are found at the
|
|
10
|
+
* first read that needs them — each end by the fences and the one segment that
|
|
11
|
+
* can hold it, through the pager's cache ({@link Beast2Pages.rowWindow}) — and
|
|
12
|
+
* from then it answers as a pager of its own rows does: its size, its
|
|
13
|
+
* segments, a keyed read, its first key. So a lazy value reads a range by the
|
|
14
|
+
* code it reads a whole collection by.
|
|
15
|
+
*
|
|
16
|
+
* - **One cache.** Every read goes through the source's pager, so an input
|
|
17
|
+
* keeps its one cache however many ranges are taken of it, and a view's
|
|
18
|
+
* reads are counted there.
|
|
19
|
+
* - **Its first and last segments are read through the cache**, their rows
|
|
20
|
+
* whole: many short ranges of one segment decode it once. One the range
|
|
21
|
+
* cuts is copied down to the range's rows. The segments between them are a
|
|
22
|
+
* scan's: decoded fresh, to a loop's projection when it has one, and never
|
|
23
|
+
* kept.
|
|
24
|
+
* - **A range of a range** is placed among the rows of the range it narrows,
|
|
25
|
+
* so it reads no segment outside that one's. Once placed, a view holds its
|
|
26
|
+
* rows by its first key and the first key past it, and nothing of the range
|
|
27
|
+
* it narrows: a body may narrow a range thousands of times, and a range of a
|
|
28
|
+
* range of a range is placed by a loop, never a recursion, and costs no more
|
|
29
|
+
* to read than the first.
|
|
30
|
+
*
|
|
31
|
+
* This is east-c's view (`stream.c`, "A key range of a paged collection"),
|
|
32
|
+
* rule for rule, so the two decode the same segments for the same reads.
|
|
33
|
+
*/
|
|
34
|
+
import { LazyReadError } from "../../../error.js";
|
|
35
|
+
/**
|
|
36
|
+
* A range of a paged Set or Dict, read through its source's pager.
|
|
37
|
+
*
|
|
38
|
+
* @internal Made by a lazy value's `range`; see `lazy.ts`.
|
|
39
|
+
*/
|
|
40
|
+
export class Beast2PagesView {
|
|
41
|
+
/** The pager every read goes through, and where its reads are counted. */
|
|
42
|
+
source;
|
|
43
|
+
/** The range this one narrows while this one is not placed: placing it
|
|
44
|
+
* needs that one's rows. `null` once placed, and for a range of the source. */
|
|
45
|
+
parent;
|
|
46
|
+
from;
|
|
47
|
+
to;
|
|
48
|
+
placed = null;
|
|
49
|
+
/**
|
|
50
|
+
* @param of - the pager, or the range, this is a range of
|
|
51
|
+
* @param from - the test the range's first key is the first to pass; `undefined` for the first key
|
|
52
|
+
* @param to - the test the range stops before the first key to pass; `undefined` for the end
|
|
53
|
+
*/
|
|
54
|
+
constructor(of, from, to) {
|
|
55
|
+
if (of instanceof Beast2PagesView) {
|
|
56
|
+
this.source = of.source;
|
|
57
|
+
// Held until this one is placed. A placed range holds nothing of the one
|
|
58
|
+
// it narrows, so what this holds of the ranges above it ends there.
|
|
59
|
+
this.parent = of;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
this.source = of;
|
|
63
|
+
this.parent = null;
|
|
64
|
+
}
|
|
65
|
+
this.from = from;
|
|
66
|
+
this.to = to;
|
|
67
|
+
}
|
|
68
|
+
/** Whether a key is within `view`. Until it is placed, by its bounds and
|
|
69
|
+
* those of every range it narrows, up to the first that is placed; a placed
|
|
70
|
+
* view by its rows' first key and the first key past them, which reads
|
|
71
|
+
* nothing either: a key between the bounds and outside the rows is no key
|
|
72
|
+
* the source holds there. A loop up the ranges, never a recursion. */
|
|
73
|
+
static holds(view, key) {
|
|
74
|
+
for (let at = view; at !== null; at = at.parent) {
|
|
75
|
+
const placed = at.placed;
|
|
76
|
+
if (placed !== null) {
|
|
77
|
+
return placed.hi > placed.lo
|
|
78
|
+
&& (placed.loKey === undefined || at.source.keyCompare(key, placed.loKey) >= 0)
|
|
79
|
+
&& (placed.hiKey === undefined || at.source.keyCompare(key, placed.hiKey) < 0);
|
|
80
|
+
}
|
|
81
|
+
if (at.from !== undefined && !at.from(key))
|
|
82
|
+
return false;
|
|
83
|
+
if (at.to !== undefined && at.to(key))
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
/** `view` and the ranges it narrows that are not yet placed, nearest first:
|
|
89
|
+
* what placing it places, outermost first. */
|
|
90
|
+
static unplaced(view) {
|
|
91
|
+
const chain = [];
|
|
92
|
+
for (let at = view; at !== null && at.placed === null; at = at.parent)
|
|
93
|
+
chain.push(at);
|
|
94
|
+
return chain;
|
|
95
|
+
}
|
|
96
|
+
/** Places the view: its rows of the source, within those of the range it
|
|
97
|
+
* narrows, and the segments they span. Once; a view that cannot be placed
|
|
98
|
+
* — a corrupt blob's — fails the same way at its next read. The ranges it
|
|
99
|
+
* narrows that are not yet placed are placed first, outermost first, by a
|
|
100
|
+
* loop. */
|
|
101
|
+
place() {
|
|
102
|
+
if (this.placed !== null)
|
|
103
|
+
return this.placed;
|
|
104
|
+
try {
|
|
105
|
+
const chain = Beast2PagesView.unplaced(this);
|
|
106
|
+
for (let i = chain.length - 1; i >= 0; i--)
|
|
107
|
+
chain[i].placeWithin();
|
|
108
|
+
return this.placed;
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
if (err instanceof LazyReadError)
|
|
112
|
+
throw err;
|
|
113
|
+
throw new LazyReadError(err?.message ?? String(err), { cause: err });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/** Places this view among the rows of the range it narrows, which is
|
|
117
|
+
* placed, or of the whole collection; then lets that range go. */
|
|
118
|
+
placeWithin() {
|
|
119
|
+
const source = this.source;
|
|
120
|
+
const within = this.parent?.placed ?? { lo: 0, hi: source.elementCount, loKey: undefined, hiKey: undefined };
|
|
121
|
+
const { lo, hi, loKey, hiKey } = source.rowWindow(this.from, this.to, within.lo, within.hi);
|
|
122
|
+
const counts = [];
|
|
123
|
+
let first = 0;
|
|
124
|
+
if (hi > lo) {
|
|
125
|
+
first = source.segmentOfRow(lo);
|
|
126
|
+
const last = source.segmentOfRow(hi - 1);
|
|
127
|
+
for (let s = first; s <= last; s++) {
|
|
128
|
+
const base = source.rowsBefore(s);
|
|
129
|
+
counts.push(Math.min(hi, base + source.counts[s]) - Math.max(lo, base));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// An end the window's own is the window's key there.
|
|
133
|
+
this.placed = hi > lo
|
|
134
|
+
? { lo, hi, first, counts, loKey: lo === within.lo ? within.loKey : loKey, hiKey: hi === within.hi ? within.hiKey : hiKey }
|
|
135
|
+
: { lo, hi, first, counts, loKey: undefined, hiKey: undefined };
|
|
136
|
+
this.parent = null;
|
|
137
|
+
}
|
|
138
|
+
get elementCount() {
|
|
139
|
+
const { lo, hi } = this.place();
|
|
140
|
+
return hi - lo;
|
|
141
|
+
}
|
|
142
|
+
get segmentCount() {
|
|
143
|
+
return this.place().counts.length;
|
|
144
|
+
}
|
|
145
|
+
/** Whether segment `k` of the view is one the range's ends do not lie in:
|
|
146
|
+
* those are read whole, through the cache, and every other as the source
|
|
147
|
+
* reads it. */
|
|
148
|
+
between(k) {
|
|
149
|
+
const { counts } = this.place();
|
|
150
|
+
return k > 0 && k + 1 < counts.length;
|
|
151
|
+
}
|
|
152
|
+
/** Segment `k` of the view: the source's segment, held to the range's rows.
|
|
153
|
+
*
|
|
154
|
+
* The view's first and last segments are read through the cache, where
|
|
155
|
+
* placing the ends left them and the next range of the same segment finds
|
|
156
|
+
* them, their rows whole — a cached segment has one shape for the pager's
|
|
157
|
+
* life, so `projection` is refused there, and {@link projects} says so
|
|
158
|
+
* before a loop asks. One the range cuts is copied down to the range's
|
|
159
|
+
* rows of it. The segments between the ends are a scan's: decoded fresh, by
|
|
160
|
+
* `projection` when one is given. */
|
|
161
|
+
read(k, projection) {
|
|
162
|
+
const { first, counts, loKey, hiKey } = this.place();
|
|
163
|
+
if (k < 0 || k >= counts.length) {
|
|
164
|
+
throw new Error(`beast2 v5: segment ${k} out of range (${counts.length} segments)`);
|
|
165
|
+
}
|
|
166
|
+
const s = first + k;
|
|
167
|
+
if (this.between(k)) {
|
|
168
|
+
return projection !== null ? this.source.segmentProjected(s, projection) : this.source.segmentDisjoint(s);
|
|
169
|
+
}
|
|
170
|
+
if (projection !== null) {
|
|
171
|
+
throw new Error(`beast2 v5: a range's end segment is read whole, through the cache`);
|
|
172
|
+
}
|
|
173
|
+
const segment = this.source.segmentKept(s);
|
|
174
|
+
if (counts[k] === this.source.counts[s])
|
|
175
|
+
return segment; // the range holds all of it
|
|
176
|
+
const source = this.source;
|
|
177
|
+
return segment.range(loKey === undefined ? undefined : (key) => source.keyCompare(key, loKey) >= 0, hiKey === undefined ? undefined : (key) => source.keyCompare(key, hiKey) >= 0);
|
|
178
|
+
}
|
|
179
|
+
segment(k) {
|
|
180
|
+
return this.read(k, null);
|
|
181
|
+
}
|
|
182
|
+
segmentDisjoint(k) {
|
|
183
|
+
return this.read(k, null);
|
|
184
|
+
}
|
|
185
|
+
segmentProjected(k, projection) {
|
|
186
|
+
return this.read(k, projection);
|
|
187
|
+
}
|
|
188
|
+
/** Whether segment `k` decodes to a loop's projection: one between the
|
|
189
|
+
* range's ends, as the source would decode it; never an end segment. */
|
|
190
|
+
projects(k) {
|
|
191
|
+
return this.between(k) && this.source.projects(this.place().first + k);
|
|
192
|
+
}
|
|
193
|
+
/** The first key of the view's segment `k`: the source's fence where the
|
|
194
|
+
* range holds the segment from its start, and the range's first key of it
|
|
195
|
+
* otherwise. */
|
|
196
|
+
fence(k) {
|
|
197
|
+
const { lo, first, counts } = this.place();
|
|
198
|
+
if (k < 0 || k >= counts.length) {
|
|
199
|
+
throw new Error(`beast2 v5: segment ${k} out of range (${counts.length} segments)`);
|
|
200
|
+
}
|
|
201
|
+
const s = first + k;
|
|
202
|
+
if (lo <= this.source.rowsBefore(s))
|
|
203
|
+
return this.source.fence(s);
|
|
204
|
+
for (const key of this.read(k, null).keys())
|
|
205
|
+
return key;
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
/** A keyed read: a key outside the range is absent, which reads nothing;
|
|
209
|
+
* one inside it is the source's keyed read. */
|
|
210
|
+
get(key) {
|
|
211
|
+
if (!Beast2PagesView.holds(this, key))
|
|
212
|
+
return undefined;
|
|
213
|
+
return this.source.get(key);
|
|
214
|
+
}
|
|
215
|
+
/** The view's segment a walk from `key` starts in: the source's, held to
|
|
216
|
+
* the segments the range spans. */
|
|
217
|
+
segmentFor(key) {
|
|
218
|
+
const { first, counts } = this.place();
|
|
219
|
+
if (counts.length === 0)
|
|
220
|
+
return 0;
|
|
221
|
+
return Math.min(Math.max(this.source.segmentFor(key) - first, 0), counts.length - 1);
|
|
222
|
+
}
|
|
223
|
+
/** Nothing: the cache is the source's, and a range that has read its own
|
|
224
|
+
* rows leaves its source as it was. */
|
|
225
|
+
clearCache() { }
|
|
226
|
+
}
|
|
227
|
+
//# sourceMappingURL=view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../src/serialization/beast2/v5/view.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAmDlD;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAC1B,0EAA0E;IACjE,MAAM,CAAc;IAC7B;oFACgF;IACxE,MAAM,CAAyB;IACtB,IAAI,CAA+B;IACnC,EAAE,CAA+B;IAC1C,MAAM,GAAkB,IAAI,CAAC;IAErC;;;;OAIG;IACH,YAAY,EAAiC,EAAE,IAAkC,EAAE,EAAgC;QACjH,IAAI,EAAE,YAAY,eAAe,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC;YACxB,yEAAyE;YACzE,oEAAoE;YACpE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACnB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;YACjB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAED;;;;2EAIuE;IAC/D,MAAM,CAAC,KAAK,CAAC,IAAqB,EAAE,GAAY;QACtD,KAAK,IAAI,EAAE,GAA2B,IAAI,EAAE,EAAE,KAAK,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;YACxE,MAAM,MAAM,GAAG,EAAE,CAAC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