HigherOrderCO / HVM

A massively parallel, optimal functional runtime in Rust
https://higherorderco.com
Apache License 2.0
10.52k stars 400 forks source link

Type-conversion SYMs #366

Closed CatsAreFluffy closed 5 months ago

CatsAreFluffy commented 5 months ago

Add SYMs for the numeric types and SYM itself to the parser and the printers for each runtime, to allow fast conversions between numeric types. Note that this functionality was already present in the runtimes, it just wasn't previously accessible.

CatsAreFluffy commented 5 months ago

Apparently #361 exists. Note that this PR's conversions between F24 and integer types are bitcasts rather than the numeric conversions #361 uses.

enricozb commented 5 months ago

Yeah we're considering adding bit cast operators like [as_f24] if you just want to reinterpret the bits.

CatsAreFluffy commented 5 months ago

361 got merged and that conflicts with this so closing.