-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New timer functions with lambdas #2843
Closed
Closed
Commits on Nov 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 01103d8 - Browse repository at this point
Copy the full SHA 01103d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12cfb26 - Browse repository at this point
Copy the full SHA 12cfb26View commit details -
* Functions are now tables, containing parameter signature, return type and inner function * function:getParameterTypes() * function:getReturnType() * Don't reset global variables on `@strict`, fixing issue with top level locals not working as upvalues since they'd be reset by the runtime. I don't think this would actually affect anyone since you shouldn't be able to use variables before they're assigned, but it's `@strict` only behavior anyway.
Configuration menu - View commit details
-
Copy full SHA for 7e9913d - Browse repository at this point
Copy the full SHA 7e9913dView commit details -
I'd already fixed this bug with functions that have return values but this was not fixed for functions without return values. Also added a test case for this.
Configuration menu - View commit details
-
Copy full SHA for 641a8f2 - Browse repository at this point
Copy the full SHA 641a8f2View commit details -
More tests, enforce returns at compile time
* Add tests to ensure variadic parameters, void parameters and implicit parameters aren't allowed * Fix lambdas potentially not returning at all codepaths like functions now are expected to do. Added a test for that.
Configuration menu - View commit details
-
Copy full SHA for 6aebc04 - Browse repository at this point
Copy the full SHA 6aebc04View commit details
Commits on Nov 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 631b801 - Browse repository at this point
Copy the full SHA 631b801View commit details
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 168a2a4 - Browse repository at this point
Copy the full SHA 168a2a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for db32af2 - Browse repository at this point
Copy the full SHA db32af2View commit details -
Execute timer with chip entity, move ops
* Ops will increase inside of the actual lambda's body instead of in ExprDynCall, which means it won't cost 0 ops to call them outside of an E2 chip. * Lambdas outside of E2 will now need to be called with ENT:Execute, which now optionally takes a "script" and "args" corresponding to what you'd pass to the lambda. It will handle perf and everything for you. * Remove Lambda:Call, UnsafeCall still exists in case someone wants to handle perf on their own in some extension.
Configuration menu - View commit details
-
Copy full SHA for 342f156 - Browse repository at this point
Copy the full SHA 342f156View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a78d0d - Browse repository at this point
Copy the full SHA 1a78d0dView commit details
Commits on Jan 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 064fbaf - Browse repository at this point
Copy the full SHA 064fbafView commit details -
* Fix error when chip quotas with timers active * Make getTimers nodiscard, change deprecation message * Optimize code to not create / remove timers needlessly * Auto-remove timer with reps properly
Configuration menu - View commit details
-
Copy full SHA for 274325d - Browse repository at this point
Copy the full SHA 274325dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d31764 - Browse repository at this point
Copy the full SHA 8d31764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b2c88e - Browse repository at this point
Copy the full SHA 0b2c88eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.