r/coding • u/jlovisa • 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=U6jtCVOQiuA10
u/CalvinR Mar 14 '16
So it's like a pyramid scheme but for coding?
0
u/jlovisa Mar 14 '16
The contracting 'tree' is pyramid in shape. That is where the similarities end. Each vendor serves a purpose. Each vendor is contracted to add more detail to the overall design of the program. Finally, foundation level vendors are contracted, whose job is to place bytes (binary CPU instructions), which are concatenated to become the final executable.
5
u/CalvinR Mar 14 '16
So how does the code get written?
0
u/jlovisa Mar 14 '16
I wasn't kidding when I said "no HLLs." No code is ever 'written' in this system. It is all vendors contracting other slightly lower-level vendors. The recursion ends when thousands of foundation vendors have been contracted. These foundation vendors don't contract other vendors, they co-operate to place bytes. Collectively, these bytes become the final executable (the web server, and sorting programs above, respectively).
Here is a bird's eye view of the entire process at work.
8
u/BezierPatch Mar 14 '16
Bullshit, you're just using vendor and bytes as buzzwords.
There is no automated way to decompose concepts into bytes.
-4
u/jlovisa Mar 14 '16
We get that reaction a lot.
But it is possible. In fact, we have done it. It has taken over a decade of R&D, but we achieved proof-of-concept 3 years ago.
Since then, we have 'cast' our expertise into thousands of vendors which make up the beginnings of this soon-to-be global marketplace. We use these vendors daily to build software (like our site).
5
u/BezierPatch Mar 14 '16
You're still using the word vendor, it's your biggest marketing issue. That's not what vendor means, unless you're referring to other businesses you're delegating to. I suspect you have some internal entity you've named vendor. Don't use it externally, it's nonsense.
0
u/jlovisa Mar 14 '16
Each vendor is essentially a "business" that vendors are "delegating to" (to use your phrasing). A vendor is created and owned by a developer and is contracted to provide a service (adding detail to an overall design). That contract requires payment. How is that not a business?
4
u/BezierPatch Mar 14 '16
That's not what the word vendor means. A developer doesn't own vendors, unless they're a multi millionaire. It's an issue of scale. A developer might be your vendor for a specific product.
The term you're after is something like more like worker or service.
2
u/jlovisa Mar 14 '16
That is incorrect.
A developer creates a vendor. A developer owns that vendor. A developer is paid every time that vendor is contracted.
The vendor itself provides a service.
3
u/CalvinR Mar 14 '16
So a giant network of people writing machine code?
What technology are they going to use to place these bytes?
2
u/jlovisa Mar 14 '16
Only a small fraction of the network are foundation vendors, which are the only vendors that 'touch' the code. The rest are higher level, whose job is to 'map' requirements to lower-level requirements by contracting other lower-level vendors. These vendors never 'touch' the code.
The trick is to continue mapping until no more mapping can be done (i.e. the project has been contextually decomposed to the point where it is now a matter of bytes).
All vendors are automated. (There is no 'sweat shop' of developers writing machine code.)
7
u/BezierPatch Mar 14 '16
Oh, and now your product actually makes sense. Yeah, you really need to redo your marketing...
It's not decomposed into bytes, but into functional units.
Your don't have vendors, you have nodes that decompose unto smaller units.
When all your units are decomposed to an atomic level, it reassembles. He'll, it's just dynamic programming in a way.
3
u/jlovisa Mar 14 '16
You've used the words 'unit' and 'atomic.' We use 'vendor' and 'foundation.'
5
u/BezierPatch Mar 14 '16
Oh, wait, Indian? Ah, that explains the communication issue. Put it this way, vendor, foundation, bytes sound like buzzwords in American/British English.
They're empty business words.
3
u/jlovisa Mar 14 '16
A vendor gets paid for each contract it completes. A vendor is not a unit in the final program, it provides a service that contributes to creating the final program.
All new paradigms come with new terms.
→ More replies (0)2
u/CalvinR Mar 14 '16
So the high level vendors are software programs that map the requirements to lower level vendors until you eventually decompose the application into small enough requirements that someone can write the code?
How do these automated vendors know when the requirements are small enough that they can go to a foundation vendor?
What technology does the foundation vendors use to place the bits that become the code.
2
u/jlovisa Mar 14 '16
All good questions.
So the high level vendors are software programs that map the requirements to lower level vendors until you eventually decompose the application into small enough requirements that someone can write the code?
Very close. There is no 'someone' to write the code. It is all automated. Your later questions allude to this.
How do these automated vendors know when the requirements are small enough that they can go to a foundation vendor?
Think of it in reverse. A foundation vendor - say 'x86-64-bit-add' - will place binary CPU instructions to add two numbers together. The entire supply-chain is built from the bottom-up, so we start with these low-level foundation vendors, and then build higher-level vendors to contract them. Then build higher-level vendors to contract those and so on. So there is no need to "know" when the requirements are small enough that they can go to a foundation vendor, the foundation vendors are just inevitably contracted as part of the process.
What technology does the foundation vendors use to place the bits that become the code.
They do this using a protocol known as 'construction-site.' Further details on how it works (still pitched at a conceptual level) can be found in our whitepaper.
5
u/ckreon Mar 14 '16
What is this?
2
u/jlovisa Mar 14 '16
An entirely new method of software development. One that harnesses the expertise of thousands of software developers.
And each time a developer's vendor is contracted, that developer is paid.
4
Mar 14 '16 edited Mar 14 '16
So. It's a "marketplace" for meta-programming libraries? You "write" your program (in your example a webserver) as a set of API/Library/"vendor" calls, and the "marketplace" coalesces the final executable based on code generated by those "vendors". Since those "vendors" were written in the same manner (as a set of "vendor" calls), it forms a tree-like structure all the way down to the "foundation vendors", which generate code for individual x86-64 instructions.
2
u/jlovisa Mar 14 '16
Close. There is no limit to the levels of abstraction this marketplace can achieve.
And the marketplace is full of competing vendors. Competition breeds innovation. Imagine if every program ever created was collectively designed and built by the world's foremost experts, from the highest level requirements right down to the hardware.
4
Mar 14 '16
Seems interesting, but I'd like to see some examples of the various levels of "vendors". Also, how would the system choose between competing vendors, when they may have various trade-offs in respect to cost/processor efficiency/memory efficiency/etc.?
4
u/jlovisa Mar 14 '16
Excellent. You're thinking in the right space, and thinking the right kinds of thoughts.
What those examples above don't show is the 'selection' of vendors. The UI you're seeing is one iteration prior to the UI that developers will use when this technology is released. When a developer is laying out the expression of their vendor (and even when they are testing that vendor by contracting it and other vendors), they will have the ability to select different vendors from the same classification. For example, many vendors will compete to provide the 'fetch-each-byte-in-bytesequence' design-contribution, and it is up to the prospective client which vendor wins their contract. Each vendor will have metrics displayed in the Valley (the global repository that advertises all vendors available for contracting) which include; number of contracts successfully carried out, price, and code/data footprint. A smaller footprint is indicative of a superior vendor.
edit: A foundation vendor, if the developer was really good, could 'return' 0 bytes in some cases, the smallest footprint of all.
1
Mar 14 '16
Ok, so when developer is designing a vendor, their interaction with the marketplace is limited to selecting which vendors they use directly (and submitting their own vendor when done, of course). They don't get to mix&match with the underlying vendors? (i.e. Lets say I like a specific webserver vendor someone made, but not the https encryption vendor they decided to use. I can't take that webserver and swap out the https encryption for a different one myself, since I don't own the webserver vendor?)
4
u/jlovisa Mar 14 '16 edited Mar 14 '16
Yes, you are correct. You inherit all the features, complexity and expertise of your suppliers.
If the 'webserver' vendor has degrees-of-freedom that do not give you the freedom to select the type of encryption (or even to dictate whether SSL is used), then you are left with two choices; to contract it anyway, or to go to one of its competitors, which may have degrees-of-freedom that allow for a client to specify the type of encryption. If that competitor doesn't exist, then you also have the option to create a 'void' which represents demand without supply. Any other developers scouring the Valley for business may see that void and jump on it, and create the 'webserver' vendor that you're seeking. The developer of the existing 'webserver' may even create a variation of his/her own vendor to fill that void themselves.
1
Mar 14 '16
Any other developers ... [can] create the 'webserver' vendor that you're seeking.
Lets say that a developer decides to do so. Would they be able to create a webserver that goes all the way down to the foundation level, and thus avoid having to pass along revenue to sub-contractors?
4
u/jlovisa Mar 14 '16 edited Mar 14 '16
Technically, yes. But a supply-chain inside the development process means intense competition at every level. Each classification is competing for business in the glare of that international competition (the supply-chain can span the globe). Each vendor you would need to build is making a career out of improving their design-contribution through the cooperation with their peers. Think register-allocation at foundation, cache-line packing at data, execution-migration between threads at the systems level. I am sure you are a skilled developer, but can you compete with the world's best at every level?
Your 'webserver' vendor would return poor quality metrics through the use of suppliers that operate low on the technology-progression curve (although granted, this may be offset somewhat by your lower cost basis) and if your 'webserver' vendor is used in an application, your vendors all the way down must cooperate with seasoned vendors that would complain about your vendors not supporting the protocols for the kind of deep cooperation that they use to look good in their metrics.
1
Mar 14 '16
If I were a professional developer (which I'm not; I'm a medical doctor with a hobby), I'd just flood the marketplace with "vendors" cloned of BSD or (if brave enough to risk an FSF lawsuit) GPL licensed opensource projects. It'd be relatively low-effort. No subcontracting means no profit-sharing, or "build" cost during testing. And being proven software, it would have reasonably good metrics. Plus I can always swap out any sub-standard parts for any better "vendors" that show up in the market.
4
u/jlovisa Mar 14 '16 edited Mar 14 '16
To reiterate, "the supplier integrates, not the client."
Library routines don't integrate themselves into projects.
So, knock yourself out. Your "clones" won't be very useful.
4
u/squashed_fly_biscuit Mar 14 '16
How do you deal with the problem of this paradigm not encoding a Turing complete interaction? Also how are you going to help programmers know what other providers have named the specific behaviour they want? I know its a problem now but this seems like it might exasperate it.
4
u/jlovisa Mar 14 '16
How do you deal with the problem of this paradigm not encoding a Turing complete interaction?
Granted, you can only build software for which there are supporting vendors (as is common in other industries - see 'Constructability' in the whitepaper).
Also how are you going to help programmers know what other providers have named the specific behaviour they want? I know its a problem now but this seems like it might exasperate it.
Great question.
We have implemented formalised standards that vendor titles must abide by in order to be searchable in the Valley. When a new title is created, it must adhere to those standards. The entire Valley is also broken down into standard classifications (the largest classifications of course being the layers; behaviour, system, data and foundation).
3
u/squashed_fly_biscuit Mar 14 '16
So you can only build (structures of) software other people have thought of? How does this differ from the more flexible use-of-communitiy-libraries?
So you have a language of requirements for programming? A sort of... Programming language?
4
u/jlovisa Mar 14 '16
In this system, the supplier integrates their 'code' into the client's project (rather than the other way around, as it is with libraries).
This allows the supplier to protect their intellectual property. You can contract the 'fetch-each-byte-in-bytesequence' vendor as part of your own vendor's design, and you know what that vendor will do, but you don't know how it does it. It works like that through the entire hierarchy of vendors in the supply-chain.
4
u/squashed_fly_biscuit Mar 14 '16
Thanks, im getting the picture :) How do you handle parameterization? And complex control flows?
4
u/jlovisa Mar 14 '16 edited Mar 14 '16
The same way you would :).
The trick is, you have the full resources of a supply-chain of vendors at your disposal. If your vendor needs complex control flows for its design-contribution, there are vendors that you can contract to design that for you.
I've built parsing vendors (vendors that design the code to parse) that contract state machine vendors (vendors that design the code for state machines), for example. Based on the webserver example above, I know that my 'interpret-as-json' vendor works like a charm :).
3
u/squashed_fly_biscuit Mar 14 '16
So something somewhere generates facilities on the fly, to match your desired functionality?
I'm wondering how you might measure productivity in your language vs a conventional language?
4
u/jlovisa Mar 14 '16
So something somewhere generates facilities on the fly, to match your desired functionality?
Close. Just some minor tweaks: Vendors design features on the fly, to match your desired functionality. Vendors perfectly scale. Even an application could be considered just one big design-contribution.
I'm wondering how you might measure productivity in your language vs a conventional language?
Good question. The capturing of knowledge (creation of vendors) can be slow, particularly when you have a small team creating thousands of these vendors. But when we soon release the supply-chain to the public, the rate at which vendors are built will radically increase.
As each vendor is automated, the productivity of the vendors themselves, as a cohesive unit that designs software, is quite staggering. That webserver in the example above was built in 22 minutes. Our site (a larger version of that example) was built in 90 mins. And these figures will only improve as vendors themselves improve in efficiency.
4
u/interfect Mar 16 '16
How do the committee things work? Are they how vendors manage to agree with each other about how to interact in order to satisfy high-level requirements?
If not, how does some high-level requirement that might require coordination between multiple lower-level vendors get expressed, and how do the vendors negotiate how to realize it? For example, maybe I want to read and write files with certain data in them: the reader code vendor needs to talk to the writer code vendor in order to spec out what the format should be, no?
If I want some weird program or feature (say "encrypted video chat that overlays a picture of a cat onto the video stream") do I have to wait for someone to define a set of top-level vendors that I can draw on to articulate that? Or can I publish free text requirements and let the vendors come to me?
Can you have acceptance tests? Say I want a web server that can serve such and such pages and responds to requests within such-and-such a time frame, or which generates valid HTML according to some validation logic. Can I ask for a program and not pay unless it passes the tests?
In general, what happens when a vendor doesn't do what it's supposed to, or there's a dispute between a vendor and a subcontractor over whether the subcontractor has really implemented the thing they were asked for? Like what if I ask for a "secure password module", and you provide one, but later it turns out your password module wasn't secure after all and always returned that the password was correct?
How have you managed it so that you can just concatenate bytes? What about when code from one vendor needs to call into code from another vendor? Don't you have some sort of internal linking/relocation information?
If you put the whole thing together and it doesn't work (or doesn't work the way you meant it to), how do you debug it? Does GDB understand the resulting binaries in a useful way? How do you figure out which vendor to blame for a mistake? And how do you fix it if you don't have access to that vendor's internals?
3
u/jlovisa Mar 17 '16 edited Mar 17 '16
You seem to have given our documentation a good read. Cheers.
I'll address your questions one by one.
How do the committee things work? Are they how vendors manage to agree with each other about how to interact in order to satisfy high-level requirements?
Each degree-of-freedom presented by a vendor requires appointment to a committee tasked with resolving that requirement. Inside committees, very simple or complex negotiations between vendor representatives (all the degrees-of-freedom presented by vendors relating to a particular requirement) can take place.
A conceptual overview of the role of Committees can be found on pg. 5 of the whitepaper.
If not, how does some high-level requirement that might require coordination between multiple lower-level vendors get expressed, and how do the vendors negotiate how to realize it? For example, maybe I want to read and write files with certain data in them: the reader code vendor needs to talk to the writer code vendor in order to spec out what the format should be, no?
You are correct. The outcome of a committee can actually result in terms that take the form of more committees. These committees need to be grouped into other committees according to the requirement that they're negotiating. In this way, the organisation of a high-level committee can and does influence the grouping (“getting certain vendors in touch”) of lower-level committees. This is how an organisation made in the behaviour level could result in that 'read' vendor being in touch with the 'write' vendor in the system level, should their designs require it.
If I want some weird program or feature (say "encrypted video chat that overlays a picture of a cat onto the video stream") do I have to wait for someone to define a set of top-level vendors that I can draw on to articulate that? Or can I publish free text requirements and let the vendors come to me?
Good question. You can wait for those vendors to exist (bearing in mind that the vendors themselves will not be specific to your unusual use-case – it is how you use them that will result in the 'weirdness,' as you say). Or you can speed up that process by creating 'voids,' which are essentially the 'classifieds' section of the Valley, and is equivalent to your 'publish free text requirements and let the vendors come to me' scenario. The Valley is highly standardised, and has formal classifications, so you would be expected to publish your requirements – your void – to the relevant classification/area.
Can you have acceptance tests? Say I want a web server that can serve such and such pages and responds to requests within such-and-such a time frame, or which generates valid HTML according to some validation logic. Can I ask for a program and not pay unless it passes the tests?
“Can you have acceptance tests?” Yes. That is exactly what those two demo videos show – me carrying out acceptance testing of my own vendor's designs. As an end client, you would do the same – test the program you have purchased to make sure it meets your high-level requirements. However, your questions do raise a key point; in this system, developers will have to become accustomed to the fact that they cannot have fine-grained control over the specification of every single requirement (see 'Constructability' on pg. 7 of the whitepaper). Some requirements you will be able to specify (they will be within the degrees-of-freedom presented by one of your suppliers), and some will be 'requirements injection' made by the vendor (which is listed against them in the Valley). When contracting a vendor, they must satisfy both sets of these requirements.
“Can I ask for a program and not pay unless it passes such tests?” In future, yes. At present, the vendors all operate on a pre-paid basis (this assists with automation, and makes the start-up process of such a system run much more smoothly). Later, when the system is more robust and has greater coverage, you may be able to build a program from requirements and not pay your suppliers until you have verified that it passes acceptance tests. Vendors survive and thrive in such a system based on their reputations and by establishing long-term relationships with their clients (who are essentially their livelihood). If you pay for a program that does not do what it should, then as a client, you have recourse – you can choose not to contract the faulty supplier/s ever again. In this way, the system as a whole will quickly weed out any faulty suppliers. This 'weeding out' will also occur when the system is very 'cheap,' so the financial penalties associated with such an exercise are correspondingly low.
In general, what happens when a vendor doesn't do what it's supposed to, or there's a dispute between a vendor and a subcontractor over whether the subcontractor has really implemented the thing they were asked for? Like what if I ask for a "secure password module", and you provide one, but later it turns out your password module wasn't secure after all and always returned that the password was correct?
As a client, you would choose not to contract that vendor again, and that vendor would suffer a hit to their reputation in the Valley, costing them future business. As the system evolves (and if the market demands it), a client may get a refund from a supplier that did not provide the service for which they were contracted to provide.
How have you managed it so that you can just concatenate bytes? What about when code from one vendor needs to call into code from another vendor? Don't you have some sort of internal linking/relocation information?
If is remarkable but true that fragments are simply concatenated. It is because the fragments were designed at the same time and in co-operation with each other. If as you say a fragment needs to call code from another fragment, there would have been committees, co-operation etc to organise the design of it. (For a more detailed explanation of the 'construction-site' protocol, see pg. 4 of the whitepaper.)
If you put the whole thing together and it doesn't work (or doesn't work the way you meant it to), how do you debug it? Does GDB understand the resulting binaries in a useful way? How do you figure out which vendor to blame for a mistake? And how do you fix it if you don't have access to that vendor's internals?
No GDB necessary.
Debugging is quite different in this system. Each developer tests their own vendor before publishing (the acceptance testing shown in the videos). And once they have confirmed their vendor operates as it should (and provides the design-contribution that it should), they have also confirmed that every single supplier 'below' them (all the way to foundation) also operates as it should (at that point in time). A market-vertical is assembled from the bottom up, so in this fashion, every single vendor is cumulatively vetted. If at any point in this assembling of a vertical a developer finds their vendor is faulty, it can easily identify whether the fault is in their own design, or if it is a supplier. If it is the former, they fix and rebuild. If it is the latter, they swap out the faulty supplier. Each time a test program is built (including the final 'test' program by the Principal, which is the actual program), anything that goes 'wrong' with that program is easily pin-pointable to a supplier.
“How do you fix it if you don’t have access to that vendor's internals?” This is the cool part. You don't. You don't 'fix' a faulty supplier. You swap them out. Reputation and money is on the line. A supplier does not want to lose business. And if they do make a mistake, there are many more suppliers eager for that market-share who will happily replace the dud supplier.
(This is addressed in 'Accountability' on pg. 7 of the whitepaper.)
13
Mar 14 '16 edited Mar 14 '16
TL;DR: It's an appstore for functions/methods/libraries. Where you pay-per-compile. Stay away.
Basically, they combined two universally hated paradigms: Agile Software Development and Multi-level Marketing. As you write your program (using a purchased IDE they call "Principal"), you include functions (provided by "Vendors") from the marketplace. Each time you compile your program, you have to make a payment (in Bitcoin) to the writer of each function you call. They in turn have to pay a fraction of that payment to the writers of the functions they used, all the way down to the foundation "vendors".
The tricks here are:
They (Code valley) have already written a fair amount of the lower-level functions, so they'll probably be making a considerable amount off of each compilation in the market place.
Developers will be spending money on the IDE, as well as during the development process, well before they can publish and hope to make money themselves.
Code valley makes money off developers regardless of if those developers in the end profit or lose money on the market.
The "value" that this market adds/creates is highly debatable. For one, when you write the "Vendor" for what you want done, it's basically the same thing as programming (in the same way that Lucid's syntax is a form of programming, despite it looking drastically different from a "traditional" language like C++). So, it's not like you're saving time or effort vs. the normal development process of a normal language, libraries, and StackOverflow snippets. Only difference is one is free and the other costs money per compile.
It may "harness the expertise of thousands of software developers" in the sense that the function calls may spread out to include software written by that many people. But that is not much different, in neither scope nor scale nor code quality, from writing a C program that uses libc and compiling it with gcc. Or maybe the package dependency tree in a linux distribution like Debian is a better comparison. Only difference is one is free and the other costs money per compile.
Overall, it's a vaguely interesting idea (a centralized repository for API's and functions, with attributions, reputations and other metrics on each node) that's marred by poor execution (cost to access the repository, cost-per-compile, obfuscation of the code you're paying to use, bad marketing, horrible terminology for the various components [vendors, etc.]).
3
u/jlovisa Mar 14 '16 edited Mar 14 '16
TL;DR: It's an appstore for software expertise, where the developer gets paid every time they apply their expertise to an application. Stay away if you don't have expertise or don't want to earn coin.
They (Code valley) have already written a fair amount of the lower-level functions, so they'll probably be making a considerable amount off of each compilation in the market place.
Firstly, we have not written any vendors. We have built them.
Secondly, we have built many vendors by spreading our expertise thinly. Our vendors will become obsolete almost immediately, when other developers enter the network and build superior vendors. We look forward to the day this happens.
2) Developers will be spending money on the IDE, as well as during the development process, well before they can publish and hope to make money themselves.
Yes, this new paradigm costs money. But that money goes to the very places it should (but doesn't always, at present) - to the very developers whose expertise you (the payer) benefit from.
The development process is also fast-tracked. Yes, the developer will spend money during this process, but if they choose their suppliers wisely, they can be up and running very quickly, which means they can be profitable very quickly. The costs of getting up and running can be easily recouped.
3) Code valley makes money off developers regardless of if those developers in the end profit or lose money on the market.
Code Valley only makes money if developers make money. There is no way to 'lose' money in this system unless you build a vendor that is not needed, or is faulty (and then, you are only out of pocket for the startup costs of building the vendor, and testing the vendor).
4) The "value" that this market adds/creates is highly debatable. For one, when you write the "Vendor" for what you want done, it's basically the same thing as programming (in the same way that Lucid's syntax is a form of programming, despite it looking drastically different from a "traditional" language like C++). So, it's not like you're saving time or effort vs. the normal development process of a normal language, libraries, and StackOverflow snippets. Only difference is one is free and the other costs money per compile.
I thought you had understood the concept, but this comment makes me unsure. You (a developer wishing to build an application) don't 'write' (build) every single vendor that will go into building that application. These vendors are built by software experts the world over (there's the "effort" that is saved). And these experts are automated - the application can be built in minutes (there's the "time" that is saved). So your statement "it's not like you're saving time or effort" is completely incorrect.
5) It may "harness the expertise of thousands of software developers" in the sense that the function calls may spread out to include software written by that many people. But that is not much different, in neither scope nor scale nor code quality, from writing a C program that uses libc and compiling it with gcc. Only difference is one is free and the other costs money per compile.
Again, this comment makes me question your understanding. To take a comment made by Jesse (the architect of the supply-chain):
"Imagine taking all of the translation and "optimisation rules" which are currently locked away in a compiler and separating them out, then offering these up as services for tender. In this scenario we now have only the best (or cheapest, or whatever metric is preferred) developers applying their own optimisations in collaboration with one another. It’s a “living” compiler in the sense that it’s constantly improving in different areas as developers independently improve their work quality. And these improvements are applied asynchronously!
Now imagine looking at the standard libraries of a programming language and applying the same idea, at the same time. We separate the classes and functions out and offer them up for tender, and those developers are in communication with one another and in communication with the “compiler” developers. In this scenario, in addition to the generic optimisation at the byte-level (by the “compiler” developers), the “library” developers also have intimate insight into higher-level optimisations which are otherwise impossible for a standard compiler (there are many situations where it’s not safe for a conventional compiler to assume that an optimisation can be made, due to a lack of high-level context). The “library functions” are now specifically designed and optimised for the application being built, eliminating the bloat associated with many conventional libraries which, in the code-domain, require a copious amount of runtime checks (checks which simply are unnecessary when designed uniquely for every program (see “printf”!)).
Now imagine looking at all remaining functions (those which are more and more specific to the particular program) and applying the same idea, once again at the same time. At this point, all aspects of the program have been “put up for tender," from the high-level requirements right down to the machine code. There is no longer a single “compiler” program; instead the “translation and optimisation” rules of the conventional compiler are collectively performed by the community of developers."
Very different from your "not much different .... from writing a C program that uses libc and compiling it with gcc."
2
u/btcsleuth Mar 14 '16
What? Did you even read the OPs post "(This system doesn't use libraries, linkers, compilers, HLLs etc...)"?
5
Mar 14 '16 edited Mar 14 '16
Well, I was just simplifying for the TL;DR. But, the fact that the system doesn't literally use libraries, linkers or compilers doesn't mean it is a different or novel end-result. "vendors" aren't actually libraries, but they bear a striking resemblance to go-generate/function-producing factories/monads/java generics (to some extent)/etc. The "marketplace" produces binary data (a.k.a. compiles) the lower level vendor's products, into a form that can be integrated into the mid-level vendor's products (a.k.a libraries), then coalesces (a.k.a., links) all the vendors' productions into an executable binary.
Would make an awesome CS research paper. But not a viable business startup, IMHO.
3
u/jlovisa Mar 14 '16 edited Mar 14 '16
The integration role has been reversed (see 'Reversing design responsibiliy' in the whitepaper). The supplier integrates, not the client. Therefore, it can't be a library. Thus, it scales beyond libraries.
3
Mar 14 '16
Java generics and go-generate also "integrate" into (programatically alter themselves depending on) the "client" (calling code). They're still libraries.
3
u/jlovisa Mar 14 '16
Such techniques only modestly reduce the need for glue code. Vendors completely remove the need for glue code, and therefore scale. (The example above created a webserver from just a handful of contributions.)
Vendors also achieve their integration at design-time and hence this paradigm is capable of approaching optimal designs.
3
u/CalvinR Mar 14 '16
Well it obviously does use those things they just insist on using business speak for them instead of the actual names, "a rose by any other name etc..."
0
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.
4
u/CalvinR Mar 14 '16
So how much did it cost to compile the webserver? or the sorting program?
3
u/jlovisa Mar 17 '16 edited Mar 17 '16
The 'webserver' test expression would have cost $31 to build. That is when the webserver itself charges $4/contract. The additional $27 went to the other vendors contracted from the Principal in order to create the test program. (I could have used less vendors to verify that 'webserver' works, I just opted to include a few extra for the demo.)
The 'sort-bytesequencearray' test expression would have cost 6c to build, where 'sort-bytesequencearray' charges 2c/contract.
In future, all developers who use this system will build their very own acceptance test to test that their vendor does provide the design-contribution it will soon be contracted to provide. Once they have run this test program and verified that their vendor's design-contribution was sound, they can deploy that vendor in the Valley and begin accepting legitimate contracts from other clients.
Note: All prices included above are just used for our internal modelling purposes, and assume developers will price their vendor based on an approximate 30% profit margin (which is admittedly very high). Once these vendors are out in the wild, and this system is being used by developers the world over, price discovery will be in full effect, and the cost per contract will converge upon prices the market deems acceptable, which could be much greater or smaller than the prices I mentioned above. Of course, more sophisticated vendors (i.e. vendors that will return less code) can charge more for their superior design-contributions.
2
u/CalvinR Mar 17 '16
What would make someone want to use a web sever written in your product vs say a free and feature rich one like Apache or Nginx?
It seems like the cost of developing applications in your product are prohibitively high. Are you not imagining that people will want to compile multiple times during a release cycle, that they won't do things like test and fix bugs etc...
4
u/jlovisa Mar 17 '16
What would make someone want to use a web sever written in your product vs say a free and feature rich one like Apache or Nginx?
Apache and Nginx web servers have had the time to become feature-rich. They didn't start out that way. The same increase in sophistication over time applies to this system.
These are free web server alternatives, yes. In our system, the feature-rich webservers that will emerge will be driven by competition and commercialisation, which could yield more sophisticated products.
Certainly there will be nothing stopping developers from continuing to use existing methods, if they are seeking free alternatives.
It seems like the cost of developing applications in your product are prohibitively high. Are you not imagining that people will want to compile multiple times during a release cycle, that they won't do things like test and fix bugs etc...
Developers are welcome to compile multiple times during a release cycle, and the cost need not be prohibitively high. As I said, the prices we have assigned vendors are quite arbitrary. The cost of building may be much smaller in the early days of the network (and will stay that low if that is all the end-developer is willing to pay - such is the beauty of a free market).
3
Mar 14 '16
thousands of developers are paid every time a program is built.
If this is true, then added to what it says here, it would mean that the typical write/build/test/debug cycle would incur a cost on the developer on each iteration. It seems to me like it would be difficult to sell developers on this.
2
u/jlovisa Mar 14 '16 edited Mar 14 '16
It would incur a cost, yes. But if the test program was found to be faulty, it is a fault of one of the suppliers, or a fault of the developer him/herself. If it is the former, the developer has the option to swap out the faulty supplier for one of its competitors (and yes, wear the cost of a rebuild to ensure the design-contribution is sound). If it is the latter, the developer can fix the problem and rebuild (again, paying for that rebuild). As soon as they are through this acceptance testing phase, the developer can publish their vendor to the Valley and start charging for a contract. Logically, the cost of that contract will be the cost of contracting suppliers plus some profit margin. If the vendor is any good, and there is demand for its service, the developer-owner will soon recoup any losses incurred during acceptance testing, and then begin profiting.
Every single developer's reputation is on the line as soon as their vendor is published, so using this build/test cycle, the entire hierarchy is cumulatively vetted as it is built. And there is visibility at every level of the contracting hierarchy. A needle in a haystack is not so hard to find when every straw is manned.
3
u/interfect Mar 16 '16
So what do you do if you write that program and find out that the sort vendor you pulled in doesn't handle Unicode correctly, or something?
Where do you find the documentation on any of the vendors you are using? And since money is being exchanged, how do you get your money back if the vendor purports to do something it actually does not do?
5
u/jlovisa Mar 17 '16
So what do you do if you write that program and find out that the sort vendor you pulled in doesn't handle Unicode correctly, or something?
If the Unicode requirement was explicitly stated in the Valley (requirements injection) or if it was a requirement you – the client – directly specified, and the vendor did not satisfy that requirement, then you simply swap out that supplier for another that will. (If that vendor is the only sorting vendor in existence (which could be the case in the early days), you can get in touch with their developer and explain the issue. He/she wants to keep you – the client – happy, so they will immediately fix the problem and could perhaps even issue a refund.)
Where do you find the documentation on any of the vendors you are using? And since money is being exchanged, how do you get your money back if the vendor purports to do something it actually does not do?
This documentation is all provided in the Valley, the repository that advertises all vendors available for contracting, along with a description of their design-contribution, and their corresponding degrees-of-freedom. We have not yet made the Valley publicly visible, but will do so in due course.
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).
1
u/TotesMessenger Mar 17 '16
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/codevalley] 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...)
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
0
Mar 14 '16
[deleted]
3
u/jlovisa Mar 14 '16
Great question. The simple answer is that the supply-chain of vendors cover the entire gamut of the design-space, from application requirements down to the veritable hardware. As you can appreciate, this also includes non-functional design such as system architecture and various quality attributes. Granted, the supply-chain is market-driven and thus may not expose opportunities to specify specific non-functional requirements. However, if there is demand, its growth will inevitably attract the enterprising developer seeking to capitalise.
Each vendor must compete for business in its classification in the supply-chain. Each vendor would naturally seek product differentiation from its competitors, principally in terms of its non-functional requirements. Your vendor can trade on a reputation for various quality attributes such as designing the most efficient code, the fastest code or using the least amount of memory etc.
This system tends towards the world's foremost experts occupying every classification in the supply chain. Their expertise will ensure that the most appropriate non-functional requirements are automatically met (after they have achieved the functional ones) in order to enhance their reputation and win market-share from their competitors.
11
u/FractalNerve Mar 14 '16 edited Mar 14 '16
I have seen people using OLAP, NoSQL and other keywords to make parodies, but this is beyond next level synergy and more bullshit than anything I have seen in my whole live. I'm usually a very positive person, but this presentation regardless of how brilliant the actual product might be is either a lustre troll attempt or the most epic bullshit bingo.
For one this is either mumbo-jumbo hiding away that S-Expressions are distributed using the blockchain until an algorithmic link-depth or other criteria is met.
Or I really don't get if any of those words mentioned means what they say.
However this is perfectly handcrafted only and only for the NSA, AirForce, CIA and other Intelligence agencies around the world. No other reason to fully obfuscate the context, meaning and specifications of Software is required anywhere else in the world. Fullstop. Not that I condemn it, but I rather see science-funding increase than military spending disperse in bitcoin to create highly controlled top-secret surveillance or attack/defense/control software.
Ninja Edit: Op, whatever it is. Please, I seriously ask you to explain what this is in a clear way for all of us to understand.