-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.1, simulation friendly, written in modern Gleam
- Loading branch information
1 parent
bcebf1c
commit a2575ec
Showing
10 changed files
with
136 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
*.beam | ||
*.iml | ||
*.o | ||
*.plt | ||
*.swo | ||
*.swp | ||
*~ | ||
.erlang.cookie | ||
.eunit | ||
.idea | ||
.rebar | ||
.rebar3 | ||
_* | ||
_build | ||
docs | ||
ebin | ||
erl_crash.dump | ||
gen | ||
log | ||
logs | ||
rebar3.crashdump | ||
/rebar.lock | ||
*.ez | ||
build | ||
erl_crash.dump |
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
name = "minigen" | ||
version = "0.0.3" | ||
licences = ["Apache-2.0"] | ||
description = "A library for generating data in the Erlang ecosystem" | ||
|
||
[docs] | ||
links = [ | ||
{ title = 'GitHub', href = 'https://github.com/mrdimosthenis/minigen' } | ||
] | ||
version = "0.1.0" | ||
|
||
[repository] | ||
type = "github" | ||
user = "mrdimosthenis" | ||
repo = "minigen" | ||
description = "Pure random data generation, appropriate for realistic simulations" | ||
licences = ["Apache-2.0"] | ||
repository = { type = "github", user = "mrdimosthenis", repo = "minigen" } | ||
links = [{ title = 'GitHub', href = 'https://github.com/mrdimosthenis/minigen' }] | ||
|
||
[dependencies] | ||
gleam_stdlib = "~> 0.21" | ||
gleam_stdlib = "~> 0.32" | ||
|
||
[dev-dependencies] | ||
gleeunit = "~> 0.6" | ||
gleeunit = "~> 1.0" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
pub external type Algorithm | ||
pub type Algorithm | ||
|
||
pub external type State | ||
pub type State | ||
|
||
pub external fn default_algorithm() -> Algorithm = | ||
"native_rand_mimigen" "default_algorithm" | ||
@external(erlang, "native_rand_mimigen", "default_algorithm") | ||
pub fn default_algorithm() -> Algorithm | ||
|
||
pub external fn seed_s(Algorithm) -> State = | ||
"rand" "seed_s" | ||
@external(erlang, "rand", "seed_s") | ||
pub fn seed_s(algorithm: Algorithm) -> State | ||
|
||
pub external fn seed(Algorithm, Int) -> State = | ||
"rand" "seed" | ||
@external(erlang, "rand", "seed") | ||
pub fn seed(algorithm: Algorithm, int: Int) -> State | ||
|
||
pub external fn uniform_s(State) -> #(Float, State) = | ||
"rand" "uniform_s" | ||
@external(erlang, "rand", "uniform_s") | ||
pub fn uniform_s(state: State) -> #(Float, State) |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
-export([default_algorithm/0]). | ||
|
||
default_algorithm() -> | ||
exsss. | ||
exs1024s. |
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
Oops, something went wrong.