nomen-lang 0.8.0 → 0.9.0
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/audit_runtime.c +12 -2
- package/core/System/Arena.nm +8 -1
- package/core/System/Buffer.nm +366 -9
- package/core/System/ClassBuffer.nm +133 -1
- package/core/System/Controls/Alert.nm +2 -2
- package/core/System/Controls/App.nm +12 -12
- package/core/System/Controls/Button.nm +1 -1
- package/core/System/Controls/CheckBox.nm +2 -2
- package/core/System/Controls/ColorPicker.nm +1 -1
- package/core/System/Controls/ComboBox.nm +1 -1
- package/core/System/Controls/Container.nm +7 -1
- package/core/System/Controls/GroupBox.nm +1 -1
- package/core/System/Controls/ImageView.nm +1 -1
- package/core/System/Controls/LevelIndicator.nm +1 -1
- package/core/System/Controls/ListView.nm +1 -1
- package/core/System/Controls/Menu.nm +1 -1
- package/core/System/Controls/OutlineView.nm +1 -1
- package/core/System/Controls/Pagination.nm +8 -8
- package/core/System/Controls/Popover.nm +1 -1
- package/core/System/Controls/Progress.nm +1 -1
- package/core/System/Controls/Radio.nm +2 -2
- package/core/System/Controls/SearchField.nm +1 -1
- package/core/System/Controls/SecureField.nm +1 -1
- package/core/System/Controls/Segmented.nm +1 -1
- package/core/System/Controls/Select.nm +1 -1
- package/core/System/Controls/Separator.nm +1 -1
- package/core/System/Controls/Sheet.nm +1 -1
- package/core/System/Controls/Slider.nm +1 -1
- package/core/System/Controls/Spinner.nm +2 -2
- package/core/System/Controls/SplitView.nm +1 -1
- package/core/System/Controls/Stepper.nm +1 -1
- package/core/System/Controls/Switch.nm +1 -1
- package/core/System/Controls/Table.nm +1 -1
- package/core/System/Controls/Tabs.nm +1 -1
- package/core/System/Controls/Text.nm +1 -1
- package/core/System/Controls/TextBox.nm +2 -2
- package/core/System/Controls/TextView.nm +1 -1
- package/core/System/Controls/Toggle.nm +2 -2
- package/core/System/Controls/Toolbar.nm +1 -1
- package/core/System/Controls/Window.nm +1 -2
- package/core/System/LinkedList.nm +8 -1
- package/core/System/List.nm +68 -12
- package/core/System/Map.nm +174 -18
- package/core/System/Mutex.nm +4 -4
- package/core/System/Random.nm +3 -4
- package/core/System/Set.nm +94 -20
- package/core/System/StableList.nm +371 -0
- package/core/System/Stream/Directory.nm +2 -2
- package/core/System/Stream/File.nm +2 -2
- package/core/System/Stream/Http.nm +2 -2
- package/core/System/String.nm +10 -5
- package/core/System/StringBuilder.nm +213 -2
- package/core/System/Text/CharIndex.nm +9 -9
- package/core/System/Text/Json.nm +60 -46
- package/core/System/Text/JsonTree.nm +120 -92
- package/core/System/Text/Regex.nm +23 -18
- package/core/System/Text/Utf8.nm +5 -5
- package/core/System/float.nm +36 -22
- package/core/System/int.nm +80 -28
- package/core/System/int16.nm +11 -0
- package/core/System/int32.nm +11 -0
- package/core/System/int64.nm +11 -0
- package/core/System/int8.nm +11 -0
- package/core/System/uint.nm +11 -0
- package/core/System/uint16.nm +11 -0
- package/core/System/uint32.nm +11 -0
- package/core/System/uint64.nm +11 -0
- package/core/System/uint8.nm +11 -0
- package/core/docs/System/StringBuilder.md +6 -0
- package/core/docs/System/Text/JsonTree.md +3 -2
- package/dist/index.mjs +36575 -30747
- package/package.json +1 -1
- package/src/bench_loop.nm +9 -9
package/package.json
CHANGED
package/src/bench_loop.nm
CHANGED
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
// emit unchecked strided loads).
|
|
17
17
|
func bench_loop___NAME__ = (ref Tester t) {
|
|
18
18
|
// Warm up so the first samples don't pay for cold caches / lazy binding.
|
|
19
|
-
var
|
|
19
|
+
var __w = 0
|
|
20
20
|
while __w < 8 {
|
|
21
21
|
__TARGET__()
|
|
22
22
|
__w += 1
|
|
23
23
|
}
|
|
24
24
|
// Collect __N__ samples, tracking running aggregates for every statistic
|
|
25
25
|
// except the median (which needs sorted data).
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
26
|
+
var __samples = List<int>()
|
|
27
|
+
var __sum = 0
|
|
28
|
+
var __sum_sq = 0.0
|
|
29
|
+
var __min = 0
|
|
30
|
+
var __max = 0
|
|
31
|
+
var __i = 0
|
|
32
32
|
while __i < __N__ {
|
|
33
33
|
const uint64 __t0 = Time.now_ns()
|
|
34
34
|
__TARGET__()
|
|
@@ -63,12 +63,12 @@ func bench_loop___NAME__ = (ref Tester t) {
|
|
|
63
63
|
// Insertion sort the samples so we can pick a median. `length` is
|
|
64
64
|
// stable throughout (only `set` mutates), so every access is guarded
|
|
65
65
|
// against `__samples.length` directly.
|
|
66
|
-
var
|
|
66
|
+
var __s = 1
|
|
67
67
|
while __s < __n {
|
|
68
68
|
if __s >= 0 && __s < __samples.length {
|
|
69
69
|
const int __v = __samples.at(__s)
|
|
70
70
|
var int __j = __s
|
|
71
|
-
var
|
|
71
|
+
var __more = true
|
|
72
72
|
while __more {
|
|
73
73
|
var int __pm1 = __j - 1
|
|
74
74
|
if __pm1 >= 0 && __pm1 < __samples.length {
|