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
Folkert
0abc1cce15
make RocStr clone
2021-01-03 03:04:28 +01:00
Folkert
322fecb7fb
clippy
2020-12-14 21:50:05 +01:00
Folkert
6e2236649f
add as_str to RocStr
2020-12-14 21:31:37 +01:00
Folkert
4db48d9f13
more clippy things
2020-11-19 22:20:00 +01:00
Folkert
4dc58b8107
free pointers
2020-11-17 02:21:55 +01:00
Folkert
0b19c594c5
improve compare/Order
2020-11-09 21:21:14 +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
Richard Feldman
80eb89739d
Improve alloca helper API and docs
2020-11-01 23:24:53 -05:00
Richard Feldman
251e379271
Add alloca helper to roc_std
2020-11-01 23:24:53 -05:00
Folkert
5897a07962
use RocCallResult and pass-by-reference in all examples
2020-11-01 15:00:11 +01:00
Pit Capitain
aa56e4d0e2
Implement From<&str> for RocStr
...
Makes it easier to use in Tests...
2020-10-29 16:26:16 +01:00
Brendan Hansknecht
af4c0348c6
Assign length when creating small str
2020-10-12 19:19:03 -07:00
Brendan Hansknecht
4e0f591f8e
Use full RocStr capacity when making small str
...
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2020-10-12 21:45:39 -04:00
Brendan Hansknecht
641a183c26
Misc RocStr fixes
...
Add get_small_str_ptr_mut.
Simply debug message.
Just use slices in PartialEq for simplicity.
2020-10-12 16:59:55 -07:00
Brendan Hansknecht
af02e8e359
Fix from_slice_with_capacity to retrun small str
2020-10-12 16:54:33 -07:00
Brendan Hansknecht
77b26c3193
Add RocStr and convert HelloWord example to use it
2020-10-12 16:51:09 -07: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
Richard Feldman
95734c10c4
Move memory location of doubleword storage values
2020-09-30 19:36:25 -04:00
Folkert
ed3e1ad356
fix unreported clippy warnings
2020-09-30 22:50:38 +02:00
Folkert
7ea268a5d1
remove unused import
2020-09-30 22:29:16 +02:00
Folkert
a9329b250d
final touchups
2020-09-30 22:20:58 +02:00
Folkert
0a2e7be885
clean up unused test module
2020-09-30 22:18:25 +02:00
Folkert
d46fb7bfb6
fix bool tests
2020-09-30 21:49:33 +02:00
Folkert
f3b317cab6
free RocList elements when refcount=1
2020-09-30 16:05:44 +02:00
Folkert
3d46d19585
round up malloc, but only sometimes
2020-09-30 15:57:53 +02:00
Folkert
95dffad073
WIP
2020-09-30 15:01:24 +02:00