13 karma · joined Sep 17, 2017 (9y ago) · 6 submissions
comment 8y ago · link · parent
'extern const int *table;'
Having a compile-time program create table would guarantee that it's created at compile time. Having a constexpr does not guarantee it would be done at compile-time, it silently degrades to run-time. If verifying requires an assembly listing, I see it less useful than the currently available tools.
comment 8y ago · link · parent
Write a table generator program, have output create a table, splice in the order into make and/or make replacement.
Sure it's three extra steps, but it's small steps that can be debugged. It also doesn't require any advanced compiler tricks that may or may not actually run at compile.
comment 8y ago · link · parent
comment 8y ago · link · parent
Software however is all but impossible to spec from the beginning, or perhaps ever at all... so with only working with the smaller details, the larger picture is lost. At any time, any team, is instructed to stop a problem and immediately fix it, it's band-aids on top of band-aids.
Having multiple teams working on overlapping projects, with little communication leads to the spaghetti code that was mentioned.
comment 9y ago · link · parent
Most importantly, the Coin that has the highest expense to "mine" is the most secure. To attack Bitcoin by out pacing the current miners, it would require millions of dollars in hardware which could just as easily be used to legitimately acquire Bitcoin by mining.
However second place is easily attacked, as the case with BCH, the bitcoin attempted fork. Miners are using their hardware to primarily mine Bitcoin, paying for the hardware, then occasionally attacking BCH, to break it's adjustment algorithm.