#Programming language
32 messages · Page 1 of 1 (latest)
degenerate
Links to All Music: https://linktr.ee/alrmo
For all the Gym Bros
And remember 🔱WE'RE ALL GONNA MAKE IT🔱
#gym #zyzz #hardstyle #remix
no
Fuzzily logical funge on a Calabi-Yau manifold
Make all number operations with roman numerals
so if i write that in c it would look like this:
#include <stdio.h>
int main()
{
int a = XXXIV;
int b = XXXV;
printf("%d\n", a + b);
return 0;
}
and output would look like this:
LXIX
Emulate logarithmic arithmetic instead of using floats.
Aha
oh
For fun or a useful one?
Because, logarithmic arithmetic is definitely... on architecture that have a LAU (logarithmic arithmetic unit. Compare ALU). There isn't many now though... mostly research processors. If you want to experiment with log arithmetic, you wouldn't have to divide much since division becomes substraction. In theory that's a massive performance improvement. In practice, you would need an LAU
Cringe
When you pass a value to a function you have three options, pass by refrence, value, and move
// reference
function(&var);
// value
function(#var);
// move
function(var);
function(ref var);
function(var);
function(move var);
this is better imo
not my choice. I just like rust's way of move-by-default and unless you do something to it either get a reference or .clone() to pass by value (or it implements Copy) the value is gone unless
Move the registry to avoid copying and wasting time, I thought compilers did that.
func(var); // pass by value
func(&var); // pass reference
func(move var); // value is owned by this function
this would achieve what you want and would be consistent with general programming practices (I generally dislike being different just for the sake of it :P)
Hello everybody
Add some markup lol
Not a bad idea