Home
Language
English
Türkçe
Bahasa Indonesia
About
Privacy Policy
Terms of Service
Pricing
Sign In
Download All
Share
trotr
@trotr
a
Joined October 2007
0
Following
35
Followers
574
Posts
trotr
retweeted
ĤeϰϻáņŝɧŮ
@hexmanshu
over 15 years ago
Peter Norvig answers why language choice is less important than development process and right architecture: http://bit.ly/aSRbmY
trotr
retweeted
Yoshihito Kuranuki / 倉貫義人
@kuranuki
over 15 years ago
「社員が勉強会に行くようになるにはどうすれば良いですか?」という某社の社長の質問。「まず社内からネットでブログや勉強会のアクセスを許可しましょう」と答えた。「でも、それは家から見えますよね?」と言われて、もうこれ以上の話は困難だと思った。
trotr
@trotr
over 15 years ago
mirahに構文的な要素を塚したい場合にはadd_intrinsicsの中に書きましょう。
trotr
@trotr
over 15 years ago
compiler.method.send "#{prefix}#{op}"とか激しい。mangleしているということか。
Who to follow
mooz
@stillpedant
I code. Opinions are my own.
deltam
@deltam
Webプログラマ。肩こりと筋肉痛の区別が付かない
po
@podhmo
pythonに踊らされる��々 → gopherに追い立てられる日々 → 本当は関数型言語というか式が優遇されてる言語のほうが好き (for LLMs {Exp: 10+y(Py/Go) Dev=Babysitting(irony); Output: tone=fluffy content=no-fluff})
trotr
@trotr
over 15 years ago
あ、instance変数の@マークでだれかに言及してしまっている><
trotr
@trotr
over 15 years ago
注意点としてはDuby::JVM::Types::Type#add_macroというメソッドも存在するということ。こちらは、
@type
にInlineCode.newを渡したblockから生成して
@intrinsics
[name][args]に格納。
trotr
@trotr
over 15 years ago
実際に定義されたmacroが実行されるのはtransform.rb上
trotr
@trotr
over 15 years ago
Duby::AST.defmacroは単に
@macros
にblockを格納するだけ。
trotr
@trotr
over 15 years ago
あっ、気づかなかったmirah側からdefmacroって使えるんだ。
trotr
@trotr
over 15 years ago
意外と、add_macroよりもadd_methodの方が面白いかもしれない。Intrisicというproc,lambdaを拡張したような(実際にはprocオブジェクトを内部にもつ)クラスをテーブルに格納(name*args). あれ?こうやって書くと妥当な定義だ。
trotr
@trotr
over 15 years ago
#mirahのコードを読んでいて思ったのだけれど
、
#rubyでpublic
,privateのような修飾子をつけるのは面倒で省いてしまいますね。
trotr
@trotr
over 15 years ago
継承深い。
trotr
@trotr
over 15 years ago
継承関係訂正。「IntegerType<Number<Primitive_type<Type」で終わらず、 「IntegerType<Number<Primitive_type<Type <TypeReference<Node」だった。 ast.rbも見る必要がある。
trotr
@trotr
over 15 years ago
そうそう、10.times{}にあたる部分はinteger.rbで定義されている。
trotr
@trotr
over 15 years ago
ちなみに継承関係は「IntegerType<Number<Primitive_type<Type」
trotr
@trotr
over 15 years ago
Duby::JVM::Types::Type#add_macroはintrinsics.rbで定義されている。Duby::JVM::Types::IntegerType#build_loopはintegers.rbで定義されている。
trotr
@trotr
over 15 years ago
#mirahのコードリーディング
。10.times{}がどのようにして実現しているかを調べる。 add_macroとbuild_loopを把握する必要がある。
trotr
@trotr
almost 16 years ago
javaの文法の方は何とかなるのだけれど…その先に進む気力が持てない。
trotr
@trotr
almost 16 years ago
緩募:X(他の言語)->javaのときに知っておいた方が良い知識が得られる練習問題。 GUIとか正規表現とかhtmlのパースとか便利なデータ構造とか。
trotr
@trotr
almost 16 years ago
今まできづかなかったけれど、class << selfの中でattr_accessorを利用すれば、moduleに値を格納することができる。mirahのコードを読んでて気づいた。 http://gist.github.com/591931
Last Seen Users on Sotwe
成人抖音-互推
Seen from
Vietnam
Asupan indo
Seen from
Indonesia
李老师(处男优先)
Seen from
Indonesia
BRUNOYMARIA OFFICIAL
Seen from
Spain
TRANG COUPLES
Seen from
Indonesia
Tesettür
Seen from
France
cem akan
Seen from
Turkey
Sexy Bride
Seen from
Turkey
جــودة افـــلآم ♡»🔥
Haber Kartalı
Seen from
Turkey
Trends for you
1
Giannis
Under 10K tweets
2
Carl
Under 10K tweets
3
Algeria
Under 10K tweets
4
DELTARUNE TOMORROW
Under 10K tweets
5
Jovic
Under 10K tweets
6
Paige
Under 10K tweets
7
Thanasis
Under 10K tweets
8
#ZatimaOnParamountPlus
Under 10K tweets
9
Norway
Under 10K tweets
10
Turner
Under 10K tweets
Most Popular Users
1
Elon Musk
@elonmusk
240.4M followers
2
Barack Obama
@barackobama
119.3M followers
3
Donald J. Trump
@realdonaldtrump
111.7M followers
4
Cristiano Ronaldo
@cristiano
110.1M followers
5
Narendra Modi
@narendramodi
107M followers
6
Rihanna
@rihanna
97.5M followers
7
NASA
@nasa
92.1M followers
8
Justin Bieber
@justinbieber
90.8M followers
9
KATY PERRY
@katyperry
87.4M followers
10
Taylor Swift
@taylorswift13
81.2M followers
11
Lady Gaga
@ladygaga
72.8M followers
12
Kim Kardashian
@kimkardashian
69.7M followers
13
Virat Kohli
@imvkohli
69.5M followers
14
YouTube
@youtube
68.7M followers
15
Bill Gates
@billgates
63.7M followers
16
The Ellen Show
@theellenshow
62.5M followers
17
Neymar Jr
@neymarjr
62.2M followers
18
CNN
@cnn
61.9M followers
19
X
@x
60.8M followers
20
Selena Gomez
@selenagomez
60.5M followers
Olivia
Online
✨
⭐
💫