2014-02-01から1ヶ月間の記事一覧

寝ながらプログラミングしたい

普段はMacBookProやMacMiniでプログラミングしてるわけだけど、最近寒くなってきてお布団が恋しい季節だと、布団にもぐって寝ながらプログラミングしたくなる。 WindowsRTからWindows8にリモートデスクトップでつないで使ってみると結構いい感じだったので、…

ErlangEOS OOP inheritance sample ported from IO language

// https://github.com/stevedekorte/io/blob/master/samples/misc/Inheritance.io start()-> // Define a Dog object Dog = #<obj>{ barkPhrase = "woof!" bark = method()-> io.format( @"#{This.barkPhrase}\n" ) } Chiwawa = Dog.clone() Chiwawa.barkPhrase </obj>…

bank account sample ported from IO language

// https://github.com/stevedekorte/io/blob/master/samples/misc/Account.io start()-> Account = #<obj>{ balance = 0.0 deposit = method(V)-> This.balance := This.balance + V show = method()-> @"Account balance: $#{This.balance}\n" } io.format( @"I</obj>…

accumulator generator in ErlangEOS

// accumulator generator http://paulgraham.com/accgen.html foo(N)-> Obj = #<obj>{ accumulator=N } fun(I)-> Obj.accumulator := Obj.accumulator + I test()-> Foo = foo(0) 1 = Foo(1) 2 = Foo(1) 12 = Foo(10) 22 = Foo(10)</obj>

ErlangEOS ver0.01aをリリースしました

歌舞伎座.tech#3「Real World Erlang/OTP」にあわせてErlangEOSをまとめました。 自分的にはまだリリースレベルには達していないのですが、とりあえず今のレベルでまとめて、しばらくはドキュメントやサンプルを充実させることにし、githubで公開しました。 …