forked from gosu-lang/gosu-lang.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (59 loc) · 2.7 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
---
layout: main
---
<div class="hero-unit">
<img src="/img/logo-large.png" style="width:512px;max-width:100%"/>
</div>
<div class="row">
<div class="col-md-8">
<h3>
<i class="fa fa-coffee"></i>
<span class="hidden-xs">
Hey look! It's a pragmatic language for the JVM...
</span>
<span class="visible-xs-inline">
A simple JVM language
</span>
</h3>
<pre class="prettyprint eval-gs">
// Type inference <span class="hidden-xs">keeps things clean</span>
var aString = "Hello Gosu!"
// Lists & Maps literals <span class="hidden-xs"> for easy use</span>
var strings = { "red",
"green",
"blue" }
// Closures <span class="hidden-xs">make data structures fun</span>
var l = strings.where( \ s -> s.length() > 3 ).sort()
// Full Java Interop<span class="hidden-xs">erability</span>
var f = new File("Tmp.txt")
// With new features<span class="hidden-xs"> that make java fun again</span>
f.write(l.join(", "))
print( f.read() )
</pre>
<p class="index-btns">
<a class="btn btn-lg btn-success" href="quickstart.html"><i class="fa fa-cogs"></i> Quickstart</a>
<a class="btn btn-lg btn-default" href="docs.html"><i class="fa fa-book"></i> Learn</a>
</p>
</div>
<div class="col-md-4">
<h3> <i class="fa fa-bullhorn"></i> Latest News</h3>
<ul>
{% for post in site.posts limit: 2 %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
<li><a href="https://vimeo.com/171764414">GeeCON 2016: A symphony of types: Nominal, Structural, Functional, and Generic</a></li>
<li><a href="/2016/03/01/new-json-support-in-gosu.html">New JSON Support in Gosu</a></li>
<li><a href="/2015/11/22/threading-the-needle.html">Threading the Needle with Functional Programming, Structural Typing, and Generics</a></li>
<li><a href="/2015/09/17/continuous-integration-with-gosu.html">Continuous Integration with Gosu</a></li>
<li><a href="/2015/06/25/gosu-java8.html">What's New with Gosu's Java 8 Support (so far)</a></li>
<li><a href="/2015/06/25/checked-arithmetic.html">Checked Arithmetic in Gosu</a></li>
<li><a href="/2014/08/08/optimizing-generic-type-reification.html">Optimizing Generic Type Reification</a></li>
<li><a href="/2014/07/10/dynamic-language-features-in-gosu.html">Dynamic Language Features in Gosu</a></li>
<li><a href="/2014/04/22/structural-types-in-gosu.html">Structural Types in Gosu</a></li>
<li><a href="http://www.javamagazine.mozaicreader.com/JanFeb2016#&pageSet=65">Java Magazine 2016</a></li>
</ul>
<a class="btn btn-default" href="/blog.html">Older posts...</a>
</div>
</div>