NireBryce

reality is the battlefield

the first line goes in Cohost embeds

🐥 I am not embroiled in any legal battle
🐦 other than battles that are legal 🎮

I speak to the universe and it speaks back, in it's own way.

mastodon

email: contact at breadthcharge dot net

I live on the northeast coast of the US.

'non-functional programmer'. 'far left'.

conceptual midwife.

https://cohost.org/NireBryce/post/4929459-here-s-my-five-minut

If you can see the "show contact info" dropdown below, I follow you. If you want me to, ask and I'll think about it.


Introduction

In this post I plan to give an introduction to reversible programming languages, and some introduction to the programming language Rust. Then I will introduce my amalgamation of those two things, RRust. The overview I will give here is not going to be too deep, In the end, I will provide some articles which go deeper into it all. RRust was produced for my Master’s Thesis, so the recounting here goes into some details which may already be known to Rust users. Finally, any comments or questions are welcome and can be sent to blog@erk.dev.

Reversible Computing

Introduction
Reversible computing is the idea that you can for a given function f(x) := y you can generate the inverse function that takes the output and generates the input f^-1(y) := x. This of course could be done by hand, but we want to make a machine, here donoted by I, that can make the transformation of the code. That is that I(f) := f^-1. To generalize this a bit we can look at x and y as states and f as a function that goes from state x to state y, this is how we will look at it in the following chapters since we are going to model our functions as mutations to variables. So we want to generate the inverse function f^-1 that takes state y and mutates it to state x.


You must log in to comment.

in reply to @NireBryce's post:

yea you can (at least theoretically?) build them with logic gates that have the same number of inputs and outputs like fredkin gates

a lot has been said about it, some by people seeking funding, so a cursory search is hard to gauge the state of things from but i do remember seeing this in sciam way back. some claims are that it could operate at nearly ambient voltage levels because it's okay if it goes backwards occasionally, some that it could avoid heat losses somehow (probably by pretending that input entropy is the same as the physical action of the gates in your VC pitch slideshow)

lol yeah all the thermodynamics stuff is from the early sixties; it's not strictly wrong but also our best existing systems' losses are orders of magnitude more wasteful than the infothermodynamic minimum