タグ

C++に関するodzのブックマーク (25)

  • Lux IO - Yet Another Fast Database Manager

    Lux IO is a yet another fast database manager. It supports B+-tree and Array index in either cluster or non-cluster index. It's originally designed for storing large expanding data as a value in Lux Search Engine, but it's also pretty fast for small and a large number of data. Fast key lookup (B+-tree, Array) Support both clustered and non-clustered index mmap(2) the whole index structure in clust

    odz
    odz 2008/11/05
  • C++ Style Guide

    Benjy Weinberger Craig Silverstein Gregory Eitzmann Mark Mentovai Tashana Landray This style guide contains many details that are initially hidden from view. They are marked by the triangle icon, which you see here on your left. Click it now. You should see "Hooray" appear below. Hooray! Now you know you can expand points to get more details. Alternatively, there's an "expand all" at the top o

  • hash - 兼雑記

    http://www.jmuk.org/diary/2008/04/09/0 http://www.kt.rim.or.jp/~kbk/zakkicho/08/zakkicho0804a.html#D20080408-2 http://www.kmonos.net/wlog/84.html#_1049080409 まぁなんかしんどいのでハッシュでも考えるかと思ってたら kinaba さんが素晴らしいことを書いてたというのが現状なのですが、とりあえずどうでもいいとされた速度を測ったのではっておこうかと。 その前に VC の hash_map って少なくとも昔は衝突が起きた時に set みたいに突っ込む仕組みだったので、比較演算が必要だったように思うのでそういう意味でも VC のはひどいのかもしれない。 で、なんかきむらさんとこあたりで引用されてたベンチマークのコードは、数値をインクリメンタル

    hash - 兼雑記
    odz
    odz 2008/04/09
    map と hash_map の速度について
  • google-perftools(tcmalloc)の使い方 - moratorium

    google-perftools(tcmalloc)の使い方 2007-12-17 (Mon) 22:59 Google OSS PFIでは毎週1人適当な話題で発表しているのですが、この間「GooglePerfToolsの使い方」という軽いお題で発表した資料を公開してみます。メモリ周りの問題は大変ですよね…。 google-perftools - Fast, multi-threaded malloc() and nifty performance analysis tools 肥え続けるTomcatと胃を痛めるトラブルハッカー ローテクなメモリ使用量監視方法 特にC++で長期運用中のメモリリークに苦しんでおられる方には役立つかと思います。基的にドキュメントの日語訳ですが。SlideShareだとなぜか図がずれるので、元ファイルをこちらに置いておきます。 | View | Upload

  • Apache C Standard Library

    The Apache C++ Standard Library project (code name stdcxx, pronounced "standard C++ library", not S-T-D-C-X-X) is a collection of algorithms, containers, iterators, and other fundamental components of every piece of software, implemented as C++ classes, templates, and functions essential for writing C++ programs. The goal of the Apache C++ Standard Library is to provide a free implementation of th

    odz
    odz 2007/11/04
  • C++と Pthreads でミニマルなHTTPサーバを書く - いやなブログ

    C++と Pthreads でミニマルなHTTPサーバを書く 『UNIXネットワークプログラミング』を読んでいると、自分でも何かネットワーク系の小さなプログラムを書いてみたくなりました。そこで、ミニマルなHTTPサーバを C++と Pthreads で書いてみました。 同じ著者の「詳解UNIXプログラミング」もそうだったように、今回のもほとんどすべてのページに、重要なことが書かれています(最後のほうのXTIの部分は例外かもしれませんが)。 たとえば、27章ではネットワークサーバの実装として、次の設計方針がそれぞれ検討され、実際のコード付きで解説されています。 クライアントごとに fork 事前に fork - 各プロセスで accept 事前に fork - ファイルロックで accept を保護 事前に fork - Mutex ロックで accept を保護 (PTHREAD_PRO

  • STL Error Decryptor for C++

    STLFilt: An STL Error Message Decryptor for C++ Open Source Freeware by Leor Zolman, Supporting: Comeau C++ gcc 2.95.x/3.x/4.x (Dev-C++ compatible) MSVC++ 6/7/8/9 (incl. Dinkum Libraries) Metrowerks CodeWarrior Pro 7/8 Borland C++ / C++Builder Intel C++ 7/8 EDG Front End (Generic) Digital Mars C++ Please Note: Active Development on STLFilt has ended. The author sincerely hopes the C++ Standards Co

    odz
    odz 2007/05/31
    STL のエラーを読みやすく。
  • Tx: Succinct Trie Data Structure

    English 概要 TxはコンパクトなTrieを構築するためのライブラリです.従来のTrieの実装(darts等)に比べ1/4〜1/10の作業領域量で辞書を保持することができ、数億〜十億キーワードなど大規模な辞書を扱うことが可能です.Trieは文字列からなるキー集合を処理するデータ構造で、キーが辞書に含まれているかのみではなく、キーのPrefixが含まれているかを高速に求めることができます.内部データ構造にはSuccinct Data StructureであるLevel-Order Unary Degree Sequence (LOUDS)を利用しています. ダウンロード Txはフリーソフトウェアです.BSD ライセンスに従ってソフトウェアを使用,再配布することができます. tx-0.12.tar.gz: HTTP Archives tx-0.11.tar.gz: HTTP tx

  • 某日記(前期)

    odz
    odz 2007/02/08
    すげぇ。意味分からん
  • なぜかYAML - higepon blog

    odz
    odz 2006/12/31
  • C++ Coding Standard

    Using this Standard. If you want to make a local copy of this standard and use it as your own you are perfectly free to do so. That's why I made it! If you find any errors or make any improvements please email me the changes so I can merge them in. I also have a programming blog at http://radio.weblogs.com/0103955/categories/stupidHumanProgramming/ that is accidently interesting at times, as is my

    odz
    odz 2006/12/17
  • Re: C++ definition of NULL

    odz
    odz 2006/12/11
  • BINARY HACKS - COLUN++ BLOG

    Binary Hacks ―ハッカー秘伝のテクニック100選 作者: 高林哲,鵜飼文敏,佐藤祐介,浜地慎一郎,首藤一幸出版社/メーカー: オライリー・ジャパン発売日: 2006/11/14メディア: 単行(ソフトカバー)購入: 23人 クリック: 383回この商品を含むブログ (223件) を見る id:Ozyさんのところで紹介されていたので、実家に帰った際に大き目の屋で買ってきました。 (今住んでる市には、小さな屋しかなくて、BINARY HACKSは屋を4件ぐらい探しましたが、どこにも置かれてませんでした) UNIXのコマンドについてはほとんど知らないし、知らないままでよいのですが……gccのトランポリンの話とかはとても興味深く読ませていただきました。 私はほとんどの場合にWindowsでプログラムを組むので、UNIX系のことはよく知らないのですが、読んでいて少し引っかかったと

    BINARY HACKS - COLUN++ BLOG
    odz
    odz 2006/12/10
    atode
  • https://www.jitu.org/~tko/cgi-bin/bakagaiku.rb

    odz
    odz 2006/12/10
    あとで
  • 継承でオーバーロードするには?

    [戻る] tekebon 2001/02/09(金) 14:21:39 はじめまして、tekebonです。 VC++というよりもC++の質問になってしまいますがよろしくお願いします。 class CParent{ public: int a; void Set(int x){ a=x; } }; class CChild :public CParent{ public: float b; void Set(int x,float y){ a=x; b=y; } }; こんな、クラスを作ったとします。 CChild obj; obj.Set(3); とすると、CChild::Set(int)がないように判断されてエラーになります。 この書き方はオーバーロードではなく、オーバーライドになってしまうのでしょうか? CChild::Set(int)を記述すれば解決するのはわかりますが、文法的にど

    odz
    odz 2006/12/10
  • http://duplo.giants.ch/

    Duplo C/C++/Java Duplicate Source Code Block Finder Contents 1 General Information 2 Download 3 Performance Measurements 4 Background 5 License 1 General Information Duplicated source code blocks can harm maintainability of software systems. Duplo is a tool to find duplicated code blocks in large C/C++/Java systems. 1.1 Sample output ... src\engine\geometry\simple\TorusGeometry.cpp(56) src\en

    odz
    odz 2006/10/29
    似たコードブロックを探すツール
  • C++ for Haskeller

    http://haskell.g.hatena.ne.jp/mr_konn/20061006/1160138831 Haskellから入った人には、cinとかcoutとか微妙すぎてよくないだろ、と、思ったので、適当に。 対象読者は、Haskellわかるし、C++もわかる人(意味ねー)。ネタを理解できる人です。 C++とは C++とは、以下のような特徴を持ったプログラミング言語です 参照透明(!) 出現評価(occurrence evaluation) (などといういかがわしい単語をつくる) パターンマッチできる 全く直感的でない構文 IOモナドを書くための大量のsyntax sugarがある 説明していくと長くなるので、それぞれ、おいおい必要になったときに説明するようにします。 C++の型 C++には、次の型があります。 整数 真偽値 連想配列 まあ、おいおい説明。(はやくも飽きてきた)

    C++ for Haskeller
  • ラクに vector を作る - 兼雑記

    そろそろ Google Code Jam です。 Google Code Jam は入力とかが vector とか多い気がするので、 vector の初期化を楽にできるようにしておくとテストとかしやすいかもしれません。昔 Boost sandbox とかでも見た気がしますが、このくらいなら自分でサックリと雑に。 #include <vector> #include <iostream> #include <algorithm> #include <iterator> #include <assert.h> using namespace std; template <class T> struct vector_ : public vector<T> { vector_() {} template <class U> vector_(vector<U> v) { copy(v.begin(

    ラクに vector を作る - 兼雑記
    odz
    odz 2006/09/07
    vectorを簡単に作る
  • 株式会社エス・スリー・フォー » CppUnit 導入ガイド

    CppUnit 導入ガイド ダウンロードとインストール CppUnitは http://sourceforoge/projects/cppunit/ からダウンロードできます。2002.11時点での最新版は1.8.0(βは1.9.10)です。 zipもしくはtar+gzipで圧縮されているので、適当なディレクトリに展開してください。 以下の説明はWindows/Visual C++ v6.0 環境で、CppUnitのルート・ディレクトリを<CPPUNIT>と表記します。 ライブラリのビルド CppUnitはツール/ユーティリティの類ではありません。テスト対象およびテストコードと一緒にリンクして実行モジュールを生成する’ライブラリ’です。 CppUnitは様々なOS/処理系に対応しており、その使用に先だってライブラリをビルドしなければなりません。 Visual Studio IDE から プ

  • https://support.microsoft.com/en-us/help/131313

    odz
    odz 2006/02/05
    DLLからインポートライブラリを作成する