1243 entries in 0.777s
a111: Logged on 2017-11-21 18:36 asciilifeform: in other noose,
ffa elf on x86-64 with no inlinings and stripped .a , is ~50kB
mircea_popescu: but yes, the alternative is to genesis it and then link downstream from
ffa.
mircea_popescu: And in this here
FFa post we will be taking Comba Mult version x from y date and together with last week's X, Y and Z, and make this pile
phf: well, i'm thinking in terms of a TMSR MACHINE. scheme.adb linked against
ffa linked against that com1 hack you posted some time ago :p
spyked: I'm also keeping the idea of potentially embedding in other ada projects (e.g. adacoin?) in mind. but so far wrestling the
ffa aspects were enough of a challenge. oh, and there's no gc yet, the thing leaks memory like hell. but that's not its biggest problem.
spyked: in other news, I've been using most of my spare cycles lisping in ada. should be able to wrap up a blog post sharing a very minimal prototype (sane implem. of repl doing nothing but basic ops) in a few weeks. what I've got now adheres to most of
ffa constraints. the current version isn't very clean, but getting there...
☟︎ a111: Logged on 2017-11-10 14:12 asciilifeform: when i sit to play a game, it feels like dereliction of duty, with, e.g.,
ffa yet undone, dulap not yet replaces, scintollator rng not complete, 9000 other processes
BingoBoingo: If math was fair, Elloit would have already had an
ffa for asciilifeform
mod6: with comba, for instance, as with others (ex. karatsuba): i tend to go and read the papers on it, then review the code and see how
ffa is doing it. etc.
mod6: been studying
ffa most of the month.
a111: Logged on 2017-10-14 18:57 apeloyee: still, left-to-right exp (as in
http://btcbase.org/log/2017-10-14#1725202 ) uses one FZ-sized temporary less than current
ffa's right-to-left. (the indexing of E can be reverted to what
ffa currently has).
a111: Logged on 2017-08-10 02:43 asciilifeform: for simplicity, tested the case that actually happens in practice: on a 64bit box, any
ffa width over 512 bits gives a strictly 8-wide comba mult ocurrence
a111: Logged on 2017-10-08 00:20 asciilifeform:
http://btcbase.org/log/2017-10-07#1722411 << 1 )
ffa is closed form. i.e. it CAN be written as a number of nand gates, with a 'funnel' at the top, to which you present a,b,c, e.g. 4096bit, numbers, and at the bottom in a little cup you get a^b mod c , and with NO UPWARDS FEEDBACK FLOW of information , i.e. answer comes after same interval of time always, and with strictly downwards signals.
mod6: i do also think there could be paragraphs even written around certain procedures in
ffa. but not sure if that belongs in the code, or as a corresponding document outside of the code.
a111: Logged on 2017-10-13 15:14 asciilifeform: keep in mind that
ffa ( esp. the more recent items ) will change.
mod6: i believe there to be a lot of merit to having unit tests around the specific procedures and functions in
ffa.
mod6: probably won't even start until we're closer to a finalized version of
ffa.
mod6: again, these are unit tests, not functional, integration, or performance tests. meaning: i simply call a (so far public) procedure/function within
ffa with specific parameters, and expect specific outputs.
mod6: ive been writing unit test for
ffa a111: Logged on 2017-10-02 19:52 mircea_popescu: so what is the idea here, if i wish to review the state of this, other than asking you, i could also what ? !#s
ffa ?
apeloyee: if you have N
ffa-eligible tests, bailing early out after one of them failed is not a problem.as per above.
apeloyee:
http://btcbase.org/log/2017-10-07#1722397 << I was unclear. Let A be the number to be reduced mod N, R the approximate reciprocal, K the
ffa bitness fitting the modulus, then we know that 0<A - N*floor(A*R/4^K) < 2*N <2^(K+1). So might as well calculate A - N*floor(A*R/4^K) modulo 2^(K+1).
☝︎ a111: Logged on 2017-10-07 22:39 phf:
http://btcbase.org/log/2017-10-07#1722379 << this is probably true but only because
ffa mutates an array of bigits, where's any language level bignum system produces a whole new one for each operation
a111: Logged on 2017-10-07 21:53 apeloyee: the primorial has to be, say, 2^32 times less than the
ffa maxint. then you can add randomnumber*primorial, and such a number is equally likely to any prime from some interval
a111: Logged on 2017-10-07 21:09 apeloyee: asciilifeform: turns out a simple,
ffa-suitable O(N^2) algorithm exists for GCD. This is adapted from GMP docs with one extra operation in the loop:
http://p.bvulpes.com/pastes/oupUJ/?raw=true . Note: the code as posted is likely wrong, but I'm sure the idea can be made to work.
a111: Logged on 2017-10-07 21:53 apeloyee: the primorial has to be, say, 2^32 times less than the
ffa maxint. then you can add randomnumber*primorial, and such a number is equally likely to any prime from some interval
a111: Logged on 2017-10-07 19:30 asciilifeform: i also suspect that they are in fact slower for maxhammingweight case of exponentiation and modulus, vs
ffa.
apeloyee: the primorial has to be, say, 2^32 times less than the
ffa maxint. then you can add randomnumber*primorial, and such a number is equally likely to any prime from some interval
☟︎☟︎ apeloyee: asciilifeform: turns out a simple,
ffa-suitable O(N^2) algorithm exists for GCD. This is adapted from GMP docs with one extra operation in the loop:
http://p.bvulpes.com/pastes/oupUJ/?raw=true . Note: the code as posted is likely wrong, but I'm sure the idea can be made to work.
☟︎ phf: i suspect that
ffa's take on expmod is to iterate over every bigit of the exponent, which will have to perform base operations no matter what the numeric size is, but that's a guess.
phf: mircea_popescu: well he either has a constant time algorithm in
ffa, in which case if the goal is to compare speed specifically we should be comparing fixtime
ffa and fixtime something else. otherwise he has a variable time algorithm running at worst case constant time, in which case the comparison is between base operation speed, which is still going to come out on top
mod6: (other than the
ffa-fact, which i use sometimes to try new, whole,
ffa parts out)
mod6: ah, ok. and yah, no need to let p out of the garage until
ffa is pretty much "there".