危ないRiSKのブログ このページをアンテナに追加 RSSフィード Twitter

                  

2012-03-18 (Sun)

[]カレントディレクトリを得る方法

Server application での話。

Dart でもこんな感じでカレントディレクトリパスを得られます

// D:\RiSK\dart\currentDirectory\currentDirectory.dart

#import('dart:io');

String get currentDirectory() => new Directory.current().path;

void main() {
  print(currentDirectory);
}

実行結果:

D:\RiSK\dart\currentDirectory

[][]【ニコニコインディーズ】終末28時【島白】

紹介だいぶ遅れましたが,よだれP新曲。

雰囲気のいい,さわやかな少し民族風味もある曲です。BGMに使えそう。

【ニコニコインディーズ】終末28時【島白】 ‐ ニコニコ動画(原宿)

D

[][]What is Dart?

O'reilly から Dart の本が出ました。$0.00 (無料)で,ePub, Mobi および PDF 形式でダウンロードできます

What is Dart? - O'Reilly Media

Dart の紹介が書かれている本でたったの20ページです。文法の詳細などは書かれていません。タイトル通り,「Dartって何?」と思っている人向けの内容でした。

目次

What is Dart? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Why Did Google Create Dart? 1

Does the Web Really Need Another Language? 2

Show Me the Code 2

How Can I Play with Dart? 3

How About a Real Editor? 5

What’s New About Dart? 6

Why Does Dart Look so Familiar? 8

What Is in the Dart Platform? 8

Should I Use Dart for My App Today? 8

How Do You Expect People to Use Dart? 9

How Can I Compile to JavaScript? 9

What Libraries Are Available? 10

 dart:core 10

 dart:html 10

 dart:io 11

Show Me More Code 11

 Types 11

 Generics 12

 Manipulating the DOM 13

 Isolates 14

Where Can I Learn More? 15

[]Dartium for Windows

Chromium with the Dart VM | DartLang.org

ここを見るといまだに (coming soon!) と言われますが,一応バイナリ存在するようです。

Index of /dartium-archive/continuous

残念ながら,現時点で私の環境ではうまく実行できませんでした。今後に期待。

2012-03-10 (Sat)

[][]Dart Editor のバグレポ投げました

Issue 2098 - dart - Dart Editor is missing color and indent when including String @'\' - Dart - Structured Web Programming - Google Project Hosting

コード中で

@'\'

という生文字列を使うと,色付けやインデントおかしくなるバグ。生文字列なのに \ のエスケープ処理をしちゃっておかしくなってるんだと予想。

コンパイラ自体は問題ないので @'\' というテキストを使ってもコンパイルは通ります