argotorg / argotorg/fe

Implement safe math operations in std

Open
#718 0 comments 0 reactions 1 assignee Claimed by @Y-Nak View on GitHub
comp: codegen comp: mir type: refactor
Dominant language
Rust
Stars
1.7k
Forks
218
Avg merge
1d 7h
Merged PRs (30d)
6

Description

### What is wrong?
Currently, the new `codegen` uses safe math in default, but these operations are implemented in `codegen/runtime`.
It'd be better to implement these operations in `std`.

### How can it be fixed
1. Implement safe math functions in `std`.
2. In the AST -> MIR lowering, replace arithmetic operations with the corresponding function calls.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.