Skip to content

Commit

Permalink
Site updated at 2013-06-01 15:41:34 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
cmonkey committed Jun 1, 2013
1 parent 82b4bd7 commit e271412
Show file tree
Hide file tree
Showing 118 changed files with 1,510 additions and 1,035 deletions.
8 changes: 4 additions & 4 deletions about/index.html
Expand Up @@ -161,6 +161,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -177,10 +181,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
70 changes: 55 additions & 15 deletions atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[]]></title>
<link href="http://cmonkey.github.com/atom.xml" rel="self"/>
<link href="http://cmonkey.github.com/"/>
<updated>2013-06-01T22:56:34+08:00</updated>
<updated>2013-06-01T23:41:18+08:00</updated>
<id>http://cmonkey.github.com/</id>
<author>
<name><![CDATA[cmonkey]]></name>
Expand All @@ -13,6 +13,60 @@
<generator uri="http://octopress.org/">Octopress</generator>


<entry>
<title type="html"><![CDATA[Racket on ffi]]></title>
<link href="http://cmonkey.github.com/blog/2013/06/01/racket-on-ffi/"/>
<updated>2013-06-01T23:28:00+08:00</updated>
<id>http://cmonkey.github.com/blog/2013/06/01/racket-on-ffi</id>
<content type="html"><![CDATA[<p>link:<a href="http://www.cs.grinnell.edu/~rebelsky/Glimmer/Summer2012/RacketFFI/tutorial.html">The Racke tForeign-Function Interface</a></p>
<pre><code>// mylib1.c
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
// Square an integer
int isquare (int i){
return i * i;
}
</code></pre>
<p>command 中执行:</p>
<pre><code>gcc --shared -o mylib1.so mylib1.c
</code></pre>
<p>mylib.rkt</p>
<pre><code>#lang racket
(require ffi/unsafe
ffi/unsafe/define)
(define-ffi-definer mylib-define (ffi-lib "mylib1"))
(mylib-define isquare (_fun _int -&gt; _int))
(isquare 5)
</code></pre>
<p>mylib1.rkt</p>
<pre><code>#lang racket
(require ffi/unsafe)
(define mylib (ffi-lib "mylib1.so"))
(define isquare
(get-ffi-obj "isquare"
mylib
(_fun _int -&gt; _int)))
(isquare 1000)
</code></pre>
]]></content>
</entry>

<entry>
<title type="html"><![CDATA[slideshow and ffi]]></title>
<link href="http://cmonkey.github.com/blog/2013/06/01/slideshow-and-ffi/"/>
Expand Down Expand Up @@ -1092,20 +1146,6 @@ $代表一行的结尾处
<!-- more -->
]]></content>
</entry>

<entry>
<title type="html"><![CDATA[陈志武:金融危机之下,美国消费方式会改变吗]]></title>
<link href="http://cmonkey.github.com/blog/2012/10/22/consumption/"/>
<updated>2012-10-22T09:23:00+08:00</updated>
<id>http://cmonkey.github.com/blog/2012/10/22/consumption</id>
<content type="html"><![CDATA[<p>link: <a href="http://view.news.qq.com/a/20080928/000002.htm">陈志武:金融危机之下,美国消费方式会改变吗</a></p>
<p>你家乡的人好像没有什么基本生存和简单精神空间之外的世界,他们清早起来去为生存而生产,忙碌一天下来,吃过饭,到晚上很早又睡觉,他们自己这一代如此,到了下一代还是重复着如此,生存就是为了能多工作一天,多工作一天就是为了简单地多生存一天,每天这样重复,每代这样重复。</p>
<!-- more -->
]]></content>
</entry>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/20/Jekyll/index.html
Expand Up @@ -205,6 +205,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -221,10 +225,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/20/workers-sadness/index.html
Expand Up @@ -200,6 +200,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -216,10 +220,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/21/solaris-vbox4.10-error/index.html
Expand Up @@ -179,6 +179,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -195,10 +199,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/23/lucifer-effect/index.html
Expand Up @@ -294,6 +294,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -310,10 +314,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/24/ruby-index-pack/index.html
Expand Up @@ -174,6 +174,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -190,10 +194,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/25/onkind-sound/index.html
Expand Up @@ -204,6 +204,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -220,10 +224,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/07/31/elegy-723/index.html
Expand Up @@ -192,6 +192,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -208,10 +212,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/08/01/form-feynman-to-723/index.html
Expand Up @@ -234,6 +234,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -250,10 +254,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/08/01/horse/index.html
Expand Up @@ -180,6 +180,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -196,10 +200,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/08/01/there-is-unspeakable/index.html
Expand Up @@ -169,6 +169,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -185,10 +189,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/08/03/lsof/index.html
Expand Up @@ -425,6 +425,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -441,10 +445,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
Expand Up @@ -224,6 +224,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -240,10 +244,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down
8 changes: 4 additions & 4 deletions blog/2011/08/05/seven-weapons/index.html
Expand Up @@ -180,6 +180,10 @@ <h1>Comments</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2013/06/01/racket-on-ffi/">Racket on ffi</a>
</li>

<li class="post">
<a href="/blog/2013/06/01/slideshow-and-ffi/">slideshow and ffi</a>
</li>
Expand All @@ -196,10 +200,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2013/04/29/call-slash-cc/">call/cc</a>
</li>

<li class="post">
<a href="/blog/2013/04/29/the-croods/">the croods</a>
</li>

</ul>
</section>

Expand Down

0 comments on commit e271412

Please sign in to comment.