Filip Tibell
d5ec279b81
Migrate to main lune repository
2024-06-05 16:47:02 +02:00
Filip Tibell
3ca27fa51c
Version 0.0.2
2024-03-11 18:40:05 +01:00
Filip Tibell
139431f94e
Initial public version
2024-02-16 20:14:44 +01:00
Filip Tibell
0207da50ae
Use stable mlua version
2024-02-16 13:24:19 +01:00
Filip Tibell
71026f9692
Fix missed items in thread queue
2024-02-13 11:10:44 +01:00
Filip Tibell
7c59d0c722
Documentation and tracing improvements after rename
2024-02-11 10:53:17 +01:00
Filip Tibell
8e8647e061
Last rename, I swear
2024-02-11 10:47:39 +01:00
Filip Tibell
2b75b461fe
Clarify compatibility in readme
2024-02-11 10:41:27 +01:00
Filip Tibell
194cf40f21
Separate the runtime and spawn traits since runtime should rarely be used
2024-02-11 10:17:33 +01:00
Filip Tibell
ecbb9dcef8
Add api to spawn blocking tasks from lua
2024-02-11 10:14:01 +01:00
Filip Tibell
c14f84262f
Fix readme example
2024-02-11 09:25:24 +01:00
Filip Tibell
317936770b
Better imports in tracy example
2024-02-11 09:24:15 +01:00
Filip Tibell
82e67b4881
Improve instrumentation and spans, add tracy example
2024-02-10 15:24:42 +01:00
Filip Tibell
834798593d
Tracing improvements
2024-02-10 13:57:25 +01:00
Filip Tibell
63ecbf7b61
Improve panic safety and queue performance
2024-02-06 15:19:54 +01:00
Filip Tibell
5eddd99422
Use latest mlua to avoid clone
2024-02-06 15:02:40 +01:00
Filip Tibell
c2cf9da5cd
Fix unwrap on cancelled threads
2024-02-01 14:57:31 +01:00
Filip Tibell
1aba727ce6
Add missing env function to wrap impl
2024-02-01 14:43:52 +01:00
Filip Tibell
c653b73f75
Change var name
2024-02-01 14:40:41 +01:00
Filip Tibell
89a25e42ed
Fix oops
2024-02-01 14:40:20 +01:00
Filip Tibell
b4bc15d4ce
Add runtime-compatible versions of coroutine resume and wrap to functions struct
2024-02-01 14:35:32 +01:00
Filip Tibell
743d1075bf
Add exit lua function to functions struct
2024-02-01 14:07:03 +01:00
Filip Tibell
4117cfba75
Implement exit codes for runtime
2024-02-01 12:46:33 +01:00
Filip Tibell
a5ae251fa3
Add missing track method to trait
2024-02-01 11:18:30 +01:00
Filip Tibell
93a56e28c5
Add back ability to async wait for threads to complete
2024-02-01 11:11:17 +01:00
Filip Tibell
ecbd5149f8
Use faster hash map for thread results
2024-01-31 20:30:18 +01:00
Filip Tibell
a5d411e95c
Inline some stuff
2024-01-31 20:24:14 +01:00
Filip Tibell
013537b27b
Get rid of thread handles in favor of simple id-based map
2024-01-31 20:17:15 +01:00
Filip Tibell
5820858147
Implement thread id struct and some more utils
2024-01-31 19:40:11 +01:00
Filip Tibell
f4ecf7e018
Make it easier to construct functions and spawn local futures on lua runtime
2024-01-28 20:14:10 +01:00
Filip Tibell
81308b65e3
Add missing clone derive
2024-01-28 18:56:33 +01:00
Filip Tibell
7b2e15c676
Organize lua functions created by runtime a bit better
2024-01-28 18:05:54 +01:00
Filip Tibell
b03a0101e2
Expand handle struct and runtime ext trait to be able to use from inside lua
2024-01-28 14:51:40 +01:00
Filip Tibell
da2846670b
Implement runtime handle struct for retrieving values back from spawned threads
2024-01-27 23:35:10 +01:00
Filip Tibell
f02c370ad7
Fix doc test
2024-01-27 19:26:32 +01:00
Filip Tibell
99412056da
Integrate tracing into runtime
2024-01-27 18:56:09 +01:00
Filip Tibell
fa4e6730ea
Thank you clippy
2024-01-27 15:46:03 +01:00
Filip Tibell
577fa2e272
lua -> Lua
2024-01-27 15:23:59 +01:00
Filip Tibell
053b85e0c1
YARR (Yet Another Runtime Refactor)
...
* Minimize dependencies, no longer depending on smol directly, only async-excecutor and its utility crates
* Error callback is no longer thread safe, but faster
* Improved documentation and panic messages for internal workings of runtime
* Depend on mlua exact version needed and serialize feature
* Change crate name
2024-01-27 15:17:09 +01:00
Filip Tibell
3d6bf6e80c
Change example batch sizing for better benchmarking
2024-01-26 10:00:40 +01:00
Filip Tibell
bc6909acd4
Use event primitive instead of smol channels in thread queue
2024-01-26 09:57:48 +01:00
Filip Tibell
df2747bae3
Use lock-free storage for runtime thread queue
2024-01-26 09:39:21 +01:00
Filip Tibell
5eeef3fec1
Add safety check and resumption batching to runtime
2024-01-26 09:16:39 +01:00
Filip Tibell
fe4563b4f8
Remove lua app data executor ref when done
2024-01-26 09:00:07 +01:00
Filip Tibell
bab29a5cbf
Get rid of poll pending hack, more threads in example file
2024-01-26 08:38:09 +01:00
Filip Tibell
1e09e6238e
Update dependencies
2024-01-26 08:22:15 +01:00
Filip Tibell
b10ec240da
Properly use default trait
2024-01-26 08:21:31 +01:00
Filip Tibell
588fc46807
Refactor runtime and callbacks
...
* Improved ergonomics and flexibility for crate consumers
* Simplified callback mechanism for errors
* Factor out runtime thread queues into proper structs
* Misc performance improvements - approx 20% faster scheduler
2024-01-24 19:50:25 +01:00
Filip Tibell
913f575c74
Use the official way of unit testing in examples
2024-01-23 15:28:35 +01:00
Filip Tibell
ae1535fcc4
Add stylua and other formatters, apply formatting
2024-01-23 15:20:38 +01:00