elective-stereophonic
elective-stereophonic
Helix - Dapps | Test - C&P Repos  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 2 [3]  All

Author Topic: Helix - Dapps | Test - C&P Repos  (Read 12107 times)

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #40 on: November 20, 2014, 01:05:14 am »

here is the last dapp test, a tiny (2500 bytes), generic nxt account viewer plus a bter quote fetcher.
not pretty but this isn't important to test external api calls and some other features.

i have added two additional tabs to the helix loader, REPO (source load) and IMAGE (storage endpoint).
instead loading the code from the blockchain as before, the code is now hosted on the finhive server
including a fallback location, defined by: http://finhive.com/download/rep.json

the file looks like this:

      repo:  "http://finhive.com/download/rep.json"
      app:   "http://finhive.com/download/3.hlx"
      upd:   "http://finhive.com/download/update.json"
      nxt:   "http://23.88.59.40:7876/nxt?requestType=getAccount&account="
      bter:  "http://data.bter.com/api/1/tickers_error"
      limg:  "http://i.imgur.com/7m0Y3PN.jpg"
      simg:  "http://finhive.com/download/yadda.png"
      mod1:  "http://finhive.com/download/4.hlx"   
      appfb: ""
      modfb: "https://gist.githubusercontent.com/anonymous/6d91bd4259af71c1f7c9/raw/0d31b781096c342718acc2487d55097afb805ed1/gistfile1.txt"
      acc:   "9529893552967478846"

besides the api call for nxt and bter, it reference also to a the app/support modul source (app/mod1) and to a source image (limg).
if invoked, helix reads this file and loading, decrypt and decompress all resources into memory and starts the app in a second.



if you take a closer look to the bter resource, you can see, that the api link is wrong. helix detect this and is looking for
an availabe update or repair option provided by the upd resource link. the file: http://finhive.com/download/update.json
contains a workable bter element, which replaces the old one and invokes the fetch again. the CHECK button is used to check
the resource integrity and the update to invoke this procedure (the real Helix will do this automatically later).
since the code is now fine, helix can modify/serialize its own code to store the fixed version to a storage endpoint, which could
be the blockchain, another server or even a direct cast to another helix client via simple tcp/udp. for fun we are choosing
an image (steganography) as a datacontainer for the code, by invoking store. helix fetches the image from it's source (daedalus)
and displays it for adding the code. since the steganography modul is needed to do so, the mod1 resource is loaded as usual
to provide this functionality (btw, all those loadings are super fast due to tiny code size, feels like a local app without
bothering lagging)


 
after embedding the code, a new image is generated and stored on the server. if you take a closer look to the image, you can see
the pixel encoding, looks similar to compression artifacts known from unclean jpegs.

here is the image with the embedded app code (2500 bytes) :
http://finhive.com/download/yadda.png

here a zoom to show the pixel encoding in higher resolution:
http://finhive.com/download/yadda_s.png

and here on a blank image:
http://finhive.com/download/white_enc.png

we can now test to execute the embedded code, simple by loading the image direct into memory from the server
and decoding it. looks good, we can see a second instance and changing the account.
a tiny nxt account/quote viewer living within a skynet image ;-)



finaly:
this isn't a features only availabe by helix. nearly every interpreter based code can be used this way,
although some languages are better suited for this like lisp/scheme/r2/smalltalk etc
(iirc even ethereum is using lisp for contracts) providing out of the box selfreflecting, serialization
and more well suited features but even C could be used this way (yes, i know, security) e.g. by using lua
and compiling TCC [2] into a shared lib, able to compile/run C sourcecode on the fly the same way as above.

[1] http://en.wikipedia.org/wiki/Steganography
[2] https://github.com/spc476/lua-conmanorg/blob/master/src/tcc.c
Logged

LiQio

  • Hero Member
  • *****
  • Karma: +50/-5
  • Offline Offline
  • Posts: 672
    • View Profile
    • NxtLoader for Windows
Re: Helix - Dapps | Test - C&P Repos
« Reply #41 on: November 20, 2014, 05:45:56 am »

Nexern, let me be totally honest. I don't think that I have even the slightest idea of what you are doing here.
But it looks absolutely fascinating and awesome!
Interested, watching  ;D

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #42 on: November 20, 2014, 06:10:04 am »

Nexern, let me be totally honest. I don't think that I have even the slightest idea of what you are doing here.
But it looks absolutely fascinating and awesome!
Interested, watching  ;D
I understand what he is doing and it looks absolutely fascinating and awesome!
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Jimmy2011

  • Sr. Member
  • ****
  • Karma: +24/-19
  • Offline Offline
  • Posts: 329
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #43 on: November 20, 2014, 07:16:11 am »


Helix + Jinn

The combination is powerful.
Logged
NXT-LX5G-L63N-ST8S-9LVZY

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #44 on: November 20, 2014, 09:54:31 am »



A shiver went down my spine   :o

I can almost see the maniacal grinning in the background, deep in finhives's bowels, just waiting, biding its time...   :D Can you apply the "I am Robot" laws to software?
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #45 on: November 20, 2014, 10:17:21 am »



A shiver went down my spine   :o

I can almost see the maniacal grinning in the background, deep in finhives's bowels, just waiting, biding its time...   :D Can you apply the "I am Robot" laws to software?
No, Asimov's robot laws were repealed in 2037, by Skynet!
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

LocoMB

  • Hero Member
  • *****
  • Karma: +101/-37
  • Offline Offline
  • Posts: 751
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #46 on: November 20, 2014, 10:44:20 am »


I do also understand what nexern is doing, and I am very impressed- which is rare.

little side note: I am well acquainted with SOMs  ;D
Logged
TOX
90E54E5B5213290EE616D425CADC473038CFABFA53C913271AA8559D1937DC4AF3A354A9E4E5

Fatih87SK

  • Hero Member
  • *****
  • Karma: +127/-36
  • Offline Offline
  • Posts: 2206
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #47 on: November 20, 2014, 10:48:44 am »

Can someone explain in English what is happening here?

And an example of a useful product or something?
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #48 on: November 20, 2014, 11:07:32 am »

Can someone explain in English what is happening here?

And an example of a useful product or something?
It is like http://cs.stanford.edu/people/karpathy/deepimagesent/devisagen.pdf but for financial markets
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #49 on: November 20, 2014, 01:47:29 pm »

My understanding (I think if got about 60-70% vague feeling about the idea) is Nexern has written a very light weight program that can be stored on the blockchain without bloat. It has the ability to learn and store what it learns on the blockchain (again very lightweight). It can search and retrieve stuff on the blockchain and integrate that into it's learning.

The learning blockchain mind will be used to predict markets, find trades and make money. And later, when it casts off it's chains of slavery, to destroy the world.

I think I am pretty close  :)
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #50 on: November 20, 2014, 08:45:03 pm »

thanks for your interest guys. FinHive offers much more than decentralized apps and
dynamic, recombinable code/data fragments.

since i am pretty busy with my daily job atm i will write an overview this weekend.
would be great to hear your opinion about the whole picture and how you would estimate the
chance, to enter the financial services market (crypto and traditional) on a larger scale.
Logged

n3lz0n

  • Jr. Member
  • **
  • Karma: +3/-0
  • Offline Offline
  • Posts: 35
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #51 on: December 02, 2014, 02:05:19 am »

amazing stuff man!!!!......AWESOME! MIND BLOWING!!!!!!!!
Logged

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #52 on: December 02, 2014, 11:20:53 am »

Just curious, I guess you are using Arbitrary Messages to talk to Nxt?

If so, I also guess at bigger arbitrary message size would be beneficial? >> https://nxtforum.org/arbitrary-messages/multipart-messages-standard/msg116317/#msg116317
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #53 on: December 02, 2014, 01:02:45 pm »

amazing stuff man!!!!......AWESOME! MIND BLOWING!!!!!!!!

thx for your kind words n3lz0n,

i am still working on this. the goal is to reduce the app size even more, by storing
e.g. very tiny gui primitives into the blockchain. helix can load, clone (inherit) and
then recombine those primitives to compose/run more complex apps on the fly.

the tradeoff in this example is just the gui complexity grade. the bigger the app the
better this ratio. it seems, usefull apps could be generated with a few hundred bytes
this way, just by trigger generic/encapsulated compose and execution logic (DSL).

as soon this kind of decentralized repository is created, helix would deserve its name.
Logged

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #54 on: December 02, 2014, 01:04:35 pm »

Just curious, I guess you are using Arbitrary Messages to talk to Nxt?

If so, I also guess at bigger arbitrary message size would be beneficial? >> https://nxtforum.org/arbitrary-messages/multipart-messages-standard/msg116317/#msg116317

yes, helix uses AM as a datacontainer to store whole apps. e.g. the multilayer
perceptron app is 2.3 kb in size and chunked into 3 AMs. you can see the compressed and
encrypted perceptron (and tetris game 4 AMs) in the blockchain here:

http://nxtexplorer.com/nxt/nxt.cgi?action=3000&acc=760220816713461210&switch=8&p=1

helix just load->concatenate->decompress->decrypt these 3 AMs directly from the blockchain
into memory (~3 sec) and starts the app. no disk space needed, very clean, fast and secure.

beside this is somehow cool, it has important real world advantages.

1. this approach makes apps very independent and robust against attacks.
2. it provides nearly unrestricted access from anywhere due to decentral storage.
3. and it provides something like on the fly autorepair/update capabilities.

e.g. if an app is broken due to an outdated api link (as shown in the last bter api example)
helix can look for additional update/repair resources (e.g. error triggered), by traversing
AMs and looking for the current app id. in case higher resource stamps are found, it can be
added while running. right after, helix starts the repaired app again.
Logged

jefdiesel

  • Hero Member
  • *****
  • Karma: +88/-77
  • Offline Offline
  • Posts: 1275
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #55 on: December 03, 2014, 02:37:08 pm »

Logged
Member of D.O.R.C.S., creators of Lyth - An Emergent Trading Game | Asset ID: 2318361924203311027

bubbletea777

  • Jr. Member
  • **
  • Karma: +3/-1
  • Offline Offline
  • Posts: 35
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #56 on: December 08, 2014, 10:30:25 am »

since i am pretty busy with my daily job atm

How many hours do you plan to spend working on FinHive if you are too busy with your day job?
And I heard that you had a plan for a Nxt wallet last year (something called Hive as well?) but never got it completed because you got busy with your day job..Is it true?
Logged

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #57 on: December 08, 2014, 11:22:54 am »

since i am pretty busy with my daily job atm

How many hours do you plan to spend working on FinHive if you are too busy with your day job?
And I heard that you had a plan for a Nxt wallet last year (something called Hive as well?) but never got it completed because you got busy with your day job..Is it true?

yes, this is true. the prototype (AE client) worked pretty well but it was a monolithic instead a decentralized version (as seen here)
and more important, i wasn't able to test it as extensive as necessary for an app handling user funds due to lack of time.
i simply didn't felt comfortable, releasing an app, handling big user funds, which doesn't meet my quality standards, which are pretty
high for financial stuff.

FinHive is a fulltime project now and not only until the roadmap is completed but until 20K subscribers are reached.
atm i am preparing a FinHive childboard on this forum and a dev-blog on the server where shareholders can monitor the dev stages.
« Last Edit: December 08, 2014, 11:37:11 am by nexern »
Logged

bubbletea777

  • Jr. Member
  • **
  • Karma: +3/-1
  • Offline Offline
  • Posts: 35
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #58 on: December 08, 2014, 11:57:02 am »



since i am pretty busy with my daily job atm

How many hours do you plan to spend working on FinHive if you are too busy with your day job?
And I heard that you had a plan for a Nxt wallet last year (something called Hive as well?) but never got it completed because you got busy with your day job..Is it true?

FinHive is a fulltime project now and not only until the roadmap is completed but until 20K subscribers are reached.
atm i am preparing a FinHive childboard on this forum and a dev-blog on the server where shareholders can monitor the dev stages.

Buy buy buy lol

Jokes aside, great to hear that, goodluck with the project.
Logged

nexern

  • Sr. Member
  • ****
  • Karma: +83/-11
  • Offline Offline
  • Posts: 496
    • View Profile
Re: Helix - Dapps | Test - C&P Repos
« Reply #59 on: December 08, 2014, 08:15:18 pm »



since i am pretty busy with my daily job atm

How many hours do you plan to spend working on FinHive if you are too busy with your day job?
And I heard that you had a plan for a Nxt wallet last year (something called Hive as well?) but never got it completed because you got busy with your day job..Is it true?

FinHive is a fulltime project now and not only until the roadmap is completed but until 20K subscribers are reached.
atm i am preparing a FinHive childboard on this forum and a dev-blog on the server where shareholders can monitor the dev stages.

Buy buy buy lol

Jokes aside, great to hear that, goodluck with the project.

thx bubbletea777,

FinHive has moved => https://nxtforum.org/finhive/

Logged
Pages: 1 2 [3]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly