-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
161 lines (130 loc) · 6.24 KB
/
index.html
1
2
3
4
5
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="docs/assets/style.css">
<link rel="stylesheet" type="text/css" href="docs/assets/highlightjs/cor_light.css">
<link rel="shortcut icon" href="docs/assets/favicon.ico" />
<title>The Cor Language</title>
</head>
<body>
<nav class="navbar" role="navigation">
<div class="nav content">
<ul class="left">
<li class="inline"><a href="index.html">Cor</a></li>
<li class="inline"><a href="docs/get_started.html">Get started</a></li>
<li class="inline"><a href="docs/documentation.html">Documentation</a></li>
<li class="inline"><a href="docs/playground/index.html">Playground</a></li>
<li class="inline"><a href="test/index.html">Run tests</a></li>
</ul>
<ul class="right">
<li class="inline"><a class="icon-github" href="https://github.com/yosbelms/cor" target="_blank"></a></li>
</ul>
</div>
</nav>
<div class="body">
<div class="master">
<h1 class="content">Cor</h1>
<p class="lead content">
<b>Cor</b> 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.</p>
</div>
<div class="rule"></div>
<p class="content">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.</p>
<div class="content">
<div class="rule"></div>
<div class="grid">
<div class="col">
<h3>Clean syntax</h3>
<p><b>Cor</b> enables you to write <b>large applications</b> by providing a <b>clean syntax</b>, classes and a modular architecture to keep organized code, enforcing the writing of <b>readable source code</b> based on conventions.</p>
</div>
<div class="col clear">
<pre><code class="hljs cor">use './Todo'
use 'backbone' bb
use 'storage' Storage
class TodoList : bb.Collection {
localStorage = &Storage('todos-backbone')
model = Todo
func getModel() me.model
}
</code></pre>
</div>
</div>
<div class="rule"></div>
<div class="grid">
<div class="col">
<pre><code class="hljs cor">func init() {
ch = chan()
go {
timeout(100)
ch <- 'some msg'
}
go { console.log(<- ch) }
}
</code></pre>
</div>
<div class="col clear">
<h3>Asynchronous Nature</h3>
<p><b>Cor</b> allows you to spawn <b>coroutines</b> and synchronize it by passing messages through <b>channels</b>. It is designed to deal with asynchronicity and parallel I/Os by writing sequential code.</p>
</div>
</div>
<div class="rule"></div>
<div class="grid">
<div class="col clear">
<h3>Hot reaload</h3>
<p><b>Cor</b> provides a smooth front-end development by furnishing a builtin <b>loader</b> which resolves dependences and compiles source code <b>on the fly</b>, with just reloading the Web page. You will only need to use CLI tools to deliver a production-ready version of the app.</p>
</div>
<div class="col">
<pre><code class="hljs cor"><html>
<script
type="text/javascript"
src="node_modules/cor-lang/dist/cor.js">
</script>
<script data-entry="my_app.cor"></script>
</html>
</code></pre>
</div>
</div>
<div class="rule"></div>
<div class="grid">
<div class="col">
<img src="docs/assets/cor_debug_light.jpg" />
</div>
<div class="col">
<h3>Easy to debug</h3>
<p><b>Cor</b> supports <b>source-maps</b>, allowing you the easy debugging in major browsers. However a line of <b>Cor</b> source is compiled to the <b>exact line number</b> in JavaScript for accurated <b>debugging</b> when developing in platforms that doesn't supports source-maps such as servers.</p>
</div>
</div>
<div class="full-rule"></div>
<div class="center">
<a class="button" href="docs/get_started.html">Get started</a>
</div>
<!--div>
<h2></h2>
<p></p>
</div-->
<div class="full-rule"></div>
<div id="footer" class="footer-links">
<ul>
<li><a href="https://github.com/yosbelms/cor">GitHub Repository</a></li>
<li>·</li>
<li><a href="https://github.com/yosbelms/cor/issues">Issues</a></li>
</ul>
</div>
</div>
<div class="footer">
<p>Designed, written, and built with love by <a href="https://github.com/yosbelms" target="_blank">Yosbel Marín</a>. Code licensed under <a href="https://github.com/yosbelms/cor/blob/master/LICENSE" target="_blank">BSD</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
</div>
<script type="text/javascript" src="docs/assets/highlightjs/highlight.js"></script>
<script type="text/javascript"> hljs.initHighlightingOnLoad(); </script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73271106-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>