English version of http://codnote.net/ . But my english is usually strange.

Friday, March 26, 2010

yet another `rvm`.. ruby-tapper

Are you using rvm?

Ruby version manager

rvm is a contraction of "Ruby Version Manager".

It makes can switch rubies easy.

Like this:

% rvm install 1.9.1
% rvm 1.9.1
% rvm install 1.8.7
% rvm 1.8.7

rvm switches $PATH and $GEM_HOME.

But... rvm is very intricate, it's not easy.

So I made ruby-tapper.

ruby-tapper

ruby-tapper is very easy.

Install

HINT: ~/opt/ruby-tapper is example.

% git clone git://github.com/sorah/ruby-tapper ~/opt/ruby-tapper

Then add ~/opt/ruby-tapper/bin to your shell's $PATH.

Setup

HINT: ~/rubies is example.

HINT: rbt is command of ruby-tapper.

% mkdir ~/rubies
% rbt --rubies ~/rubies

Add ~/rubies/bin and ~/rubies/gem/bin to your shell's $PATH.

And set ~/rubies/gem to your shell's $GEM_HOME.

Add tapper

rvm can install rubies automatic, but ruby-tapper cannot.

  • First, download source code of ruby.
  • Then, run ./configure --prefix=$HOME/rubies/{ruby-version} to configure ruby.
  • Last, run make && make install to install to tapper.

Use

Tapper name is directory in ~/rubies

gist2

I got blogger.vim commit permission.

Hi. I'm using blogger.vim.

Yesterday ujihisa said 'I want to blogger.vim that post code to gist.github.com if code over 5 lines'.

I implemented that, I got commit permission.

I'll push soon. Now I'm testing.

And I'm sorry to I posted many useless post.

Demo

this is not gist

Gist is only over 5 lines.

And can paste embed

hi
yey

Friday, February 26, 2010

Online.sg #9 "LLVM" report #onsg9

This is report of Online.sg #9 "LLVM".

Lecturer

ujihisa http://ujihisa.blogspot.com/

Optimize

  • Brainf**k "Hello, world" file to llvm assembly file is 2114 lines.
  • optimized version is 25 lines. !!!!!!

LLVM Commands

  • llvm-as: llvm assembly file to llvm byte code.
  • lli: execute llvm byte code.
  • opt: optimize llvm byte code.
  • llvm-dis: disassembly llvm byte code.

Next

  • We're planning online.sp lighting talks at March.

Blogger.vim @ Snow Leopard

I'm writing a article to blogger with blogger.vim @ snow leopard.

What I did

  • Install ghc/cabal
  • Install pandoc

How to

See This wiki page.

Future

I thought i want study haskell in future.

Saturday, February 13, 2010

Auto load 'g'

g is very useful ruby's library.

I use on rails.

So i want auto require 'g' (Because delete `require` line is troublesome).

It like this:

About Me

My photo
A Ruby Committer. http://twitter.com/sora_h http://sorah.cosmio.net/

Followers