Skip to content

0.11.1 #67

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

Merged
merged 3 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ sidebar_position: 13

This page contains the changelogs from all [releases of Pluto](https://github.com/PlutoLang/Pluto/releases).

## 0.11.1
- Improved implicit-global coverage for multiple assignments within the same statement
- Fixed preprocessor aliases not taking multi-token arguments (e.g. function calls)
- Fixed compile-time concatenation shadowing optional parentheses
- Fixed `extends` not inheriting `__pairs`

Standard Library:
- socket.bind now returns the created coroutine and errors are raised to the caller instead of the scheduler
- Fixed socket.listen/socket.bind not failing for bound TCP ports on Windows
- Fixed `os.sleep(1)` taking considerably longer than 1ms on Windows
- Fixed `scheduler:run` yielding after the final tick
- Fixed `dumpvar` and `exportvar`'s quoted strings not escaping bytes that would make it invalid UTF-8
- Fixed filesystem errors on Windows not being UTF-8 encoded when the user has a non-English locale

You can view the full commit log [here](https://github.com/PlutoLang/Pluto/compare/0.11.0...0.11.1).

## 0.11.0
- Added preprocessor aliases (`$alias`)
- Added compile-time evaluated statement `$assert`
Expand Down
5 changes: 5 additions & 0 deletions docs/Runtime Environment/Socket.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ A convenience function that wraps `socket.listen`, automatically accepting new c
1. A [scheduler](Scheduler) instance.
2. Either an int with the port to listen on or a string such as `1.2.3.4:567` for systems with multiple public-facing addresses.
3. The callback function that will be called in a new coroutine for each client socket.
#### Returns
The coroutine that was created and added to the scheduler.
#### Errors
Raises an error to the caller if the port could not be bound.

```pluto norun
local { scheduler, socket } = require "*"

Expand Down