Comments (7)
There was a bug, as you mentioned the format string was wrong, the correct portable format string is: "#Ref<0.0.0.%" PRIu64 ">"
which is specific for uint64_t
.
%lu
is usually good for unsigned 64-bit integers on 64-bit archs, but that's not the case for ESP32.
#1113 fixes this.
from atomvm.
It looks like this might be an issue that came up with ESP-IDF version 5.0 that we just haven't caught yet. There were changes to some of the default types. This is documented in the migrating 4.4 to 5.0 guide:
from atomvm.
If you have a 4.4 version of ESP-IDF available could you try building with the unmodified nifs.c and term.c and see if it works as expected with a v4.4 build?
from atomvm.
The Socket={<<"">>,#Ref<0.0.0.16>}
is the (opaque) socket -- you are not (generally) supposed to peek inside the contents of this type. The ref part of the opaque type is due to an internal implementation detail, but it is used to uniquely identify different socket instances.
Are you saying that something like:
erlang:display(erlang:make_ref()),
erlang:display(erlang:make_ref()),
erlang:display(erlang:make_ref()),
erlang:display(erlang:make_ref()),
erlang:display(erlang:make_ref()),
all print the same values?
from atomvm.
I think you have a similar ifdef in term.c function term_funprint.
from atomvm.
I think you have a similar ifdef in term.c function term_funprint.
yes, you are right, I started working on that, but also I need to remove some hardcoded information. I will try to make that fix by v0.6.1.
from atomvm.
I reported on main branch but I will close this one since it is now merged to release branch. Thanks!
from atomvm.
Related Issues (20)
- PicoW does not properly set hostname HOT 4
- Handle network_driver: Unhandled wifi event: 21. HOT 7
- Not getting stacktraces in picow with v0.6.0 release
- ESP: AES_192 ciphers only supported on esp32 and S2
- valgrind warning in `sslcontext_dtor` when running `./src/AtomVM ./tests/libs/estdlib/test_estdlib.avm` on CI
- Comparison between funs differs from BEAM behavior
- ESP32-H2 Support HOT 2
- rp2040 build steps HOT 2
- Align Peripheral call semantics between platforms. HOT 4
- OTP ssl default is `{active, true}` but our has a different default
- Warnings and errors related to ssl and crypto HOT 1
- Add testing for Elixir modules
- Elixir modules should be included in the on-line documentation
- Different behavior than OTP `ssl:recv`
- Trapped processes are not removed from running list
- ESP32 Console driver lacks input support HOT 1
- Implement `lists:keytake/3`
- Provide a minimal NIF example for the generic_unix target
- Possibility of running GenServers in the browser HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atomvm.