log☇︎
▁▁▁▁▁▁▁▁▁▁▁▁⏐︎▁▁▁▁▁ 946
mircea_popescu: meanwhile in other news, https://i.imgur.com/yloPWi5.jpg
asciilifeform: defective photo!111 they're clothed!
mircea_popescu: lol
mircea_popescu: women have this great advantage, that they cvan fuck dressed.
BingoBoingo: Lesbian priviledge!
asciilifeform: you can just as dressed, if zipper worx, neh
mircea_popescu: i dunno, dood... lame joke re intromission. what can i do.
asciilifeform back to ffaism, after short 'vacation' . will order piz irons in coming 2wk, as the req'd fiatola piles up ☟︎
asciilifeform: ftr, during 'vacation' wrote a vehehery rought draft of item prev. discussed in log ☝︎☟︎
a111: Logged on 2019-06-04 13:29 asciilifeform: http://btcbase.org/log/2019-06-04#1917019 << i'ma describe, for the l0gz, the hypothetical. suppose mips emu in asm ( the heathen item in fact compiles to a 30kB elf , not esp. complex, but would want clean rewrite really ). this'd be proggy that takes disk image and it tx/rx raw frames to/from nic, so can have own ip etc. then 1 large amd box can host coupla 100 instances of mips linux from known image. <1s teardown/bringup.
mircea_popescu: true vacation.
asciilifeform: it aint ready for primetime tho, must admit
asciilifeform: emulates errything but the page table mechanism, which is somewhat gnarly even on mips (tho miniscule compared to pc's) ☟︎
asciilifeform: hand-massaged asm for pipelineism etc, worx out to <12kB total bin so far.
asciilifeform: in next vacation i'ma wrap it up & genesis.
asciilifeform: almost all of the sim-instrs fit in amd64's 32byte cache line load.
asciilifeform: aim is a 'mips 4000' compat. item (for ease of hardwarization, when time comes) if anyone cares. and at some pt will also have to port gnat, cuntoo... to it. ☟︎☟︎
mircea_popescu: not bad though
mircea_popescu: not bad at all.
asciilifeform: you run it as e.g. ./mips disk.img 31337 and connect on latter port, get uart.
asciilifeform: about 2000 loc of (somewhat macroistic) nasm atm, but still within bound of 'fit in head' imho
asciilifeform: ( for n00bs -- why mips? cuz pretty small instr set, and fixed-length codes; and theoretically existing gcc backend. really no other reason. )
asciilifeform: if folx come up with serious use for item outside of piz shared cluster (where it is imho direly needed) i'ma also do a 64bit mips at some pt.
asciilifeform: (for instance 1 possible application is mircea_popescu's 'uci'...)
asciilifeform: instr. decoder snippet, to whet appetites.
asciilifeform: to sorta tie into the 'games' thrd, found out by way of digging for mipsisms, that : 'playstation 1' toy box was apparently a mips (3000) .
diana_coman: heh, sounds like a very nice vacation indeed
asciilifeform: strangely enuff, dun seem that any of the game emulator people, ever baked a properly hand-asmed emu for it
asciilifeform actually scoured 'shithub' & etc. , found none
asciilifeform: notably, i reject bellard's approach to emuism , where he 'dynamically recompiles' . imho it aint worth the 9000x moar complex clockwork.
asciilifeform: there is ~not~ a shortage of irons. but there ~is~ a shortage of soft that actually behaves to spec and fitsinhead.
asciilifeform: in my clockwork there is no heap allocation, and errything that can live in machine reg, does. (the only allocation is one mmap, for the emu-ram, a user-specified x GB chunk, after that 100% regs/stack)
asciilifeform: stack is also statically allotted on warmup, a la ffa.
diana_coman: nice
asciilifeform: in principle possible to add e.g. vga to this, and have pc boot straight into it.
mircea_popescu: i think you have a point, re compiles.
asciilifeform: ever tried to read bellard's 'qemu' ? i dunno if decade would be enough to eat it, trb-style, even if did nuffin else.
asciilifeform: ( recall that there's been 2-3 published vulns for it per month, for , what, 5y nao )
asciilifeform: other aspect of this, picture trying to rewrite a 'dynamic' emu like bellard's, to run on e.g. arm.
asciilifeform: it won't even astonish asciilifeform if in the end finds out that purely-interpreter algo actually clocks faster on recent (10y) pc irons than 'dynamic'. cuz fits in l0 cache and dun rewrite executable pages (i.e. dun blow the cache erry time it farts)
asciilifeform: incidentally when asming on amd (possibly intel also, but i threw out my intel datashits..) can hand-crank the cache when desired.
asciilifeform: 1 example of sim-inst, 'branch on less than zero', to give illustration of the moving parts.
asciilifeform: i.e. ffa-style mux for the sim-branch clockwork.
mircea_popescu is listening quietly.
asciilifeform: the only thing to add, possibly for n00bz, is the observation that you can actually use all the machine regs, as pictured above, if you dun have any c or other compiled lang in the proggy
asciilifeform: can reclaim e.g. ebp, r8-15 etc, which normally clobbered by the proc call abi.
asciilifeform: ( must save/load'em when calling unix to drive console i/o, disk, etc. when under a unix, but on bare irons not even this )
asciilifeform: much broader range of things you can do, if yer asmism is standalone rather than inlined into gnat etc.
asciilifeform: theoretically, in naked iron variant, can simply translate the mips page tbl into pc's. but this is for much later.
asciilifeform: folx w/ nitpicks, thoughts re potential applications, etc. plox to write in!
asciilifeform bbl:teatime!
lobbes: !!rated Mocky
deedbot: lobbes rated Mocky 1 at 2018/05/19 00:55:42 << newblood^rad; does things, keeps blog
lobbes: !!rate Mocky 3 met irl; he's good people
deedbot: Get your OTP: http://p.bvulpes.com/pastes/Zq7xJ/?raw=true
lobbes: !!v 7B574A17134617B82BCABC7F4C594A2099410B96224080033340816245C747B5
deedbot: lobbes updated rating of Mocky from 1 to 3 << met irl; he's good people
mircea_popescu: and so the web grows!!!
Mocky: !!v F4D4496A7111453C0292B2DE520A9457DD1A00C8F3A8E34333C48FDEBDFB99C0
deedbot: Mocky rated lobbes 3 << we shared firewater
BingoBoingo: And the WoT grows meatier in its fibers