2 ms·
If you want the same algorithm to work everywhere, you can't write the library in C. It will have to be written in some intermediate language with generators fo
by skybrian 16y ago
If you want the same algorithm to work everywhere, you can't write the library in C. It will have to be written in some intermediate language with generators for all common scripting languages. The closest thing I know of that's widely used is the generators for proto buffers. We need something like proto buffers for algorithms.
Ben Laurie has started on this: http://www.links.org/?p=864 http://www.links.org/?p=864
- unwind 16y agoReading his pseudo code with its explicit size information ("pad_byte = pad_byte plus32 1;") made me think, of all things, of LLVM's SSA assembler syntax ("pad% = add i32 %pad_byte, 1"). :) Not surprising of course, making the type visible in each operation is typically necessary in assembly.