Skip to content

Instantly share code, notes, and snippets.

View itspacrat's full-sized avatar
🦐
<- Peak posture

Blake "PacRat" G. itspacrat

🦐
<- Peak posture
View GitHub Profile
@ClarkeRemy
ClarkeRemy / tail_drop_elimination.rs
Last active February 10, 2024 19:14
Initial proposal for Tail-Drop Elimination
///! Proposal for guaranteed Tail-Drop elimination for functions that do not return values.
///!
///! We revisit the `become` keyword limiting it to functions that do not return values
///! Given this constraint, it becomes much easier to implement.
///! A programmer can always supply the place to return to with a continuation anyways quite trivialy.
/// This is why it must be done at a language level.
/// The programmer cannot do this themselves or they would have a stack overflow.
/// If the programmer did try to do it themselves, it would require a very complex, type unsafe way to do it.
/// All parts can be guaranteed to be sound statically
@ClarkeRemy
ClarkeRemy / formula.rs
Last active October 23, 2024 04:19
Compile Time Boolean formula Interpreter
use std::marker::PhantomData;
enum Ast{};
enum Eval{};
trait Mode {}
impl Mode for Ast {}
impl Mode for Eval {}