沈括 (1031–1095), a scholar-official who had served as court astronomer, envoy and general, wrote it in retirement at his garden
梦溪 'Dream Brook' in Zhenjiang. Among its 600-odd entries are the earliest known descriptions of a magnetic compass needle and of magnetic declination, and the earliest record of
毕昇's movable type.