Skip to content

Commit

Permalink
HVM.log now outputs unormalized terms
Browse files Browse the repository at this point in the history
For normalization, the user can use their own sequencers. Ex:

(String.seq (String.cons x xs) cont) = (U60.seq x λx(String.seq xs λxs(cont (String.cons x xs))))
(String.seq String.nil         cont) = (cont String.nil)

(U60.seq 0 cont) = (cont 0)
(U60.seq n cont) = (cont n)
  • Loading branch information
VictorTaelin committed Feb 29, 2024
1 parent c6932f6 commit 154b9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hvm1"
version = "1.0.14"
version = "1.0.15"
edition = "2021"
description = "A massively parallel functional runtime."
repository = "https://github.com/HigherOrderCO/HVM1"
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/base/precomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ fn hvm_log_visit(ctx: ReduceCtx) -> bool {
}

fn hvm_log_apply(ctx: ReduceCtx) -> bool {
normalize(ctx.heap, ctx.prog, &[ctx.tid], get_loc(ctx.term, 0), false);
//normalize(ctx.heap, ctx.prog, &[ctx.tid], get_loc(ctx.term, 0), false);
let code = crate::language::readback::as_code(ctx.heap, ctx.prog, get_loc(ctx.term, 0));
println!("{}", code);
link(ctx.heap, *ctx.host, load_arg(ctx.heap, ctx.term, 1));
Expand Down

0 comments on commit 154b9e3

Please sign in to comment.