CIYAM
Legendary
Offline
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
|
|
February 21, 2014, 11:49:43 AM |
|
for BTC, I could just convert to satoshis and do arithmetic on that couldn't I? All I need are add and subtract, can I just use longs or do I need to use a special library?
You just need to use an int64_t and consider everything to be in "satoshis" if you are only doing basic operations (the class I wrote is to allow for more complicated operations). For NXT amounts also just treat the values as NXT cents (although you may as well also allow for further possible decimal values) and use an int64_t again.
|
|
|
|
|
|
|
|
|
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
fmiboy
|
|
February 21, 2014, 11:51:57 AM |
|
There is lack of support for people that want to use and implement NXT, that way we miss opportunities.
Apparently implementing NXT is not that straight forward, look at cryptsy, mintpal, atomic-trader, etc… none of them succeed without any help to implement NXT.
We cannot expect mass adoption if above persist, and nobody steps forward to either make some kind of procedure or help people out.
Another remark is that I have the impression interest in NXT is decreasing in favor of new alt-coins/clones.
How can we reestablish interest in NXT?
Collected some info here, thought maybe could help some exchanges to implement Nxt. https://docs.google.com/document/d/1ch1PoWcKEptFziXlrm92TG_BHm0hG9llKBs2LH29N-4let me know if anything is missing or need correction... Someone with better writing skills should edit that before it can be presented to "exchanges" tried to make it easier, please PM me if you would like to edit. Added support for comment, please comment changes!
|
|
|
|
Eadeqa
|
|
February 21, 2014, 11:57:41 AM |
|
There is lack of support for people that want to use and implement NXT, that way we miss opportunities.
Apparently implementing NXT is not that straight forward, look at cryptsy, mintpal, atomic-trader, etc… none of them succeed without any help to implement NXT.
We cannot expect mass adoption if above persist, and nobody steps forward to either make some kind of procedure or help people out.
Another remark is that I have the impression interest in NXT is decreasing in favor of new alt-coins/clones.
How can we reestablish interest in NXT?
Collected some info here, thought maybe could help some exchanges to implement Nxt. https://docs.google.com/document/d/1ch1PoWcKEptFziXlrm92TG_BHm0hG9llKBs2LH29N-4let me know if anything is missing or need correction... Someone with better writing skills should edit that before it can be presented to "exchanges" tried to make it easier, please PM me if you would like to edit. Added support for comment, please comment changes! You should just post it to wiki. Then anyone can proofread it.
|
|
|
|
jl777
Legendary
Offline
Activity: 1176
Merit: 1132
|
|
February 21, 2014, 12:10:53 PM |
|
for BTC, I could just convert to satoshis and do arithmetic on that couldn't I? All I need are add and subtract, can I just use longs or do I need to use a special library?
You just need to use an int64_t and consider everything to be in "satoshis" if you are only doing basic operations (the class I wrote is to allow for more complicated operations). For NXT amounts also just treat the values as NXT cents (although you may as well also allow for further possible decimal values) and use an int64_t again. OK, that's easy enough. Its strange the gateway is actually never dealing in NXT. It does have issue and redemption of asset, which is in NXT cents though. Do you know how we will go from NXT cents to more precision later? I guess I could just multiply by a million and it becomes NXTtoshis.
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
|
|
February 21, 2014, 12:15:01 PM |
|
OK, that's easy enough.
Glad you have decided to change it. Its strange the gateway is actually never dealing in NXT. It does have issue and redemption of asset, which is in NXT cents though. Do you know how we will go from NXT cents to more precision later? I guess I could just multiply by a million and it becomes NXTtoshis.
It makes sense to use NXTtoshis and then convert them back to NXTcents for API calls (that way all your numbers will be at the same scale).
|
|
|
|
gimre
Legendary
Offline
Activity: 866
Merit: 1002
|
|
February 21, 2014, 12:19:53 PM |
|
James, these are actually basics, that students are learned on Numerical Analysis... Any currency related computations should be made using fixed point math I'm glad CIYAM finally convinced you, that you should use integer based math... CIYAM, I'm really amazed by your patience.
|
|
|
|
|
verymuchso
Sr. Member
Offline
Activity: 421
Merit: 250
HEAT Ledger
|
|
February 21, 2014, 12:21:14 PM |
|
Could someone please tell me what is the valid (possible) range of NXT account numbers? It seems you can make transactions to account number 1 for instance but what is the chance of someone actually selecting a private key that translates to an account number of 1, or is this not possible at all?
Thank you.
|
|
|
|
fmiboy
|
|
February 21, 2014, 12:28:47 PM |
|
Downloaded the Nxt client a month ago. That java code thing just pissed me off. Why cant you make a simple setup icon ? No matter the technical progress if your client cant even be installed. Main problem of this coin and 95% of the altcoins out there is that the developpers just do not have any sense of communication.
why don't you give Clienxt a try?! https://bitbucket.org/fmiboy/clienxt/downloadsdownload, unzip, double click Clienxt.jar. You can check latest Nxt release from About->Check updates Nxt and it will download, unzip for you. Then go to Console in GUI and right click your mouse to "Re-start server" and you are good to go! edit: by default it will use Testnet!
|
|
|
|
pinarello
Full Member
Offline
Activity: 266
Merit: 100
NXT is the future
|
|
February 21, 2014, 12:29:22 PM |
|
Downloaded the Nxt client a month ago. That java code thing just pissed me off. Why cant you make a simple setup icon ? No matter the technical progress if your client cant even be installed. Main problem of this coin and 95% of the altcoins out there is that the developpers just do not have any sense of communication.
https://nextcoin.org/index.php/topic,1902.0.html
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
|
|
February 21, 2014, 12:30:12 PM |
|
CIYAM, I'm really amazed by your patience.
When you've traversed the depths of thousands of lines of code in order to find a bug that is as simple as an incorrect comma (and taken literally days to do so) then you will either have learned to be very patient with some things or you will have decided that computer programming is not for you.
|
|
|
|
chanc3r
|
|
February 21, 2014, 12:31:43 PM |
|
.. Forget this coin.
Magis quam Moneta (More than a Coin)*Edit: Forget this coinMode. Who???
|
|
|
|
fmiboy
|
|
February 21, 2014, 12:34:38 PM |
|
|
|
|
|
pinarello
Full Member
Offline
Activity: 266
Merit: 100
NXT is the future
|
|
February 21, 2014, 12:46:45 PM |
|
|
|
|
|
jl777
Legendary
Offline
Activity: 1176
Merit: 1132
|
|
February 21, 2014, 12:50:18 PM |
|
CIYAM, I'm really amazed by your patience.
When you've traversed the depths of thousands of lines of code in order to find a bug that is as simple as an incorrect comma (and taken literally days to do so) then you will either have learned to be very patient with some things or you will have decided that computer programming is not for you. Here are the new structures. All amounts are in 'toshis, eg. satoshi, dogtoshi, NXTtoshi I generate the strings to send to bitcoind via %.8f and (double)longvalue/100000000 I am assuming this is safe, but wanted to be sure struct gateway_info { long balance,deposits,withdrawals,tbd __attribute__ ((packed)); int bind_requests,addresses_bound,deposit_txids,pending_sweeps,verified_deposits __attribute__ ((packed)); int withdrawal_requests,moneysent,pending_withdrawals,failed_withdrawals __attribute__ ((packed)); int rawbroadcasts,pending_redemptions __attribute__ ((packed)); };
struct gateway_AM { unsigned int sig __attribute__ ((packed)); int funcid __attribute__ ((packed)); int gatewayid __attribute__ ((packed)); int coinid __attribute__ ((packed)); long amount __attribute__ ((packed)); long unspent __attribute__ ((packed)); long change __attribute__ ((packed)); char NXTaddr[32],coinaddr[32]; union { char txid[128]; char rawtransaction[288]; }; union { char inputs[512]; }; struct gateway_info info; };
James
|
|
|
|
Zahlen
Member
Offline
Activity: 98
Merit: 10
|
|
February 21, 2014, 12:53:44 PM |
|
CIYAM, I'm really amazed by your patience.
When you've traversed the depths of thousands of lines of code in order to find a bug that is as simple as an incorrect comma (and taken literally days to do so) then you will either have learned to be very patient with some things or you will have decided that computer programming is not for you. I would like to code stuff, but no thanks to C++ I lean towards the latter. Like, towards the end of every year when I'm free, I hunker down, write prototypes, then tear my hair in frustration. I'd really like a language that offers the low-level control and efficiency of C, the higher-level abstractions like objects, templates, inheritance and polymorphism of C++ (I could give up some things like virtual methods though), and the clean syntax of Python (imo, whitespace *should* be an integral part of syntax). I don't need cross-platform support, Windows is fine for now, I'm happy to port to specific platforms that I'm interested in. Does this language exist?
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
|
|
February 21, 2014, 12:55:52 PM |
|
@James - For displaying and other non-computational purposes temporarily using a "double" and "printf" is fine.
BTW - you would be better off using "long long" (or better yet #include <stdint.h> and use int64_t) than using "long" otherwise it won't work on most (if not all) 32 bit architectures.
|
|
|
|
xyzzyx
Sr. Member
Offline
Activity: 490
Merit: 250
I don't really come from outer space.
|
|
February 21, 2014, 12:59:14 PM |
|
struct gateway_info { long balance,deposits,withdrawals,tbd __attribute__ ((packed)); ... };
struct gateway_AM { ... long amount __attribute__ ((packed)); long unspent __attribute__ ((packed)); long change __attribute__ ((packed)); ... };
You're using a 64-bit OS, I see. long is only guaranteed to be a minimum of 32-bits in length and it's actual size is both OS and compiler dependent. The int64_t type is guaranteed to be at least 64-bits in length in any environment.
|
"An awful lot of code is being written ... in languages that aren't very good by people who don't know what they're doing." -- Barbara Liskov
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
|
|
February 21, 2014, 01:02:11 PM |
|
Does this language exist?
It is really hard to know which language is the best for what purpose (and in most typically non-trivial applications you'll end up using a few more than just one) but if you are keen to become a good programmer you should probably pick one "main" language and learn it "in depth". This process is not something that will happen "over night" but if you spend the effort you will have become a much better programmer (I spent over 10 years "learning" C++ whilst I worked with it and there are still areas of it that I am not familiar with).
|
|
|
|
rickyjames
|
|
February 21, 2014, 01:03:57 PM Last edit: February 21, 2014, 08:45:52 PM by rickyjames |
|
NXT FUND SPENDING COMMITEE MEMBERSHIP SELECTION UPDATESince I'm the guy that slammed on the brakes back on page 1854 about no spending from the new NXT community funds until fund committees get organized, and since everybody generally seems to think that was an OK move, I feel the responsibility to try and get the ball rolling again on committee organization. Here we go. To organize a small group of people to spend big piles of money, there has to be a legitimate, transparent process to give them that power. The legitimate, transparent process we have gone through in this NXT community is that we have made the funding committee positions open to everyone. utopianfuture on Feb 2 started a funding committee nomination thread, almost three weeks ago: https://bitcointalk.org/index.php?topic=445209.0rickyjames on Feb 7-8 summarized the nominations made to that date in an identical post placed at four different forum locations: https://bitcointalk.org/index.php?topic=345619.msg5007861;topicseen#msg5007861https://bitcointalk.org/index.php?topic=445209.msg5007872#msg5007872https://nextcoin.org/index.php/topic,3890.msg36822.html#msg36822https://forums.nxtcrypto.org/viewtopic.php?f=2&t=753&p=3579&hilit=rickyjames#p3579Each of these posts ended with: *************************** NXT continues to develop at an incredible pace. If you've read this far, it's because you care about NXT. Consider applying for a committee seat to help take it further. NXT Community Nominations To The Funding Committee (NCNTTFC) thread : https://bitcointalk.org/index.php?topic=445209.0 *************************** The only further new nominations at all forum sites made as a result of these posts were: drevil was nominated for TechDev by gs02xzz hughmanwho and SecondLeo were nominated for the infrastructure committee by hughmanwho Come-from-Beyond on Feb 9 accepted Pouncer, klee and neer.g as treasurers of techdev, infrastructure and marketing funds respectively, and the 8,714,025 unclaimed NXT from the genesis block under his control was split equally among their assigned funds. Treasurers have NO authority to make spending decisions. Their role is to be a bank vault and only let money out when it is authorized by a "designated spending authority" - in this case, a SINGLE spokesperson from an elected committee, to be chosen by that committee once it is elected. https://bitcointalk.org/index.php?topic=445209.msg5032217#msg5032217https://bitcointalk.org/index.php?topic=445209.msg5040620#msg5040620Audit spreadsheets of NXT Fund assets are now permanently available , with the spreadsheet layout still being optimized at: https://docs.google.com/spreadsheet/ccc?key=0AoE8nAOEMIa7dFFnWjRNYTM4RkhsN3dRRXFBaTBiaHc#gid=14 , Pinarello on Feb 18 picked up efforts to elect spending committee members by opening a spreadsheet for expressions of interest by people actually willing to serve (instead of just being nominated by others): the post: https://bitcointalk.org/index.php?topic=445209.msg5220880#msg5220880the spreadsheet: https://docs.google.com/spreadsheet/ccc?key=0AsrKGhOkVcFpdFRFeHNUdWx3Qy1nTjBPLUFNWUJKQkE&usp=sharing#gid=0At the time of this writing, the only new names on this volunteer spreadsheet that have not been previously nominated as described above are: ^[GS]^, abuelau, Arckam (frmelin), bloodyrookie, Chanc3r, ChuckOne, CIYAM, Cointropolis_JustabitTime, Fry, Mario123, Pandaisftw, Ricot, TwinWinNerD, Zahlen, ZeroTheGreat Thus 55 nominees were picked after the three week nomination process described above, conducted over all three major NXT forum sites, allowing both self-nominations and nominations by others: ^[GS]^, 2Kool4Skewl, abuelau, Allwelder , Anon136, Arckam_(frmelin), bitcoinpaul, bloodyrookie, brooklynbtc, buybitcoinscanada, Chanc3r, ChuckOne, CIYAM, Cointropolis_JustabitTime, Come_from_Beyond, Damelon, Davetrouser, drevil, EmoneyRu, EvilDave, ferment, Fry, hughmanwho, Jean_Luc, jefdiesel, jl777, Joefox, Klee, l8orre, landomata, laowai80, Mario123, msin, mww, nexetrn, Nifty_Nickel, opticalcarrier, Pandaisftw, Passion_ltc, PeercoinEnthusiast, pinarello, Pouncer, rickyjames, Ricot, salsacz, SecondLeo, smaragda, TaiZen, TwinWinNerD, Uniqueorn, Utopianfuture, VanBreuk, Wesleyh, Zahlen, ZeroTheGreatBy the power vested in me from being full of hot air and having a big mouth, I hereby declare the period for accepting NXT Funding Committee nominations to be over.Anybody that has a problem with that, quote just the red line above and give it a -1. God help us if that happens. Since I've still got some hot air left and I still have a big mouth: We're gonna do a week of campaigning, and we're gonna have a one week long vote starting March 1.Anybody that has a problem with that, quote just the red line above and give it a -1. God help us if that happens. Campaigning is gonna work like this. I've opened up a new thread, NXT Funding Committee Nominee Statements: https://bitcointalk.org/index.php?topic=479167.new#newIf you are a nominee listed above, and you want to serve on ONE AND ONLY ONE of the NXTmarketingfund, NXTtechdevfund and NXTinfrastructure fund spending committees, go post your willingness to serve on this thread. State the committee you want to be on, and make a statement if you want about why you think you would be a good member for that committee. If you are not willing or able to make one single post on this thread, you probably aren't good committee material. Just sayin'. I will PM links to this post to all nominees at all sites and will repost it at the other two forums. I have set up polls on whether each committee should have 5 or 7 members. Go vote. https://bitcointalk.org/index.php?topic=479190.0https://bitcointalk.org/index.php?topic=479200.new#newhttps://bitcointalk.org/index.php?topic=479214.new#newI will set up three more polls for declared candidates on March 1 and repost everywhere calling for a vote for the agreed upon number of committee members for that committee. Yes, I'm being a dictator here. Sorry about that. At least I am a dictator with a suggestion box, speak up if you've got a problem or an idea. And I'm a dictator that's gonna step down on March 7, the day after I get back from representing NXT at Texas Bitcoin Conference. Because on March 7, there WILL be elected committees. (I hope).
|
|
|
|
|