Performance comparison of a wide spectrum of web application frameworks and platforms using community-contributed test implementations.

C# really feels like the most mature language that I've ever dealt with. Writing it feels clear, if something is wrong the debugger is very clear. The number of features that are there is incredible (especially post C# 2.0 when they added generics). Properties are delightful.How do you convert to a string? Convert.ToString(). How about an integer? Knowing only that one, it's what you'd expect! I a
メタプログラミングやリフレクション楽しいです。 PHP で抽象化する。 <?php class Lion extends Animail{ }; class Leopard extends Animail{ }; $name = "Lion"; $animals[] = new $animal(); とかけます。これはPHPの可変変数や変数展開を上手に使った例で、DBのテーブル名からクラスを動的に生成したりと便利に使います。 Javaだとちょっと大変ですよ。 rubyでメタプログラミング 同じ事をRubyでやるにはどうするか。rubyはJavaの改良版*1なので、直接文字列をインスタンス化するPerlやPHPの邪道を真似ることができないん。文字列を元に、クラスをインスタンス化するにはどうするか rubyで文字列からクラス名を作るサンプル class Lion < Animal end cl
Despite being around for decades, Python remains one of the most versatile and popularly used programming languages in the world. It’s a general purpose language, meaning it can be used for almost any kind of project, but it can be difficult to handle if you don’t have the right skilled python developers on your team. Python excels in AI and Machine Learning with its extensive libraries like Tenso
Introduction Measuring and improving the productivity of DevOps teams has long been a major challenge. From purely technical metrics to more business-oriented ones, the choice of metrics often remains a… Among all the tools aimed at orchestrating containers, the two leading players are Docker Swarm and Kubernetes. Both provide solutions for container application management, as well as container ap
2012-02-07 — Fractal Benchmark Extended: Theo Wollenleben has added many more language ports and benchmarks! 2007-06-08 — I enabled optimization in C. 'gcc -O3 Mandelbrot.c -o Mandelbrot.' 2007-06-04 — I added a compiled OCAml version. Faster than both C and SBCL! 2007-06-02 — I updated the C version to utilize doubles instead of floats. Most scripting languages use doubles behind-the-scenes so th
PHP の unserialize() の 多言語での実装 2006-02-28-1: [PHP][JavaScript][Perl][Ruby] を見ていて,PHP の serialize() は便利だから,もしかしたら他の言語でも実装があるのでは? と思ったら,案の定たくさんあった. - JavaScript http://www.phpguru.org/static/PHP_Unserialize.html http://www.phpguru.org/downloads/PHP_Unserialize/ - Perl http://search.cpan.org/dist/PHP-Serialization/lib/PHP/Serialization.pm http://hurring.com/code/perl/serialize/ - Ruby http://www.aagh.
PHP ある方にエラー処理演算子を使う例をいただいたので採用。 <?php $argv = $_SERVER['argv']; if (count($argv) != 2) { die("Usage: $argv[0] filename\n"); } $buf = @file_get_contents($argv[1]) or die("Error: failed reading $argv[1]\n"); echo implode("\n", preg_split('/\s+/', $buf)); ?> 補足: PHP5ではfprintfが付いたのでfwriteとsprintfで別々に処理しなくて済む。 Perl if(scalar(@ARGV) != 1) { die "Usage: $0 filename\n"; } open f, $ARGV[0] or die($!); pri
お品書き ● 文法(スクリプト編) ● 文法(メジャー編) ● PHPよくつかう関数 ● YGS2Kリファ ● なんでも掲示板 ● リンク ● 裏リンク ● てりリン カテゴリ ● :Prog ● :UNIX 最新の10件2007-12-03リンク 2007-10-22裏リンク 2007-10-01飛鳥ももこ 2007-09-30GCCで開発 2007-08-10DでAudiere 2007-07-02なんでも掲示板 2007-06-28TeriyakiWiki 2007-01-12BCCで開発 2006-12-26言語文法比較 2005-10-15PHPよくつかう関数 出口 ● ここのTOP ● ここの日記 ★:外部リンク
In the last entry I argued that while learning programming languages comes at a high cost, good programmers should be proficient in multiple languages. I think of programmers as having language sets, based on the idea that knowing one language is not enough for a professional. The task then is to pick the language set wisely to minimize learning time and maximize the benefits to your career. Like
配列操作の比較表: Ruby, Python, JavaScript, Perl, C++ プログラムを書いていると、他のプログラミング言語の記憶とごっちゃになって、「配列の後ろに要素を追加するのは push だっけ、 append だっけ」などと混乱することがあります。特に Ruby, Python, JavaScript はコードの書き方が似ているので、この問題が起きがちです。 そこで、備忘録として、 Ruby, Python, JavaScript, Perl, C++ の配列操作の比較表を作りました。一番慣れている Ruby を基準にしています。間違いなどがあったらご指摘いただけると助かります。他の言語のもあるといいなあ。 Ruby (Array) Python (list) JavaScript (Array) Perl (@) C++ (std::vector)
Twitter Facebook B! Bookmark LINE Pocket Feedly HTMLをスクレイピング(scraping)してあれこれとするとき、僕はずっと正規表現に頼っていたのですが、 ページの構造が変化するとすぐに使えなくなってしまうし、時間がかかる割りに退屈な作業なので何とかならないかなと思っていました。 PHPで探していたのですが、XML(とかRSS)をパースする関数やライブラリは、良く目にするものの、HTMLを処理できるものはなかなか見つかりませんでした。 以下は、PHP(とかRuby、Perl)でHTMLをスクレイピングしたりパースするための方法。 PHPでスクレイピング&パース HTMLを整形式のXML文書に修正するPHPクラス HTMLを、整形式のXMLに変換してくれるライブラリ。PEARのXML_HTMLSax3が同梱されているので、これだけでちゃんと動
[追記] if構文の変数スコープの説明に間違えがあります。新しいスコープは作られません。 お盆のまっただ中8/11(土)に、社内勉強会を開いて、PHPユーザ向けにRuby/Rails入門をやりました。 じつはお盆の土曜日に4時間も勉強会って事で、そんなに人も集まらないだろうと思っていたのですが、ふたを開けてみたら28名も参加があり、びっくりしました。それだけ興味を持ってもらったのは嬉しいけど、これだけ集まるなら資料はちゃんと作らないと・・・・。ということで、作った資料を公開します。なんとRuby編100ページオーバー、Rails編200ページオーバーと、かなり大作です。 RubyKaigiで、発表者のスライドの横でIRCが表示されていたのが面白かったので、勉強会の参加者には、Lingrのチャットルームに全員入ってもらって、質問やパートごとの「終わった!」という書き込みをしてもらいました。今
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く