r/coding • • Mar 14 '16

Creating a custom web server (including front-end content) from 200,000 contracts to a marketplace of developers. (This system doesn't use libraries, linkers, compilers, HLLs etc...)

https://www.youtube.com/watch?v=U6jtCVOQiuA
0 Upvotes

78 comments sorted by

View all comments

1

u/jlovisa Mar 14 '16 edited Mar 14 '16

This program was built by 'tapping into' the supply-chain (the marketplace) at the Behaviour level and contracting 8 vendors, who contracted other vendors, who contracted other vendors etc. In total, 202,052 contracts went into creating the web server program.

By contrast, this test program (which tests the design-contribution made by a 'sort-bytesequencearray' vendor) was built by tapping into the supply-chain at the Data layer (two levels down from Behaviour) and contracting 6 vendors, who contracted vendors, who contracted other vendors etc. In total, 2,855 contracts went into creating the sorting program.

Each vendor was created by a software developer, and earns money for that developer every time it is contracted. Using this system of software development, thousands of developers are paid every time a program is built.

0

u/damienjoh Mar 16 '16

which tests the design-contribution made by a 'sort-bytesequencearray' vendor

Conventional programming is vastly more efficient and convenient than whatever editor you were using in that video. Compare that point and click adventure to:

fun main(args: Array<String>) = Json
    .parse(args[0])
    .asList
    .map { it.asString }
    .sorted()
    .forEach { println(it) }

3

u/jlovisa Mar 17 '16

You seem to have missed the point. The UI is not what we are demonstrating. That is just a means of expressing requirements. In future, if the market demands it, it could take a vastly different form.

Furthermore, we are not trying to demonstrate how to create a sorting program. We are trying to verify that the sorting vendor does what it should. As soon as we do that, the sorting vendor is good to publish to the Valley. This means that any other vendor can now have a sorting ability integrated into their own feature, seamlessly, natively, by simply contracting this sorting vendor.

Please see the example where we design a webserver with logging, and a ton of JS in the frontend all with roughly the same number of (albeit higher-level) contracts. I don't think six lines of code would cut it in that example.

0

u/damienjoh Mar 17 '16

No - you have missed the point. We already have tools for assembling new components out of pre-existing ones. It's pretty much the whole point of programming. Six lines of code could absolutely create a webserver with logging and a JS frontend if the library you were working with was abstract enough. Turns out that level of abstraction isn't actually useful. "Vendors" aren't going to be an exception to this rule.

Your concept appears to be an inflexible programming environment tightly coupled to some bizarre pay-per-compile DRM. What value are you offering? Is there anyone outside of your company who can vouch for your concept?

4

u/jlovisa Mar 17 '16

Yes, you are right that we already have tools for assembling new components out of pre-existing ones. But they obviously don't scale. Looking at any code on github, I see thousands of lines of glue code stitching meagre components together. There isn't a hope of assembling a webserver with logging and a JS frontend out of “abstract enough” library components in six lines, as the amount of glue code goes up the more abstract the component being integrated.

In contrast, all the examples given here contain no glue code and that is the main reason these “components” scale so spectacularly. Further, integration responsibilities are reversed, with the suppliers of the components now integrating the “component” into your project. There is no DRM, obfuscation, encrypting etc needed to protect their intellectual property. So Vendors are very much an exception to your abstraction rule.

The value offered is tremendous as you can now be rewarded for your innovations, software can approach optimal solutions (something current methods cannot ever hope to achieve while they use run-time interfaces for their components and rely on the client for their integration) and enjoy a step change in productivity (a step that is only increasing).