Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HigherOrderCO-archive/hvm-64
/ functions
Functions
335 in github.com/HigherOrderCO-archive/hvm-64
⨍
Functions
335
◇
Types & classes
73
↓ 2 callers
Function
create_var
Creates a variable uniquely identified by `id`.
util/src/create_var.rs:5
↓ 2 callers
Method
def
(&self)
runtime/src/addr.rs:32
↓ 2 callers
Method
do_ctr
(&mut self, lab: Lab, trg: Trg)
runtime/src/instruction.rs:113
↓ 2 callers
Method
do_op
(&mut self, op: NumTag, trg: Trg)
runtime/src/instruction.rs:136
↓ 2 callers
Method
do_op_num
(&mut self, op: NumTag, trg: Trg, rhs: Num)
runtime/src/instruction.rs:156
↓ 2 callers
Method
do_switch
(&mut self, trg: Trg)
runtime/src/instruction.rs:176
↓ 2 callers
Method
do_wires
(&mut self)
runtime/src/instruction.rs:206
↓ 2 callers
Method
drain
(&mut self)
runtime/src/linker.rs:328
↓ 2 callers
Method
encode_def
Converts an ast net to a list of instructions to create the net. `get_def` must return the `Port` corresponding to a given `Ref` name.
host/src/encode.rs:13
↓ 2 callers
Method
encode_net
Encode the root of `ast_net` directly into `trg` and encode its redexes into `net` redex list.
host/src/encode.rs:31
↓ 2 callers
Method
ensure_no_conflicts
(&self, fresh: &mut usize)
ast/src/ast.rs:125
↓ 2 callers
Function
execute_host
(host: &Host)
tests/tests.rs:28
↓ 2 callers
Method
expand
Expands [`Tag::Ref`] nodes in the tree connected to `root`.
runtime/src/net.rs:65
↓ 2 callers
Method
get_sym
(self)
num/src/num.rs:128
↓ 2 callers
Method
inline
(&mut self)
transform/src/inline.rs:15
↓ 2 callers
Method
insert_book
Converts all of the nets from the book into runtime defs, and inserts them into the host. The book must not have refs that are not in the book or the
host/src/host.rs:34
↓ 2 callers
Method
insert_book_with_default
Like `insert_book`, but allows specifying a function (`default_def`) that will be run when the name of a definition is not found in the book. The retu
host/src/host.rs:41
↓ 2 callers
Method
into_iter
(self)
host/src/calc_labels.rs:98
↓ 2 callers
Method
is_op
(self)
num/src/num.rs:46
↓ 2 callers
Method
link
(&mut self, a: Self::Trg, b: Self::Trg)
host/src/encode.rs:124
↓ 2 callers
Method
link_trg
(&mut self, a: Trg, b: Trg)
runtime/src/linker.rs:297
↓ 2 callers
Function
load_host
(files: &[PathBuf], transform_args: TransformArgs, include: &[PathBuf])
src/main.rs:93
↓ 2 callers
Function
new_uninit_slice
TODO: use `Box::new_uninit_slice` once stabilized https://github.com/rust-lang/rust/issues/63291
util/src/new_uninit_slice.rs:8
↓ 2 callers
Function
node
tests/programs/stress_tests/sum_tree.js:16
↓ 2 callers
Function
normal
(book: Book, mem: Option<usize>)
tests/loaders.rs:40
↓ 2 callers
Method
op
(&mut self, op: NumTag, trg: Self::Trg)
host/src/encode.rs:138
↓ 2 callers
Method
op_num
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:251
↓ 2 callers
Method
parallel_normal
Evaluates a term to normal form in parallel
runtime/src/parallel.rs:35
↓ 2 callers
Method
parse_num_lit
(&mut self)
ast/src/parser.rs:142
↓ 2 callers
Method
payload
(self)
num/src/num.rs:108
↓ 2 callers
Method
peek_word
(&self)
runtime/src/trace.rs:281
↓ 2 callers
Method
raw
(self)
num/src/num.rs:98
↓ 2 callers
Method
reduce
(&mut self, limit: usize)
runtime/src/net.rs:41
↓ 2 callers
Function
reduce_exprs
(host: &Host, exprs: &[Net], opts: &RuntimeOpts)
src/main.rs:176
↓ 2 callers
Function
refs
Returns the names of all references occurring in `instructions`.
src/compile.rs:215
↓ 2 callers
Function
sanitize_name
Adapts `name` to be a valid suffix for a rust identifier, if necessary.
src/compile.rs:199
↓ 2 callers
Method
should_inline
(&self)
transform/src/inline.rs:87
↓ 2 callers
Method
switch_num
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:201
↓ 2 callers
Method
total
(&self)
runtime/src/runtime.rs:92
↓ 2 callers
Method
trees
(&self)
ast/src/ast.rs:99
↓ 2 callers
Method
trees_mut
(&mut self)
ast/src/ast.rs:103
↓ 2 callers
Method
visit_def
(&mut self, key: &'b str, depth: Option<usize>, out: Option<&mut LabSet>)
host/src/calc_labels.rs:127
↓ 2 callers
Method
visit_def
(&mut self, name: &str)
transform/src/prune.rs:30
↓ 2 callers
Method
visit_net
(&mut self, net: &'a AstNet, trg: E::Trg)
host/src/encode.rs:48
↓ 2 callers
Method
visit_within_def
(&mut self, key: &str, depth: Option<usize>, mut out: Option<&mut LabSet>)
host/src/calc_labels.rs:166
↓ 2 callers
Method
wire
(&self)
runtime/src/port.rs:192
↓ 1 callers
Function
_compile_host
Compiles a [`Host`] to Rust, returning a file to replace `gen.rs`. Unlike [`compile_host`], this returns a [`Result`] instead of panicking.
src/compile.rs:31
↓ 1 callers
Method
anni2
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:72
↓ 1 callers
Method
bits
(&self)
runtime/src/def.rs:51
↓ 1 callers
Function
calculate_label_sets
Calculates the labels used in each definition of a book. # Background: Naive Algorithms The simplest algorithm to calculate labels would be to go to
host/src/calc_labels.rs:78
↓ 1 callers
Method
call
(def: *const Def<Self>, net: &mut Net, port: Port)
runtime/src/net.rs:83
↓ 1 callers
Method
clear
(&mut self)
runtime/src/linker.rs:340
↓ 1 callers
Function
compile_host
Compiles a [`Host`] to Rust, returning a file to replace `gen.rs`.
src/compile.rs:22
↓ 1 callers
Function
compile_lab_set
(labs: &LabSet)
src/compile.rs:180
↓ 1 callers
Function
compile_struct
Compiles a def into a structure.
src/compile.rs:110
↓ 1 callers
Function
compile_temp_hvm
Compiles the `.hvm` directory, appending the provided `args` to `cargo`.
src/main.rs:207
↓ 1 callers
Function
create_temp_hvm
Copies the `hvm-64` source to a temporary `.hvm` directory. Only a subset of `Cargo.toml` is included.
src/compile/include_files.rs:39
↓ 1 callers
Method
create_wire
(&mut self)
runtime/src/node.rs:43
↓ 1 callers
Method
ctr
(&mut self, lab: Lab, trg: Self::Trg)
host/src/encode.rs:132
↓ 1 callers
Function
execute_hvm64
(args: &[&str])
tests/cli.rs:19
↓ 1 callers
Method
fmt
(&self, f: &mut Formatter<'_>)
runtime/src/trace.rs:469
↓ 1 callers
Method
fork
Forks the net into `tids` child nets, for parallel operation.
runtime/src/parallel.rs:12
↓ 1 callers
Function
gen
tests/programs/stress_tests/sum_tree.js:19
↓ 1 callers
Function
gen
examples/sort/radix/radix_sort_lam.js:9
↓ 1 callers
Method
has
(&self, lab: Lab)
runtime/src/def.rs:30
↓ 1 callers
Method
inline_into
(&self, tree: &mut Tree)
transform/src/inline.rs:67
↓ 1 callers
Method
interact
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:6
↓ 1 callers
Method
is_era
(&self)
runtime/src/port.rs:161
↓ 1 callers
Method
is_ty
(self)
num/src/num.rs:51
↓ 1 callers
Method
lab
(&self)
ast/src/ast.rs:157
↓ 1 callers
Function
leaf
tests/programs/stress_tests/sum_tree.js:17
↓ 1 callers
Method
left_half
(&self)
runtime/src/addr.rs:41
↓ 1 callers
Function
list_got
(index: u32)
tests/lists.rs:8
↓ 1 callers
Function
list_put
(index: u32, value: u32)
tests/lists.rs:18
↓ 1 callers
Function
load_dylibs
(host: &mut Host, include: &[PathBuf])
src/main.rs:131
↓ 1 callers
Function
main
()
build.rs:3
↓ 1 callers
Method
make_const
(&mut self, port: Port)
host/src/encode.rs:127
↓ 1 callers
Method
op
(&self)
runtime/src/port.rs:179
↓ 1 callers
Method
op_num
(&mut self, op: NumTag, trg: Self::Trg, rhs: Num)
host/src/encode.rs:144
↓ 1 callers
Method
parse_net
Net = Tree ("&" Tree "~" Tree)
ast/src/parser.rs:30
↓ 1 callers
Method
parse_num
(&mut self)
ast/src/parser.rs:116
↓ 1 callers
Method
pop
(&mut self)
runtime/src/linker.rs:316
↓ 1 callers
Method
populate_inlinees
(&mut self, book: &Book)
transform/src/inline.rs:38
↓ 1 callers
Function
print_stats
(net: &hvm64_runtime::Net, elapsed: Duration)
src/main.rs:195
↓ 1 callers
Function
radix
examples/sort/radix/radix_sort_lam.js:76
↓ 1 callers
Method
read_entry
(&mut self, f: &mut impl Write)
runtime/src/trace.rs:245
↓ 1 callers
Function
redex_would_shrink
Returns whether a redex does not allocate memory
runtime/src/linker.rs:347
↓ 1 callers
Method
redirect
(&self)
runtime/src/port.rs:211
↓ 1 callers
Method
reduce_tree
(&mut self, tree: &mut Tree)
transform/src/eta_reduce.rs:133
↓ 1 callers
Method
remaining
(&self)
runtime/src/trace.rs:289
↓ 1 callers
Method
resolve_redirect_pri
Resolves redirects when 'b_port' is a principal port.
runtime/src/linker.rs:130
↓ 1 callers
Function
run
(host: &Host, opts: RuntimeOpts, args: RunArgs)
src/main.rs:82
↓ 1 callers
Function
set_hook
()
runtime/src/trace.rs:475
↓ 1 callers
Method
set_tid
(&self, _: usize)
runtime/src/trace.rs:94
↓ 1 callers
Function
sort
examples/sort/radix/radix_sort_lam.js:34
↓ 1 callers
Method
switch
(&mut self, trg: Self::Trg)
host/src/encode.rs:149
↓ 1 callers
Method
sync
(&mut self)
runtime/src/trace.rs:89
↓ 1 callers
Function
test_path
(path: &Path)
tests/tests.rs:57
↓ 1 callers
Function
test_pre_reduce_run
(mut book: Book)
tests/tests.rs:44
↓ 1 callers
Function
test_run
(host: &Host)
tests/tests.rs:37
← previous
next →
101–200 of 335, ranked by callers