Bitcoin Forum
November 19, 2024, 06:49:01 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 ... 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 [1798] 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 ... 2557 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2761608 times)
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1134


View Profile WWW
February 21, 2014, 09:52:52 AM
 #35941

Is double precision floating point really so unreliable?

This is peoples *money* you are dealing with James so I think you should not be so cavalier and actually understand how things work (or pay someone else to do the job *properly*).

If you take such shortcuts then your code will just end up as "junk" down the track.

I am sure there is some equivalent C code around and the code I wrote there could be reduced (as a lot of functionality it has you wouldn't need).

Would you be so kind as to educate me on how using double precision is being cavalier? I have used floating point a lot, even for iterative computations. For a gateway, all user facing operations have a very short length, eg. one maybe two operations. How will errors in the 14th decimal place matter when 1 satoshi is 12 decimal place even for 1000 deposit.

I am all for super precision, so once I understand the actual problem I will do what it takes to make it precise.

Please help me understand the issue. I read https://bitcointalk.org/index.php?topic=13837.0 and nothing in here convinces me that doing a single subtract will change the value of any deposit or withdrawal, down to 1 satoshi.

Also, the gateway code will be run in controlled environments and I will specify compiler, options, etc.

Again, please provide a specific example of precision problem that a gateway doing deposits and withdrawals will run into. What if I used 128bit floating point?

James

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
pinarello
Full Member
***
Offline Offline

Activity: 266
Merit: 100


NXT is the future


View Profile
February 21, 2014, 09:54:04 AM
 #35942

Ok I understand, but...

what if bter uses info from the "official" blockchain explorer let us say manualy, cant we just fix the issue with that blockchain explorer.

I'm not privy to nexern's code, but I gather that parts of the block explorer database are updated by a cron job that only runs perhaps once per day or so.  If that's the case then it will always lag behind real-time unless a different update scheme is devised.



thank you for your input!

nexern
Hero Member
*****
Offline Offline

Activity: 597
Merit: 500



View Profile
February 21, 2014, 09:57:34 AM
 #35943

Why is blockchain only show 4 confirmation on an transaction made yesterday?

what if exchange only use blockchain info?

please explain

Got a link?

transaction id: 17232427939066065628

I think the blockchain explorer doesn't show the correct number of confirmations. see here, looks more accurate:
http://www.mynxt.info/blockexplorer/details.php?action=tx&tx=17232427939066065628

Ok I understand, but...

what if bter uses info from the "official" blockchain explorer let us say manualy, cant we just fix the issue with that blockchain explorer.

exchanges using thier own instance to verify transactions for sure. blockexplorer is currently polling the NRS api and buffers the result
into a local database, therefore the very quick query and response times you see when using the explorer. the new NRS supports now direct
database access, which means blockexplorer can query all data in realtime soon. since the buffering can be skipped, the confirmations
will be always realtime too. atm you see a snapshot from that moment the old api was polled and therefore the confirmation gap but
this doesn't mean the data is not acurate. the confirmation gap is currently filled by an additional cron job refreshing the snapshot from time
to time. if you check this specific transaction later you will see the confirmation increased.

ps: the blockexplorer is special built to run on minimal hardware to handle even millions of records without any greater latency by query.
this means even if the nxt blockchain grows extremly the response time will remain the same. compared to other tools (e.g. php/mysql)
blockexplorer won't break later due to heavy load or terrabyte dbs.
antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
February 21, 2014, 09:59:43 AM
 #35944

Donation Fundraiser for the Guy who proofread the Reddit-Tip-Bot

The code is now tested and I will also request the payout for the creator of the bot.
Here is a quote of the tester:

Quote
from pkulak sent 1 hour ago

Okay, I'm ready to sign off on this. I got it running in a VM (under my own account to avoid low-karma issues) and everything tests out as working. I didn't do an audit of every line, but I did look at all the lines that were modified/added from the original altcointip project it was forked from:

https://dl.dropboxusercontent.com/u/241970/audit/file_changes.txt https://dl.dropboxusercontent.com/u/241970/audit/diffs.diff

It all looks good. It's good code. No security issues or backdoors, from what I can tell (as of 77d830d3ff0e79d73e798360f2594bcc8021ca8c). The database is not encrypted, which maybe you'd want since it includes all the private keys, but that probably doesn't buy you too much over just really locking your server down properly. Bit of a challenging project too, due to NXT's lack of resemblance to the altcoins that altcointip was built to work with.

His NXT address is: 13791631395073296157
He only received 500 NXT until now from LiQio.

Author of the bot here. Donated 500. Thanks for proofreading the code!

xyzzyx
Sr. Member
****
Offline Offline

Activity: 490
Merit: 250


I don't really come from outer space.


View Profile
February 21, 2014, 10:02:14 AM
 #35945

Speak the Devil's name and he shall appear.

"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
miramare
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 568


View Profile
February 21, 2014, 10:03:34 AM
 #35946

Hi,all,
I read a paper an article about crypto protocol:

Focus: Information Exchange for the Mistrustful

http://physics.aps.org/articles/v6/119

Will this help cryptocurrency ?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 21, 2014, 10:09:17 AM
 #35947

Would you be so kind as to educate me on how using double precision is being cavalier?

Start here: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
nexern
Hero Member
*****
Offline Offline

Activity: 597
Merit: 500



View Profile
February 21, 2014, 10:10:00 AM
 #35948

Code:

struct gateway_info  // this struct is very incomplete, still a work in progress
{
    double balance,deposits,withdrawals,tbd __attribute__ ((packed));
   ...
};

struct gateway_AM
{
    ...
    double amount __attribute__ ((packed));
    double unspent __attribute__ ((packed));
    double change __attribute__ ((packed));
    ...
};


Would it be possible to use int64_t from the stdint.h library to represent amounts instead of floating point?
Eventually, but for single deposit and withdrawals, using double wont lose any satoshi or even dogtoshi. I would only be a cumulative drift in gateway balance totals. I just dont want to have to deal with converting everything to int math for now.


you are doing very cool things jl777, great! just one remark, iirc i have had some problems using __attribute__ switch in the past,
while #pragma pack() was always working well. have to dig in my old sources to find out which compiler refused attribute but there
where some issues i can remember. unless you need explicit selective aligment, #pragma could be better and is not so verbose.
pinarello
Full Member
***
Offline Offline

Activity: 266
Merit: 100


NXT is the future


View Profile
February 21, 2014, 10:12:43 AM
 #35949

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?

abuelau
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500


www.coinschedule.com


View Profile
February 21, 2014, 10:20:21 AM
 #35950

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?


When is the AE going to be fully functional?

Know what's happening in cryptoworld: www.coinschedule.com
Fatih87SK
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500



View Profile
February 21, 2014, 10:21:13 AM
 #35951

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?


Announcing a client that almost everyone is going to use.

+ Public giveaway to promote that client. So people can play with the coins they receive with the new client.

But I have a feeling that we have to wait for Nexern.

McDoxy
Member
**
Offline Offline

Activity: 96
Merit: 10


View Profile
February 21, 2014, 10:22:38 AM
 #35952



My NXT is dancing the Limbo again between my account and bter Grin




Has anybody had any luck with bter NXT deposits the last 24 hours?



Nope my Nxt is trapped in limbo as well...

Made a deposit to BTER 24 hours ago and still haven't received anything.
nexern
Hero Member
*****
Offline Offline

Activity: 597
Merit: 500



View Profile
February 21, 2014, 10:24:11 AM
 #35953

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?


Announcing a client that almost everyone is going to use.

+ Public giveaway to promote that client.

But I have a feeling that we have to wait for Nexern.

no need to wait, there are many good clients out now, supporting AE too.
anyway, of course i am adding additional value to nxt soon.

abctc
Legendary
*
Offline Offline

Activity: 1792
Merit: 1038



View Profile
February 21, 2014, 10:27:53 AM
 #35954

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.

How can we reestablish interest in NXT?
- I think our developres are too busy to write a detailed documentation.

Those, who want to implementing NXT on their services can study our community's open-source developments, such as:

NXT pay-button: http://nxtra.org/pay-button/
curl API: https://bitcointalk.org/index.php?topic=345619.msg4551188#msg4551188
Nxt_API: http://wiki.nxtcrypto.org/wiki/Nxt_API          http://nxt.airdns.org:7875/doc/
the ways to handle deposits: https://bitcointalk.org/index.php?topic=345619.msg4385659#msg4385659
nxtra.org faucet: http://nxtra.org/faucet/faucet.zip
reddit tip-bot: https://github.com/nxtip/nxtip

and so on,
as well, as all opensource Nxt clients.

█████████████████████████████████████████████████
███████████████████████████████████████████████████
█████████████████████████████████████████████████████
█████████████████████████████████████████████████████
██████████████████████████████████████████████████████
█████
█████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████
███████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
   
, the Next platform.  Magis quam Moneta (More than a Coin)
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1134


View Profile WWW
February 21, 2014, 10:28:35 AM
 #35955

Would you be so kind as to educate me on how using double precision is being cavalier?

Start here: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems

A lot of that is talking about 32bit floating point with some references to the '90s. I have extensive experience with 32bit floats and 64bit doubles. I have to check to be sure, but the gateway code is not doing any multiplication, division or anything esoteric. Just adding. With so much headroom, it will be thousands of transactions before the gateways end up with 1 satoshi of cumulative error, but that is only used for keeping them in sync. I do have a few atof() calls that convert bitcoind vouts, but even 100 of them added together will still be precise to the satoshi.

I think there is a superstition against floating point because it can cause problems. Anything can cause problems. I like to assess the pros and cons and code complexity is an issue for me. I do not want to complicate the code for no actual reason. The gateway is not keeping balances in the user's accts. It relies on bitcoind and NXT to do that.

Please give me a specific reason that in this specific case using double precision is bad. I still cant see a scenario where it will be off by a full satoshi. I can always go to 80bit or 128bit doubles if there are cases of losing a satoshi.

James


http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
pinarello
Full Member
***
Offline Offline

Activity: 266
Merit: 100


NXT is the future


View Profile
February 21, 2014, 10:28:44 AM
 #35956

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?


When is the AE going to be fully functional?

Think this goes toghetter with client release, no sence to release AE when avarage Joe cant use it.

Community decides when to release AE, when it is tested enough.



mikesbmw
Sr. Member
****
Offline Offline

Activity: 338
Merit: 250


View Profile
February 21, 2014, 10:29:57 AM
 #35957



My NXT is dancing the Limbo again between my account and bter Grin




Has anybody had any luck with bter NXT deposits the last 24 hours?



Nope my Nxt is trapped in limbo as well...

Made a deposit to BTER 24 hours ago and still haven't received anything.

Few weeks ago they had the same problem. I mailed them, got a nice (non-automated) all be it generic response and a few hours later all was well.
Same thing. Lots of people complaining they hadn't received their NXT and then out of nowhere they appeared.

EDIT: this doesn't do NXT any good...  Sad

NXT: Next Generation of Cryptocurrency http://nxtcrypto.org
NEM:New Economy Movement http://www.ournem.com/
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 21, 2014, 10:31:44 AM
 #35958

Just adding.

James - you do understand that 0.1 and 0.01 *cannot be represented in binary floating point* don't you (no matter how many bits you have)?

If you care to *read* what I linked for you the problems can (and will) occur even when you are just doing simple operations.

Anyway - you have been warned but clearly are not interested in *learning* anything about serious software engineering so I give up and would recommend *no-one* to consider your software as anything other than a prototype.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
pinarello
Full Member
***
Offline Offline

Activity: 266
Merit: 100


NXT is the future


View Profile
February 21, 2014, 10:36:18 AM
 #35959


Do we have an testreport from AE?

Is it ready to implement, what is the status?

Do our clients support the AE to devs satisfaction? wesleyh, marcus03, minusbalancer, etc...)

swartzfeger
Full Member
***
Offline Offline

Activity: 350
Merit: 100


View Profile
February 21, 2014, 10:39:27 AM
 #35960

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?


People won't know what hit them come April. I'll make a prediction (all in good fun) -- NXT @ $1 USD by 31 May.

Just seeing Wesley's new client and the new Nxt wallet have been fantastic additions, we have atomic trade, 0.8.0 is coming... there's been a lot of good news lately. Things are looking up!
Pages: « 1 ... 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 [1798] 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 ... 2557 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!