<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Masayuki Hatta a.k.a. mhatta]]></title>
  <link href="http://www.mhatta.org/atom.xml" rel="self"/>
  <link href="http://www.mhatta.org/"/>
  <updated>2015-08-14T21:50:57+09:00</updated>
  <id>http://www.mhatta.org/</id>
  <author>
    <name><![CDATA[Masayuki Hatta]]></name>
    <email><![CDATA[mhatta@mhatta.org]]></email>
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[2nd Denousen: Abe vs. Shueso]]></title>
    <link href="http://www.mhatta.org/blog/2013/03/24/2nd-denousen-abe-vs-shueso/"/>
    <updated>2013-03-24T04:50:00+09:00</updated>
    <id>http://www.mhatta.org/blog/2013/03/24/2nd-denousen-abe-vs-shueso</id>
    <content type="html"><![CDATA[<p><a href="http://ex.nicovideo.jp/denousen2013/">The 2nd Shogi Denousen</a> has began.  This is the first cut-throat match between top-notch professional Shogi players(yes, there are <a href="http://www.shogi.or.jp/player/index.html">such people</a>) and the best crop of computer Shogi engines, 5 on 5.</p>

<!--more-->


<p><a href="http://en.wikipedia.org/wiki/Shogi">Shogi</a> is a distant cousin of Chess.  Unlike Chess, you may re-use captured pieces anywhere on the board anytime.  It brings quite lot of additional complexities, and even after <a href="http://en.wikipedia.org/wiki/Deep_Blue_versus_Garry_Kasparov">the defeat of Garry Kasparov</a> in 1997, many considered that (at least top-level) human Shogi players have a great lead on computer Shogi engines.</p>

<p>The situation had changed dramatically when a newcomer Shogi engine called <a href="http://ja.wikipedia.org/wiki/Bonanza">Bonanza</a>, developed by a Japanese chemist Kunihito Hoki, won <a href="http://www.computer-shogi.org/wcsc16/index_e.html">the 16th World Computer Shogi Championship</a>.  Bonanza appeared totally out of the blue &mdash; Hoki incorporated some new ideas developed in the field of computer Chess, and Bonanza beated existing engines with no mercy.  Bonanza could even corner some professional Shogi players in 2007.  Later Hoki released(but not strictly open-source) <a href="http://www.geocities.jp/bonanza_shogi/">the source code of Bonanza</a>, and the standard of computer Shogi has risen considerably since then.  Finally, in the 1st Denousen last year, <a href="http://en.wikipedia.org/wiki/Kunio_Yonenaga">Kunio Yonenaga</a>, long retired but possibly one of the greatest Shogi players in the history, was defeated by Bonkras, a clustered version of Bonanza developed by Eiki Itoh of Fujitsu.</p>

<p>The first match of Denousen this year was held yesterday between <a href="http://ja.wikipedia.org/wiki/%E9%98%BF%E9%83%A8%E5%85%89%E7%91%A0">Kouru Abe</a>, an 18-year old prodigy from Aomori, and Shueso, which finished in 5th at <a href="http://www.computer-shogi.org/wcsc22/index_e.html">the 22nd World Computer Shogi Championship</a>.  I hoped a close game, but <a href="http://live.nicovideo.jp/watch/lv118753162">Abe could beat Shueso quite easily</a>.  Shueso somehow could not bring its ability into full play, to my great disappointment.  Next weekend(Mar. 30), we will see <a href="http://live.nicovideo.jp/watch/lv118754300">the second match</a> between <a href="http://ja.wikipedia.org/wiki/%E4%BD%90%E8%97%A4%E6%85%8E%E4%B8%80_%28%E6%A3%8B%E5%A3%AB%29">Shinichi Sato</a>, another young pro, and Ponanza, developed based on Bonanza by <a href="http://www.graco.c.u-tokyo.ac.jp/~issei/">Issei Yamamoto</a> of The University of Tokyo.</p>

<p>BTW, Debian already has <a href="http://packages.debian.org/ja/source/sid/gpsshogi">the package of GPS Shogi</a>, which won <a href="http://www.computer-shogi.org/wcsc22/index_e.html">the 22nd World Computer Shogi Championship</a> and considered by many the strongest Shogi engine available now (there is also <a href="http://packages.debian.org/ja/source/sid/gnushogi">gnushogi</a> in Debian, but gnushogi is quite weak).</p>

<p>You may have fun with</p>

<pre><code>    $ xshogi -fsp gpsshogi
</code></pre>

<p>Unfortunately, we don&rsquo;t have good modern GUI for Shogi yet&hellip;</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Recipe for Debian Haskell packaging]]></title>
    <link href="http://www.mhatta.org/blog/2013/03/21/recipe-for-debian-haskell-packaging/"/>
    <updated>2013-03-21T06:12:00+09:00</updated>
    <id>http://www.mhatta.org/blog/2013/03/21/recipe-for-debian-haskell-packaging</id>
    <content type="html"><![CDATA[<p>The following is what I usually do when I want to debianize a Haskell stuff from Hackage.  This is a personal recipe, by no means official procedure or such.  I may be wrong, badly at that.</p>

<!--more-->


<ol>
<li><p>Check <a href="http://anonscm.debian.org/darcs/pkg-haskell/">pkg-haskell repository</a> whether your intended package already exists or not.  Somebody might work on it already.</p></li>
<li><p>Find the webpage of your intended package at <a href="http://hackage.haskell.org/packages/archive/pkg-list.html">HackageDB</a>, then download &ldquo;Cabal source package&rdquo;.  Untar it.  The tarball filename should be changed to fit the Debian source package convention.  For example, if the original name is something like foobar-1.0.tar.gz, then it should be haskell-foobar_1.0.orig.tar.gz.</p></li>
<li><p>File ITP.  <a href="http://wiki.debian.org/reportbug">reportbug</a> is your friend.</p></li>
<li><p>Run <a href="http://packages.debian.org/source/sid/cabal-debian">cabal-debian</a> in untared dir:</p>

<pre><code> $ cabal-debian --debianize --quilt
</code></pre>

<p> We do have the upstream tarball, so use &ndash;quilt.  See <a href="http://wiki.debian.org/UsingQuilt">http://wiki.debian.org/UsingQuilt</a>.  It might give you warnings about changelog.  debian/changelog doesn&rsquo;t exist yet, so ignore it.</p></li>
<li><p>Now read</p>

<p> <a href="http://wiki.debian.org/Haskell/CollabMaint/Processes">http://wiki.debian.org/Haskell/CollabMaint/Processes</a></p>

<p> and</p>

<p> <a href="http://wiki.debian.org/Haskell/CollabMaint/PackageTemplate">http://wiki.debian.org/Haskell/CollabMaint/PackageTemplate</a></p>

<p> carefully.  Then do things as they say.  These two are short, but well-written instructions.</p>

<p> Edit the generated debian/control appropriately.  Do not forget to make your debian/copyright machine-friendly.  See <a href="http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/">http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/</a>.</p></li>
<li><p>Test whether your package is flawless and really buildable.  Do <a href="http://lintian.debian.org/">lintian</a>.  Use pbuilder.</p>

<pre><code> $ lintian haskell-foobar_1.0-1_amd64.changes

 # pbuilder --build haskell-foobar_1.0-1.dsc
</code></pre></li>
<li><p>Read <a href="http://wiki.debian.org/Haskell/CollabMaint/DarcsBasic">http://wiki.debian.org/Haskell/CollabMaint/DarcsBasic</a>.</p>

<p> Darcs is quite easy to use, and you don&rsquo;t have to be the master of Darcs to merely debianize things anyway.  Basically, what I usually do is</p>

<pre><code> $ darcs record -a; darcs push --repo=debian
</code></pre>

<p> Darcs is well-suited to Haskell-related development, but seems you can use Git, too.</p></li>
<li><p>Change debian/changelog.  &ldquo;UNRELEASED&rdquo; in the first line should be &ldquo;unstable&rdquo; or &ldquo;experimental&rdquo;.  Do not forget to close ITP.</p></li>
<li><p>Finally, do</p>

<pre><code> $ debuild -tc; debcommit -r; debrelease; darcs push --repo=debian
</code></pre>

<p> That&rsquo;s all folks!</p></li>
</ol>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Snow, Baby, Snow]]></title>
    <link href="http://www.mhatta.org/blog/2013/01/14/snow/"/>
    <updated>2013-01-14T15:48:00+09:00</updated>
    <id>http://www.mhatta.org/blog/2013/01/14/snow</id>
    <content type="html"><![CDATA[<p><img src="http://www.mhatta.org/images/snowytokyo20130114.jpg" width="320" height="200"></p>

<p>It rarely snows these days in Tokyo.  Until now.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Toying with Octopress]]></title>
    <link href="http://www.mhatta.org/blog/2012/10/24/toying-with-octopress/"/>
    <updated>2012-10-24T00:45:00+09:00</updated>
    <id>http://www.mhatta.org/blog/2012/10/24/toying-with-octopress</id>
    <content type="html"><![CDATA[<p>Well, now you see&hellip;</p>
]]></content>
  </entry>
  
</feed>
