today we were discussing different spacecraft accidents caused by/related to software, discussed Arian-5 case, and I remembered a Soviet case, where there was a problem with decimal separator and Fortran compiler. Decimal separator in USSR was comma, but in Fortran code it should be the dot.
Also, Fortran compiler did not consider using comma instead of the dot as an error, but as different code. And my friend said - the same is possible to do in C++ - and sent me the illustration.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
if (1,2!=1.2)
{
cout << (1,2) << endl;
}
return 0;
}
if you run it, you’ll get
Hello World
2
(:
#safety #programming #mistakes #safe #c++ #code #example #programming-languages #programming_languages #arian #fortran #source
very interesting resource for those who are interested in compilers: http://turbopascal.org/turbo-pascal-internals
#internals #compiler #source #code #programming #compilers #pascal #turbo_pascal #book #analysis #reverse_engineering #research
#fun #cplusplus #virtual-function #destructor #source #programming
Just contributed my mediawiki ConfirmEdit extension patch. It allows to generate captchas with Unicode characters. Let’s see if it gets accepted. I don’t know python, just somehow managed to fix the source.
https://gerrit.wikimedia.org/r/#/c/113122/
#mediawiki #patch #contribution #extension #confirmedit #unicode #utf-8 #captcha #python #source #free-software
Hilbert curve and it’s Oberon source from the Project Oberon 2013 edition.
#gif #oberon #project-oberon #hilbert #hilbert-curve #source #2013 #book #fractal
I have started a new repository: https://github.com/norayr/archaeology
Currently it contains ported to fpc sources of Eliza AI chat program, and console tetris. (:
#archaeology #culture #history #anthropology #eliza #tetris #console #pascal #fpc #freepascal #source
proprietary software source leaks: ftp://ftp.ifctf.org/
#software #leak #freedom #proprietary #free #source