AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Process aliases

Open mat-hek opened this issue 1 month ago • 1 comments

TODO:

  • [x] support aliases in spawn_opt
  • [x] reply_demonitor
  • [ ] C docs
  • [ ] erlang docs
  • [ ] pid_reference serialisation

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

mat-hek avatar Dec 08 '25 15:12 mat-hek

@bettio it seems that CI sometimes fails because it cannot find erlang:alias. I added it to erlang.erl, nifs.gperf and nifs.c, am I missing something?

mat-hek avatar Dec 09 '25 10:12 mat-hek

@bettio added more tests and missing features. The CI is failing, but it seems unrelated to the changes

mat-hek avatar Dec 13 '25 10:12 mat-hek

esp32 tests are crashing

pguyot avatar Dec 15 '25 17:12 pguyot

@pguyot the reason for the STM32 tests failing was that the size of a regular reference is actually 3 terms there, which means process reference takes 4 terms, and it probably conflicts with resource reference size, which is always 4 terms. I changed the process reference size to 5, but that's not a perfect solution :P So we need to come up with another way of distinguishing references - do you have anything in mind?

I also added RefData as a more universal representation of references than ref_ticks. WYDT? Would it make sense for it to support resource references too?

mat-hek avatar Dec 19 '25 11:12 mat-hek