Repository navigation
Expand file tree
/
Copy pathWONTFIX.txt
More file actions
154 lines (116 loc) · 6.79 KB
/
Copy pathWONTFIX.txt
File metadata and controls
154 lines (116 loc) · 6.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
WONTFIX: what Bend will not fix, and why. Each entry is a design choice, a
limit of our team size, or an open problem with no solution we trust yet.
Read this file before you open an issue.
DESIGN (intentional choices)
`bend file.bend` runs a pure main lazily; compiled lanes are strict (#775)
The checker skips an unused argument; a binary evaluates it. Same value,
different cost.
The checker skips dead code (#820, #878, #973, #1091)
In `(y => x)(e)`, `e` is dead: a comment, invisible to the theory, with no
runtime effect. A match arm an earlier arm shadows, or a fallback past a
type's last constructor, wins no leaf and is dead the same way. The checker
visits neither. This makes the check faster and costs no correctness: the
term it checks is the term it runs. A written redex reduces as it is read,
so `(x => x(x))(x => x(x))` never ends (#973).
`~` template arguments are compile-time (#784)
A `~` argument must be closed. A def parameter is a runtime value, so it
cannot fill one. Pass the function as a plain argument instead.
Allocation failure fail-stops the runtime (#792)
Out of memory is fatal everywhere, not a `Fail`. A program bounds the `max`
it passes to a receive effect; the runtime only caps it at INT32_MAX.
The C compiler is clang only (#773)
The C output uses `#embed` and clang pragmas. gcc is not a target.
The termination check reads arguments left to right (#770)
An argument before the decreasing one must pass through unchanged. Put the
decreasing argument first.
No common-subexpression elimination (#812)
Two calls of `f(p)` run twice. Bind the value once.
The checker is not optimal: some terms are exponential or overflow (#993, #1075)
bend.ts is not beta-optimal and recurses on the machine stack. No checker
avoids every case: `F(100000 * 2) == F(100000 + 100000)` unrolls fully,
since the sides differ. So conversion takes no layer that makes equality
quadratic (an identity pass before each reduction) or every check slower
by a constant (hash-consing, a memo of seen terms): each layer covers one
more family and slows every proof. Fix the representation instead: a def
opens a value before it copies it (as U32.max does), and a law keeps its
large constants and depths abstract. Do not open an issue per exponential
or overflow.
A fallback arm does not refine a dependent goal (#1091)
In `case rest:` the scrutinee stays a variable. Write the constructor arms.
`!` goes to the GPU only at the root of an IO step (#1065)
Inside CPU-parallel work, it runs on the CPU.
F32.show's last digit may differ per lane on a decimal tie (#1079)
C rounds to even, JS away from zero; both read back to the same F32.
A compound type argument takes parens (#1110)
Write `Maybe<(U32 & U32)>`. The parser does not backtrack, so a glued `<`
reads its first argument at comparison level.
A function with a `+` parameter is not a plain function (#1111)
`@+x:A -> B` and `A -> B` are different types. Pass `x => f(x)` instead.
The installer edits no shell file (#995)
It prints the PATH line; add it to your shell's config.
The hub client trusts the manifest path grammar on POSIX only (#788)
The path guard is POSIX. Windows is not a supported host (see CAPACITY).
A base-file helper may call a law filled below it (#793)
`base.bend` carries this carve-out and the Lean formalization states it.
User files do not get it.
A handle type is a law of Base (#825)
`File`, `Socket`, `Window` and the other handle types are laws that only
Base may leave unfilled. A user law of kind `Type` counts as open, so a
custom effect reuses a Base handle type. Opening this to user files touches
consistency; we will address the gap later.
CAPACITY (a small team keeps the language at a size it can maintain)
Windows is not supported (#788)
Use WSL.
No Vulkan or other extra GPU lanes (#811)
Metal and CUDA only.
`!` runs on the CPU on WSL2 GPUs (#1066)
They lack concurrent managed access; a device copy of the corpus is a
second memory model we cannot maintain.
No DNS, TLS, crypto or HTTP in Base (#846)
TCP.connect takes an IPv4 address; JS's IO loop cannot wait on a lookup.
TLS and crypto need OpenSSL: build them as hub packages over TCP bytes.
No cancellation of blocking effects (#1034)
IO.within bounds the wait; the losing effect still runs to its end.
Server helpers stay out of Base (#1106, #1117)
Base holds the effects no library can build. A confined open or a
sendfile is a foreign effect: ship it as a hub package.
gcc is not supported (#773)
See DESIGN.
OPEN (no solution we trust yet; patches would cost us control of the codebase)
F32 NaN payload bits are not preserved on the JS lane (#797, #872)
An F32 is a JS number there. A bit-exact representation measured 7-8x
slower on F32 code (nbody 3.5 s -> 23.7 s), so the C lane is the
reference and JS keeps the number. A program that reads those bits as a
dependent tag takes the two lanes down two arms, and the arm JS takes may
duplicate an affine value (#872). The C lane is the reference there too.
RUNTIME (the theory allows it, the runtime does not run it yet; we remove
these over time; do not open an issue)
An unbalanced `Array` tree fail-stops at runtime (#808)
`ALeaf`/`ANode` are public, so the checker admits a tree whose halves
differ; every backend stores an array as one flat block and traps on such
a node. A depth index would fix it in the type, but Bend does no inference,
so `xs[i]` would have to become `xs[i^d]`; we chose not to. Like the Nat
cap and the block-class cap below, this is a runtime limit, not a design.
A Nat past 2^48-1, or an array past block class 31, fail-stops (#779)
Immediates hold 48 bits; blocks have 32 classes. The theory has no such
bound.
A value with more than 2^24-1 live copies fail-stops on the C lane (#1267)
Copies of a `+` value share it through one 24-bit count; JS keeps no
count and runs on. `Array.new(T, d, x)` makes 2^d copies of x, so a
computed x stops it at depth 24 there. For more copies, build x again for
each group: e.g. an `Array.new` at depth 23 per build, joined by `ANode`.
SOON (we will add it; do not open an issue)
U64 (#1027)
We will add it ourselves; we do not merge PRs for U64 or U128.
F64 (#1120)
It needs U64's 64-bit word design; we add both together, and we do not
merge PRs for F64.
F32 that computes in the checker (#1017)
F32 operations are axioms today; bit-level definitions are planned.
Continuation passing for non-tail calls on the JS lane (#798, #802)
Deep recursion (String.length over 100k chars, List.length over 200k
elements) overflows the host stack. Until then String.length is an
intrinsic; other folds may overflow.
A native library target for pure defs (#813)
Today the C output is one program with a `main`. Exporting chosen defs with
a header and a lifecycle is planned, not scheduled.