Composing Ancient Mathematical Knowledge Into Powerful Bit-fiddling
Composing Ancient Mathematical Knowledge Into Powerful Bit-fiddling techniques Jamie Pond -- CppCon 2024TLDW; New insights from Ancient Egyptian Multiplication gives us the freedom of synthesising iterationCount ← number of bits in type T result ← 0 while true do if most significant bit of multiplier is 1 then result ← result + multiplicand end if iterationCount lots of bit manipulation, but these operations are very cheap! ● Superscalar CPUs do speculative, out of order, parallel instruction execution via multiple execution units. ● Adding 8 8-bit ints takes0 码力 | 73 页 | 947.99 KB | 5 月前3peewee Documentation Release 3.6.0
guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the the pet’s owner. This behavior is referred to as N+1 and it should generally be avoided. For an in-depth guide to working with relationships and joins, refer to the Relationships and Joins documentation PooledPostgresqlExtDatabase PooledMySQLDatabase PooledSqliteDatabase PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documentation0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
peewee Documentation, Release 3.6.0 • Storing data • Retrieving Data Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the the pet’s owner. This behavior is referred to as N+1 and it should generally be avoided. For an in-depth guide to working with relationships and joins, refer to the Relationships and Joins documentation PooledPostgresqlExtDatabase • PooledMySQLDatabase • PooledSqliteDatabase • PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documen-0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.5.0
guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the PooledPostgresqlExtDatabase PooledMySQLDatabase PooledSqliteDatabase PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documentation the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set = (1, 11, 63, 31, 55, 48, 100, 99) for bit_idx in bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward recommendation PooledPostgresqlExtDatabase PooledMySQLDatabase PooledSqliteDatabase PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documentation0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward recommendation PooledPostgresqlExtDatabase PooledMySQLDatabase PooledSqliteDatabase PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documentation0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
peewee Documentation, Release 3.5.0 • Storing data • Retrieving Data Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the PooledPostgresqlExtDatabase • PooledMySQLDatabase • PooledSqliteDatabase • PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documen- the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set = (1, 11, 63, 31, 55, 48, 100, 99) for bit_idx in bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
peewee Documentation, Release 3.3.0 • Storing data • Retrieving Data Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the tree and graph- structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward recommendation PooledPostgresqlExtDatabase • PooledMySQLDatabase • PooledSqliteDatabase • PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documen-0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
peewee Documentation, Release 3.4.0 • Storing data • Retrieving Data Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the tree and graph- structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward recommendation PooledPostgresqlExtDatabase • PooledMySQLDatabase • PooledSqliteDatabase • PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the playhouse documen-0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.0.0
guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward recommendation PooledPostgresqlExtDatabase PooledMySQLDatabase PooledSqliteDatabase PooledSqliteExtDatabase For an in-depth discussion of peewee’s connection pool, see the Connection pool section of the Playhouse, extensions0 码力 | 319 页 | 361.50 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100