Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift プロトコル指向なCのラッパーを作る

Swift プロトコル指向なCのラッパーを作る

Yusuke Ito

April 21, 2016
Tweet

More Decks by Yusuke Ito

Other Decks in Programming

Transcript

  1. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ྫΦʔσΟΦσόΠεҰཡ Λऔಘ w $PSF"VEJPͷ)"- )BSEXBSF"CTUSBDUJPO -BZFS Λ࢖༻ w (JTUOPWJEFWJDFTD

    IUUQTHJTUHJUIVCDPN OPWJ  w ՕॴͰ΋Կ͔ؒҧ͑ΔͱɺΤϥʔɾ஋͕ฦͬͯ͜ ͳ͍ɾམͪΔͷͰ ࠓͱͳͬͯ͸ ͭΒ͍ 
  2. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ϓϩύςΟͱܕ  ϓϩύςΟ ఆ਺ ϓϩύςΟ ಺༰ ର৅ ܕ L"VEJP)BSEXBSF1SPQFS

    UZ%FWJDFT ઀ଓ͞Ε͍ͯΔ
 σόΠε  "VEJP%FWJDF*% 6*OU L"VEJP%FWJDF1SPQFSUZ %FWJDF/BNF$'4USJOH σόΠεͷ໊લ "VEJP%FWJDF*% $'4USJOH3FG L"VEJP%FWJDF1SPQFSUZ 7PMVNF4DBMBS ݱࡏͷԻྔ "VEJP%FWJDF*% 'MPBU L"VEJP%FWJDF1SPQFSUZ 4USFBNT σόΠεͷ͍࣋ͬͯΔ ετϦʔϜ "VEJP%FWJDF*% "VEJP4USFBN*% L"VEJP4USFBN1SPQFSUZ 1IZTJDBM'PSNBU ରԠ͍ͯ͠Δप೾਺ɾ Ϗοτਂ౓ "VEJP4USFBN*% "VEJP4USFBN#BTJD% FTDSJQUJPO
  3. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ϓϩύςΟͱܕ w ೖྗ ϓϩύςΟ ͷఆ਺͕ܾ·Ε͹ɺग़ྗͷܕ΋ࣗ ಈతʹܾ·Δ (FUͷ΄͏  w

    4XJGUͰ͸ೖྗͷܕʹରԠ͢Δग़ྗͷܕͱͯ͠දݱ Ͱ͖Δɻ 1SPUPDPMͷBTTPDJBUFEUZQF  w "1*,JUͳͲͰ΋ಉ͡ߟ͑ํ 3FRVFTUͷܕ͕ܾ·Ε ͹3FTQPOTFͷܕ͕ܾ·Δ 
  4. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ϓϩτίϧͷ৔߹ͷ੍໿ w ίϯετϥΫλͷ͋Δܕ ΠϯελϯεԽՄೳͳܕɾ DMBTT TUSVDU FOVN ΛҰ࿈ͷ੍໿ͷதʹೖΕΔ͜ ͱ͕Ͱ͖ͳ͍ɻ


    ٯʹɺϥούʔଆ͸࣮ࡍͷܕͷఆ͕ٛແ͍ͷͰɺΞ ϓϦέʔγϣϯଆͰͲΜͳܕͰ΋ TUSVDUͰ΋ DMBTT Ͱ΋ ࢖͏͜ͱ͕Ͱ͖Δͷ͕ϝϦοτɻ w ϓϩτίϧࣗମʹ஋͸࣋ͨͤΒΕͳ͍ DPNQVUFE QSPQFSUZͳΒՄೳ