タグ

cに関するperezvonのブックマーク (19)

  • Call C functions from Haskell without bindings - FP Complete

    Because Haskell is a language of choice for many problem domains, and for scales ranging from one-off scripts to full scale web services, we are fortunate to by now have over 8,000 open source packages (and a few commercial ones besides) available to build from. But in practice, Haskell programming in the real world involves interacting with myriad legacy systems and libraries. Partially because t

    Call C functions from Haskell without bindings - FP Complete
  • GitHub - haskell/c2hs: c2hs is a pre-processor for Haskell FFI bindings to C libraries

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - haskell/c2hs: c2hs is a pre-processor for Haskell FFI bindings to C libraries
    perezvon
    perezvon 2013/12/22
    c2hs is a interfacing tool that eases Haskell access to C libraries.
  • GitHub - google/gumbo-parser: An HTML5 parsing library in pure C99

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - google/gumbo-parser: An HTML5 parsing library in pure C99
    perezvon
    perezvon 2013/08/22
    Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools.
  • Damien Katz: The Unreasonable Effectiveness of C

    For years I've tried my damnedest to get away from C. Too simple, too many details to manage, too old and crufty, too low level. I've had intense and torrid love affairs with Java, C++, and Erlang. I've built things I'm proud of with all of them, and yet each has broken my heart. They've made promises they couldn't keep, created cultures that focus on the wrong things, and made devastating tradeof

  • TransactionKit

    TransactionKit is a work in progress and highly experimental. Multithreading programming is extremely error prone, and TransactionKit uses an even riskier lockless approach. TransactionKit is a C library that provides key / value based hash tables and was designed to fill the gap between simple, lightweight key / value type primitives and the more advanced features available in heavyweight databas

    perezvon
    perezvon 2012/03/30
    TransactionKit is a C library that provides key / value based hash tables and was designed to fill the gap between simple, lightweight key / value type primitives and the more advanced features available in heavyweight databases.
  • tanoku/sundown - GitHub

    Sundown Sundown is a Markdown parser based on the original code of the Upskirt library by Natacha Porté. Features Fully standards compliant Sundown passes out of the box the official Markdown v1.0.0 and v1.0.3 test suites, and has been extensively tested with additional corner cases to make sure its output is as sane as possible at all times. Massive extension support Sundown has optional support

    perezvon
    perezvon 2012/01/11
    Standards compliant, fast, secure markdown processing library in C.
  • Kazmath C math library

    About Kazmath is a simple 3D math library written in C. The aim of the project is to produce an easy to use language that integrates well with OpenGL. Kazmath is released under a modified BSD licence and can be used in commercial products. Downloads The latest downloads can be found here. BZR The source code of Kazmath is under Bazaar version control hosted on Launchpad. The repository can be fou

    perezvon
    perezvon 2011/09/17
    Kazmath is a simple 3D math library written in C.
  • Writing a C library, intro, conclusion and errata

    This is a series of blog-posts about best practices for writing C libraries. See below for each part and the topics covered. Table of contentsThe entire series about best practices for writing C libraries covered 15 topics and was written over five parts posted over the course of approximately one week. Feel free to hotlink directly to each topic but please keep in mind that the content (like any

    perezvon
    perezvon 2011/08/09
    a series of blog-posts about best practices for writing C libraries.
  • trondn/libmembase - GitHub

    perezvon
    perezvon 2011/01/19
    libmembase - a C interface to Membase
  • lloyd/yajl GitHub

    ********************************************************************** This is YAJL 2. For the legacy version of YAJL see https://github.com/lloyd/yajl/tree/1.x ********************************************************************** Welcome to Yet Another JSON Library (YAJL) ## Why does the world need another C library for parsing JSON? Good question. In a review of current C JSON parsing libraries

    lloyd/yajl GitHub
    perezvon
    perezvon 2010/12/05
    Yet Another JSON Library - A Portable JSON parsing and serialization library in ANSI C.
  • C言語・C++言語用テスティングフレームワーク - Cutter

    最新リリース 2019-09-13にリリースされた1.2.7が最新です。 [ダウンロード] [変更点] Cutterとは Cutterは書きやすさ・デバッグのしやすさを重視したC言語・C++言語用のテスティングフレームワークです。メンテナンスしやすく、利用効果の高い単体テスト(ユニットテスト)の開発を支援します。 また、テストを苦痛ではなく、楽しいものにすることも重視しています。スクリーンショットはテスト結果の通知機能を利用している様子です。文字としてテストのパス・失敗を伝えるだけではなく、視覚的にも通知することで、テスト結果をわかりやすくします。わかりやすいので、頻繁にテストを実行したくなります。この機能はnotify-sendコマンド(Linuxや*BSDなどの場合)またはgrowlnotifyコマンド(macOSの場合)を利用します。 動作環境 CutterはDebian GNU/L

    perezvon
    perezvon 2010/12/01
    「Cutterは書きやすさ・デバッグのしやすさを重視したC言語・C++言語用のテスティングフレームワークです。メンテナンスしやすく、利用効果の高いユニットテスト(単体テスト)の開発を支援します。」
  • 中間証明書 - どさにっき

    2010年10月11日(月) 体育の日 ■ 無題 _ そろそろ紅葉の季節だし、3連休は北東北に行こうか信州に行こうかどうしようかと考えてたのに、うち2日が雨ってどんなイジメだよ。まともに遊べる天気は今日だけだったので、しかたなしに日光。今年だけでいったい何度来てるんだか。 _ 聞いてはいたけど、今年は紅葉が遅いというのはホントだね。湯元のあたりでやっと五分の色づきか。中禅寺湖はまだぜんぜんダメだし、いろは坂まで降りてくるのは11月まで遅れちゃうんじゃないかな。戦場ヶ原は草紅葉なのですでに見頃だけど、森の中に入るとまだまだ。ずっと高いところ、金精峠や県境を越えて菅沼あたりまで行くと見事な紅葉だったけど、つまりそこまで高いところに行かないとまだ紅葉は始まってないということ。まあ、ピークにはまだ早いとわかってて行ったんだけどな。 _ まだ盛りではないのに、それでも道路は大渋滞するんだよな。東京方

    perezvon
    perezvon 2010/10/21
    「varnish は設定ファイルを C に変換してコンパイルして自分自身にダイナミックリンクして自身の挙動を決定する、という変態デーモンなので、標準ではできないことでもこんなふうに自前で実装できちゃう。」
  • The uWSGI project — uWSGI 2.0 documentation

    Note The project is in maintenance mode (only bugfixes and updates for new languages apis). Do not expect quick answers on github issues and/or pull requests (sorry for that) A big thanks to all of the users and contributors since 2009. The uWSGI project¶ The uWSGI project aims at developing a full stack for building hosting services. Application servers (for various programming languages and prot

    perezvon
    perezvon 2009/07/16
    uWSGI is a fast (pure C), self-healing, developer-friendly WSGI server, aimed for professional python webapps deployment and development.
  • Apacheモジュールの作成とgdbとloggerでのデバッグ方法 - よねのはてな

    ApacheのFilterモジュールを作った話しをしたらid:c9katayamaに情報公開しろと言われたままでしたので公開します。 C言語の勉強しようかな、Apache2.xのモジュールを作ってみようかな、gdb使ってデバッグしてみようかなと考えてた人にお勧めです。 JavaでのServletの開発経験のある人であれば、Filterの処理の動きやリクエストコンテキストの考え方は分かり易いはずなので、エントリを読み終わる頃にはApacheのモジュールをgdbでデバッグしながら作る事が出来るはずです。 mod_orzを作成 今回はmod_orzというApacheモジュールを作成します。 Apacheモジュールを作成する際には、apxsというモジュール開発用のコマンドを使用しテンプレートを作ります。 # apxs -g -n orz Creating [DIR] orz Creating [F

    Apacheモジュールの作成とgdbとloggerでのデバッグ方法 - よねのはてな
  • memcpy 最適化 - kazuhoのメモ置き場

    バイト単位でコピーするアホなコードの方が、勝手にベクトル化される分、gcc 内蔵のヤツより最大3倍高速なんだってwww memcpy() compiled with vectorizing compilers All current compilers for linux should support SSE2 auto-vectorization with #include <string.h> void *(memcpy)(void *restrict b, const void *restrict a, size_t n){ char *s1 = b; const char *s2 = a; for(; 0<n; --n)*s1++ = *s2++; return b; }(中略) x86-64 gcc memcpy() (中略) Linking in a user-compiled

    memcpy 最適化 - kazuhoのメモ置き場
    perezvon
    perezvon 2009/01/26
  • libev

    A full-featured and high-performance (see benchmark) event loop that is loosely modelled after libevent, but without its limitations and bugs. It is used in GNU Virtual Private Ethernet, rxvt-unicode, auditd, the Deliantra MORPG Server and Client, and many other programs. Blurb Features include child/pid watchers, periodic timers based on wallclock (absolute) time (in addition to timers using rela

    perezvon
    perezvon 2008/04/25
    A full-featured and high-performance event loop that is loosely modelled after libevent
  • TAKESAKO @ Yet another Cybozu Labs: core dumpするコードの短さを競う「Core Golf」

    まめめもさんの core golf のエントリー(6/27)より さて、core dump するコードの短さで競う core golf はゲームとして成立するでしょうか。明らかに環境や処理系に依存するのでルールの決め方が難しいです。とりあえずうちでは core dump した C のコード (15B) 。もっと短くなる? core dumpの定義はいろいろあると思いますが、とりあえず手元の環境 CentOS Linux x64_64 で segmentation fault が起きるコードで。 (1) C言語で core dump 早速、core dumpした5byteのCのコード。 (via. λx.x K S K @ はてな - core golf) main; 実行結果 $ echo -n "main;" > a.c && cc a.c && ./a.out a.c:1: 警告: デ

  • Javaスクールの危険 - The Joel on Software Translation Project

    Joel Spolsky / 青木靖 訳 2005年12月29日木曜 近頃の若い者ときたら。 勤勉はいったいどこへ行ってしまったんだ? 「近頃の若い者」は我慢がないと不平を言うようになったのは、私も年を取ったということなのかもしれない。 そりゃ恵まれてるね。私は3ヶ月汚水浄化槽の中の茶色い紙袋に住んでいたよ。朝6時に起きて、袋を掃除し、固くなったパンの耳をべ、工場まで歩いて行くと、1日14時間、毎週毎週働きつづけ、家に帰ると親父にベルトでたたかれて寝床についていたんだ。 ——モンティ・パイソンの空飛ぶサーカス 4人のヨークシャー人 私は若い頃、パンチカードでプログラムを作る方法を学んだ。ミスをしたら、それを訂正するためのバックスペースのような近代的な機能は存在しなかった。カードを捨ててはじめから打ち直すのだ。 私は1991年にプログラマの面接をするようになった。コーディングの問題に答える

  • ANSI C grammar dependency graph

  • 1