mdX
Jump to navigation
Jump to search
mdX is a family of languages created in the Esolangs Discord server by User:Andrew3335 and terra in 2020, based around md5 sums and interpreting the hashes given from strings as code.
Language
An mdX program is a file where every line is md5-summed, then the concatenation of the checksums of each line is treated as X code (X is either an assembly or another language/bytecode).
mdfuck
mdfuck is the first ever implemented language in the mdX family, based around brainfuck. An interpreter was created by User:Palaiologos, shown below:
#!/bin/bash
bf=$(mktemp)
while read line; do
(printf "0: " ; echo $line | md5sum | head -c 32) | xxd -r >> $bf
done
nComments=`cat $bf | perl -pe "s/[\+\-\[\]\<\>]//g;" | wc -c | cut -f1 -d' '`
if [ $nComments -gt 0 ]; then
echo "This program contains illegal characters."
exit 1
fi
bfi $bf
rm -f $bf