aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Keep -vet happygingerBill2021-05-191-1/+1
|
* Add `soa_zip` and `soa_unzip` to demo.odingingerBill2021-05-191-2/+24
|
* Remove incl/excl usage from demogingerBill2021-05-132-10/+10
|
* Add clang-11 for Linux; blank out threading_example on darwingingerBill2021-04-241-0/+5
|
* Deprecate `inline for` in favour of `#unroll for`gingerBill2021-02-232-16/+16
|
* Remove `"pure"` and `"pure_none"` calling conventionsgingerBill2021-02-232-34/+0
|
* Merge branch 'master' into parser-experimentsgingerBill2020-12-061-3/+3
|\
| * Fix some typosHéctor M. Monacci2020-11-031-3/+3
| | | | | | Fix some typos
* | Add experimental `-insert-semicolon` functionality to tokenizer and parsergingerBill2020-11-011-0/+2024
|/
* Remove usage of `do` in core librarygingerBill2020-09-231-17/+28
|
* update essence platformnakst2020-09-151-2/+2
|
* Add `thread.run*` shorthand procedures; `Thread.init_context` use new ↵gingerBill2020-06-221-1/+0
| | | | `Maybe` concept
* Remove old llvm-demogingerBill2020-06-211-7/+0
|
* Revert demo.odingingerBill2020-06-161-6/+2006
|
* Cleanup `package encoding/json`gingerBill2020-06-161-2006/+6
|
* Revert demo.odingingerBill2020-06-161-21/+1
|
* Add `hash.djb2` `hash.jenkins`; Add `container.Bloom_Filter`; Add ↵gingerBill2020-06-161-1/+21
| | | | `container.Ring`
* Revert demo.odingingerBill2020-05-231-15/+2
|
* Add `sort.binary_search` (uses interpolation sort for ordered numeric types)gingerBill2020-05-231-1/+14
|
* Add `"pure"` procedure typesgingerBill2020-05-231-0/+17
|
* Revert demo.odingingerBill2020-05-221-23/+1980
|
* Selector Call Expressions: `x->y(123) == x.y(x, 123)`gingerBill2020-05-221-1980/+23
|
* Relative pointer and relative slicesgingerBill2020-05-151-1/+21
|
* Enforce explicit context definition for procedure callsgingerBill2020-05-141-0/+12
|
* Revert demo.odingingerBill2020-03-191-3/+0
|
* Change demo.odin to defaultgingerBill2020-03-191-65/+29
|
* Remove `context.std*` parameters; Fix unary boolean notgingerBill2020-03-191-29/+68
|
* Fix `context` system; add more to -show-more-timings for LLVM API; Add ↵gingerBill2020-03-081-1/+1
| | | | `ODIN_USE_LLVM_API` global constant
* Fix nested type declarations name generation, to be internally consistentgingerBill2020-03-081-1/+1
|
* Fix logical binary expressionsgingerBill2020-03-081-4/+4
|
* Basic functionality, except for `map` and correct nested typename manglinggingerBill2020-03-071-7/+8
|
* Fill in more of the llvm_backend code generationgingerBill2020-03-051-49/+1
|
* General functionality without `context`gingerBill2020-03-041-1/+3
|
* Global variable initialization supportgingerBill2020-02-231-19/+10
|
* Basic work on obj generationgingerBill2020-02-231-37/+43
|
* Anonymous procedure literal supportgingerBill2020-02-081-4/+21
|
* Port code for lb_build_call_exprgingerBill2020-02-021-31/+25
|
* Implement constant value generation from ExactValuegingerBill2020-02-021-17/+32
|
* Correctly generate LLVM types from Odin types.gingerBill2020-02-021-2/+21
|
* Begin LLVM C API integrationgingerBill2020-02-011-0/+11
|
* Add `union #maybe`gingerBill2020-02-011-0/+23
|
* Allow not_in as keyword over notin, but still allow notin to workgingerBill2020-01-162-2/+2
|
* Add `thread.Pool` with example in demo.odin; Update linalg to support ↵gingerBill2020-01-021-24/+52
| | | | handness changes for projection matrices
* Fix typos in demo.odingingerBill2019-12-311-2/+2
|
* Add #partial tag for enumerated arrays to prevent common errors using ↵gingerBill2019-12-271-3/+13
| | | | non-contiguous enumerations
* Add constant literal expressionsgingerBill2019-12-271-0/+55
|
* Implement `#complete switch` by default, replace with `#partial switch` #511gingerBill2019-12-221-5/+15
|
* Add assert into scratch_allocator_proc to prevent initialization cycles #504gingerBill2019-12-151-1/+0
|
* Fix nil comparisons for soa slices and dynamic arraysgingerBill2019-12-011-3/+1
|
* Implement core:thread and core:sync on Unix using pthreadsTetralux2019-12-011-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also do some cleanup and refactoring of the thread, sync and time APIs. - remove 'semaphore_release' because 'post' and 'wait' is easier to understand - change 'semaphore_wait' to '*_wait_for' to match Condition - pthreads can be given a stack, but doing so requires the user to set up the guard pages manually. BE WARNED. The alignment requirements of the stack are also platform-dependant; it may need to be page size aligned on some systems. Unclear which systems, however. See 'os.get_page_size', and 'mem.make_aligned'. HOWEVER: I was unable to get custom stacks with guard pages working reliably, so while you can do it, the API does not support it. - add 'os.get_page_size', 'mem.make_aligned', and 'mem.new_aligned'. - removed thread return values because windows and linux are not consistent; windows returns 'i32' and pthreads return 'void*'; besides which, if you really wanted to communicate how the thread exited, you probably wouldn't do it with the thread's exit code. - fixed 'thread.is_done' on Windows; it didn't report true immediately after calling 'thread.join'. - moved time related stuff out of 'core:os' to 'core:time'. - add 'mem.align_backward' - fixed default allocator alignment The heap on Windows, and calloc on Linux, both have no facility to request alignment. It's a bit of hack, but the heap_allocator now overallocates; `size + alignment` bytes, and aligns things to at least 2. It does both of these things to ensure that there is at least two bytes before the payload, which it uses to store how much padding it needed to insert in order to fulfil the alignment requested. - make conditions more sane by matching the Windows behaviour. The fact that they were signalled now lingers until a thread tries to wait, causing them to just pass by uninterrupted, without sleeping or locking the underlying mutex, as it would otherwise need to do. This means that a thread no longer has to be waiting in order to be signalled, which avoids timing bugs that causes deadlocks that are hard to debug and fix. See the comment on the `sync.Condition.flag` field. - add thread priority: `thread.create(worker_proc, .High)`