]> gitweb.factorcode.org Git - factor.git/blob - extra/websites/factorcode/index.fhtml
9e8ecb2b62923c16e6ae8e5d1c4c9ca24c751c21
[factor.git] / extra / websites / factorcode / index.fhtml
1 <% USING: namespaces http.client kernel io.files splitting random io io.encodings.utf8 sequences
2 webapps.mason.version.data webapps.mason.backend webapps.mason.grids webapps.mason.downloads 
3 webapps.mason.utils html.elements html.streams accessors
4 xml.writer xmode.highlight ; %>
5
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
7         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
8
9 <html xmlns="http://www.w3.org/1999/xhtml">
10 <head>
11         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
12
13         <title>Factor programming language</title>
14         <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8" />
15 </head>
16
17 <body>
18
19 <div><img src="logo.png" alt="Factor programming language" /></div>
20
21 <table border="0" width="100%">
22
23 <tr>
24 <td width="50%" valign="top">
25
26 <h1>Why Factor?</h1>
27
28 <p>The <big>Factor programming language</big> combines <a href="http://concatenative.org/wiki/view/Factor/Features/The%20language">powerful language features</a> with a <a href="http://docs.factorcode.org/content/article-vocab-index.html">full-featured library</a>. The implementation is <a href="http://concatenative.org/wiki/view/Factor/Optimizing%20compiler">fully compiled</a> for performance, while still supporting <a href="http://concatenative.org/wiki/view/Factor/Interactive development">interactive development</a>. Factor applications are portable between all common platforms. Factor can <a href="http://concatenative.org/wiki/view/Factor/Deployment">deploy stand-alone applications</a> on all platforms. Full source code for the Factor project is available under a <a href="http://factorcode.org/license.txt">BSD license</a>.</p>
29
30 <ul>
31 <li>Screenshots: <a href="http://factorcode.org/factor-macosx.png">Mac OS X</a>, <a href="http://factorcode.org/factor-windows7.png">Windows</a></li>
32 <li><a href="http://concatenative.org/wiki/view/Factor">Learn more about Factor</a></li>
33 <li><a href="http://concatenative.org/wiki/view/Factor/Learning">Get started programming with Factor</a></li>
34 <li><a href="http://concatenative.org/wiki/view/Factor/FAQ">Get answers to frequently-asked questions</a></li>
35 <li><a href="http://docs.factorcode.org/">Read Factor reference documentation online</a></li>
36 <li><a href="http://concatenative.org/wiki/view/Concatenative%20language">Learn more about concatenative programming</a></li>
37 <li><a href="http://github.com/slavapestov/factor/issues">Report a bug</a></li>
38 </ul>
39
40 <p>Most of the above links point to pages on the <a href="http://concatenative.org">concatenative.org wiki</a>.</p>
41 </td>
42
43 <td width="50%" valign="top">
44
45 <h1>Show me some code!</h1>
46
47 <p>Factor belongs to the family of <em><a href="http://concatenative.org/wiki/view/Concatenative%20language">concatenative languages</a></em>: this means that, at the lowest level, a Factor program is a series of words (functions) that manipulate a stack of references to dynamically-typed values. This gives the language a powerful foundation which allows many abstractions and paradigms to be built on top. Reload this page to see a random code example below.</p>
48
49 <pre><%
50 "resource:extra/websites/factorcode/examples.txt" utf8 file-lines
51 { "----" } split random
52 "factor" [ highlight-lines ] with-html-writer
53 xml>string write-html
54 %></pre>
55
56 <p>See the <a href="http://concatenative.org/wiki/view/Factor/Examples">example programs</a> page on the wiki for more.</p>
57
58 </td>
59 </tr>
60
61 </table>
62
63 <h1>Downloads</h1>
64
65 <% [ %>
66
67 <p>To download a binary, follow the link corresponding to your computer's CPU/OS configuration. Binary packages are the recommended route for new users who wish to try Factor.</p>
68
69 <h2>Stable release:
70 <% latest-version <a [ announcement-url>> =href a> ] [ version>> write ] bi </a> %>
71 </h2>
72
73 <table id="mytable" cellspacing="0" summary="Stable releases">
74         <% release-grid write-xml %>
75 </table>
76
77 <p><b>Source code</b>:
78 <% latest-version <a [ source-path>> download-url =href a> ] [ version>> write ] bi </a> %>
79 </p>
80
81 <h2>Development release</h2>
82
83 <table id="mytable" cellspacing="0" summary="Development releases">
84         <% package-grid write-xml %>
85 </table>
86
87 <% ] with-mason-db %>
88
89 <p>Stable and development releases are built and uploaded by the <a href="http://concatenative.org/wiki/view/Factor/Build farm">build farm</a>. Follow <a href="http://twitter.com/FactorBuilds">@FactorBuilds</a> on Twitter to receive notifications. If you're curious, take a look at the <a href="http://builds.factorcode.org/dashboard">build farm dashboard</a>.</p>
90
91 <p><b>Source code</b> is stored in our <a href="http://concatenative.org/wiki/view/Factor/GIT repository">GIT repository</a>. Source can can be browsed online via <a href="http://github.com/slavapestov/factor/">github</a> or <a href="http://gitweb.factorcode.org/">gitweb</a>.</p>
92
93 <h1>More</h1>
94                     
95 <ul>
96 <li><a href="http://concatenative.org/wiki/view/Factor/Mailing list">Join the mailing list</a></li>
97 <li><a href="http://concatenative.org/wiki/view/Concatenative IRC channel">Join the IRC channel</a></li>
98 <li><a href="http://planet.factorcode.org/">planet.factorcode.org</a> - Factor community blogs</li>
99 <li><a href="http://concatenative.org/wiki/view/Concatenative%20language/Publications">Academic publications</a></li>
100 <li><a href="http://paste.factorcode.org/">Factor community pastebin</a> - if you're in an IRC channel and want to share some code</li>
101 </ul>
102
103 </body>
104 </html>