Hacker News new | ask | show | jobs
by Ygg2 55 days ago
> In C the minimalism comes from providing only the minimal set of things that are available in most (maybe all) architectures

By that logic Brainfuck is even more minimal. Again. I'm saying minimalism isn't the goal. It's a good quality but not most important one.

1 comments

You just misinterpreted what I said. I was referring to a minimum common denominator of cpu architectures. Brainfuck has nothing to do with that.
Brainfuck has a even more minimal common denominator. It's just increment pointer, jump to address, read/write. It's basically just a minimal turing machine that ANY architecture will run.
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.

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)