log☇︎
200800+ entries in 0.123s
asciilifeform: understand, if i paste a gpg key into phuctor, and cannot then ~immediately~ link to it in-chan -- phuctor is broken!! ☟︎
asciilifeform: you are STILL stuck writing new submissions to the front.
asciilifeform: having two databases sounds superficially like a great thing, until you realize that the read-write thing applies just the same to the 'front' one as it does to the existing single.
Framedragger quite certain he would get erection from that small c program in phuctor, and that is great ☟︎
asciilifeform: asciilifeform specifically does not do this.
asciilifeform: i am quite aware that 'software industry' today consists of multiple layers of shit sandwitch, each and every one of which consisted of 'great optimization! all you gotta do is add this 5000 lines of code and 40 layer tree of state that gotta be kept consistent'
Framedragger: it was retarded of me to just throw keywords at you saying "that would do it".
Framedragger: people are telling you that there is a setup which is better but not multi-mil. it does require planning, etc.
Framedragger: you are presenting a false dichotomy consisting of {current phuctor; $multi-mil db setup}. you propose to escape it by writing new db as the only way to escape it.
asciilifeform: see the userland fs thread, with the rebalances.
asciilifeform: it is -- quite obviously -- doing work that dun need doing. behind the curtain. 'for your own good.'
asciilifeform: the disk can push 150 MB/sec. if the db cannot do 150 MB/sec, it is retarded and must burn.
asciilifeform: and knows how to read while writing without stepping on own shoelaces.
asciilifeform: because the CORRECT answer is a sane db that isn't written by motherfucking wreckers
Framedragger: (again, i did realise that the "oh very simple" angle isn't strong here)
a111: Logged on 2017-02-19 03:54 asciilifeform: (iirc we had a thread where i described how corporate ameritards, if given a problem like phuctor, would happily soak up a few $mil and megawatt of iron)
asciilifeform: i can easily picture it . it is how commercial ( http://btcbase.org/log/2017-02-19#1615434 ) db work. google et al. i am specifically uninterested in taking that approach. ☝︎
Framedragger: can you not picture this setup with a read-only slave, with a *separate* "give new key to master" interface (separate so that the replication doesn't become write-write but stays write-read)
asciilifeform: with the difference that the queueing takes place inside pg
asciilifeform: Framedragger: this is quite similar to what already happens.
Framedragger: and you get your 5 seconds. if the db is loaded, it gets inserted "fast", and user is able to see results upon refresh (because when it gets inserted, update gets immediately sent to slave via trigger rule.)
Framedragger: alright. i will grant you that the end system wouldn't be "oh so elegantly simple", because you would have to have a submission queue (maybe something that trinque had in mind). user submits key; gets permalink (immediately); meanwhile key gets sent to master (immediately), and master puts it into "to be inserted" queue. under normal loads, the insertion happens ~immediately, ☟︎
asciilifeform: it's the only serious long-term pill.
asciilifeform: but this won't be happening today.
asciilifeform: what i'ma have to do, eventually, is to replace all of the idiocy. ditch the python, ditch the sql.
Framedragger: however, you won't agree to drop it, i take it.
Framedragger: yes that's the tricky part. my natural answer to that would be to "drop it, have user be able to come back right away - to a permalink - but results only displayed when the upstream db actually processes and inserts the new entry. (this entry would then get fed into the slave via streaming replication)"
asciilifeform: think about this last part.
asciilifeform: including the guy who submitted 5 seconds ago.
asciilifeform: it isn't merely 'hash is computed', it shows if anyone else at any point in history ever had the mods.
Framedragger: you can give permalink to user on the www read-only box.
Framedragger: hold on, hold on. first of all, regarding the permalink: you can have this anyway, because the hash is computed in python anyway (i ~recall the procedure that you once gave me). so,
asciilifeform: the job where it takes you from a base64 gpg key you found on some godforsaken usenet post, to a permanent link in phuctor
asciilifeform: Framedragger: it ain't about 'demoocracy', it is about actually doing the job
asciilifeform: 'but does it do the same job ?' 'ummmmm didn't think of it'
Framedragger: because gotta serve all the our democracy right here and now?
asciilifeform: EVERYBODY thinks they're soooo much cleverer than dumb old asciilifeform ☟︎
Framedragger: are you absolutely unwilling to have a delay there?
Framedragger: asciilifeform: aha, right, that. i literally forgot about that lol. but wait, first we need to clear up the question about whether you want an immediate result to be shown to user upon gpg key submission.
asciilifeform: if the 'www db' isn't writable
asciilifeform: does he IMMEDIATELY get a bookmarkable link based on the key's hash ? that he can come back to next hour, next day, next decade ? if so, how ?? ☟︎
asciilifeform: theoretically this can be done on one box. but -- for my enlightenment, Framedragger , describe to me :
Framedragger: (again tho, it's very easy to just point finger at features, so i'll gladly shut up)
Framedragger: well, i'm not that certain, but i am assuming you have more experience there with me. i will only remark that you merely need a *read slave*, not an actual mirror db which can handle writes and sync state. the syncing would go one way only. (hence the multiple references to pg streaming replication.)
Framedragger: now, complexity management-wise.. maybe; having same person manage both boxes may not be best idea (and the alternative has its own advantages). but the current "phuctor is down, i don't know why, it's a black box" isn't the greatest example of current setup, either. (this may be a red herring, i'm not sure)
asciilifeform: Framedragger: you're talking about replication. replication, generally speaking, doesn't work. certainly not on posgres or any other free db, and certainly not without titanic sweat and inevitable increases in attack surface.
Framedragger: bandwidth required for the www box would be ~same as what's currently needed from phuctor.
Framedragger: bandwidth? bandwidth required for phuctor box would be "what's needed to send new rows to this other box".
asciilifeform: not to mention their bandwidth.
asciilifeform: and the work of shepherding 2+ machines.
Framedragger: of course being able to point to a working prototype would do so much more than arguments. unfortunately that would most likely require the needed modifications on the phuctor box, so a bit of chicken-and-egg.
asciilifeform: Framedragger: why are you regarding the added complexity (100x what i have now!) as 'free' ?
Framedragger: asciilifeform: hold on. the idea was to separate reads from writes. having a separate box for www which gets updates from phuctor box, and having pg indices on it for quick search is *not* resource-intensive. i can cite examples but basically i'm quite certain that a <= 16gb memory box would suffice. phuctor box is 256 gigs yes, but it does *so much more*.
asciilifeform: Framedragger: think about how much complexity in the liquishit we call 'modern comp' comes from these attempted modularizations.
shinohai: Also, strikes were designed to create moar refugees which Trump could laugh at and turn away.
asciilifeform: ( ever read the s.nsa broadcast ? )
asciilifeform: Framedragger: now you're talking about having 2 boxes ? do you have an idea what the ~one~ costs ?
asciilifeform: intact ?! and somebody claims to see this from linked photo ??
shinohai: Naturally, this was to appease Russia.
shinohai: The conspiracy theories begin, Trump leaves the runways intact: https://pbs.twimg.com/media/C8z7QViXYAIrhtc.jpg
Framedragger: (granted, these are just nice abstract words.)
Framedragger: asciilifeform: the parallel to "this is how winblowz blew up" breaks, imho, if you consider the splitting-off of www not as an addition, but as actual splitting-off, i.e., the box with phuctor on it may no longer have a www interface (just an option, i know you may be against it). if you picture it that way, it's more about modularisation vs. fixing and inflating a single monolithic thing.
a111: Logged on 2017-04-07 14:48 Framedragger: the 'www side can live on another server, even' degree of separation may be most easily achievable (given lack of resources to rewrite everything as of now) via pg notify / streaming replication. but maybe asciilifeform would insist that this is 'marrying the db'
asciilifeform: http://btcbase.org/log/2017-04-07#1639884 << is it not obvious how creating MORE things that gotta be 'nuked later' is a problem ? ☝︎
asciilifeform: it is one of the main reasons for phuctor at all.
a111: Logged on 2017-04-07 14:45 trinque: without this separation the idiocies of www will creep in, such as "must respond to user accurately and *now*"
asciilifeform: http://btcbase.org/log/2017-04-07#1639881 << i'll say that being able to paste in an unknown base64 pgp key and see a search result NOW, is not negotiable. ☝︎
asciilifeform: and this requires guaranteed consistency. right now i have this guarantee because there is one db, and not a multilevel morass.
a111: Logged on 2017-04-07 14:44 trinque: mircea_popescu: more clearly stated, I do not see a www as part of the algorithm of phuctor. it is one source of input where there could be many, and one output idem. with a clearly defined line between www and phuctor (even allowing for that www may require cached copies of phuctor data to operate properly), this gives you something you can nuke later and replace.
asciilifeform: http://btcbase.org/log/2017-04-07#1639880 << imho this is a mistake. the presentation of results is not ~cleanly~ separable from the generation, because certain situations (dupes, or the omission of a concordance factor/modulus/key linkage) must be HARD-guaranteed not to happen ☝︎
a111: Logged on 2017-04-07 14:02 asciilifeform: so why then is this not standard? why locks exist at all ?!
Framedragger: http://btcbase.org/log/2017-04-07#1639770 << where possible, new-enough postgres will automagically perform index-only scans. `EXPLAIN ANALYZE your-query-here` output would be interesting to see here ☝︎
mircea_popescu: no i don't mean that. i just mean, yes in principl;e doing something with the plebs is not a bad idea ; but the exact what and wherefore coulo use more conteplation.
Framedragger: the 'www side can live on another server, even' degree of separation may be most easily achievable (given lack of resources to rewrite everything as of now) via pg notify / streaming replication. but maybe asciilifeform would insist that this is 'marrying the db' ☟︎
trinque: thus the notion of sticking someone in the www toilet, who manages commands of specific outputs and inputs, and above all keeps the shit in the shithouse
trinque: meanwhile asciilifeform has no business adopting sql perversions as tools of thought; it would be demeaning
trinque: without this separation the idiocies of www will creep in, such as "must respond to user accurately and *now*" ☟︎
trinque: mircea_popescu: more clearly stated, I do not see a www as part of the algorithm of phuctor. it is one source of input where there could be many, and one output idem. with a clearly defined line between www and phuctor (even allowing for that www may require cached copies of phuctor data to operate properly), this gives you something you can nuke later and replace. ☟︎
a111: Logged on 2017-04-07 11:52 mircea_popescu: tits for btc -> redemption.
shinohai: http://btcbase.org/log/2017-04-07#1639637 <<< This is what I said to Steemit evangelist R. Hilarski a few days ago when he accused me of just hating on altcoins. "When you lose all your BTC in scams, at least your wife is kinda hot so she can come by trilema and bare her tits for bits." ☝︎
mircea_popescu: trinque this stable boy notion needs more thinking.
asciilifeform: imho this is proper.
asciilifeform: phuctor, for instance, dropped ~half of its length each time i rewrote.
trinque: I'll close with the observation that asciilifeform's "fits in head" serves "build to iterate and throw away" very well.
asciilifeform: that is, just how separable the light is from the heavy
asciilifeform: this remains to be seen
trinque: nor the www part of your thing
asciilifeform: trinque: understand, first thing, and only thing , that a brute labourer would say re phuctor, is 'buy $mil of replication', 'use clouds', etc
trinque: asciilifeform: I threw away first bot, and second bot, and we sit here with the 3rd
trinque: otherwise yes, compromises overrun the thing
a111: Logged on 2017-02-19 03:54 asciilifeform: (iirc we had a thread where i described how corporate ameritards, if given a problem like phuctor, would happily soak up a few $mil and megawatt of iron)
trinque expects to throw away any www he builds by weight 5x over the lifetime
trinque: while more expensive people continue to think long-term
trinque: things that are cheap that can later be thrown away
mircea_popescu: what's the stable boy to do ?
asciilifeform: tbh i dun think anybody is getting rich on fg...
trinque: not optimize this
trinque: really the right thing to do here is sell a buncha fuckgoats, get asciilifeform rich, hire stable boy
trinque: but I take your meaning
trinque: I could tune my truck's engine all day and hauling 7000lbs vs 2000lbs will have greater effect