Skip to content

Make int-to-string conversion a primitive in CakeML #1334

@myreen

Description

@myreen

This issue is about adding semantics to the source primitive FromTo IntT StrT such that it converts any integer into the corresponding string, e.g. 12 becomes "12" and -5 becomes "-5". (Don't generate "~5" for negative 5.)

The compiler should implement this efficiently also for very large integers. Ideally, this int-to-string conversion should be directly supported by CakeML's verified bignum library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions