Tyler Erickson
f6f2ab2f25
Fixed bad merge
2020-03-05 19:29:32 -08:00
Tyler Erickson
9d163fede8
Merge branch 'master' of https://github.com/odin-lang/Odin into linux_stat_fix
2020-03-05 16:52:34 -08:00
Tyler Erickson
bb026c99a9
Merged with master
2020-03-05 16:49:53 -08:00
gingerBill
e92fdb4a99
x if cond else y and x when cond else y expressions
2020-03-05 20:34:30 +00:00
Tyler Erickson
2817bab494
Fix os_linux stat
2020-03-05 12:13:22 -08:00
gingerBill
2fe0eaf2ad
Fix formatting
2020-03-04 13:10:39 +00:00
gingerBill
408fa027af
Merge pull request #576 from Tetralux/patch-5
...
Fix encoding/base64 encoding null bytes incorrectly
2020-02-29 09:53:55 +00:00
gingerBill
5e903ed2ff
Merge pull request #537 from Tetralux/fix-heap-alloc
...
Fix heap allocator alignment on all platforms
2020-02-29 09:49:24 +00:00
Tetralux
92e1c71dd6
Fix encoding/base64 encoding null bytes incorrectly
...
Fixes #574 .
Thanks @jroatch!
2020-02-28 14:52:16 +00:00
gingerBill
8f42958ba3
Fix __dynamic_array_reserve
2020-02-26 12:58:22 +00:00
gingerBill
4d7270cec9
Fix __dynamic_array_reserve to allow for zero sized elements
2020-02-26 12:55:56 +00:00
gingerBill
10fe5e97b3
Merge pull request #541 from Tetralux/getcwd
...
Add os.get_current_directory / os.set_current_directory
2020-02-23 10:39:21 +00:00
Tetralux
1f0c1943da
Fix #552 .
...
- Fix comparisons involving one or more empty string.
- Fix comparisons against two strings of different lengths.
2020-02-12 11:25:12 +00:00
Mikkel Hjortshøj
49b42f585c
Merge pull request #560 from ThisDrunkDane/master
...
Enhance logger interface with 'f' and not 'f' variants, also move level detection out
2020-02-10 11:55:49 +01:00
Mikkel Hjortshoej
9d5692ae68
Enhance logger interface with 'f' and not 'f' variants, also move level detection out
2020-02-10 01:26:04 +01:00
vassvik
6d67567453
Fix linalg.matrix_mul_vector.
...
Incorrect index.
2020-02-09 18:47:02 +01:00
vassvik
0c09cb9c12
Fix math.acos and math.asin, add f64 overloads.
2020-02-06 13:35:55 +01:00
Tyler Erickson
391e2a5120
Removed 'where' clause from merge_sort_proc
2020-02-03 19:20:12 -08:00
gingerBill
0f399a7294
Add union #maybe
2020-02-01 11:10:28 +00:00
gingerBill
7a4ec48389
Fix missing allocator
2020-01-26 21:10:56 +00:00
gingerBill
a101e0d7ba
Add utf8.string_to_runes utf8.runes_to_string
2020-01-26 20:55:46 +00:00
gingerBill
64f5c9ab58
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-01-26 20:44:32 +00:00
gingerBill
0ee5a07d01
Add package unicode letter.odin
2020-01-26 20:44:27 +00:00
Tetralux
abe8789890
Fix make(map[K]V, 0) by ensuring reserve always sets an allocator
...
Currently, `make(map[K]V, 0)` asserts, because trying `reserve` zero items does not set the allocator; it early-outs.
`__dynamic_map_reserve` assumed that `__dynamic_array_reserve` would always set the allocator - even if given a desired capacity of `0`.
Rather than making `__slice_resize` just _also_ set the default allocator if there isn't one, this makes `__dynamic_array_reserve` always set the allocator, even if it is about to early out.
This is because users are lead to understand that `append` will set the allocator if one is not already set - `reserve` should work the same way.
2020-01-26 01:03:14 +00:00
Tetralux
a4b60b78c8
Fix heap allocator alignment on all platforms
2020-01-22 12:03:16 +00:00
Tetralux
66d1656367
Add os.get_current_directory / os.set_current_directory
2020-01-20 14:28:31 +00:00
gingerBill
b542ef273d
Begin work on -target:windows_386
2020-01-18 14:44:53 +00:00
gingerBill
7f89f6b582
Add intrinsics.type_is_specialization_of
2020-01-17 23:30:38 +00:00
gingerBill
159150c6d9
Allow not_in as keyword over notin, but still allow notin to work
2020-01-16 10:00:14 +00:00
gingerBill
20b410f149
Fix #540
2020-01-15 11:56:42 +00:00
gingerBill
e1ccba3de5
Improve runtime/default_allocators.odin
2020-01-11 20:12:50 +00:00
Mikkel Hjortshoej
0e52c37865
Don't change delimiter as location has changed to be unified no matter the platform
2020-01-08 21:29:46 +01:00
gingerBill
5c7d6fcfd0
Improve minimum dependency for complex numbers and quaternion numbers.
2020-01-04 18:04:12 +00:00
Tetralux
b32ef9e47b
Fix make and reserve
...
- Set the allocator, even if memory allocation fails.
Right now it doesn't, which means that if allocation fails, it'll use
the context allocator instead. This memory will be leaked if the user
doesn't understand that this happened.
- Only set len and cap of the array returned from make iif the memory allocation
succeeded.
This means that reserve will return false if you do this:
```
a := make([dynamic]int, failing_allocator);
if !reserve(&a, 5) do return; // or whatever indicates failure
```
2020-01-03 10:40:45 +00:00
gingerBill
b8324b0776
Fix behaviour for make to return nil when alloc returns nil
2020-01-03 10:17:30 +00:00
KTRosenberg
673879d1d2
added note about pthread_yield
2020-01-02 16:44:30 -05:00
KTRosenberg
d017b5de9d
replaced pthread_yield with ssched_yield, fixed semaphore post:q
2020-01-02 16:25:48 -05:00
gingerBill
93ead4bcb3
Fix typo
2020-01-02 15:41:32 +00:00
gingerBill
bbe9b4dee0
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-01-02 15:07:58 +00:00
gingerBill
3bd00fd6b7
Add thread.Pool with example in demo.odin; Update linalg to support handness changes for projection matrices
2020-01-02 15:07:12 +00:00
Tetralux
f6f10d10e8
Fix append_string
2020-01-02 11:38:25 +00:00
gingerBill
16a7c55334
Add x y z w fields to quaternion types; Improve linalg quaternion mathematics
2020-01-01 16:14:00 +00:00
gingerBill
978d7fcb99
Fix typeid information for enumerated arrays
2019-12-31 16:54:50 +00:00
gingerBill
b267a5964d
Fix memset for unix
2019-12-31 14:28:01 +00:00
gingerBill
4591353724
Use naive definition of memset for !windows
2019-12-31 14:17:21 +00:00
gingerBill
13107628f8
Make mem.set use llvm.memset.p0i8.iXX
2019-12-31 14:09:51 +00:00
gingerBill
c407687a4c
Fix new changes to runtime for unix
2019-12-31 14:04:19 +00:00
gingerBill
5a50ab7a99
Add new runtime files.
2019-12-31 13:54:42 +00:00
gingerBill
4578544007
Merge pull request #526 from sci4me/unix-dynlib
...
Implement dynlib core library for unix/darwin
2019-12-31 13:22:48 +00:00
gingerBill
42678848b2
Rename math/bits package name to math_bits
2019-12-31 12:27:31 +00:00