I would like to generate all the tuples of ones and zeros of a given length and with a given number of ones without generating all the possible tuples, which is impossible for tuples of large enough length (but for which the tuples with fixed number of ones is small). For example, if we consider lists of length 3, and number of ones equal to 2, I would like to directly generate {{0,1,1},{1,0,1},{1,1,0}} without having to generate the 8 tuples of length 3.
For those interested, I posted this related question: Generating representatives of rotation classes of tuples of ones and zeros with a fixed number of ones