-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Some web functionality + go coroutines #159
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added hyper as dependency
- Added `go` keyword to syntax - Added “typechk/go.dyon” - Added `ast::Expression::Go` - Added “join_thread” intrinsic - Added `Thread` struct - Added `Variable::Thread` - Added unsafe impl of `Send` for `Variable` - Made `Module` clone-able by putting `Module::ext_prelude` in `Arc<_>` - Added `Kind::Go` - Require `->` on `go` functions in through type check - Switched from `ThreadRng` to `StdRng` to make new runtime work in `move || { … }` - Added `Runtime::go`
bvssvni
changed the title
Some web functionality
Some web functionality + go coroutines
May 14, 2016
This prevents panic when printing out a variable that has no valid input representation.
- Added “typechk/threads.dyon” - Infer thread type from function - Infer numbers from short loops - Make sift infer type from body - Removed non-existing typechk test
- Made type checker show an error when result is unused
- Added “typechk/unused_result.dyon” - Fixed “random” intrinsic
- Added “typechk/unused_result_2.dyon” - Check type of only one child for some nodes - Check all expressions in body of a functions that does not return
Infer return type from body of functions that are declared as mathematical expressions. - Clean up `Type::Void` usage
The refined returned types inferred by the type checker should be copied to the AST for more accurate type checking when calling loaded function declared as mathematical expressions.
- Changed “returns” to a string representing the type - Added “takes” for each argument representing the type
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #160
For design, see #163
go
for Go-like coroutines, seego
coroutine design #163