Skip to content

Commit

Permalink
Merge branch 'main' into rethrow-exit-loop-interrupt-to-repl
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 14, 2024
2 parents 287d282 + 124c471 commit 75c8d54
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ (matrix.julia-version == '1.6' || matrix.julia-version == '1.7') && 'x64' || runner.arch }}

- uses: julia-actions/cache@v2

# 🚗
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Malt"
uuid = "36869731-bdee-424d-aa32-cab38c994e3b"
authors = ["Sergio Alejandro Vargas <savargasqu+git@unal.edu.co>"]
version = "1.1.1"
version = "1.1.2"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ Malt.jl worker processes **do not inherit** `ENV` variables, command-line argume
### Interrupt on Windows
Malt.jl supports **interrupting a worker process on Windows**, not just on UNIX.

### Heterogenous computing
Malt.jl does not have API like `@everywhere` or `Distributed.procs`: Malt is **not the right tool for heterogenous computing**.
### Homogenous computing
Malt.jl does not have API like `@everywhere` or `Distributed.procs`: Malt is **not the right tool for homogenous computing**.

### Exception handling
Exceptions in Malt.jl workers are converted to plaintext before being rethrown in the host.
Expand All @@ -85,6 +85,10 @@ julia> @time Malt.Worker();
0.964955 seconds (537 allocations: 308.734 KiB)
```

### Limitations

In contrast to Distributed.jl, Malt.jl currently does not support launching workers on another machine (e.g. SSH remote workers).

# Sponsors

Development of Malt.jl is sponsored by:
Expand Down
2 changes: 1 addition & 1 deletion src/shared.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function _serialize_msg(io::IO, msg_type::UInt8, msg_id::MsgID, msg_data::Any)
try
write(io, msg_type)
write(io, msg_id)
serialize(io, msg_data)
Base.invokelatest(serialize, io, msg_data)
write(io, MSG_BOUNDARY)
flush(io)
finally
Expand Down
2 changes: 1 addition & 1 deletion src/worker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function serve(server::Sockets.TCPServer)
msg_id = read(io, MsgID)

msg_data, success = try
(deserialize(io), true)
(Base.invokelatest(deserialize, io), true)
catch err
(format_error(err, catch_backtrace()), false)
finally
Expand Down

0 comments on commit 75c8d54

Please sign in to comment.