Commit 6d78c58
authored
Drop Caml runtimes and primitives (#6984)
* remove Caml io/formatting/converting stuffs
* remove Lexing/Parsing/Parser completely
* remove Caml_sys completely
* remove hash/digest/Hashtbl
* format jscomp/test again
* restore Hashtbl.hash
* update lib artifacts
* remove stale tests
* remove Caml compile time constants
* remove (almost) Caml String/Bytes/Char/Stream
* remove floatarray
* remove Caml int32/int64/nativeint
* remove uint32 liternal which has never exposed
* migrate caml_{type}_compare/min/max primitives
* Drop OCaml `Array` module
* drop other OCaml DS modules
* fix hashtbl size hint
* rename promise primitive
* remove unused code
* update artifacts
* remove unused module
* Drop `%lazy_force` primitive
* remove unused code
* remove/replace all remain `caml_*` primitives
* Remove unwanted float primitives
* remote unused/unnecessary exn primitives
* migrate dict primitive
* rename #import to %import
* migrate obj and option primitives
* migrate hash primitives
* remove unused code path
* remove unused internal primitives
* migrate already ones from internal primitives
* specialize every primitives in a path
* drop/rename more interfaces
* merge exn primitive modules
* move curry primitive module
* move util primitives
* update artifacts
* fix gentype test
* add empty modules for core OCamlCompat
* rename ref primitives
* bring back a few primitives for Core compatibility
* bring back error reporting on unknown #prim
* add more compat
* Js_runtime_modules -> Primitive_modules
* Remove unused code path
* Remove unused code path (floatarray) in frontend
* remove unused builtin types
* fix binding
* refactor primitive externs
* bring back Array module accessing pattern
* more compat, deprecation, and migrate stdlib-406 dir completely
* cleanup ninja dependencies
Now the only `runtime` dir is the built-in primitive literally
Removed dependency hacks from `ninja.js` and make the dependency graph clearly `others` -> `runtime`
Removed `Belt_internals` module, use compiler primitive instead
Removed `runtime/js`, so made `others/js` only source of JS bindings
Primitives shouldn't rely on JS any binding
* add deprecation on pervasives
* tmp: try fix
* clean a bit
* added %modfloat primitive, added Pervasives.mod_float compat
* added Pervasive string conversion compat
* do not mention Js module
* add clean-rewatch recipe1 parent 9c4af76 commit 6d78c58
File tree
1,082 files changed
+10742
-107105
lines changed- jscomp
- build_tests/super_errors
- expected
- fixtures
- core
- ext
- frontend
- gentype_tests/typescript-react-example
- src
- nested
- shims
- gentype
- ml
- others
- runtime
- stdlib-406
- syntax
- src
- tests
- parsing/grammar/expressions/expected
- printer/structure
- expected
- test
- lib
- es6
- js
- packages
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,082 files changed
+10742
-107105
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
Lines changed: 0 additions & 34 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments