Commit Graph

983 Commits

Author SHA1 Message Date
Richard Feldman
ab1be6e394 Update examples 2020-11-23 00:08:49 -05:00
Folkert
52faaea73f add balance example 2020-11-19 21:22:22 +01:00
Folkert
70cba33fe4 fix bug in decision_tree 2020-11-13 01:39:39 +01:00
Folkert
a431af660d give better debug info for unresolved type variables 2020-11-12 22:28:58 +01:00
Folkert
b520a6ca2b add fromList and toList 2020-11-12 20:26:12 +01:00
Folkert
eaf94f2cfc uncomment more of rbtree 2020-11-12 00:45:47 +01:00
Folkert
cf80e2852f add test for transitive alias import 2020-11-11 01:20:30 +01:00
Folkert
acbb4c29b8 fully qualify symbols (with the module name) in generated IR 2020-11-10 20:15:59 +01:00
Folkert
3aa6455795 fix problem with recursive definition constraint gen 2020-11-10 19:40:35 +01:00
Folkert
be5c748b7f revert some debug things 2020-11-10 14:12:01 +01:00
Folkert
3f658c4b98 Merge remote-tracking branch 'origin/trunk' into red-black-tree 2020-11-10 14:09:08 +01:00
Folkert
c8e2edae01 add stuff to ConsList 2020-11-10 14:07:53 +01:00
Folkert
0d51309eb9 fully qualify exposed symbols 2020-11-10 14:06:48 +01:00
Folkert
04cdc2a276 keep track of pending phases, so we don't repeat work 2020-11-10 12:57:06 +01:00
Folkert
e9ee9704f1 fix all parse errors in RBTree 2020-11-10 00:16:38 +01:00
Folkert
4e192af1b9 add RBTree.roc 2020-11-09 23:43:32 +01:00
Folkert
492f0dcc84 add Effect.always and Effect.map 2020-11-09 19:14:26 +01:00
Folkert
0d5aaf2aaa make getLine : Effect {} work 2020-11-08 23:36:08 +01:00
Folkert
1bce119b0a allow returning of funtions
e.g.

foo = Num.add
2020-11-08 15:49:24 +01:00
Folkert
c20b40a7d2 fix zero-sized closures 2020-11-08 03:08:13 +01:00
Folkert
3d092cb9b7 in theory allow non-function effects values
this does not work due to limitations with functions in tag unions
2020-11-08 03:07:59 +01:00
Folkert
2a872f180a some foundations for zero-sized values in closures 2020-11-08 01:55:06 +01:00
Folkert
2abdbaae7d improve effect example with getLine 2020-11-07 23:50:32 +01:00
Folkert
cb1895a989 add more Pkg-Config.roc files 2020-11-07 23:10:38 +01:00
Folkert
c08972cc55 add Pkg-Config.roc to the effect example 2020-11-07 22:46:27 +01:00
Folkert
40477eee82 make quicksort use a Pkg-Config.roc file 2020-11-07 22:44:06 +01:00
Folkert
bfcc74f97e move Pkg-Config.roc 2020-11-07 22:21:05 +01:00
Folkert
7c570475d8 add load_pkg_config function 2020-11-07 22:18:22 +01:00
Folkert
809f815901 change import syntax 2020-11-07 21:03:51 +01:00
Richard Feldman
61edcc7d03 Have ascii_char take a u8 2020-11-07 12:13:46 -05:00
Richard Feldman
7ba95a0bd0 Parse user-specified Effect name 2020-11-07 12:05:45 -05:00
Richard Feldman
c8b28b96fa Parse a : before each effects entry 2020-11-07 11:42:55 -05:00
Folkert
cb1dff1baf cleanup 2020-11-07 00:09:45 +01:00
Folkert
a6e39e66f1 generate signature for foreign symbols 2020-11-06 23:46:31 +01:00
Folkert
4b8392696e make effect name flexible 2020-11-06 23:15:27 +01:00
Folkert
7a8e9fe343 special hash and dedup for SolvedType 2020-11-06 23:12:47 +01:00
Folkert
7faab5d857 remove debug prints 2020-11-06 21:51:32 +01:00
Folkert
7e6724262d make after work 2020-11-06 21:48:54 +01:00
Folkert
f3ed367d97 use exposed sizes 2020-11-06 13:51:37 +01:00
Folkert
70d89478be use as Fx to expose closure caller 2020-11-06 02:08:25 +01:00
Folkert
3eb6c33ad8 ITS ALIVE!!! 2020-11-06 01:50:49 +01:00
Folkert
6e9e2f90a0 so close, so close 2020-11-06 00:16:42 +01:00
Folkert
cec0f08bef make a valid basic platform header 2020-11-05 15:41:53 +01:00
Folkert
d2a7c0e8ab add effects example 2020-11-05 15:35:15 +01:00
Folkert
42e9ab3998 Merge remote-tracking branch 'origin/trunk' into call-closures-from-host 2020-11-05 14:01:02 +01:00
Folkert
3fe0140c7e clip clip clip 2020-11-05 00:59:26 +01:00
Folkert
0289fe37a5 make it actually work 2020-11-05 00:02:49 +01:00
Folkert
cb28e533b8 so close 2020-11-04 23:07:02 +01:00
Folkert
4c5a5dc6a2 thread things through 2020-11-04 21:03:43 +01:00
Richard Feldman
9d3bdddca3 Add roc_app.o to .gitignore 2020-11-03 21:58:03 -05:00
Folkert
06eff10fba update hello-world 2020-11-02 01:42:04 +01:00
Folkert
6f94f7d63b update shared-quicksort 2020-11-02 01:18:49 +01:00
Folkert
a53254de40 update quicksort 2020-11-02 01:14:04 +01:00
Folkert
ebba7e0c6a cleanup 2020-11-02 01:09:34 +01:00
Folkert
5897a07962 use RocCallResult and pass-by-reference in all examples 2020-11-01 15:00:11 +01:00
Folkert
89e9549d85 use alloc/dealloc 2020-11-01 00:25:19 +01:00
Folkert
78c0a9f17d add RocCallResult wrapper 2020-11-01 00:02:01 +01:00
Folkert
95a69f5a9b add closure example that is passed to the host 2020-10-31 22:44:19 +01:00
Folkert
58467d6515 get tests back up an running 2020-10-30 16:58:53 +01:00
Brendan Hansknecht
46148f0114 Minimize work done in valgrind tests to fix ci 2020-10-22 17:11:38 -07:00
Richard Feldman
b488e5773f Add app.dSYM to .gitignore
valgrind on macOS creates this directory automatically
2020-10-18 08:46:50 -04:00
Brendan Hansknecht
270dda8d5d Add multi-module example to valgrind
This is now technically mergable, but it does not run unoptimized
quicksort.
2020-10-12 19:54:53 -07:00
Brendan Hansknecht
d4d7fc7bc6 Merge branch 'trunk' into valgrind 2020-10-12 19:44:25 -07:00
Richard Feldman
b42b20ad69
Merge branch 'trunk' into rocstr 2020-10-12 20:39:40 -04:00
Brendan Hansknecht
77b26c3193 Add RocStr and convert HelloWord example to use it 2020-10-12 16:51:09 -07:00
Folkert
edc0717a7d specialize rigids 2020-10-12 23:58:39 +02:00
Brendan Hansknecht
9cc9b3a989 Merge branch 'trunk' into valgrind 2020-10-12 14:43:53 -07:00
Folkert
a067d73c14 add multi module cli test 2020-10-12 22:24:05 +02:00
Folkert
2df86b6438 fix uniqueness bug
builtin defs were included twice, which threw off uniqueness inference
2020-10-12 22:16:10 +02:00
Brendan Hansknecht
97c23557c7 Fix RocList memory leak
Also, reduces the number of elements in the quicksort example to make it
run better with valgrind.
2020-10-11 19:00:35 -07:00
Brendan Hansknecht
1f131970bc Merge branch 'trunk' into valgrind 2020-10-11 18:13:35 -07:00
Brendan Hansknecht
6e130d51bc Make link paths generic and add libgcc_s 2020-10-11 14:31:42 -07:00
Brendan Hansknecht
f73a6c0da4 Merge branch 'trunk' into valgrind 2020-10-07 15:35:58 -07:00
Richard Feldman
c49912be49 Have quicksort example use cargo host and RocList 2020-10-05 22:52:50 -04:00
Richard Feldman
7e1166b3a2 Rebuild hosts automatically (for now) 2020-10-04 16:35:32 -04:00
Richard Feldman
856c01f706 Update hello-world platform 2020-10-04 16:35:26 -04:00
Richard Feldman
db7cc54411 Use the same platform for quicksort and shared-quicksort 2020-10-04 16:35:25 -04:00
Richard Feldman
e60796e32b Update BUILDING_FROM_SOURCE and quicksort readme 2020-10-04 16:35:23 -04:00
Richard Feldman
ad16aa61e9 Change linking back 2020-10-04 16:35:21 -04:00
Richard Feldman
81069fe01e Add host.o to .gitignore 2020-10-04 16:35:20 -04:00
Richard Feldman
d776798e32 Attempt to statically link hosts 2020-10-04 16:35:17 -04:00
Richard Feldman
f499c7b056 Simplify host building 2020-10-04 16:35:14 -04:00
Richard Feldman
8352591258 Copy quicksort's platform into shared-quicksort 2020-10-04 16:35:00 -04:00
Richard Feldman
9f0b3bba9f Update hello-world host 2020-10-04 16:34:56 -04:00
Richard Feldman
ff8bb64bae Update quicksort macOS host 2020-10-04 16:34:53 -04:00
Richard Feldman
77b32147ad Add host.rs in hello-world example 2020-10-04 16:34:40 -04:00
Richard Feldman
6b38dc5f77 return 0 from host.c 2020-10-04 16:34:38 -04:00
Richard Feldman
bec01e74e5 Add a TODO for fixing hello-world host.c 2020-10-04 16:34:36 -04:00
Richard Feldman
a108544fa8 Move host.c into platform/host/src 2020-10-04 16:34:08 -04:00
Richard Feldman
7a01d4eb7f Update platform README 2020-10-04 16:34:04 -04:00
Richard Feldman
9741784604 Link precompiled hosts on Linux 2020-10-04 16:33:58 -04:00
Richard Feldman
740a2f0f77 wip 2020-10-04 15:58:13 -04:00
Richard Feldman
fa288a1404 Use explicit ld invocation instead of ar 2020-10-04 15:58:13 -04:00
Brendan Hansknecht
23c2b39653 Merge branch 'trunk' into valgrind 2020-09-30 18:40:26 -07:00
Brendan Hansknecht
a2069a88db Merge branch 'trunk' into str-refcount 2020-09-30 15:12:17 -07:00
Anton-4
01b7172085 Added troubleshooting for examples 2020-09-30 13:47:54 +02:00
Brendan Hansknecht
fbce5145c1 Run cli tests with valgrind 2020-09-29 21:21:07 -07:00
Brendan Hansknecht
f532a758d9 Add refcount decrementing to big strings 2020-09-28 20:32:32 -07:00
Chad Stearns
a318253d48 small str implementation in string literal, and bringing in remote trunk 2020-09-09 21:53:38 -04:00
Folkert
fa5e5ab201 back to a working version 2020-08-19 23:42:45 +02:00
Folkert
294273283b make shared quicksort work 2020-08-15 00:14:20 +02:00
Folkert
c3b242bad1 add shared quicksort example 2020-08-14 15:44:17 +02:00
Folkert
380e34d296 Merge remote-tracking branch 'origin/trunk' into tail-call-elimination 2020-08-12 15:46:50 +02:00
Richard Feldman
edafbfe525 Replace unsorted.csv with algorithm 2020-08-12 08:33:36 -04:00
Folkert
7603225fca generate return earlier, causing more TCE 2020-08-11 22:30:34 +02:00
Folkert
84a8b69437 generate IR that uses uniqueness 2020-08-11 14:47:14 +02:00
Richard Feldman
456b599baa Fix hello-world example 2020-08-10 21:25:47 -04:00
Richard Feldman
2592cf5768 Rename main to quicksort 2020-08-10 21:25:47 -04:00
Richard Feldman
35e132e6d7 Fix quicksort benchmark 2020-08-10 21:25:47 -04:00
Richard Feldman
dccb3a9691 Have Quicksort example expose a function 2020-08-10 21:25:47 -04:00
Folkert
65db338435 add test for quicksort example 2020-08-10 16:10:07 +02:00
Richard Feldman
19075b6b10 Fix quicksort host name 2020-08-09 21:27:44 -04:00
Richard Feldman
d9bf295d42 Update hello-world README 2020-07-22 19:34:57 -04:00
Richard Feldman
bcff8b4a57 Update examples/quicksort 2020-05-21 20:52:05 -04:00
Richard Feldman
5c31369072 Code gen thunks for top-level module decls 2020-05-01 19:30:55 -04:00
Richard Feldman
8a4cde3961 Have quicksort example use defs 2020-04-29 06:35:25 -04:00
Richard Feldman
d4a45ed489 Add CLI subcommands roc run and roc build 2020-04-18 14:32:50 -04:00
Richard Feldman
62723824dd Drop obsolete examples/hello-world/HelloStr.roc 2020-04-16 22:21:19 -04:00
Richard Feldman
f5c18ff4d4 Move examples' .gitignore files up a level 2020-04-16 21:19:38 -04:00
Richard Feldman
b19386c1f6 Have CLI use the given file's directory as src_dir 2020-04-16 19:26:25 -04:00
Richard Feldman
1517581ced Load main in the CLI and use it for gen 2020-04-15 07:06:11 -04:00
Richard Feldman
61f836e964 Switch examples to use app modules 2020-04-15 07:06:11 -04:00
Richard Feldman
950ca4436b Replace build.sh with cargo run 2020-04-06 23:32:47 -04:00
Richard Feldman
a2d538f347 Update build.sh to no longer need gcc 2020-04-06 20:56:42 -04:00
Richard Feldman
2fddff624e .gitignore the qs binary 2020-04-05 09:36:11 -04:00
Richard Feldman
b48f18ad7d Fail fast in build.sh 2020-04-05 09:35:57 -04:00
Richard Feldman
b61a4466de Make qs.roc actually run quicksort 2020-04-05 09:31:52 -04:00
Richard Feldman
a4a53c8e83 Add quicksort example 2020-04-05 09:28:49 -04:00
Richard Feldman
cc555dd880 Update hello-world README 2020-03-31 21:15:39 -04:00
Richard Feldman
083777cbcd s/helloworld/hello-world/g 2020-03-30 22:25:06 -04:00
Richard Feldman
fc2c07163f Recommend /usr/local/lib/ over /usr/lib 2020-03-30 21:59:12 -04:00
Richard Feldman
5f817d8019 Add a basic CLI 2020-03-30 21:27:37 -04:00
Richard Feldman
70936841c8 Add Hello World example 2020-03-30 21:27:02 -04:00