Skip to content
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

Support GenServer.ex & Supervisor.ex #1476

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petermm
Copy link
Contributor

@petermm petermm commented Jan 16, 2025

Carbon copy from upstream, and adapted to gen_server.erl

The GenServerTest and SupervisorTest will go into their own test_exatomvm lib and be included that way - they are included here to highlight this Invalid filename: expected filename data error:

➜  build git:(genserver.ex) ✗ ./src/AtomVM ./tests/libs/exavmlib/Tests.avm
Running Elixir tests
Unable to open Elixir.Enumerable.Tuple.beam
Failed load module: Elixir.Enumerable.Tuple.beam
Unable to open undef.beam
Failed load module: undef.beam
Warning: module undef cannot be resolved.
Invalid filename: expected filename data (27008 bytes).
Invalid filename: expected filename data (27008 bytes).
Invalid filename: expected filename data (27008 bytes).
Invalid filename: expected filename data (18719 bytes).
Finished Elixir tests
Return value: ok

Will stay in draft pending disterl merging and adaption to those changes/features.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Carbon copy from upstream, and adapted to gen_server.erl

Signed-off-by: Peter M <[email protected]>
@petermm
Copy link
Contributor Author

petermm commented Jan 16, 2025

demo running circuits_i2c with AtomVM_backend https://github.com/petermm/circuits_i2c
Screenshot 2025-01-16 at 12 24 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant