Commit Graph

77 Commits

Author SHA1 Message Date
Brian Hicks
048d8bf87d remove unused printf import 2021-11-19 08:13:53 -06:00
Brendan Hansknecht
d21c858ccd fix clippy lint 2021-10-29 16:03:49 -07:00
Brendan Hansknecht
5d42fe4448 Fix comparison 2021-10-24 12:05:03 -07:00
Brendan Hansknecht
31f61d81f1 Add assert related to RocList capacity of 0 2021-10-24 12:04:19 -07:00
Brendan Hansknecht
af49d9bdb2 Avoid allocation for empty list 2021-10-24 11:56:53 -07:00
Folkert
e319d1e758 make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
Folkert
e569cab167 fix segfault in RocStr dropping an empty RocStr 2021-08-29 23:05:18 +02:00
Folkert
815a4f76a7 make more tests run under wasm 2021-08-29 15:18:25 +02:00
Richard Feldman
ffeaa1ac08
Merge branch 'trunk' into store-dec-as-str 2021-08-26 21:24:56 -04:00
Folkert
95b2b41468 set the refcount... 2021-08-27 00:02:08 +02:00
Jared Ramirez
4b2a63fb30 Merge branch 'trunk' of https://github.com/rtfeldman/roc into store-dec-as-str 2021-08-26 11:23:17 -07:00
Folkert
dd24786e67 implement into iterator 2021-08-20 20:45:21 +02:00
Folkert
fa49f0368d implement 2021-08-20 20:41:20 +02:00
Jared Ramirez
d69b9173fc Also store f64 for things like pattern comparisons, etc 2021-08-18 17:18:13 -07:00
Richard Feldman
ce8a495096 Remove unnecessary unsafe annotation 2021-08-03 07:28:03 -04:00
Richard Feldman
b0acf88803 Change write_c_str API 2021-08-03 07:28:03 -04:00
Richard Feldman
1c09450103 Use ::default over ::empty for RocStr and RocList 2021-08-03 07:28:03 -04:00
Richard Feldman
91f1589f62 Use u8 alignment when copying 2021-08-02 23:30:45 -04:00
Richard Feldman
82d00beb69 Use Self in more places 2021-08-02 23:30:45 -04:00
Richard Feldman
b94d715bc9 Drop alloca from roc_std 2021-08-02 23:30:45 -04:00
Richard Feldman
fbc7984818 Drop libc dependency from roc_std 2021-08-02 22:29:23 -04:00
Richard Feldman
27d8f7b821 Use ffi::c_void over libc::c_void 2021-08-02 22:08:24 -04:00
Richard Feldman
2c7fd2a54d Drop obsolete comment 2021-08-02 22:04:47 -04:00
Richard Feldman
db6a05a6a4 Use a const function over a non-const one 2021-08-02 22:03:57 -04:00
Folkert
99bab04c1d Merge remote-tracking branch 'origin/trunk' into add-dec-types 2021-07-21 15:18:41 +02:00
Brian Hicks
45887b6d1a add a "hello-rust" example 2021-07-20 09:22:40 -05:00
Jared Ramirez
c261766681 Appease clippy 2021-07-09 09:46:40 -07:00
Jared Ramirez
a35cc321ab Address various bits of feedback 2021-07-09 09:30:45 -07:00
Jared Ramirez
0827123c88 Adding Decimals work!! 2021-06-24 11:15:52 -07:00
Jared Ramirez
4d6e5a1a4f [WIP] Add Dec/Decimal builtin types 2021-06-23 19:30:16 -07:00
Richard Feldman
53ccef0506 nightly clippy
I was on nightly for benchmarks, and these all seem reasonable.
2021-06-18 15:21:11 -04:00
Richard Feldman
6fe1d41c55 make clippy happy 2021-06-18 15:21:11 -04:00
Richard Feldman
aa687d9640 Use .add over .offset for usize pointer offsets 2021-06-18 15:21:11 -04:00
Richard Feldman
6a84902f79 Add RocList::append_slice to roc_std 2021-06-18 15:21:11 -04:00
Richard Feldman
98d0171726 Add RocStr:write_c_str to roc_std 2021-06-18 15:21:11 -04:00
Richard Feldman
3e6e55ffcc Improve roc_std storage pointer usage.
We were trying to represent Refcount as usize,
but Refcount can be isize::MIN which can't be
negated and then cast to usize without overflow.

Also made the Drop implementations for RocList and RocStr
more efficient.
2021-06-18 15:21:03 -04:00
Folkert de Vries
5724f82667
Merge branch 'trunk' into zig-list-set 2021-05-25 09:05:18 +02:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Folkert
91b49ecf98 Merge remote-tracking branch 'origin/roc_alloc' into zig-list-set 2021-05-24 18:25:18 +02:00
Richard Feldman
f9241cfa01 Use roc_alloc etc in roc_std 2021-05-23 23:46:09 -04:00
Folkert
2a0ba43515 rename var 2021-05-23 16:24:53 +02:00
Folkert
53871317d5 RocList should start with refcount one 2021-05-23 00:18:51 +02:00
Richard Feldman
60be120fc1 Rename COPYRIGHT_DETAILS to LEGAL_DETAILS
Turns out GitHub's `Licensee` gem treats any file with the word
"copyright" in it as a potential license, and therefore doesn't
recognize and list Roc's license as UPL-1.0 because it thinks
there might be two licenses or something.

d274e47c71/lib/licensee/project_files/license_file.rb (L26)
2021-04-22 21:52:07 -04:00
Richard Feldman
f34a75f26e Rename COPYRIGHT file to COPYRIGHT_DETAILS
This way, GitHub's license finder doesn't get confused.
(They use the `Licensee` Ruby gem, which looks for files like
LICENSE, which we have, but also COPYRIGHT - and it apparently
gets confused if it sees both.)
2021-04-22 21:41:11 -04:00
Richard Feldman
a11b849d45 Reference the COPYRIGHT file inline 2021-04-21 19:24:45 -04:00
Richard Feldman
0a50b0b488 Change license to UPL-1.0
Closes https://github.com/rtfeldman/roc/issues/1199
2021-04-21 19:18:44 -04:00
Richard Feldman
792a18816a Update authors in Cargo.toml 2021-04-11 08:11:52 -04:00
Richard Feldman
4bb0852bd8 Add RocResult 2021-04-06 22:44:25 -04:00
Richard Feldman
eadb28b95d Replace a bunch of Into impls with Froms 2021-03-26 08:39:01 -04:00
Folkert
6749606450 add tests for RocStr clone 2021-01-03 03:12:49 +01:00