Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    K

    Kumagi

    d.hatena.ne.jp · Personal blog · on HN since 2009

    Kumagi, a Japanese programmer, writes on Hatena Diary about quines, polyglot programs, Ruby, Go, and security bug rewards.

    Visit blogHN submissions
    ProgrammingLanguages & Compilers
    What HN says

    HN links it for his inventive quines, including a spinning-globe Ruby program, with commenters discussing how they work.

    Stats for nerds
    24HN people shared it
    13linked in comments
    249story points
    Jul 2018last shared
    2009people per year2018

    Top posts on HN

    1. 1
      A crazy Ruby quine: a spinning globe.
      2 people · 95 points · first shared 2010 · 18 comments on HN
    2. 2
      Japanese hacker earns $13,174 for reporting Google security holes
      1 person · 54 points · first shared 2011 · 17 comments on HN
    3. 3
      A polyglot quine
      2 people · 47 points · first shared 2010 · 4 comments on HN
    4. 4
      Multi-player 3D FSP on Emacs
      1 person · 30 points · first shared 2011 · 9 comments on HN
    5. 5
      Quine in multiple languages
      4 people · 12 points · first shared 2009 · 1 comments on HN
    6. 6
      Golang and Python on Google AppEngine compare
      1 person · 4 points · first shared 2011 · Discussion on HN
    7. 7
      How to download JDK with curl
      1 person · 2 points · first shared 2012 · Discussion on HN
    8. 8
      Why Keras Creator François Chollet Should Study His History
      1 person · 1 points · first shared 2017 · 1 comments on HN
    9. 9
      Parallel QuickSort using Go
      1 person · 1 points · first shared 2009 · Discussion on HN
    10. 10
      HBase at Facebook what I heard on #hbasetokyo
      1 person · 1 points · first shared 2011 · Discussion on HN

    What HN people wrote when they linked it

    • omoikaneJul 2013

      The author has explained it, here:
      http://d.hatena.ne.jp/ku-ma-me/20130715/p1

      In the "spoiler" section:

      """
      Normally quines are made like this:

      s = (something that generates your own source code)

      puts s

      At the same time, a Ruby program that outputs a Perl program looks like this:

      puts "print(\"...\");"

      If you combine these with quine methods, you get a multi-quine that goes between Ruby and Perl:

      s = (something that generates your own source code)

      puts "print(\"#{ s }\");"

      Theoretically you just repeat this process. Except, there are the following practical problems:

      - Need proper escaping

      + Lots of old languages do not support C style of escape sequences.

      + Depending on languages, you need to escape interpolations.

      - Cobol and Fortran programs have troublesome constraints

      + Need 7 spaces on the left and less than 80 columns per line, etc.

      - Naive escaping will cause intermediate files to get too large.

      + JVM Strings have 64K size limit.

      + Languages like Intercal and Whitespace will become unbearably slow.

      In order to avoid these, Perl requires something like ppencode, Java needs LZW compression to avoid string size limits. Cobol's line length limit was satisfied using Closure generator, Fortran's line length limit was satisfied using Coffeescript generator. People who are interested should see the generated code.
      """

      In general, there isn't any standard method to making quines. You just keep on…

    • DanieruSep 2013

      I recommend creating your own cards, they just feel more weighty. I did jump start my sentence deck with the 500 card starter deck from AllJapaneseAllTheTime (http://www.alljapaneseallthetime.com/blog/my-first-sentence-pack-is-here-huzzah). Yet those cards feel different. If I were to redo things I would start from zero and build cards as you go.

      My process is to add 4 cards everyday. These sentences come from posts in my RSS feed. Over the years I found websites that interest me. Take for instance http://blog.esuteru.com/ which has a very 2ch style of news, not safe for work but often interesting. Or I'll stumble upon people's blogs. For example "KEN's": http://qoqpop.blog123.fc2.com/ He is a phone "otaku" who often travels to china and Mexico for business trips. I found his blog in a N900 related search. The open source community also has plenty of japanese bloggers. For instance http://d.hatena.ne.jp/naruoga/ is the blog of a Debian translator and a journalist who I found through the OpenPrinting working group.

    • 1331Mar 2010

      Check out this "quine relay!"
      http://d.hatena.ne.jp/ku-ma-me/20090916/p1

      The Ruby program outputs Python that outputs Perl that outputs Lua that outputs OCaml that outputs Haskell that outputs C that outputs Java that outputs Brainfuck that outputs Whitespace that outputs Unlambda that outputs the original Ruby program.

      (I was unable to get it to work when I tested it, but I still find it quite impressive!)

    • stousetMay 2016

      I'm not sure what you're talking about. The output is the entire source with the central globe rotated by a user-selectable number of degrees, including 0. The output isn't just the globe in the center.

      Edit: Ah, nvm. It looks like this is a Javascript port of a famous Ruby quine from 2010, the Qlobe[1].

      [1]: http://d.hatena.ne.jp/ku-ma-me/20100905/p1

    • ayJan 2011

      Looks it got pulled in the meantime. Oops. Looking at it now it says in light gray letters at the top "for docomo" so maybe it was some kind of beta that I accidentally downloaded.

      Here's a link to author's blog - there are examples of using zxing library for generating the QRCode. HTH.

      http://d.hatena.ne.jp/tomorrowkey/searchdiary?word=*[qrcode]

    • draegtunApr 2010

      There's been a slew of blog posts on Mojolicious::Lite & Websockets recently:

      * http://vti.showmetheco.de/articles/2010/04/mojolicious-and-websockets.html

      * http://d.hatena.ne.jp/yukikimoto/20100415/1271340273

      * http://d.hatena.ne.jp/yukikimoto/20100418/1271601822

    Related

    Mame Memomamememo.blogspot.com21 people

    Rotating Quine

    Mame Memo
    Personal · last shared 2024
    Peteris Kruminscatonmat.net316 people

    Low Level Bit Hacks You Absolutely Must Know

    Peteris Krumins
    Personal · last shared 2026
    Kuro5hinkuro5hin.org141 people

    RIP Kuro5hin

    Kuro5hin
    Publication · last shared 2021
    Inigo Quileziquilezles.org210 people

    Articles on fractals, computer graphics, mathematics, demoscene and more

    Inigo Quilez
    Personal · last shared 2026
    Patrick McKenziekalzumeus.com1.1k people

    Don't Call Yourself a Programmer

    Patrick McKenzie
    Personal · last shared 2026
    Samy Kamkarsamy.pl187 people

    NAT Slipstreaming

    Samy Kamkar
    Personal · last shared 2025
    XXIIVVwiki.xxiivv.com100 people

    Uxntal: A programming language for the Uxn virtual machine

    XXIIVV
    Personal · last shared 2026
    Coding Horrorblog.codinghorror.com2.1k people

    Farewell Stack Exchange

    Coding Horror
    Personal · last shared 2026