Commit graph

7523 commits

Author SHA1 Message Date
Folkert
e19cdaf34d
fix merge conflict 2022-03-26 22:08:30 +01:00
Folkert
9dbaa0d157
change type to ensure alignment 2022-03-26 22:04:22 +01:00
Folkert
8325f09de1
Merge remote-tracking branch 'origin/trunk' into cache-stdlib-modules 2022-03-26 21:58:05 +01:00
Folkert
9c9a238be5
make subs serialziation cross-compile proof 2022-03-26 20:31:41 +01:00
Richard Feldman
b5b84e8760
Merge pull request #2770 from rtfeldman/add-stdlib-roc-files
add standard library .roc files
2022-03-25 23:21:20 -04:00
Folkert
e98dc68462
prevent panic 2022-03-24 22:40:47 +01:00
Folkert
8dba624156
refactor + thread through cached subs 2022-03-24 22:10:21 +01:00
Folkert
8c3bab908e
fix load tests 2022-03-24 00:12:53 +01:00
Folkert
f1cc3be8d5
fix formatting 2022-03-23 22:58:11 +01:00
Folkert
887c5ef698
rename standard_library -> roc 2022-03-23 21:21:46 +01:00
Folkert
afee877cf1
skeleton for caching stdlib subs 2022-03-23 21:19:38 +01:00
Folkert
1716879f82
add headers to stdlib roc files 2022-03-23 21:19:37 +01:00
Folkert
4859f530cd
generate cached subs 2022-03-23 21:19:37 +01:00
Folkert
753d1418ed
fix copy/paste mistake 2022-03-23 21:19:37 +01:00
Folkert
90887a6fe0
thread through cached_subs 2022-03-23 21:19:36 +01:00
Folkert
80b8635947
restructure how load is used 2022-03-23 21:19:36 +01:00
Folkert
8e73f447df
store exposed_vars_by_symbol in .dat file too 2022-03-23 21:19:35 +01:00
Folkert
1e6cf3f313
properly serialize tag names 2022-03-23 21:19:35 +01:00
Folkert
0a6335e772
start on roc_load build.rs script for building the builtins 2022-03-23 21:19:34 +01:00
Folkert
7bb1fd88fa
add load_internal 2022-03-23 21:19:34 +01:00
Folkert
d607d6db05
rename standard_library -> roc 2022-03-23 21:19:15 +01:00
Folkert de Vries
f35a6cdc7a
Merge pull request #2762 from rtfeldman/serialize-subs-tag-names
properly serialize tag names
2022-03-23 20:02:57 +01:00
Richard Feldman
49e4ba216d
Merge pull request #2769 from rtfeldman/add-load-internal
add load_internal
2022-03-23 14:24:45 -04:00
Folkert
ca16099e83
add standard library .roc files 2022-03-23 17:13:16 +01:00
Folkert
311e464b70
add load_internal 2022-03-23 15:18:22 +01:00
Richard Feldman
cce590dee5
Merge pull request #2761 from rtfeldman/simplify-unused-defs
Remove unneeded work in canonicalization
2022-03-23 10:10:05 -04:00
Richard Feldman
750fbf2dcf
Merge pull request #2766 from rtfeldman/simplify-identids
simplify IdentIds
2022-03-22 20:23:56 -04:00
Richard Feldman
381acbf734
Merge pull request #2765 from rtfeldman/simplify-stdlib-use
Simplify stdlib use
2022-03-22 20:14:38 -04:00
Brian Carroll
3c9d624a73
Merge pull request #2757 from rtfeldman/fix_shift_filling
Fix (flip) `Num.shiftRight*` builtins
2022-03-23 00:07:19 +00:00
Brian Carroll
faaa1ca8f9 test_gen: crazy conditional compilation options for right-shift tests! 2022-03-22 22:55:00 +00:00
Brian Carroll
24e6cd80e7 wasm: fix argument order for shiftRightBy & disable tests with 8-bit values 2022-03-22 22:28:18 +00:00
Folkert
30aa242075
flip insert and check 2022-03-22 22:22:24 +01:00
Folkert
a67bb29a36
remove hashmap 2022-03-22 21:58:49 +01:00
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static) 2022-03-22 19:53:02 +01:00
Folkert
f25afe4629
skip registering of debug symbols in hot loop 2022-03-22 18:51:56 +01:00
Folkert
7b86a4b29e
optimize variable substitution in instantiate_rigids 2022-03-21 23:57:40 +01:00
Folkert
7029717cd0
fix missing import 2022-03-21 23:46:25 +01:00
Folkert
725eb217d8
more vecs, less sets 2022-03-21 23:20:57 +01:00
Folkert
14b53c0ccf
simplify local_successors 2022-03-21 23:16:07 +01:00
Folkert
cee1a787c9
and remove everything because it has no effect 2022-03-21 23:07:27 +01:00
Folkert de Vries
5e9e7f3ad5
Merge pull request #2760 from rtfeldman/wasm-reset-reuse
Wasm reset & reuse
2022-03-21 23:02:28 +01:00
Folkert
1b1a7b0385
more cleaned up 2022-03-21 22:54:24 +01:00
Folkert
a170f461e0
cleanup 2022-03-21 22:44:14 +01:00
Folkert
cc9873eb6d
exploration 2022-03-21 22:41:32 +01:00
Folkert
ba5244693a
properly serialize tag names 2022-03-21 19:45:21 +01:00
Brendan Hansknecht
42f49c1d79 also add test for overshifting to make sure we don't get bits from higher up in the type 2022-03-20 22:09:11 -07:00
Brendan Hansknecht
20ed4cbacb cleanup test type sizes and add more cases for i8 2022-03-20 22:01:13 -07:00
Jan Van Bruggen
46fc305d56 Fix Num.shiftRight* tests 2022-03-20 21:39:39 -06:00
Jan Van Bruggen
9fb3549c24 Enable Num.shiftRight* tests 2022-03-20 21:39:39 -06:00
Jan Van Bruggen
7d95d2b576 Fix shift filling by flipping inkwell sign_extend flags
See https://thedan64.github.io/inkwell/inkwell/builder/struct.Builder.html#method.build_right_shift

Before:
```
» Num.shiftRightBy 1 -8

9223372036854775804 : Int *

» Num.shiftRightZfBy 1 -8

-4 : Int *
```

After:
```
» Num.shiftRightBy 1 -8

-4 : Int *

» Num.shiftRightZfBy 1 -8

9223372036854775804 : Int *
```
2022-03-20 21:39:39 -06:00