Draw bench
A draw bench is a machine used to do cold work on a metal, such as changing the shape of the metal without applying heat and applying only pressure.
Machine construction
It consists of a chain drive, driven by a motor and a set of gears. The other end of the machine consists of a die mounted on a thick steel plate. The workpiece is inserted through the die and clamped on a trolley which then is hooked onto the chain for pulling across.
Die
The die is usually made of tungsten carbide with a steel housing. The die can be made to any desired shape (round, square, rectangular, triangular, half round, L-shaped, oval etc.).
gollark: ```pythonimport itertoolsimport multiprocessing as mchars = [chr(x) for x in range(32, 126)]chars.extend(["\t", "\n"])def generate_for_length(length): return map(lambda chars: "".join(chars),itertools.combinations(chars, length))def generate(): for i in itertools.count(): for s in generate_for_length(i): yield sif __name__ == "__main__": def start(func): proc = m.Process(target=func) proc.start() io_queue = m.Queue(maxsize=128) def printer(): while True: print(io_queue.get()) code_queue = m.Queue(maxsize=128) def generator(): for x in generate(): code_queue.put(x) def executor(): while True: code = code_queue.get() result = None try: result = repr(exec(code)) except Exception as e: result = repr(e) if result != None: io_queue.put(code + ": " + result) start(generator) for _ in range(4): start(executor) printer()```
gollark: Which do you think is slower: the execution or generation of strings?
gollark: ```pythonimport itertoolschars = [chr(x) for x in range(32, 126)]chars.extend(["\t", "\n"])def generate_for_length(length): return map(lambda chars: "".join(chars),itertools.combinations(chars, length))def generate(): for i in itertools.count(): for s in generate_for_length(i): yield sfor x in generate(): try: print(exec(x)) except Exception as e: print(f"{e} from {x}")```
gollark: I should multithread this!
gollark: ```pythonimport itertoolschars = [chr(x) for x in range(32, 126)]chars.extend(["\t", "\n"])def generate_for_length(length): return map(lambda chars: "".join(chars),itertools.combinations(chars, length))def generate(): for i in itertools.count(): for s in generate_for_length(i): yield sfor x in generate(): print(x)```<@!330678593904443393>
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.