GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - handl-lang/lib-math-js: lib-math-js — Handl library repo (ADR-0128 split; implementation pending)

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
src
src
 
 
workflows
workflows
 
 
.gitignore
.gitignore
 
 
.handl.toml
.handl.toml
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bupha.toml
bupha.toml
 
 
pkg.hnl
pkg.hnl
 
 

Repository files navigation

lib-math-js

JavaScript implementation of the math ports (via the js ffi — js.call("Math", ...) / js.call("Number", ...)).

src/index.hnl implements every math/<arrow> contract signature: transcendentals and Math.*-covered ops marshal through js.call with js_number/js_boolean descriptors; the total arrows are pure handl. Math-less ops are composed (exp2 = exp(x·ln2), fract/floor_div/round_to/copysign/degrees/radians), looped (factorial/gcd/lcm), or emulated with JS int32 semantics (bit_and/bit_or/bit_xor/bit_not/shl/shr/rotl32/u32 — Math exposes no bitwise functions). nextafter raises via error.raise: it needs bit-level double access Math.* cannot give. pi/e/tau are literals, nan is Math.sqrt(-1), infinity is Math.exp(1000).

Unlike math-c/math-handl this is a single module — import from "math-js"; math-js/<arrow> submodule paths do not exist.

Layout

src/index.hnl  the .hnl sources (all 69 contract arrows)
pkg.hnl        package manifest — modules, deps, description, license

Dependencies: math, js

Gate

HNL=../host-cli/target/debug/hnl scripts/hnl-gate.sh

CI skips the gate while src/ has no .hnl sources.

License

MIT.

About

lib-math-js — Handl library repo (ADR-0128 split; implementation pending)

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.