Process aliases
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
@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?
@bettio added more tests and missing features. The CI is failing, but it seems unrelated to the changes
esp32 tests are crashing
@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?