ãã®ã¨ã³ããªã«è¼ãã¦ããC++ã®ã³ã¼ãããHaskellã¨OCamlã§æ¸ãã¦ã¿ã¾ãããï¼ãã¨ãC++ã®ã³ã¼ããæ´çãã¾ããï¼ ã³ã¼ããç½®ãã¦ããã¾ãã Haskellç(sph.hs) OCamlç(sph.ml) C++ç(sph.cpp) Haskellç(sph.hs)ã®å®è¡æ¹æ³ã¯ã $ ghc --make -O sph.hs $ ./sph 300 ã§ãã./sphã®å¼æ°ã¯è¨ç®ããã¹ãããæ°ã§ããä¸è¨ã®sph.zipã«ã¯Data/Vector.hsã¨ãããã¯ãã«æ¼ç®ã®ããã®ã¢ã¸ã¥ã¼ã«ãå ¥ãã¦ããã¾ãã åæ§ã«ãOCamlç(sph.ml)ã®å®è¡æ¹æ³ã¯ã $ ocamlopt -pp 'camlp4o -parser Camlp4ListComprehension' -o sph sph.ml $ ./sph 300 ã§ãã-ppãªãã·ã§ã³ã¯ãããªããã»ããµã«Camlp4ã使ã£ã¦O
{{#tags}}- {{label}}
{{/tags}}