inclusion of С++ libraries into the atomvm kernel

Open
#2,092 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, cpp, elixir, erlang
Domain
embedded-iot

Research direction

Start by reviewing the discussion in this issue and the linked Adafruit_VL6180X library to understand the requested integration and the TOF sensor use case. Then inspect AtomVM’s native library and AVM build entry points to determine where C++ support would fit. Done would require a defined approach for exposing a library’s functions to Elixir or Erlang and a working example; the issue does not identify specific files or tests.

Written by the indexing model from the issue text.

Description

Is there any way to include ready-made C++ libraries in the AtomVM kernel or in the AVM file build using Elixir/Erlang and get their functions similar to those already in atomvm kernel?
I encountered some problems while writing a program in Elixir for the TOF sensor, as most of the data received from the sensor is clearly raw, but already transformed using the library.
For example:
https://github.com/adafruit/Adafruit_VL6180X

Dominant language
Erlang
Stars
2.3k
Forks
171
Avg merge
4d 11h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from atomvm/AtomVM

All issues in atomvm/AtomVM

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.