1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 06:33:16 +00:00
janet/src/core
Calvin Rose aee1687215 Add RNG functionality to the math/ module.
The new RNG wraps up state for random number generation, so
one can have many rngs and even marshal and unmarshal them.
Adds math/rng, math/rng-uniform, and math/rng-int.

Also introduce `in` and change semantics for
indexing out of range. This commit enforces stricter
invariants on keys when indexing via a function call
on the data structure, or the new `in` function.

The `get` function is now more lax about keys, and will
not throw an error when a bad key is used for a data structure, instead
returning the default value.
2019-11-08 17:40:04 -06:00
..
abstract.c Fix memory leak caused by casting error. 2019-06-30 10:32:52 -05:00
array.c Improve error message in slice functions. 2019-11-05 09:41:30 -06:00
asm.c Fix debug/break search algorithm. 2019-09-22 18:08:38 -05:00
buffer.c Improve error message in slice functions. 2019-11-05 09:41:30 -06:00
bytecode.c Add propagate function and opcode 2019-06-24 12:44:13 -04:00
capi.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
cfuns.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
compile.c Improve flychecking. 2019-10-27 16:15:41 -05:00
compile.h Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
corelib.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
debug.c Add prin, eprint, and eprin functions. 2019-10-19 09:44:27 -05:00
emit.c Add some tests for the amalgamated source/ 2019-05-23 10:34:01 -04:00
emit.h Add source amalgamation 2019-01-24 00:15:58 -05:00
fiber.c Fix some stack overflow bugs. 2019-08-19 01:19:51 -04:00
fiber.h Rename the header <janet/janet.h> to <janet.h> 2019-02-18 20:13:35 -05:00
gc.c Tables created via table_init cannot leak memory. 2019-06-05 17:08:49 -04:00
gc.h Begin work on new memory layout for all objects and GC. 2019-02-21 11:22:29 -05:00
inttypes.c Add preliminary debugger to default repl. 2019-05-02 17:11:30 -04:00
io.c Don't call fwrite with size = 0 2019-10-19 10:51:11 -05:00
marsh.c Sourcemapping uses line, column instead of offsets. 2019-09-22 17:18:28 -05:00
math.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
os.c Address some issues found in lgtm 2019-10-10 22:59:43 -05:00
parse.c Sourcemapping uses line, column instead of offsets. 2019-09-22 17:18:28 -05:00
peg.c Add shorthand package name support in jpm. 2019-10-10 18:11:45 -05:00
pp.c Remove a git attribute for linguist. 2019-10-12 22:03:34 -05:00
regalloc.c Remove printf in regalloc.c 2019-09-15 18:17:43 -05:00
regalloc.h Update copyright date, fix types, remove trailing whitespace. 2019-01-06 03:23:03 -05:00
run.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
specials.c Relax requirement minimum arity of fn 2019-10-05 11:53:30 -05:00
state.h Add scratch memory API. 2019-06-01 23:31:39 -04:00
string.c Address #174 - fix string/trim 2019-11-08 08:47:37 -06:00
strtod.c Numbers require at least 1 significant digit. 2019-05-14 08:44:38 -04:00
struct.c Begin work on new memory layout for all objects and GC. 2019-02-21 11:22:29 -05:00
symcache.c Shut up some warnings from clang's static analyzer. 2019-02-22 12:10:27 -05:00
symcache.h Rename the header <janet/janet.h> to <janet.h> 2019-02-18 20:13:35 -05:00
table.c Fix some more recursion issues with pegs. 2019-08-29 19:56:04 -05:00
tuple.c Improve error message in slice functions. 2019-11-05 09:41:30 -06:00
typedarray.c Fix MSVC warnings and errors. 2019-08-05 20:19:46 -05:00
util.c Fix cfunction debugging issue 2019-03-27 00:14:51 -04:00
util.h Convert os/execute to use posix_spawn. 2019-05-30 18:40:10 -04:00
value.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
vector.c Address some issues found in lgtm 2019-10-10 22:59:43 -05:00
vector.h Add scratch memory API. 2019-06-01 23:31:39 -04:00
vm.c Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
wrap.c Keep count fo allocated memory via malloc. 2019-07-31 00:24:13 -05:00