Comparing version 0.10.7 to 0.10.8
# Documentation | ||
This is a reference manual for the Cor programming language. It will guide you inside language aspects and concepts. Cor is a language designed with large web development in mind. Hence, is possible to develop your software without to execute any command to compile the source code, CLI tools are only needed to make the product able for production environments. | ||
This is the reference manual for the Cor programming language. It will guide you inside language aspects and concepts. Cor is a language designed with large web development in mind. Hence, is possible to develop your software without to execute any command to compile the source code, CLI tools are only needed to make the product able for production environments. | ||
@@ -5,0 +5,0 @@ <toc/> |
# Get started | ||
Cor promotes modularity, conventions and code organization, it is built for scalable applications development. The language itself allows organization and the syntax enforces you to write mantainable code. With Cor, you can use any library written in javascript or import from javascript any library written and built with Cor. | ||
Cor promotes modularity, conventions and code organization, it is built for scalable applications development. The syntax enforces to write mantainable code. You can use any library written in javascript or import from javascript any library written and built with Cor. | ||
@@ -8,3 +8,3 @@ | ||
Cor can be downloaded in several ways depending on different needs. The Cor compiler can run in any javascript environment however it's priority is the browser. | ||
Cor can be downloaded in several ways depending on different needs. The Cor compiler can run in any javascript environment however it's priority is the browser and Node.js. | ||
@@ -14,3 +14,3 @@ | ||
Available releases can be downloaded from [here](https://github.com/yosbelms/cor/releases). Once downloaded, decompress the bundle (.zip or .tar). The main script can be found at `cor/dis/cor.js` ready to be included in production evironments. | ||
Available releases can be downloaded from [here](https://github.com/yosbelms/cor/releases). Once downloaded, decompress the bundle (.zip or .tar). The main script can be found at `cor/dis/cor.js` ready to be embedded in HTML pages for production see, [In the Browser](#inthebrowser). | ||
@@ -88,3 +88,3 @@ | ||
Cor is designed with client-side development in mind, it dynamically load files using XHTTPRequest object, so that, hot-realoading is an amazing feature to keep you away from CLI compile/watch tools for a smooth client-side development. Because XHTTPRequest object, application source must be behind a web server (Apache HTTP Server, Nginx, or that you like). The Cor CLI tools provides a static HTTP server through `http` command which can be used with the same purpose. | ||
Cor is designed with client-side development in mind, it dynamically load files using XHTTPRequest object, so that, hot-realoading is an amazing feature to keep you away from CLI compile/watch tools for a smooth client-side development. Because the XHTTPRequest object, application source must be behind a web server (Apache HTTP Server, Nginx, or that you like). The Cor CLI tools provides a static HTTP server through `http` command which can be used with the same purpose. | ||
@@ -91,0 +91,0 @@ |
{ | ||
"author" : "Yosbel Marin", | ||
"name" : "cor-lang", | ||
"version" : "0.10.7", | ||
"version" : "0.10.8", | ||
"license" : "BSD", | ||
@@ -6,0 +6,0 @@ "description" : "The Language of the Web", |
@@ -7,5 +7,5 @@ # Cor | ||
Cor is an opensource language that compiles to plain JavaScript. It is designed to make easy to write and maintain software for the asynchronous Web. | ||
Cor is an opensource language that compiles to regular JavaScript. It is designed to make easy to write simple, fast and maintainable software for the Web. | ||
Concurrency and parallelism are first class citizens in Cor, bringing a fresh way of programming for Web browsers and Node.js platforms. It is a language inspired by _Go_, but runs in a world wide platform that is the Web. With Cor you can take advantage of the whole JavaScript ecosystem, use your preferred libraries, and ensure your application runs everywhere the Web is. | ||
Cor is a new language that compiles line-to-line into the equivalent JavaScript. The resulting code runs at equal speed to handwritten JS. You can use any existing JavaScript library in Cor and vice-versa. | ||
@@ -12,0 +12,0 @@ |
@@ -42,2 +42,4 @@ (function(){ typeof cor === 'undefined' && (cor = {}); | ||
function onLoaderReady() { | ||
this.isReady = true; | ||
var | ||
@@ -44,0 +46,0 @@ name, i, len, content, |
@@ -171,4 +171,8 @@ require('../cor.js'); | ||
} | ||
if (elapsed > 2000 && !loader.ready) { | ||
//console.log(elapsed, loader.isReady) | ||
if (elapsed > 2000 && !loader.isReady) { | ||
loader.onLoaderReady(); | ||
return; | ||
} | ||
@@ -175,0 +179,0 @@ checkIdle(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15288
890312