約 6,114,042 件
https://w.atwiki.jp/tmiya/pages/112.html
第 10 章 XML 式とパターン (XML Expressions and Patterns) By Burak Emir This chapter describes the syntactic structure of XML expressions and patterns . It follows as closely as possible the XML 1.0 specification [W3C], changes being mandated by the possibility of embedding Scala code fragments . この章では XML 式とパターンの文法構造を記述します。 可能な限りしっかりと XML 1.0 仕様書[W3C]および、 今後の Scala コードの埋め込みで要求される変更に従います。 10.1 XML 式 (XML Expressions) XML expressions are expressions generated by the following production, where the opening bracket of the first element must be in a position to start the lexical XML mode (§1.5) . XML 式は次の文法規則によって生成される式です。ここで最初の要素の 始め山括弧 は、字句上の XML モード (§1.5) を開始できる位置になければなりません。 構文 XmlExpr = XmlContent {Element} Well-formedness constraints of the XML specification apply, which means for instance that start tags and end tags must match, and attributes may only be defined once, with the exception of constraints related to entity resolution . XML 仕様書の整形式制約が適用されます。その意味は例えば、 開始タグと終了タグはマッチしなければならず、属性は一度だけ定義できる、 ただしエンティティ解決にかかわる制約の例外がある、ということです。 The following productions describe Scala s extensible markup language, designed as close as possible to the W3C extensible markup language standard . Only the productions for attribute values and character data are changed . Scala does not support declarations, CDATA sections or processing instructions . Entity references are not resolved at runtime . 次の文法規則は Scala の XML を記述しており、W3C XML 標準規格に可能な限り近く 設計されています。 属性値と文字データの文法規則だけは変えられています。 Scala は、宣言、CDATA セクションあるいは処理命令をサポートしていません。 エンティティ参照は、実行時には解決されません。 構文 Element = EmptyElemTag | STag Content ETag EmptyElemTag = Name {S Attribute} [S] / STag = Name {S Attribute} [S] ETag = / Name [S] Content = [CharData] {Content1 [CharData]} Content1 = XmlContent | Reference | ScalaExpr XmlContent = Element | CDSect | PI | Comment If an XML expression is a single element, its value is a runtime representation of an XML node (an instance of a subclass of scala.xml.Node). If the XML expression consists of more than one element, then its value is a runtime representation of a sequence of XML nodes (an instance of a subclass of scala.Seq[scala.xml.Node]) . If an XML expression is an entity reference, CDATA section, processing instructions or a comments, it is represented by an instance of the corresponding Scala runtime class . もし XML 式がただ 1 つの要素なら、その値は XML ノード (scala.xml.Node のサブクラスのインスタンス)の実行時表現です。 もし XML 式が 1 つより多くの要素から成るなら、 その値は XML ノードのシーケンス (scala.Seq[scala.xml.Node] のサブクラスのインスタンス)の実行時表現です。 もし XML 式がエンティティ参照、CDATA セクション、処理命令あるいはコメントなら、 それは対応する Scala 実行時クラスのインスタンスによって表現されます。 By default, beginning and trailing whitespace in element content is removed, and consecutive occurrences of whitespace are replaced by a single space character \u0020. This behavior can be changed to preserve all whitespace with a compiler option . デフォルトでは、要素コンテンツ中の始まりとお終いの空白文字は削除され、 連続する空白文字はただ 1 つのスペース文字 \u0020 で置き換えられます。 この振る舞いはコンパイラ・オプションで、 すべての空白文字を維持するように変えることができます。 構文 Attribute = Name Eq AttValue AttValue = " {CharQ | CharRef} " | {CharA | CharRef} | ScalaExpr ScalaExpr = Block CharData = { CharNoRef } without {CharNoRef} { CharB {CharNoRef} and without {CharNoRef} ]] {CharNoRef} XML expressions may contain Scala expressions as attribute values or within nodes . In the latter case, these are embedded using a single opening brace { and ended by a closing brace } . To express a single opening braces within XML text as generated by CharData, it must be doubled . Thus, {{ represents the XML text { and does not introduce an embedded Scala expression . XML 式は、Scala 式を属性値としてあるいはノード内に含めることができます。 後者の場合、それらは 1 つの左波括弧 { を使って埋め込まれ、 右波括弧 } で終わります。 CharData で生成された時の XML テキスト中で 1 つの左波括弧を表すには、 それを 2 重にします。 ですから、 {{ は XML テキスト { を表し、埋め込まれた Scala 式を導入しません。 構文 BaseChar, Char, Comment, CombiningChar, Ideographic, NameChar, S, Reference = "W3C XML と同様" Char1 = Char without | CharQ = Char1 without " CharA = Char1 without CharB = Char1 without { Name = XNameStart {NameChar} XNameStart = _ | BaseChar | Ideographic (W3C XMLと同じだが なし 10.2 XML パターン (XML Patterns) XML patterns are patterns generated by the following production, where the opening bracket of the element patterns must be in a position to start the lexical XML mode (§1.5) . XML パターンは次の文法規則によって生成されるパターンです。 ここで要素パターンの始め山括弧 は、字句上の XML モード (§1.5) を開始できる位置になければなりません。 構文 XmlPattern = ElementPattern Well-formedness constraints of the XML specification apply . An XML pattern has to be a single element pattern . It matches exactly those runtime representations of an XML tree that have the same structure as described by the pattern . XML patterns may contain Scala patterns(§8.4) . XML 仕様書の整形式制約が適用されます。 XML パターンは、ただ 1 つの要素パターンでなければなりません。 それは、パターンによって記述されたのと同じ構造を持つ XML ツリーの実行時表現と正確にマッチします。 XML パターンは Scala パターン (§8.4)を含んでいても構いません。 Whitespace is treated the same way as in XML expressions . Patterns that are entity references, CDATA sections, processing instructions and comments match runtime representations which are the the same . 空白文字は XML 中と同じ方法で扱われます。 エンティティ参照、CDATA セクション、処理命令とコメント等のパターンは、 同じ実行時表現とマッチします。 By default, beginning and trailing whitespace in element content is removed, and consecutive occurrences of whitespace are replaced by a single space character \u0020. This behavior can be changed to preserve all whitespace with a compiler option . デフォルトでは、要素コンテンツ中の始まりとお終いの空白文字は削除され、 連続する空白文字はただ 1 つのスペース文字 \u0020 で置き換えられます。 この振る舞いはコンパイラ・オプションで、 すべての空白文字を維持するように変えることができます。 構文 ElemPattern = EmptyElemTagP | STagP ContentP ETagP EmptyElemTagP = Name [S] / STagP = Name [S] ETagP = / Name [S] ContentP = [CharData] {(ElemPattern|ScalaPatterns) [CharData]} ContentP1 = ElemPattern | Reference | CDSect | PI | Comment | ScalaPatterns ScalaPatterns = { Patterns } 前 9章 目次 次 11章
https://w.atwiki.jp/langc/pages/15.html
問題文 Run the ``hello, world program on your system. Experiment with leaving out parts of the program, to see what error messages you get. Experiment to find out what happens when printf s argument string contains \c, where c is some character not listed above. Modify the temperature conversion program to print a heading above the table. Write a program to print the corresponding Celsius to Fahrenheit table. Modify the temperature conversion program to print the table in reverse order, that is, from 300 degrees to 0. Verify that the expression getchar() != EOF is 0 or 1. Write a program to print the value of EOF. Write a program to count blanks, tabs, and newlines. Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank. Write a program to copy its input to its output, replacing each tab by \t, each backspace by \b,and each backslash by \\. This makes tabs and backspaces visible in an unambiguous way. How would you test the word count program? What kinds of input are most likely to uncover bugs if there are any? Write a program that prints its input one word per line. Write a program to print a histogram of the lengths of words in its input. It is easy to draw the histogram with the bars horizontal; a vertical orientation is more challenging. Write a program to print a histogram of the frequencies of different characters in its input. Rewrite the temperature conversion program of Section 1.2 to use a function for conversion. Revise the main routine of the longest-line program so it will correctly print the length of arbitrary long input lines, and as much as possible of the text. Write a program to print all input lines that are longer than 80 characters. Write a program to remove trailing blanks and tabs from each line of input, and to delete entirely blank lines. Write a function reverse(s) that reverses the character string s. Use it to write a program that reverses its input a line at a time. Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a variable or a symbolic parameter? Write a program entab that replaces strings of blanks by the minimum number of tabs and blanks to achieve the same spacing. Use the same tab stops as for detab. When either a tab or a single blank would suffice to reach a tab stop, which should be given preference? Write a program to ``fold long input lines into two or more shorter lines after the last non-blank character that occurs before the n-th column of input. Make sure your program does something intelligent with very long lines, and if there are no blanks or tabs before the specified column. Write a program to remove all comments from a C program. Don t forget to handle quoted strings and character constants properly. C comments don t nest. Write a program to check a C program for rudimentary syntax errors like unmatched parentheses,brackets and braces. Don t forget about quotes, both single and double, escape sequences, and comments. (This program is hard if you do it in full generality.)
https://w.atwiki.jp/langc/pages/28.html
Write the function strrindex(s,t) , which returns the position of the rightmost occurrence of t in s , or -1 if there is none. Extend atof to handle scientific notation of the form 123.45e-6 where a floating-point number may be followed by e or E and an optionally signed exponent. Given the basic framework, it s straightforward to extend the calculator. Add the modulus ( % ) operator and provisions for negative numbers. Add commands to print the top element of the stack without popping, to duplicate it, and to swap the top two elements. Add a command to clear the stack. Add access to library functions like sin , exp , and pow . See math.h in Appendix B, Section 4. Add commands for handling variables. (It s easy to provide twenty-six variables with single-letter names.) Add a variable for the most recently printed value. Write a routine ungets(s) that will push back an entire string onto the input. Should ungets know about buf and bufp , or should it just use ungetch ? Suppose that there will never be more than one character of pushback. Modify getch and ungetch accordingly. Our getch and ungetch do not handle a pushed-back EOF correctly. Decide what their properties ought to be if an EOF is pushed back, then implement your design. An alternate organization uses getline to read an entire input line; this makes getch and ungetch unnecessary. Revise the calculator to use this approach. Modify getop so that it doesn t need to use ungetch. Hint use an internal static variable. Adapt the ideas of printd to write a recursive version of itoa ; that is, convert an integer into a string by calling a recursive routine. Write a recursive version of the function reverse(s) , which reverses the string s in place. Define a macro swap(t,x,y) that interchanges two arguments of type t . (Block structure will help.)
https://w.atwiki.jp/mnru/pages/13.html
1章 イントロダクション ──時速 0マイルから 60マイルまで 1.1 なぜ Scalaを使うのか 1.1.1 もしあなたが Javaプログラマなら 1.1.2 もしあなたが Ruby、Pythonなどのプログラマなら 1.1.3 Scalaの紹介 1.1.4 Scalaの誘惑 1.2 Scalaのインストール 1.3 より詳細な情報 1.4 Scalaの味見 1.5 並行処理の味見 1.6 まとめ 2章 Scala言語の利点 ──少ないタイプで多くのことを 2.1 はじめに 2.2 セミコロン 2.3 変数宣言 2.4 メソッド宣言 2.4.1 メソッドのデフォルト引数と名前付き引数( Scala 2.8) 2.4.2 入れ子のメソッド定義 2.5 型情報の推論 2.6 リテラル 2.6.1 整数リテラル 2.6.2 浮動小数点リテラル 2.6.3 ブールリテラル 2.6.4 文字リテラル 2.6.5 文字列リテラル 2.6.6 シンボルリテラル 2.7 タプル 2.8 Option、Some、None:nullの回避 2.9 ファイルと名前空間によるコード構成 2.10 型やメンバのインポート 2.10.1 インポートは相対的 2.11 抽象型とパラメータ化された型 2.12 予約語 2.13 まとめ 3章 Scalaプログラミングの基礎 ──基本文法の総点検 3.1 演算子は演算子か 3.1.1 糖衣構文 3.2 丸括弧やドットのないメソッド 3.2.1 優先順位 3.3 ドメイン固有言語 3.4 Scalaのif文 3.5 Scalaのfor内包表記 3.5.1 犬でもわかる犬の例 3.5.2 フィルタリング 3.5.3 yield 3.5.4 スコープの拡大 3.6 その他のループ構文 3.6.1 Scalaのwhileループ 3.6.2 Scalaのdo-whileループ 3.6.3 ジェネレータ式 3.7 条件演算子 3.8 パターンマッチ 3.8.1 シンプルなマッチ 3.8.2 マッチ式の中の変数 3.8.3 型に対するマッチ 3.8.4 シーケンスに対するマッチ 3.8.5 タプル(およびガード)に対するマッチ 3.8.6 ケースクラスに対するマッチ 3.8.7 正規表現に対するマッチ 3.8.8 case節内における入れ子の変数の束縛 3.8.9 tr y-catch-finally節の使用 3.8.10 パターンマッチのまとめ 3.9 列挙 3.10 まとめ 4章 トレイト 4.1 トレイトの基礎 4.1.1 ミックスインとしてのトレイト 4.2 積み重ね可能なトレイト 4.3 トレイトの生成 4.3.1 クラスかトレイトか 4.4 まとめ 5章 Scalaによる初級オブジェクト指向プログラミング 5.1 クラスとオブジェクトの基礎 5.2 親クラス 5.3 コンストラクタ 5.3.1 親クラスのコンストラクタ呼び出し 5.4 入れ子のクラス 5.5 可視性のルール 5.5.1 公開可視性 5.5.2 限定公開可視性 5.5.3 非公開可視性 5.5.4 スコープ指定非公開可視性とスコープ指定限定公開可視性 5.5.5 可視性についての最終的な考察 5.6 まとめ 6章 Scalaによる上級オブジェクト指向プログラミング 6.1 クラスとトレイトのメンバをオーバーライドする 6.1.1 final宣言をオーバーライドしようとした場合 6.1.2 抽象/具象メソッドのオーバーライド 6.1.3 抽象/具象フィールドのオーバーライド 6.1.4 トレイトの抽象/具象フィールドのオーバーライド 6.1.5 クラス内の抽象/具象フィールドのオーバーライド 6.1.6 抽象型のオーバーライド 6.1.7 アクセサメソッドとフィールドの区別がないとき:統一形式アクセスの原則 6.2 コンパニオンオブジェクト 6.2.1 apply 6.2.2 unapply 6.2.3 コレクションのための applyとunapplySeq 6.2.4 コンパニオンオブジェクトと Javaの静的メソッド 6.3 ケースクラス 6.3.1 二項演算子用の糖衣構文 6.3.2 Sclala2.8における copyメソッド 6.3.3 ケースクラスの継承 6.4 オブジェクトの等価性 6.4.1 equalsメソッド 6.4.2 ==メソッドと !=メソッド 6.4.3 neメソッドと eqメソッド 6.4.4 Arrayの等価性と sameElementsメソッド 6.5 まとめ 7章 Scalaオブジェクトシステム 7.1 Predefオブジェクト 7.2 クラスとオブジェクト: staticはどこにあるか ? 7.2.1 パッケージオブジェクト 7.3 シールされたクラス階層 7.4 Scalaの型階層 7.5 オブジェクト階層の線形化 7.6 まとめ 8章 Scalaによる関数型プログラミング 8.1 関数型プログラミングとは何か? 8.1.1 数学における関数 8.1.2 変わらない変数 8.2 Scalaによる関数型プログラミング 8.2.1 関数リテラルとクロージャ 8.2.2 純粋さの内と外 8.3 再帰 8.4 末尾呼び出しと末尾呼び出しの最適化 8.4.1 末尾呼び出しのトランポリン 8.5 関数型データ構造 8.5.1 関数型プログラミングにおけるリスト 8.5.2 関数型プログラミングにおけるマップ 8.5.3 関数型プログラミングにおける集合 8.5.4 関数型プログラミングにおけるその他のデータ構造 8.6 走査、マッピング、フィルタリング、畳み込み、簡約 8.6.1 走査 8.6.2 マッピング 8.6.3 フィルタリング 8.6.4 畳み込みと簡約 8.6.5 関数型の Option 8.7 パターンマッチ 8.8 部分適用された関数と部分関数 8.9 カリー化 8.10 暗黙の型変換とパラメータ 8.10.1 暗黙の型変換 8.10.2 暗黙の関数パラメータ 8.10.3 暗黙の型変換とパラメータに関する最後の考察 8.11 名前渡し、値渡し 8.12 遅延評価値 8.13 まとめ 9章 アクターによる堅牢でスケーラブルな並行処理 9.1 状態に関する共有と同期の問題 9.2 アクターとは 9.2.1 概念としてのアクター 9.3 Scalaにおけるアクター 9.3.1 アクターへのメッセージ送信 9.3.2 メールボックス 9.3.3 アクターの詳細 9.3.4 アクターの実践的な使い方 9.4 Scalaにおける従来型の並行処理:スレッドとイベント 9.4.1 その場限りのスレッド 9.4.2 java.util.concurrentの利用 9.4.3 イベント 9.5 まとめ 10章 XMLとの連係 10.1 XMLを読む 10.1.1 XMLを探索する 10.1.2 XMLのループとマッチ 10.2 XMLを書く 10.2.1 現実世界の例 10.3 まとめ 11章 ドメイン固有言語 11.1 内部 DSL 11.1.1 給与計算の内部 DSL 11.1.2 中置演算子記法 11.1.3 暗黙の型変換とユーザー定義型 11.1.4 applyメソッド 11.1.5 給与計算ルール DSLの実装 11.1.6 内部 DSLのまとめ 11.2 外部 DSLとパーサコンビネータ 11.2.1 パーサコンビネータとは 11.2.2 給与計算の外部 DSL 11.2.3 外部 DSL文法の Scalaによる実装 11.2.4 外部 DSLによる給与小切手の生成 11.2.5 内部 DSL対外部 DSL 11.3 まとめ 12章 Scalaの型システム 12.1 型におけるリフレクション 12.2 パラメータ化された型を理解する 12.2.1 マニフェスト 12.2.2 パラメータ化されたメソッド 12.3 継承における変位指定 12.3.1 可変な型の変位指定 12.3.2 「Scalaの変位指定」対「 Javaの変位指定」 12.3.3 実装についての注意 12.4 型境界 12.4.1 上限型境界 12.4.2 下限型境界 12.4.3 Listに関する深い考察 12.4.4 ビューと可視境界 12.5 NothingとNull 12.6 抽象型を理解する 12.6.1 パラメータ化された型か抽象型か 12.7 パス依存型 12.7.1 C.this 12.7.2 C.super 12.7.3 path.x 12.8 値型 12.8.1 型指定子 12.8.2 タプル 12.8.3 パラメータ化された型 12.8.4 アノテーション付きの型 12.8.5 複合型 12.8.6 中置型 12.8.7 関数型 12.8.8 型射影 12.8.9 シングルトン型 12.9 自分型アノテーション 12.10 構造型 12.11 存在型 12.12 無限データ構造と遅延評価 12.13 まとめ 13章 アプリケーションの設計 13.1 アノテーション(注釈) 13.2 列挙対パターンマッチ 13.3 アノテーションと列挙についての考察 13.3.1 列挙対ケースクラスとパターンマッチ 13.4 null対Option 13.4.1 Optionとfor内包表記 13.5 例外とその代替手段 13.6 スケーラブルな抽象 13.6.1 細粒度の可視性ルール 13.6.2 ミックスイン合成 13.6.3 自分型アノテーションと抽象型メンバ 13.7 実践的なトレイトの設計 13.8 デザインパターン 13.8.1 Visitorパターン:より良い代替手段 13.8.2 Scalaにおける依存性の注入: Cakeパターン 13.9 契約による設計を使ったより良い設計 13.10 まとめ 14章 Scalaのツール、ライブラリ、IDEサポート 14.1 コマンドラインツール 14.1.1 scalacコマンドラインツール 14.1.2 scalaコマンドラインツール 14.1.3 scalap、javap、jadコマンドラインツール 14.1.4 scaladocコマンドラインツール 14.1.5 sbazコマンドラインツール 14.1.6 fscコマンドラインツール 14.2 ビルドツール 14.3 IDEとの統合 14.3.1 Eclipse 14.3.2 IntelliJ 14.3.3 NetBeans 14.3.4 テキストエディタ 14.4 Scalaでのテスト駆動開発 14.4.1 ScalaTest 14.4.2 Specs 14.4.3 ScalaCheck 14.5 その他の注目すべき Scalaのライブラリとツール 14.5.1 Lift 14.5.2 Scalaz 14.5.3 Scalax 14.5.4 MetaScala 14.5.5 JRebel(旧 JavaRebel) 14.5.6 その他雑多なライブラリ 14.6 Javaとの相互運用性 14.6.1 JavaとScalaのジェネリクス 14.6.2 Javaでの Scalaの関数の使用 14.6.3 JavaBeansプロパティ 14.6.4 AnyVal型と Javaのプリミティブ型 14.6.5 Javaコードでの Scalaの名前 14.7 Javaライブラリとの相互運用性 14.7.1 AspectJ 14.7.2 Spring Framework 14.7.3 Terracotta 14.7.4 Hadoop 14.8 まとめ 15章 SimpleBuildToolを使った Scalaの開発 15.1 Simple Build Tool 15.1.1 プロジェクト環境の構築 15.1.2 対話型シェル 15.2 プログラムの作成 15.2.1 プログラムの仕様 15.2.2 プロジェクト環境構築 15.2.3 依存ライブラリの設定とダウンロード 15.2.4 機能を分析する 15.2.5 一定期間で処理を実行するタイマー機能 15.2.6 XMLからデータを抽出する機能 15.2.7 HTTPによるフェッチ機能 15.2.8 全体をつなぐ 15.3 アプリケーションとして組み立てる 15.4 機能拡張 15.4.1 Entryの処理を拡張可能にする 15.4.2 動的にプラグインを変更する 15.5 まとめ 16章 Scala2.8の新機能と移行のポイント、日本語環境、サンプルコード 16.1 Scala 2.8の新機能 16.1.1 scala.collection.jclの廃止と scala.collection.JavaConversionsの導入 16.1.2 新しい配列の実装とポリモーフィックな配列に対するマニフェストの導入 16.1.3 型の特殊化 16.1.4 XMLの等価性の変更 16.1.5 アノテーションの改善 16.1.6 トランポリン 16.1.7 breakのサポート 16.2 バージョン 2.7から 2.8への移行ポイント 16.2.1 Predef.formatメソッドの実装変更 16.2.2 プリミティブ型の別名 16.2.3 パッケージ参照ルールの変更 16.2.4 else節省略時の if文の返り値の変更 16.2.5 Enumeration APIの変更 16.2.6 コレクション APIの戻り値の型の改善 16.2.7 RichStringの廃止 16.2.8 抽象ケースクラスの継承 16.2.9 XMLの等価性の変更 16.2.10 アノテーション 16.2.11 ライブラリ 16.3 Scalaの日本語環境 16.3.1 ソースコードエンコーディング 16.3.2 Scala対話環境 16.3.3 ファイルの日本語の入出力 16.4 サンプルコード
https://w.atwiki.jp/langc/pages/20.html
問題文 Write a program to determine the ranges of char , short , int , and long variables, both signed and unsigned , by printing appropriate values from standard headers and by direct computation. Harder if you compute them determine the ranges of the various floating-point types. Listing krx201 Rick Dearman Write a loop equivalent to the for loop above without using or || . Write the function htoi(s) , which converts a string of hexadecimal digits (including an optional 0x or 0X) into its equivalent integer value. The allowable digits are 0 through 9, a through f, and A through F . Write an alternate version of squeeze(s1,s2) that deletes each character in the string s1 that matches any character in the string s2 . Write the function any(s1,s2) , which returns the first location in the string s1 where any character from the string s2 occurs, or -1 if s1 contains no characters from s2 . (The standard library function strpbrk does the same job but returns a pointer to the location.) Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to the rightmost n bits of y, leaving the other bits unchanged. Write a function invert(x,p,n) that returns x with the n bits that begin at position p inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged. Write a function rightrot(x,n) that returns the value of the integer x rotated to the right by n bit positions. In a two s complement number system, x = (x-1) deletes the rightmost 1-bit in x . Explain why. Use this observation to write a faster version of bitcount . Rewrite the function lower, which converts upper case letters to lower case, with a conditional expression instead of if-else .
https://w.atwiki.jp/how2/pages/8.html
Programing Programingvisualstudio eclipse Cpad visualstudio http //thespoke.net/ thespokeでもらえる2005はなぜかMSDNがない ここらへんのイメージに入ってるのでそこからMSDNだけインストール DirectxSDK http //www.microsoft.com/japan/msdn/directx/downloads.aspx eclipse http //eclipsewiki.net/eclipse/ ダウンロード http //www.eclipse.org/downloads/index.php http //sdc.sun.co.jp/java/j2se/index.html Cpad http //hp.vector.co.jp/authors/VA017148/pages/cpad.html
https://w.atwiki.jp/scala-lang/pages/13.html
Scala 主要なライブラリ Scalaz Shapeless
https://w.atwiki.jp/jasagiri/pages/90.html
scala:http //www.scala-lang.org/ 基本JVM上で動作するバイトコードを吐く、静的だけど型推論により動的な、関数型オブジェクト指向言語だそうだ。 android上で動く。 GAE/J上で動く。 .Net用の msil を吐くライブラリがある。(.net でコンパイルできる) ScalaMecab Scala読物 ScalaDesignPatterns scalaメモ scala2.8変更点 Haskellぽい強力なパターンマッチング。 ErlangぽいActorモデル。 OCamlぽい型推論によるRubyぽい内部DSL向きな文法。 日本語でメソッド名とか変数名が書ける(ぉ)。 Rubyぽいカオスさ。 Java言語作った人が「お気に入り」と発言したらしい。(http //www.adam-bien.com/roller/abien/entry/java_net_javaone_which_programming) Groovy言語作った人が「知ってたら作らなかった」と発言したらしい。(http //macstrac.blogspot.com/2009/04/scala-as-long-term-replacement-for.html) Ruby言語作った人は「残念だ」と発言してる。(なんでrubyist.net繋がんないの?) ネタ: モジュール分割はオブジェクト指向、メソッドは関数型がわかりやすいかも(http //itpro.nikkeibp.co.jp/article/COLUMN/20090224/325385/?ST=develop)を検証する。 rubyのmonetaインタフェースをDuckTypingしたリソースライブラリ欲しい。(当面JRuby経由でDatamapperあわせて使うか?) phpのbearプロジェクトっぽいのが欲しい。 そろそろ要求定義からの流れを統一的に扱えるフレームワークが出てきてもいいころかと。 当面ラッパークラスの嵐になるのが悲しいのでpure scalaの勉強するべし。 http //www.codelogy.org/archives/2008/02/scala.html#more ツールやライブラリ: sbaz available で本家に登録されている一覧が出てくる。(日本語の説明は http //blog.takeda-soft.jp/blog/show/334) 名前 説明 備考 sbt Ant や Maven のようなBuild Tool。 Apache Ivy使ってるぽい。 ScalaTest 統一テスティング specs rspecクローン。 ソースきれい。 dispatch HTTPクライアント JSONとかOAuthとかもある scala-migration activerecord-migrationクローン scalamodules OSGi DSL Benchmark http //github.com/rakuto/benchmark-suite/tree/master ベンチマーク browse scala src browser scala-query jdbc base type-safe database api scalajdo JDOラッパー scalajpa JPAラッパー scala0.orm ORM surf CouchDBラッパー simpledb-scala-binding AmazonSimpleDBラッパー sbinary バイナリシリアライザ/デシリアライザ。 protobufやmessagepackぽいもの。 scala-dataflow Ozdataflowクローン jiva-ng 遺伝的アルゴリズム toolkit smr scara map reduce hadoopラッパー? kestrel starlingクローン twitter backend cachet HTTP Cache Proxy scalax The Scala Community Library scalanet プロトコルライブラリ? spmd port mapper daemon mittelos Event Calculus reasoning? simplemodeler モデリング2src Relaxerの浅海さん作 lift WEBフレームワーク Smalltalk の seaside ぽい? WebFlavor WEBフレームワーク web上で開発できるらしい。日本製 step sinatraクローン gdata-scala-client GDataクライアント scalify java2scala Scalaz steroidz? ScalaCheck?? dataset + machinist + fakerクローン テストデータ作成。 まだない? rcovクローン テストカバレッジ。jcoverageが使えるかも まだない? Heckleクローン 実装が壊れたときにテストが壊れるかどうか調べるツール まだない? rrクローン。 TestDoublesを実現。JRuby経由で十分か。RMockが使えるかも 必要ない? cucumber+webratクローン JRuby経由で十分か 必要ない? trac/redmine+hadson/CruiseControl+TestLinkクローン CIを実現。 必要ない? rackクローン jruby-rackで十分か。継続サーバっぽい使い方とかcometとか optional command line parsing scala-options ruby-OptionParserクローン joins Join演算ライブラリ scala-parallel パラレルコレクション? JSR166 p5scala processingラッパー ScalaIRCBot ircポット scalampp XMPPサーバ 話題のjabberプロトコル喋るサーバ qbert Actor based WEBサーバ dumpster webdavサーバ AIscala AIライブラリ メモ: supervisor:http //jonasboner.com/2008/06/16/erlang-style-supervisor-module-for-scala-actors/ protobufサンプル:http //github.com/eishay/protobuf-object-competability-example/tree/master toropy-scala:http //code.google.com/p/tropy-scala/ ScalaからMecabにアクセス:http //blog.xole.net/article.php?id=724 フィジカルコンピューティングデバイスGainerをscalaから触る:http //rainyday.blog.so-net.ne.jp/2009-01-04 scala + twitter :http //www.ibm.com/developerworks/jp/java/library/j-scala05059.html
https://w.atwiki.jp/s2s4/pages/12.html
Chapter2~ソフトウェア関連~ ・ページ別和訳 P33 P34 P35 P36 P37 P38 P39 P40 P41 P42 P43 P44 P45 P46 P47 P48 P49 P50 P51 リンクテスト。全部まとめるか、各ページでHtml作るか。誰か意見を宜しく求む。 ・主なキーワード こんにちは、つです。とりあえず出そうな太文字の部分の説明を書かしていただきました。 とは言っても、英語のままなので、後は個人で、和訳してください。 あれ、ページの趣向と違うかな? でも、 ひょっとするとその内、和訳も書くかも知れませんよ。 翻訳かけました exciteでよければみてくだせー【ココをクリック】!! 下の英文作った常深です。 既に翻訳サイトでの和訳が上がってますが、折角自力で和訳したので載せておきます。【ココをクリック】!! computer programmer; They are people who design, write, test, and implement software. They write custom software that is specifically tailored to the organization s needs.freeware; Sometimes software is free. software is called freeware if its auther chooses to provide it free to all. However, freeware is copyrighted that is, the author retains legal ownership and may place restrictions on its use.public domain software; Software that is not copyrighted is called public domain software and may be used, or even altered, without restriction.Open-souce software; It is a variation of freeware.A freeware program is normally distributed in a machine-readable format that is unreadable by humans. You can use it, but even if you know how to write programs, you can t make changes to it. The developers of open-sorce software, however, make the source code available, which means that programmers can understand how it works and modify it.Shareware; It is a category of software that is often confused with freeware. Like freeware, it is freely distributed, but only for a trial period. The understanding is that if you like it enough to continue using it, you will pay a nominal fee to register it with the author. Many authors add incentives such as free documentation, support, and/or updates to encourage people to register.site license; It allows the software to be installed either on all its computers or on a specific number of computer, depanding on the license terms. The customer agrees to keep track of who uses the software and takes responsibility for copying and distributing the software and manuals to its own personnel.electronic software distribution; Software movement is gaining in popularity electronic software distribution. Never mind the trip to the store. you can get freeware, shareware, and even commercial software from the Internet.application service provider (ASP); It is a company that sets up and maintains application software on its own systems and makes the software available to its customers over the Internet. By usig an ASP for its complex applications, a business can avoid the expenses of installing and maintaining those applications on its own system.Word processing; It is the most widely used personal computer software. Business people use word processing for memos, reports, correspondence, minutes of meetings, and anything else that someone can think of to type. Users in a home environment type term papers, letters, journals, movie log, and much more. Desktop publishing; It packges are usually better than word-processing packages at meeting high-level publishing needs, especially when it comes to page layout and color reproduction. Many magazines and newspapers today rely heavily on desktop publishing software.electronic spreadsheet; It is one of the spreadsheets, but the computer does the work. In particular, spreadsheet software automatically recalculates the results when a number is changed. For example, if a spreadsheet calculates the distance based on rate and time, a change in the rate triggers a new calculation so that the distance changes too. communications; From the viewpoint of an individual with a personal computer at home, communications mean -- in simple term -- that he or she can hook the computer up to a phone line or cable and communicate with the computer at the office, access data stored in another computer in another location, or send message to a friend or family member. The most likely way for such a user to connect to others is via the Internet.browser; A browser may be a stand-alone software package or it may be included as part of other software offerings. Personal Information Managers (PIMs); They are programs that provide the functions necessary for you to keep track of all the activities in your busy life. suite; Because most people need to use the kinds of task-oriented software just described, some choose to buy a suite -- a group of basic software applications designed to work together.integrated application; Many inexpensive personal computers come with an integrated application that combined basic word-processing, spreadsheet, and graphics capabilities in a single program. Microsoft Works is the best-known example of this type of software.vertical market software; Software that is written especially for a particular type of business, such as a dentist s office or a drugstore, is called vertical market software. This user-oriented software usually presents options with a series of easy-to-follow screens that minimize the training needed.Groupware, collaborative software; If you work on a project with a group of people, it is likely that you use software especially made for that scenario. Groupware, also called collaborative software, can be defined generally as any kind of software that lets a group of people share information or track information together. A popular groupware package called Notes combines e-mail, networking, scheduling, and database tachnology.help desk; The company infomation center, often called simply the help desk, is one solution to these kinds of needs. ----------------------------------------------------------------------------------------------------------------------Acounting; Writing and advertising; Customer service; 以下略 ---------------------------------------------------------------------------------------------------------------------- Data entry operators; They prepare data for processing, usually by keying it in a machine-readable format.Computer operators; They monitor the computer systems, review procedures, keep peripheral equipment running, and make backup copies of data.Librarian; They catalog the processed disks and tapes and keep them secure. Systems analysts; They are knowledgeable in the programming area but have broader responsibilities. They plan and desigh entire computer systems, not just individual programs. THey maintain a working relationship with both programmers and the user in the organization. The analysts work closely with the users to plan new systems that meet the users needs.network manager; A professional called a network manage implements and maintains the organization s network(s).chief information officer (CIO); The department manager, often called the chief information officer (CIO), must understand more than just computert technology. This person must understand the goals and operations of the entire organization and be able to make strategic decision. これだけ書きましたが、足らない部分が、多々あると思います。 その時は教科書をちゃんと見て、自分で付け足して下さい。 分かっているとはおもいますが、ここにない物が小テストに出ても、一切責任を負いませんのであしからず。 もし、この英語の羅列を見た人は私にメール下さい。 そしたら、調子に乗って来週も頑張っちゃうかも... 『Chapter3』へ 『英語』へ 『TOPページ』へ
https://w.atwiki.jp/langc/pages/24.html
Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside). Write a version with only one test inside the loop and measure the difference in run-time. Write a function escape(s,t) that converts characters like newline and tab into visible escape sequences like \n and \t as it copies the string t to s . Use a switch . Write a function for the other direction as well, converting escape sequences into the real characters. Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z . Arrange that a leading or trailing - is taken literally. In a two s complement number representation, our version of itoa does not handle the largest negative number, that is, the value of n equal to -(2 to the power (wordsize - 1)) . Explain why not. Modify it to print that value correctly regardless of the machine on which it runs. Write the function itob(n,s,b) that converts the integer n into a base b character representation in the string s . In particular, itob(n,s,16) formats n as a hexadecimal integer in s . Write a version of itoa that accepts three arguments instead of two. The third argument is a minimum field width; the converted number must be padded with blanks on the left if necessary to make it wide enough.