Hacker News new | ask | show | jobs
by brabel 51 days ago
Again: you're defining minimum wrong here! It's not minimum in the sense of using one instruction (which is possible, see "mov"). A minimum common denominator is NOT that, see https://en.wikipedia.org/wiki/Lowest_common_denominator (I am not a native speaker, apparently it's normally said "Lowest Common Denominator" in English, in my language it's "mĂ­nimo mĂșltiplo comum", so sorry for the confusion).

For example, the LCD of 4 and 3 is 12, that's the "minimum" number they have as a common multiplicator.... it's not 0, even though both multiplied by 0 equal 0. In more concrete terms for C: C is more like the maximum number of things that intersect across all different "common architectures". You want to have most things that everyone supports, not the lowest number of things possible! Hope this clarifies what I mean.

1 comments

Again, I understand what you meant to say. But I don't understand what part of Brainfuck is unportable while C is?

Brainfuck is quite literally minimal Turing machine. It is as portable as C. Or P'' ( https://en.wikipedia.org/wiki/P%E2%80%B2%E2%80%B2)