タグ

xsに関するgfxのブックマーク (41)

  • Perl5 における B optree の操作方法入門 - tokuhirom's blog


    YAPC YAPC Perl5 Perl5 hack XS B optree B optree  AST() Perl5 byte code interpreter  AST  B optree  B optree  B
    gfx
    gfx 2013/09/17
  • Module::Build::Pluggable::XSUtil と Minilla の相性が悪いので Module::Build::XSUtil 作りました - WebService::Blog->new( user => ’hide_o_55’ )


    Minilla使MinillaModule::Build::PlaggableModule::Build::subclass()使Module::Build::subclass()使使XSModule::Build::Pluggable::XSUtil使Minilla Module::Build::XSUtil  GitHub MetaCPAN MinillaBuild.PL使 Module::Build use strict; use warnings; use Module::Build::XSUtil; my $
    Module::Build::Pluggable::XSUtil と Minilla の相性が悪いので Module::Build::XSUtil 作りました - WebService::Blog->new( user => ’hide_o_55’ )
    gfx
    gfx 2013/09/01
  • Digest::BLAKE2作成で学ぶモダンPerl XSモジュール作成と、挫折


    Perl3C CPerlXS module BLAKE2Perl module https://github.com/gunyarakun/p5-Digest-BLAKE2 http://search.cpan.org/~gunya/Digest-BLAKE2/   BLAKE24BLAKE2bBLAKE2s BLAKE2b64bit CPU512bitBLAK
    Digest::BLAKE2作成で学ぶモダンPerl XSモジュール作成と、挫折
    gfx
    gfx 2013/02/10
  • perl - 勝手に添削 - Text::MeCab by DMAKI : 404 Blog Not Found


    2006050217:15 Lightweight Languages perl -  - Text::MeCab by DMAKI DMAKIText::MeCab Advanced Perl Programming, 2nd Ed. Simon Cozens [:Perl2] D-5  Text-MeCab-0.02/lib/Text/MeCab.pm package Text::MeCab; use strict; use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK); BEGIN { $VERSION
    perl - 勝手に添削 - Text::MeCab by DMAKI : 404 Blog Not Found
    gfx
    gfx 2011/11/16
    XSに詰め込みすぎるとよくないよという話。
  • Text::AAlibを書いています。 - Shohei Yoshida's Diary


    XS XS   An ascii-art library   syohex/p5-Text-AAlib · GitHub       #!perl use strict; use warnings; use Text::AAlib; use Imager; my $file = shift or die "Usage: $0 image"; my $im
    Text::AAlibを書いています。 - Shohei Yoshida's Diary
  • List::UtilsBy::XSが書けました。 - Shohei Yoshida's Diary


    List::UtilsBy::XS - Life is very short  List::UtilsBy Lightweight Callback API List::UtilsBy  syohex/p5-List-Utils-By · GitHub  Perl 5.14.1 Benchmarking List::Util and List::UtilsBy::XS Bench: sort_by Rate pp xs pp 7729/s -- -37% xs 12217/s 58% -- Bench: nsort_by Rate pp xs pp 9050/s
    List::UtilsBy::XSが書けました。 - Shohei Yoshida's Diary
    gfx
    gfx 2011/10/06
  • How perl compiles subs and methods | Reini Urban [blogs.perl.org]

    compiling, debugging, generating, optimizing (breaking stuff) This was just added to perloptree.pod in B::C Call a subroutine subname(args...) => pushmark args ... gv => *subname entersub Call a method Here we have several combinations to define the package and the method name, either compile-time (static as constant string), or dynamic as GV (for the method name) or PADSV (package name). method_n

    gfx
    gfx 2011/07/03
  • XSでC++を使おうとしたけど挫折したので教えてクン>< - Kentaro Kuribayashi's blog


     #include id:tokuhirom!!1 C++XSC++  MacOSX/DebianUncoUnco.xsC++ #include <iostream> include  
    XSでC++を使おうとしたけど挫折したので教えてクン>< - Kentaro Kuribayashi's blog
    gfx
    gfx 2010/11/08
    Perlのヘッダファイルでマクロを定義しまくるのが干渉している件
  • rafl's Devel::bt is awesome. - tokuhirom's blog

    http://frepan.64p.org/~flora/Devel-bt-0.01/lib/Devel/bt.pm $ perl -d:bt -MB -e'(bless \(my $o = 0), q{B::SV})->REFCNT' #0 0x00007f9c3215ab0e in __libc_waitpid (pid=<value optimized out>, stat_loc=0x7fff4c5ffbe8, options=<value optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:32 #1 0x00007f9c319168c1 in backtrace () at bt.xs:129 #2 0x00007f9c319168ec in sighandler (sig=11) at bt.xs:135 #3 <s

    gfx
    gfx 2010/09/05
  • Ctypes for Perl - Gitorious

  • Less XS/More Ctypes - Modern Perl Programming

    Perl is in better shape now than ever, but there's much left to improve. (I wrote Five Features Perl 5 Needs Now almost two years ago, and four of five are available in whole or in sufficient substitute, so that's great progress.) Rather than criticize Perl for what's going wrong (as if I were any position to do so), I prefer to suggest new areas of improvement. One of the biggest possible improve

  • Perl 5 Internals - Books

    This series contains material adopted from the Netizen Perl Training Fork, by kind permission of Kirrily Robert. [edit] Preliminaries Welcome to NetThink's Perl 5 Internals training course. This is a three-hour course which provides a hands-on introduction to how the perl interpreter works internally, how to go about testing and fixing bugs in the interpreter, and what the internals are likely to

    gfx
    gfx 2010/08/30
  • ライブコーディングで XS : にぽたん研究所


      #!/usr/local/bin/perl use strict; use Benchmark qw(:all); my @args = qw(foo bar baz); cmpthese(100000, { champ => sub { champ(\@args) }, yours => sub { yours(\@args) }, }); # winner sub champ { my $args = shift; # do something } # your code here sub yours { } 
    ライブコーディングで XS : にぽたん研究所
    gfx
    gfx 2010/06/19
  • DO NOT write XS

    DO NOT write XS Tatsuhiko Miyagawa Tsukuba.XS #1

    DO NOT write XS
    gfx
    gfx 2010/05/29
  • PerlXS: sv_2mortal()やhv_store()のこと - EchizenBlog-Zwei

    そろそろXSをちゃんとやろうと思ったので、メモリ周辺のことが良くわからなくて放置していたsv_2mortal()やhv_store()のことについて調べた。 参考: perlguts http://www.kt.rim.or.jp/~kbk/perl5.005/perlguts.html 最初に結論を書いてしまうと [1: sv_2mortal()] - returnしない変数は常にsv_2mortal()を通す (揮発性をもたせる) - SVはreturnするときはsv_2mortal()を通してはダメ - AV, HVはreturnするときもsv_2mortal()を通す [2: newRV_inc()] - リファレンス変数(RV)を作るときはnewRV_inc()を 使い参照カウントをインクリメントしておく (newRV_noinc()はダメ) - リファレンス変数もsv_2mor

    PerlXS: sv_2mortal()やhv_store()のこと - EchizenBlog-Zwei
    gfx
    gfx 2010/05/18
  • はてなグループの終了日を2020年1月31日(金)に決定しました - はてなの告知


    2020131()  2019 -   : 2020131() :2020131() 稿 稿 -   2020-06-25  2020228
    はてなグループの終了日を2020年1月31日(金)に決定しました - はてなの告知
    gfx
    gfx 2010/05/07
  • Faster.pm の最適化 - tokuhirom's blog


    Faster.pm  PerlVMCC  #define PERL_NO_GET_CONTEXT #define PERL_CORE #include <assert.h> #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #if 1 # define faster_PUSHMARK_PREALLOC(count) while (PL_markstack_ptr + (count) >= PL_ markstack_max) markstack_grow () # define faster_PUSHMARK(p) *++PL_markst
  • tokuhirom blog

    Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at

  • HTTP::Parser::XS - a PSGI compatible, fast http parser - kazuhoのメモ置き場


    GitHub - kazuho/p5-http-parser-xs: a fast http parser BLURB  PSGI    httpd,  httpd 使 POST   Perl   $ ./http-parser-vs-xs-benchmark.pl Rate HTTP::Parser HTTP::Parser::XS HTTP::Parser 2978/s -- -95% HTTP::Parser::XS 54348/s 1725% --使 #! /usr/bin/
    HTTP::Parser::XS - a PSGI compatible, fast http parser - kazuhoのメモ置き場
    gfx
    gfx 2009/09/14
  • tokuhirom blog

    Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at

    gfx
    gfx 2009/07/31