Commit graph

665 commits

Author SHA1 Message Date
Filip Tibell
b149a23f1c
Rename scheduler methods to be consistent with tokio, more obvious 2023-08-21 09:52:38 -05:00
Filip Tibell
8d363f1d75
Make task.wait test a bit more lenient 2023-08-20 21:54:45 -05:00
Filip Tibell
e490b27379
Figure out how to solve background tasks in new scheduler 2023-08-20 21:53:21 -05:00
Filip Tibell
59ed1bdae0
Fix typeof function registry key not being unique 2023-08-20 21:38:36 -05:00
Filip Tibell
207f80973f
More accurate task.wait benchmarks in test 2023-08-20 21:15:50 -05:00
Filip Tibell
5b73338189
More robust task.spawn implementation 2023-08-20 21:15:22 -05:00
Filip Tibell
e780410b7b
Replace result with expect for process.spawn 2023-08-20 20:58:28 -05:00
Filip Tibell
9e23fdca0f
Remove unnecessary static lifetime from process.spawn 2023-08-20 20:54:11 -05:00
Filip Tibell
f0ec5eb90b
Run process.spawn on separate thread, if possible 2023-08-20 20:51:42 -05:00
Filip Tibell
bfb135db82
Clean up process spawn options 2023-08-20 20:45:24 -05:00
Filip Tibell
23bd0dd0cb
Fix custom typeof function being recursivve 2023-08-20 20:05:58 -05:00
Filip Tibell
54b63c6874
Add test to ensure warn global exists and is a function 2023-08-20 20:02:01 -05:00
Filip Tibell
d2ecc534da
Add back typeof global 2023-08-20 19:58:00 -05:00
Filip Tibell
6df6a195ae
Add back print and warn globals 2023-08-20 19:54:29 -05:00
Filip Tibell
42561ea32b
Store net client in registry instead of app data, remove require context from registry 2023-08-20 19:34:35 -05:00
Filip Tibell
2d596c5c2a
Fix web sockets using old registry values 2023-08-20 19:26:34 -05:00
Filip Tibell
c90d51ab34
Remove old lune lib 2023-08-20 19:18:16 -05:00
Filip Tibell
5e2f8657da
Fix net client app data 2023-08-20 19:13:00 -05:00
Filip Tibell
6b19ee1656
Add fixme note to process spawn test 2023-08-20 18:59:11 -05:00
Filip Tibell
8b15d8f6d7
Use app data for net builtin client 2023-08-20 18:56:28 -05:00
Filip Tibell
b55767a268
Split scheduler futures into lua & background, improve async tests 2023-08-20 18:54:34 -05:00
Filip Tibell
03ae3c616b
Net serve test improvements, add some impl notes to scheduler 2023-08-20 16:55:06 -05:00
Filip Tibell
911ae416f8
Start work on background tasks 2023-08-20 16:20:45 -05:00
Filip Tibell
d119b010c6
Figure out whats causing sigsegv 2023-08-20 15:29:36 -05:00
Filip Tibell
a636938eea
Remove usage of unstable mlua feature 2023-08-20 15:22:16 -05:00
Filip Tibell
70f5adbb43
Rename scheduler struct member 2023-08-20 15:12:29 -05:00
Filip Tibell
a33a4d3d4f
Fix pcall test, improve scheduler panic message 2023-08-20 15:07:02 -05:00
Filip Tibell
cb11b3f0e1
Add back support for init files in require 2023-08-20 15:01:20 -05:00
Filip Tibell
77f9ef64bd
Fix wait_for_thread and remove debugging for it 2023-08-20 14:56:58 -05:00
Filip Tibell
d4571be44a
Use real thread ids instead of randomized ones 2023-08-20 14:22:27 -05:00
Filip Tibell
7dd1835b15
Add some different debugging 2023-08-20 14:11:48 -05:00
Filip Tibell
ccf42115b3
Remove debugging 2023-08-20 14:02:48 -05:00
Filip Tibell
4e9c98035c
Fix new lua threads not breaking scheduler out of futures resumption 2023-08-20 14:01:34 -05:00
Filip Tibell
23f4b755c2
Add some debugging for require 2023-08-20 13:44:52 -05:00
Filip Tibell
6f42e28817
Support require without extension for path requires 2023-08-20 12:27:34 -05:00
Filip Tibell
a498bf3502
Store reference to lua in require context 2023-08-20 12:01:28 -05:00
Filip Tibell
3595c5b9d1
Fix async require cache, unify relative and cwd-relative require functions 2023-08-20 11:46:38 -05:00
Filip Tibell
88489ed9b2
Implement functionality necessary for relative path requires 2023-08-19 23:00:05 -05:00
Filip Tibell
04eee28947
Make it easier to emit formatted lua errors 2023-08-19 21:59:05 -05:00
Filip Tibell
4bb36e8b0c
Add back net builtin 2023-08-19 20:22:11 -05:00
Filip Tibell
aa810bfc2b
Add back roblox builtin 2023-08-19 20:01:55 -05:00
Filip Tibell
2ed3755762
Add back process builtin 2023-08-19 19:43:08 -05:00
Filip Tibell
db12419633
Add back fs builtin 2023-08-19 19:26:12 -05:00
Filip Tibell
9587087bff
Add back serde builtin 2023-08-19 19:22:55 -05:00
Filip Tibell
4dbcbcde94
Add back luau builtin 2023-08-19 19:18:36 -05:00
Filip Tibell
4005245211
Add back stdio builtin and pretty error formatting 2023-08-19 19:13:50 -05:00
Filip Tibell
2bde5e8ae8
Dont try to resume dead threads in the scheduler 2023-08-19 18:44:43 -05:00
Filip Tibell
f8e32219fa
Initial implementation of builtin libraries, task library 2023-08-19 18:42:28 -05:00
Filip Tibell
96df171a2b
Bring back version global 2023-08-19 17:34:15 -05:00
Filip Tibell
9786849c27
Rename version global test 2023-08-19 17:27:42 -05:00