Hello! On Thursday 19 March 2009 01:28:20 Artem Chuprina wrote: > AP> Alexander Danilov недавно высказывал желание сделать аналог SQLite на > одном из AP> функциональных языков. Имхо не лучшая идея с точки зрения > эффективности, AP> предпочитаю на С низкоуровневые вещи делать (ну может > еще и ностальгия у меня AP> по С, не буду отрицать). Ну если напишет - > посмотрим :-) > > Эээ... А где ты в задаче написания _аналога_ SQLite обнаружил низкий > уровень?
SQLite использует встроенную виртуальную машину: Each instruction in the virtual machine consists of an opcode and up to five operands named P1, P2 P3, P4, and P5. P1, P2, and P3 are 32-bit signed integers. These operands often refer to registers. P2 is always the jump destination in any operation that might cause a jump. P4 may be a 32-bit signed integer, a 64-bit signed integer, a 64-bit floating point value, a string literal, a Blob literal, a pointer to a collating sequence comparison function, or a pointer to the implemantation of an application-defined SQL function, or various other things. P5 is an unsigned character normally used as a flag. Some operators use all five operands. Some use one or two. Some operators use none of the operand Или для вас работа с регистрами процессора это задача для скриптового языка? Best regards.