Giter Club home page Giter Club logo

Comments (7)

bettio avatar bettio commented on May 24, 2024 1

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.

UncleGrumpy avatar UncleGrumpy commented on May 24, 2024

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:

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/release-5.x/5.0/gcc.html#espressif-toolchain-changes

from atomvm.

UncleGrumpy avatar UncleGrumpy commented on May 24, 2024

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.

fadushin avatar fadushin commented on May 24, 2024

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.

karlsson avatar karlsson commented on May 24, 2024

I think you have a similar ifdef in term.c function term_funprint.

from atomvm.

bettio avatar bettio commented on May 24, 2024

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.

karlsson avatar karlsson commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.