log☇︎
22400+ entries in 0.012s
mircea_popescu: such that it can't either deplete the machine entropy by reading mb/s nor can it figure out the internals by reading straight fg bytes
mircea_popescu: this way - O is "always full" from the pov of userland ; I is protected from userland reading O.
mircea_popescu: the operation then consists of : 1. FG -> I.W 2. if I.W = I.R, I.R -> O.W, such that if O.R >= O.W/2, next O.W goes through HF filling many offset bytes ; if O.R <= O.W/2, next OW goes through HG, filling one offset byte.
mircea_popescu: ring buffers : Inner (small, 16kb to cpu-cache-size) ; Outer (large, 1 MB to swap partition size). each buffer has a writing head moving around it and a reading head moving around it, their position is W and R at any time.
mircea_popescu: let me formalize this, 1sec.
mircea_popescu: no, it's not the same length, for one thing. 2nd buffer should be mb or larger ; and it gives the effect that there's an always-full entropy buffer
asciilifeform: the 1st half of this , i get, is same as what i sketched. but for what is the outer buf ? seems like a single ring of same length as the 2, gives same effect ?
mircea_popescu: is this comprehensible ?
mircea_popescu: such that the outer ring is always full, and the inner ring is always good.
mircea_popescu: this outer ring should use two cprngs to stretch the flow-in, one fast and one good.
mircea_popescu: imo correct design is 16kb to cpu-cache-sized inner ring buffer, wherein fg material is simply written into a loop, plain ; and from where high quality entropy is read blockingly. whenever the writing head threatens to overwrite the reading head, the overwritten bits are instead fed into outer ring ☟︎
asciilifeform: ( what means here 'attrition' ? and for what is the 2nd buffer ? )
mircea_popescu: nah, pretty sure you need two, to protect self from attrition attack
snsabot: Logged on 2019-08-22 00:18:54 mircea_popescu: could you simply throw out the whole damn thing and replace with from-scratch random.c / h ?
asciilifeform: http://logs.nosuchlabs.com/log/trilema/2019-08-22#1930033 << naively seems to asciilifeform that whole thing oughta be replaced with a single ring buffer, where 1) root can write 2) users can read (w/ settable max byte/sec quota/ea. perhaps) 3) erry read consumes a segment of the buffer, i.e. no 2 users get same chunk of FG tape 4) if buffer empties, machine goes into single-user mode and rings alarm .
asciilifeform: http://logs.nosuchlabs.com/log/trilema/2019-08-22#1930032 << to return to this : when asciilifeform laid out the (~8 y.o.!) kernel , to bake the 'demo' image for 'M' , found that ~whole thing~ is written in this style. ( last dealt with kernel internals at length in '06-07, when wasn't ~quite~ this nauseating . or perhaps my stomach were stronger..? )
asciilifeform: ( for the curious : 'erlang' had 0 'shared memory' b/w threads. all inter-thread motion was in the form of messages (received in 'atomic' queues internally). these could consist of whatever -- symbols (a la lisp) , for simple 'a/b/c' cases ; strings of bits; etc. a message could be eaten, or forwarded to yet another thread, or even sent back to the sender. )
asciilifeform: mircea_popescu: i keep coming back in my notes to the swedes, simply b/c in their notation, a 'bulletproof' net of mutually-synchronized bots is suddenly ~trivial.
asciilifeform: ^ thus far only planned resets .
snsabot: asciilifeform: time since my last reconnect : 6d 2h 12m
asciilifeform: if the 'silent wedge' effect actually exists (rather than , say, an artifact of trinque's async mechanisms) i expect it will eventually be found to wedge
asciilifeform: spyked: mine disconnects strictly when a send() or recv() actually return eggog (i.e. indicating dead tcp pipe)
snsabot: Logged on 2019-08-22 07:50:22 spyked: to detail: trinque's bot has a thread that pings the irc server and does lag tracking (the lag then is: pong_response_timestamp - ping_sent_timestamp); if it detects that the lag is high, then it tries to reconnect. so when feedbot spends a lot of time in the notification loop, it doesn't receive the pong and gets disconnected.
asciilifeform: http://logs.nosuchlabs.com/log/trilema/2019-08-22#1930066 << ftr i've yet to observe this 'silent wedge' effect in my bot (i.e. where the tcp pipe is 'alive' but not doing anyffin useful). tbf it is, what, only 3rd week of this bot.
snsabot: Logged on 2019-08-14 10:43:52 asciilifeform: both, however, occasionally forced to make 'unprincipled exception', cuz the set of what can be done by deskilled monkey with 'cluck' tool is never 100% .
asciilifeform: phunphakt -- ericsson at one pt sacked him and ordered their pbx rewritten in cpp. and nearly tanked, had to beg him to come back.
snsabot: Logged on 2017-03-30 10:50:38 asciilifeform: trinque: erlang wasn't simply about 'uptime', or even 'no pointer arithmetic', it also was the only case i know of where process migration actually worked
asciilifeform: by this merciless slicing, he was able to make so that almost entire state of a program is reducible to 'which threads are alive', and thus was able to achieve interesting results
asciilifeform: author (one armstrong, recently dead) sewed it by taking various fp langs of the time, and mercilessly cutting cpu-expensive features (e.g. the infamous np-complete reductor of prolog, the 'lazy' of haskell, etc)
asciilifeform: 'erlang' was ultra-fascist 'functional' , i.e. even to make variable in the usual sense is difficult
mircea_popescu: but yes, functional language should be able to get closest to your 0 penalty.
asciilifeform: mircea_popescu: i've a pile of'em in notebook, but generally dun like to throw in unless pertinent to thrd
mircea_popescu: logically, it'd be exactly the sort of spitshine fit for its shoes.
asciilifeform: ( 'erlang' has a pretty martian syntax that most folx who didn't program in 'ml' or similar , dun have the digestive enzymes for )
mircea_popescu: this is the first time i hear of some actually useful lisp improvement
asciilifeform: imho would be 9000x better to simply steal the technique and port to e.g. cmucl .
asciilifeform actually has working copy of that compiler, 'erlang' , from 2000s (i.e. before the webtards got to 'improving' it) if anyone at some pt wants to experiment with this particular sunken uboat
snsabot: Logged on 2019-08-11 20:36:42 asciilifeform: looked even at ancient rusty 'five nines' behemoths that apparently work , for potential dusting off a la gnat.
snsabot: Logged on 2019-08-22 07:54:59 mircea_popescu: can't, in general speaking, when plumbing the synch-asynch divide (such as for instance tryuibng to resolve through design the impedance mismatch between non-threqaded process and synchonous messaging) commit to any activity of an open-ended length. main loop gotta know at least approximately how long each call will take, or else it can't make them
asciilifeform: http://logs.nosuchlabs.com/log/trilema/2019-08-22#1930071 << the swedes had a model of programming which asciilifeform always wanted to steal, which was especially good fit for cases like this -- '9000' ultralight threads with ~0 spawn/die penalty, if you wanted to wait for an event, could spawn thread that does nuffin but ( and in turn if times out sends correct signal to
asciilifeform: * deedbot has quit (Read error: Connection reset by peer) << trinque ??
asciilifeform in gui browser with cleared cache -- consistently gets the expected 1.3s for that page here.
asciilifeform: ( i.e. how long takes to actually birth that page )
asciilifeform: ftr , on dulap itself : time curl http://127.0.0.1:5002/log/trilema/2018-10-12 > /dev/null yields 0.161s .
snsabot: Logged on 2019-08-22 07:39:04 mircea_popescu: asciilifeform, got 1 for you : $ time curl http://logs.nosuchlabs.com/log/trilema/2018-10-12#1861054 > real 0m24.902s user0m0.011s
feedbot: http://trilema.com/2019/truth-or-dare-in-bed-with-madonna/ << Trilema -- Truth or Dare (in bed with Madonna)
spyked: the downside is that now messages are going to arrive somewhat slower -- ISONs aren't sent too often, so as to not abuse that command; but probably not that much of a problem either way. if a user was offline for a while, then he can wait the extra minutes to receive the messages.
spyked: mircea_popescu, for PM notifications, the sender is called only when the target nick is online; to find out whether a nick is connected, it sends an ISON and waits for a reply; and on the reply handler, it (until now) tried to process the entire message queue for that nick, which... yeah, that's a really bad idea.
mircea_popescu: can't, in general speaking, when plumbing the synch-asynch divide (such as for instance tryuibng to resolve through design the impedance mismatch between non-threqaded process and synchonous messaging) commit to any activity of an open-ended length. main loop gotta know at least approximately how long each call will take, or else it can't make them
mircea_popescu: why doesnt the main program loop call the sender thing ONCE AT A TIME ?
spyked: the fix I'm currently applying is to have feedbot send notifications in short bursts so that it doesn't take over the main program loop
spyked: to detail: trinque's bot has a thread that pings the irc server and does lag tracking (the lag then is: pong_response_timestamp - ping_sent_timestamp); if it detects that the lag is high, then it tries to reconnect. so when feedbot spends a lot of time in the notification loop, it doesn't receive the pong and gets disconnected.
spyked: mircea_popescu, meanwhile I found it wasn't the issue I initially thought! I'ma bring the bot back online shortly
snsabot: Logged on 2018-10-12 12:56:05 mircea_popescu: in the 1980s engineers / cstronicists' defense, it was not yet understood how important entropy is to individuality and human existence.
mircea_popescu: asciilifeform, got 1 for you : $ time curl http://logs.nosuchlabs.com/log/trilema/2018-10-12#1861054 > real 0m24.902s user0m0.011s
lobbesbot: nicoleci: Sent 3 weeks, 4 days, 2 hours, and 34 minutes ago: <mp_en_viaje> State of Florida Vs. Ruby McCollum, Defendant by C. Arthur Ellis << download this
spyked: I think I caught the bug. will fix by the end of the day and bring teh rss bot back up.
spyked: grrrr, this is annoying. ftr, I set the delay knob for feedbot msg delivery to 2 seconds and it still gets disconnected for some reason. I suspect it's something other than fleanode simply disconnecting, so I will ask users who are waiting on pending PMs from feedbot to bear with me for a while.
asciilifeform: to where retire ssd? if still 'worx', e.g. trb node. lappies. if end of life ? stoke furnace. ( see mircea_popescu's piece with furnace. )
asciilifeform: 1tb ssd btw ~100bux nao. keep pile of spares, and dun hesitate to rotate prophylactically, they're a consumable.
asciilifeform: 'gain speed' applied strictly to mech hdd, they could be spun out of phase, i.e. cut seek time
asciilifeform: algo -- simple, you pull the 1 that a) has nonzero write failure counter, or if none such, b) the one with highest blocks-written count .
asciilifeform: 4 is the min. that makes any sense
snsabot: Logged on 2019-08-22 00:13:36 mircea_popescu: raid was immensely useful for the older drives. with ssds its' not clear you gain so much in either speed or reliability
asciilifeform: mircea_popescu: nao you know why i skipped the ' feed linux random ' stack entirely in '16. ( admittedly didn't get even half as far as bvt before barfed )
mircea_popescu: considering the keys we use are 4kb, it seems reasonable we should keep entropy pools of no less than 16kb ?
mircea_popescu: incidentally, the fucking notion of a byte-counted entropy pool is fucking ridiculous.
mircea_popescu: in any case it is obvious that using it as intended (ie, pretending fg is what the linuxtards call a "hardware random generator") is ~wasting it. i dun wanna initialize the middle 32 bytes out of anything.
mircea_popescu: could you simply throw out the whole damn thing and replace with from-scratch random.c / h ?
lobbes: once this thing is up I'll probably be asking in #a (unless #mod6 still lives?) about doing a 'hot-start' with trb
lobbes: sounds reasonable to me. aite, I'ma tell em' no raid I think
mircea_popescu: in any case, there's not much point to two disk raid arrays ; nor to software raid.
mircea_popescu: raid was immensely useful for the older drives. with ssds its' not clear you gain so much in either speed or reliability
lobbes: in other news, I'm in the process of provisioning a dedi server (for primarily a second trb node). I grabbed one with 2 512GB SSD drives. Now my question is: should I bother with RAID 1? Or will this just be stupid because they will wear at the same rate?
lobbes: wb to somewhat-civilisation mircea_popescu
snsabot: Logged on 2019-08-20 22:47:29 lobbes: but it is true that I was also failing *her* by not taking the reigns as I should have. The next girls, however, will be taught properly.
mircea_popescu: http://logs.nosuchlabs.com/log/trilema/2019-08-20#1929954 << there's certainly substance to that "also failing her" portion.
mircea_popescu: this is in fact the definition, jungle as above, camp as in, <1minute.
snsabot: Logged on 2019-08-08 16:13:35 mircea_popescu: do you realise every time i do a keyop it's ~half hour of slavegirl time going blind on asciisoup ?
snsabot: Logged on 2019-08-20 22:39:42 snsabot: Logged on 2016-09-16 22:54:18 trinque: BingoBoingo: aha, in fact there was a thread where mircea_popescu explained that y'know, you teach the women things
mircea_popescu: http://logs.nosuchlabs.com/log/trilema/2019-08-20#1929950 < it helps immensely if the woman can actually respect you, though.
asciilifeform: can't resist to ask, what counts as 'civilization'
asciilifeform waves to mircea_popescu
mircea_popescu: i'm starting to suspect the actual market for gangbang porn is really ~diane keaton
snsabot: Logged on 2019-08-20 21:33:49 trinque: motherinthemiddle
mircea_popescu is back to civilisation, somewhat.
snsabot: Logged on 2019-08-20 21:07:20 asciilifeform: mp_en_viaje: relatedly, the trad ru 'ethno-slur' for poles, 'пшеки', is quite a bit like 'пшик', what nominally spray can says.
BingoBoingo: re: fonix http://logs.nosuchlabs.com/log/trilema/2019-08-20#1929903 I finally discovered that down here "sour cream" is "Queso Crema: Talercrem"
asciilifeform: holyFUCK the sheer fecal mass.
BingoBoingo: In local weather, Mujica's wife will be acting president tomorrow for some hours while doctors poke current president's lungs with scopes and radiation
snsabot: Logged on 2016-12-30 13:34:00 phf: true, but alf also "won't touch the web"
snsabot: Logged on 2016-12-28 16:44:23 Framedragger: http://btcbase.org/log/2016-12-28#1592214 << entirely possible folx weren't aware of phuctor, it's not exactly advertised much. (then again, cue mp's "they don't have a right/privilege not to be aware"..)
asciilifeform: BingoBoingo: they like to fiber most of the way to destination (for obv. reason)
BingoBoingo: And as far as I can tell, USG to USG drones is the only actual satellite internet
asciilifeform: betcha there's some convoluted reason asciilifeform would never in 9000 yrs guess at, for fiber-to-africa
BingoBoingo: Well, they need to be oppressed through something
asciilifeform: why not also run fiber to the penguins in south p. i suspect they can just as easily pay.
asciilifeform: maybe i'm thick, but what the fuck do angola and cameroon need net connections for ?!
BingoBoingo: Also a couple newer one that go from Fortaleza to different places in Africa
asciilifeform: spain, portugal tho. rather than riga.