forked from atomvm/AtomVM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request atomvm#1054 from fadushin/ets-mvp
Added a limited implementation of the OTP ets interface *** Few opening words, Fred recently passed away and this is the last time I will merge a PR from him. It was an honor to work with you on this project, thanks for your precious help and for taking part to this journey. Fred, will miss you. *** This PR implements a small subset of the OTP `ets` interface. The following `ets` functions are supported: * `ets:new/2` * `ets:insert/2` * `ets:lookup/2` * `ets:delete/2` The following parameters to `ets:new/2` are supported: * `is_named` * `{keypos, I :: non_neg_integer()}` * `private` | `protected` | `public` access types Only the `set` table type is supported. This limited functionality allows users to define ETS tables and share term data between processes in a manner that is more efficient than using message passing with a process. The likely initial users of this feature will be the logging subsystem, as well as parts of the (forthcoming) application support, for storing application environment settings. This PR provides a partial implementation of issue atomvm#887. Subsequent PRs can add additional features from this issue. For information about the OTP `ets` interface, see https://www.erlang.org/doc/man/ets. This implementation attempts to be API-compatible with the OTP implementation. 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
- Loading branch information
Showing
18 changed files
with
1,616 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ set(ERLANG_MODULES | |
code | ||
crypto | ||
erts_debug | ||
ets | ||
gen_event | ||
gen_server | ||
gen_statem | ||
|
Oops, something went wrong.