Bitcoin Forum
April 27, 2018, 01:58:17 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ... 712 »
  Print  
Author Topic: IOTA  (Read 1308077 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 18, 2015, 05:51:40 PM
 #1101

In short, you may need to roll your own toJSONString() method (or methods) for your base-type(s) and then convert your Map<string, object> to a Map<string, string> and then just call any standard toJSON(...) call for Maps.

It's a standard way of doing such tasks but if I add all this syntactic sugar it will occupy 30% of all code LOL.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524794297
Hero Member
*
Offline Offline

Posts: 1524794297

View Profile Personal Message (Offline)

Ignore
1524794297
Reply with quote  #2

1524794297
Report to moderator
1524794297
Hero Member
*
Offline Offline

Posts: 1524794297

View Profile Personal Message (Offline)

Ignore
1524794297
Reply with quote  #2

1524794297
Report to moderator
1524794297
Hero Member
*
Offline Offline

Posts: 1524794297

View Profile Personal Message (Offline)

Ignore
1524794297
Reply with quote  #2

1524794297
Report to moderator
rlh
Hero Member
*****
Offline Offline

Activity: 788
Merit: 1000


View Profile
December 18, 2015, 05:56:02 PM
 #1102

In short, you may need to roll your own toJSONString() method (or methods) for your base-type(s) and then convert your Map<string, object> to a Map<string, string> and then just call any standard toJSON(...) call for Maps.

It's a standard way of doing such tasks but if I add all this syntactic sugar it will occupy 30% of all code LOL.

I understand that, I guess.  Is there a base type (inherit to Java) that all of your objects could inherit from provides serialization out of the box?  Assuming that all of your public properties are of value types and strings, such a base-type might offer the boilerplate, toJSON(...) method that you need.  Then all you will need is is maps that are of Map<string, CannedJava8JSONSerializableType>

A Personal Quote on BTT from 2011:
"I'd be willing to make a moderate "investment" if the value of the BTC went below $2.00.  Otherwise I'll just have to live with my 5 BTC and be happy. :/"  ...sigh.  If only I knew.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 18, 2015, 06:07:21 PM
 #1103

I understand that, I guess.  Is there a base type (inherit to Java) that all of your objects could inherit from provides serialization out of the box?  Assuming that all of your public properties are of value types and strings, such a base-type might offer the boilerplate, toJSON(...) method that you need.  Then all you will need is is maps that are of Map<string, CannedJava8JSONSerializableType>

There is an out-of-the-box serialization, theoretically, I could override its methods, but it again will lead to too much code. The problem should have been solved several Java versions ago, what a shame.
rlh
Hero Member
*****
Offline Offline

Activity: 788
Merit: 1000


View Profile
December 18, 2015, 06:24:28 PM
 #1104

Well, I admit that I'm projecting onto Java what I know about languages that compile down to low-level, IL binaries, which I mostly understand through .Net/C#.

I think the biggest problem for this type of implementation is that when serializing an object, frameworks such as .Net (or in this case Java) need to assure that once an object is serialized (either to JSON, XML or even to a binary-state) their must be assurance that any restoration from the serialized value, to a java object MUST restore the full state of the object.

Consider the following example to illustrate the problem.

Code:

public MyClass : object

private a;
private b;

public c {get a+b;}

constructor MyClass (int a, int b)
{
}

...

MyClass x = new MyClass(1, 2);
string json = MyClass.toJSONString();


We would hope/suspect that json would equal something like "{c:3}".  There is nothing wrong with this but we have one big problem!  Now we need to take our json value and create a new MyClass object.  How do we do that?

We can't because we need to know the state of 'a' and 'b', in order to deserialize the JSON object and create a Java, MyClass object.

When you inherit from a serializer class (MyClass : SerialiableObject) the base serializer will either not care about this error, or it will allow for you to decorate your properties an variables so that the object can be properly serialized.  For instance, we could imagine something like this is being available.

Code:

public MyClass : Serializable

//Attribute (is such a thing available in Java??? honestly, I don't know)
[Serialize=true, Deserialize=true]
private a;
[Serialize=true, Deserialize=true]
private b;

[Serialize=false]
public c {get a+b;}

constructor MyClass (int a, int b)
{
}

...

MyClass x = new MyClass(1, 2);
string json = MyClass.toJSONString();


After executing such code, our serialized JSON should state "{a:1, b:2}".  As such, if we calls something like:

Code:
MyClass deserializeIt = MyClass.FromJSON(jsonStr);

In so doing, the value of a and b will be restored and the parser will not expect a value for c.  The java implementation of MyClass for the deserializeIt object, however, will provide the proper implementation for the c property.

This is why out-of-the-box serialization is a problem that hasn't been solved.  If you frequently work with low-level languages, this doesn't make sense.  But since maintaining the state of private variable is a BIG DEAL, it's not easy to serialize objects that can then be deserialized back into their original type.

A Personal Quote on BTT from 2011:
"I'd be willing to make a moderate "investment" if the value of the BTC went below $2.00.  Otherwise I'll just have to live with my 5 BTC and be happy. :/"  ...sigh.  If only I knew.
joschua011
Member
**
Offline Offline

Activity: 86
Merit: 10


View Profile
December 18, 2015, 06:38:24 PM
 #1105

anyone of you iota people gonna be at the CCC Conference in Hamburg?
50cent_rapper
Legendary
*
Offline Offline

Activity: 1335
Merit: 1000



View Profile
December 18, 2015, 06:42:04 PM
 #1106

In short, you may need to roll your own toJSONString() method (or methods) for your base-type(s) and then convert your Map<string, object> to a Map<string, string> and then just call any standard toJSON(...) call for Maps.

It's a standard way of doing such tasks but if I add all this syntactic sugar it will occupy 30% of all code LOL.

You can move this additional code to external library.

ewibit
Legendary
*
Offline Offline

Activity: 2254
Merit: 1000


"Highest ROI crypto infrastructure"


View Profile
December 19, 2015, 12:53:10 AM
 #1107

anyone of you iota people gonna be at the CCC Conference in Hamburg?
this has to be be specification move....
 Smiley


           ▄████████▄           ▄███████▄
          ████████████▄       ▄███████████
         ██████████████████████████████████
         ██████████████████████████████████
         ██████████████████████████████████                                              █████
          ████████████▀       ▀███████████                                               █████
            ▀██████▀            ▀██████▀                                                     
   ▄▄▄▄▄▄              ▄▄▄▄▄▄             █████████      ███████████    ████▒     █████  █████     ▄█████████▄     ███████████
 ██████████          ██████████          ███████████▒    ████████████    ████     ████   █████    █████████████    ████████████
█████████████       ████████████        ████     ████    ████    ▒████   █████   ████    █████   ▒████     ████▒   ████▒  ░░████
█████████████      ██████████████      ██████████████▒   ████     ████    ████   ████    █████   ████      ▒████   ████▒    ████
█████████████      ██████████████      █████▒▒▒▒▒▒▒▒▒    ████     ████     ████ ████     █████   ████▒     ▒████   ████▒    ████
█████████████       ████████████        ████▒            ████     ████      ███████      █████    ████     ████    ████▒    ████
 ▀█████████▀         ▀████████▀          ███████████     ████     ████      ▒█████       █████     ███████████     ████▒    ████
                                           ▀██████▒      ████     ████       ▒███        █████       ▀█████▀       ████▒    ████
           ▄████████▄          ▄████████▄
          ████████████▄      ▄████████████
         ██████████████████████████████████
         ██████████████████████████████████
          ████████████████████████████████
           ██████████▀        ▀██████████ 
            ▀██████▀            ▀██████▀ 
    WORLD'S MOST PROFITABLE STANDARD
  OF SELF-EXPANDING CRYPTO INFRASTRUCTURE
FACEBOOK 】【 TWITTER
        ANN THREAD
TELEGRAM MEDIUM
 
  Join our ICO: 
Dec. 1-31 │ Whitepaper 
Hueristic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1026


Doomed to see the future and unable to prevent it


View Profile
December 19, 2015, 02:01:08 AM
 #1108

@Hueristic, deleted your post for ad hominem.

That was not Ad-Hominem, it was an observation. Doesn't matter. I have no faith in you people. Your methods are that of scammers. And that is another observation not an attack.

BITSLER                 ▄███
               ▄████▀
             ▄████▀
           ▄████▀  ▄██▄
         ▄████▀    ▀████▄
       ▄████▀        ▀████▄
     ▄████▀            ▀████▄
   ▄████▀                ▀████▄
 ▄████▀ ▄████▄      ▄████▄ ▀████▄
█████   ██████      ██████   █████
 ▀████▄ ▀████▀      ▀████▀ ▄████▀
   ▀████▄                ▄████▀
     ▀████▄            ▄████▀
       ▀████▄        ▄████▀
         ▀████▄    ▄████▀
           ▀████▄▄████▀
             ▀██████▀
               ▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄            
▄▄▄▄▀▀▀▀    ▄▄█▄▄ ▀▀▄         
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄      
█  ▀▄▄  ▀█▀▀ ▄      ▀████   ▀▀▄   
█ █▄  ▀▄   ▀████       ▀▀ ▄██▄ ▀▀▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█  ▀▀       ▀▄▄ ▀████      ▄▄▄▀▀▀  █
█            ▄ ▀▄    ▄▄▄▀▀▀   ▄▄  █
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ ▄▄   ███   ▀██  █           ▀▀  █ 
█ ███  ▀██       █        ▄▄      █ 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  
▀▄            █        ▀▀      █  
▀▀▄   ███▄  █   ▄▄          █   
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    
▀▀▄   █   ▀▀▄▄▄▀▀▀         
▄▄▄▄▄▄▄▄▄▄▄█▄▄▀▀▀▀              
              ▄▄▄██████▄▄▄
          ▄▄████████████████▄▄
        ▄██████▀▀▀▀▀▀▀▀▀▀██████▄
▄     ▄█████▀             ▀█████▄
██▄▄ █████▀                ▀█████
 ████████            ▄██      █████
  ████████▄         ███▀       ████▄
  █████████▀▀     ▄███▀        █████
   █▀▀▀          █████         █████
     ▄▄▄         ████          █████
   █████          ▀▀           ████▀
    █████                     █████
     █████▄                 ▄█████
      ▀█████▄             ▄█████▀
        ▀██████▄▄▄▄▄▄▄▄▄▄██████▀
          ▀▀████████████████▀▀
              ▀▀▀██████▀▀▀
            ▄▄▄███████▄▄▄
         ▄█▀▀▀ ▄▄▄▄▄▄▄ ▀▀▀█▄
       █▀▀ ▄█████████████▄ ▀▀█
     █▀▀ ███████████████████ ▀▀█
    █▀ ███████████████████████ ▀█
   █▀ ███████████████▀▀ ███████ ▀█
 ▄█▀ ██████████████▀      ▀█████ ▀█▄
███ ███████████▀▀            ▀▀██ ███
███ ███████▀▀                     ███
███ ▀▀▀▀                          ███
▀██▄                             ▄██▀
  ▀█▄                            ▀▀
    █▄       █▄▄▄▄▄▄▄▄▄█
     █▄      ▀█████████▀
      ▀█▄      ▀▀▀▀▀▀▀
        ▀▀█▄▄  ▄▄▄
            ▀▀█████
[]
Hueristic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1026


Doomed to see the future and unable to prevent it


View Profile
December 19, 2015, 02:55:59 AM
 #1109

@Hueristic, deleted your post for ad hominem.

That was not Ad-Hominem, it was an observation. Doesn't matter. I have no faith in you people. Your methods are that of scammers. And that is another observation not an attack.

EDITED OUT

Now this is Ad-Hominem! Cheesy

I have not held XMR for over a year now. I still feel it's the best alt atm. I do watch promising new tech which I am hoping this will actually be. I guess I should remove the XMR address so idiots don't auto think I'm affiliated.

BITSLER                 ▄███
               ▄████▀
             ▄████▀
           ▄████▀  ▄██▄
         ▄████▀    ▀████▄
       ▄████▀        ▀████▄
     ▄████▀            ▀████▄
   ▄████▀                ▀████▄
 ▄████▀ ▄████▄      ▄████▄ ▀████▄
█████   ██████      ██████   █████
 ▀████▄ ▀████▀      ▀████▀ ▄████▀
   ▀████▄                ▄████▀
     ▀████▄            ▄████▀
       ▀████▄        ▄████▀
         ▀████▄    ▄████▀
           ▀████▄▄████▀
             ▀██████▀
               ▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄            
▄▄▄▄▀▀▀▀    ▄▄█▄▄ ▀▀▄         
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄      
█  ▀▄▄  ▀█▀▀ ▄      ▀████   ▀▀▄   
█ █▄  ▀▄   ▀████       ▀▀ ▄██▄ ▀▀▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█  ▀▀       ▀▄▄ ▀████      ▄▄▄▀▀▀  █
█            ▄ ▀▄    ▄▄▄▀▀▀   ▄▄  █
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ ▄▄   ███   ▀██  █           ▀▀  █ 
█ ███  ▀██       █        ▄▄      █ 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  
▀▄            █        ▀▀      █  
▀▀▄   ███▄  █   ▄▄          █   
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    
▀▀▄   █   ▀▀▄▄▄▀▀▀         
▄▄▄▄▄▄▄▄▄▄▄█▄▄▀▀▀▀              
              ▄▄▄██████▄▄▄
          ▄▄████████████████▄▄
        ▄██████▀▀▀▀▀▀▀▀▀▀██████▄
▄     ▄█████▀             ▀█████▄
██▄▄ █████▀                ▀█████
 ████████            ▄██      █████
  ████████▄         ███▀       ████▄
  █████████▀▀     ▄███▀        █████
   █▀▀▀          █████         █████
     ▄▄▄         ████          █████
   █████          ▀▀           ████▀
    █████                     █████
     █████▄                 ▄█████
      ▀█████▄             ▄█████▀
        ▀██████▄▄▄▄▄▄▄▄▄▄██████▀
          ▀▀████████████████▀▀
              ▀▀▀██████▀▀▀
            ▄▄▄███████▄▄▄
         ▄█▀▀▀ ▄▄▄▄▄▄▄ ▀▀▀█▄
       █▀▀ ▄█████████████▄ ▀▀█
     █▀▀ ███████████████████ ▀▀█
    █▀ ███████████████████████ ▀█
   █▀ ███████████████▀▀ ███████ ▀█
 ▄█▀ ██████████████▀      ▀█████ ▀█▄
███ ███████████▀▀            ▀▀██ ███
███ ███████▀▀                     ███
███ ▀▀▀▀                          ███
▀██▄                             ▄██▀
  ▀█▄                            ▀▀
    █▄       █▄▄▄▄▄▄▄▄▄█
     █▄      ▀█████████▀
      ▀█▄      ▀▀▀▀▀▀▀
        ▀▀█▄▄  ▄▄▄
            ▀▀█████
[]
allwelder
Legendary
*
Offline Offline

Activity: 1288
Merit: 1000



View Profile
December 19, 2015, 08:58:17 AM
 #1110

IOTA has been accepted into Wanxiang's Blockchain Lab grant programme: http://www.blockchainlabs.org/blockgrant-x-en/
Cong.
IOTA got 4000 USD award.

I note Wanxiang make no mantion of the "Quantum Secure" property/design/goal of IOTA. 
Did they examine/consider it in their analysis? Thanks

I mentioned it in the grant form, so they are certainly aware of it.
Just want to know,WanXiang will pay you USD ,BTC or ETH?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 19, 2015, 09:27:53 AM
 #1111

Your methods are that of scammers.

Could you be more specific?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 19, 2015, 09:29:20 AM
 #1112

@zanzibar, your post deleted because it was a personal (group?) insult.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 19, 2015, 09:31:36 AM
 #1113

Now this is Ad-Hominem! Cheesy

I have not held XMR for over a year now. I still feel it's the best alt atm. I do watch promising new tech which I am hoping this will actually be. I guess I should remove the XMR address so idiots don't auto think I'm affiliated.

Please, remove zanzibar's quote from your post or I'll have to delete the latter, because thread moderators don't have EDIT option.
allwelder
Legendary
*
Offline Offline

Activity: 1288
Merit: 1000



View Profile
December 19, 2015, 01:20:28 PM
 #1114

How the 'Internet of Things' will affect the world
http://www.businessinsider.com/internet-of-things-2015-forecasts-of-the-industrial-iot-connected-home-and-more-2015-10
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 19, 2015, 07:09:42 PM
 #1115

@sulfurtank, both your posts sounded very impolite (especially the first one which contained racism), paraphrase them, please.
crypti PR
Full Member
***
Offline Offline

Activity: 154
Merit: 100

Crypti Public Relations


View Profile WWW
December 19, 2015, 08:59:49 PM
 #1116

Can someone link to the BTC and NXT addresses which are holding all the funds from the IPO?

Crypti's Decentralized Applications and Dapp Store: https://www.youtube.com/watch?v=O9o5X4xHJnc
Join our Chat: https://crypti.chat/
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1932
Merit: 1007

Newbie


View Profile
December 19, 2015, 09:04:11 PM
 #1117

Can someone link to the BTC and NXT addresses which are holding all the funds from the IPO?

1G8hh3bHMMhZSATwisBVbGFSYBKK3Suib8
NXT-Q4N3-V2QJ-S3GT-FW4Z9
zanzibar
Hero Member
*****
Offline Offline

Activity: 611
Merit: 500


View Profile
December 19, 2015, 11:35:12 PM
 #1118

@zanzibar, your post deleted because it was a personal (group?) insult.

No worries it was obviously off topic.
twistelaar
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


View Profile
December 20, 2015, 01:57:07 AM
 #1119


Nice! Can somebody explain how we can succes lift with IOTA tokens, on the big boom of the internet of things?

Thanks!
iotatoken
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


View Profile
December 20, 2015, 02:02:36 AM
 #1120


Nice! Can somebody explain how we can succes lift with IOTA tokens, on the big boom of the internet of things?

Thanks!


It'll be primarily about marketing and networking to get the technology out there. I already got several big names lined up for calls to explain IOTA and how it can impact their business.
Send me a PM with your skills and I'll invite you to our groupchat.

Pages: « 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ... 712 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!