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
è¦æ¨ããã³ãã¨ã³ãéçºã« Elm ã¯å ãã¦éãã¦ã¨ã¦ãè¯ãã¨æããæ¨ä»ã® Flux ç³»ã¢ã¼ããã¯ãã£ã¯ä»£æ°çãã¼ã¿åã¨ç¸æ§ãè¯ããã¨ããã§å·¥æ°ãæ¸ããããã«ã¯ããã¯ã¨ã³ããåãè¨èªã§æ¸ãã¦ããããã° isomorphic ã«ãã¦ãã¾ãããã¨ããã ããElm ã¯ããã¯ã¨ã³ããæ¸ãã«ã¯ç¾ç¶é©ãã¦ããªãã OCaml ãªã js_of_ocaml ã§ã¨ã³ã·ã¹ãã ã丸ãã¨ãã©ã¦ã¶ã«æã£ã¦æ¥ããã®ã§ããã³ãã¨ã³ããããã¯ã¨ã³ããç¡çãªãæ¸ããã¯ãã§ãããã¾ã The Elm Architecture ã OCaml ã§å®è·µã§ããããã«ãããã Caelm ã¨ããã©ã¤ãã©ãªãæ¸ãã¦ããã俺ã®éæã¯ã¾ã ã¾ã ããããã (æªå®) Elm 㨠TEA ã«ã¤ãã¦Elm ã¨ããããã°ã©ãã³ã°è¨èªãããããããã AltJS ã®ä¸ã¤ã§ããã ããããªã¹ãã£ã¯ãª ML ç³»ã®é¢æ°è¨èªã§ãåæ¨è«ãæã¡ãåã¯ã©ã¹ãæãã
æ¬è¨äºã§ã¯ã OCaml ã«ã¤ãã¦ç°¡åã«èª¬æãã¾ããããã§ã¯ãç§ãæãåªãã¦ããã¨èããOCamlã®æ©è½ã®ã¿ãåä¸ãã¾ãã æ¬è¨äºã§ã¯ãæ©è½ã説æããä¸ã§ä½¿ç¨ä¾ã¯ãã¾ã使ãããã©ã¡ããã¨ããã¨æ§æã使ã£ã¦ããã¾ãããã¹ã¦ã®æ©è½ã«é¢ãã詳細ãç¥ãããæ¹ã¯ã ãOCaml Document and Userâs Manualã ã ãReal World Ocamlã ãèªããã¨ããå§ããã¾ãã åæ©è½ã®èª¬æã«ã¯ãç°¡åãªæ§æã®èª¬æãããã¤ãã®ä¾ãããã¦åèæç®ã®ãªã³ã¯ãçãè¾¼ã¾ãã¦ãã¾ãããã®è¨äºèªä½ã¯ãOCamlã®æ©è½ãå°ãå³ãã£ã¦ã¿ããæ¹ãã¾ãã¯ç¹å®ã®æ©è½ãããå°ãå¦ã³ããã¨ããæ¹ã®åèã«ãªãã§ãããã ãæè¦ãªã©ããã¾ãããã mads379@gmail.com ã¾ã§ãé£çµ¡ããã ããã @mads_hartmann ã®Twitterã¢ã«ã¦ã³ãã«ãæ稿ãã ããã ã³ã¼ãã試ãã¦ã¿ããæ¹ã¯ã
OCamlãå¦ã¶ã«ã¯ãã¾ãä½ããæãä»ãããããã§ããããï¼ãããªããªãä½ããã¾ããï¼ ç§ã¯ããã¾ã§ãæãã10æ°åã¯OCamlãè¦ãããã¨ãã¾ãããããã¦æãä»ãã¦ã¯è«¦ããã¾ãä»ãã¦ã¯è«¦ãã®ç¹°ãè¿ãã§ãã¤ãã«ã¯æ°ããã®ãããã¦ãã¾ã£ããããã§ãã ã§ããä»åã¯ç¶ãã¦ãã¾ããã²ãã£ã¨ããã¨ãã³ãã¥ããã£ãã®ãã®ã«ä½ãæ ¹æ¬çãªå¤åããã£ãã®ããããã¾ããã ç§ã«ã¨ã£ã¦åãå¥ããã®ãå®éã¯ä½ã ã£ãã®ãã以ä¸ã«èå¯ãã¦ã¿ããã¨æãã¾ãã å½¹ã«ç«ã¤æ¬ã¯ï¼ ã Real World OCaml ï¼ä»¥ä¸ãRWOï¼ãããå§ãã§ããã¨ãããããã ãã以å¤ã«ãå§ãã¯ããã¾ãã ãRWOã¯ãç§ã®ç涯ã®ä¸ã§ã1ã2ãäºããã¨ãã§ãããããã®ã³ã³ãã¥ã¼ã¿è¨èªè§£èª¬æ¸ã§ãã ã¡ãªã¿ã«ããã®ä»ã«ã解説æ¸ã¯ããã¾ããã大ä½ãä¸æ£ç¢ºãªå 容ãå«ãã§ãããããããã¯ãã©ã³ã¹èªã§æ¸ããã¦ããããªã®ã§ã èªã¾ãªã æ¹ãããã§ãã
In 2013, I spent 6 months converting 0install's 29,215 lines of Python to OCaml (learning OCaml along the way). In this post, I'll describe the approach I took and how it went. There will be graphs. If you don't want to read the whole thing, the take-away is this: The new code is a similar length (slightly shorter), runs around 10x faster, and is statically type checked. ( This post also appeared
js_of_ocaml ãç±ãã Google ã® Dart ã¨ãããããªå ´åãããªã!! OCaml ã§æ¸ãããããã°ã©ã ããªãã JavaScript ã«å¤æãããããããã©ã¦ã¶ã§åãã JS ã§åãã¤ãã¦ããªããªãã¸ã§ã¯ãã§ãä½ã¨ãªãåãã¤ã㦠OCamlã§åå®å ¨ã«å¼ã³åºãã! æ¢åã® JS ã©ã¤ãã©ãªè³ç£ããã»ã¨ãã©æéããããã«ããã®ã¾ã¾é¢æ°åè¨èªãã©ãã¤ã ã§ä½¿ãã! ãï¼ããããããªãï¼ http://ocsigen.org/js_of_ocaml/manual/ ã® demo ã試ãã¦ã覧ãªããããããå ¨é¨ OCaml ã§æ¸ããã¦ããâ¦! ãããªããã§ã js_of_ocaml ä½é¨è¨ãã ãããå®éã«è¡ã£ã¦ãã£ã Hack ã(è¡ãæ¢ã¾ãã«ãªã£ã失ææã¯åãå»ã£ã¦)ãªãã£ã¦ãããããã¡ãªã¿ã«å½æ¹ JavaScript ã«é¢ãã¦ã¯ã»ã¨ãã©ç¥èãç¡ããJS ã«é¢ãã¦ã¯ç¨èªã¨ãéé
OCaml ã®ã1ã¢ã¸ã¥ã¼ã«1ãã¼ã¿åã¹ã¿ã¤ã«ãããã®ããã°ã©ãã³ã°ã¹ã¿ã¤ã«ã¯21ä¸ç´ã«å ¥ã£ã¦ããã¢ã¸ã¥ã¼ã«ãå¤ç¨ãã OCaml ã³ãã¥ããã£ã§æµè¡ãã ãããã®ã§ç§ãæ¡ç¨ãã¦ãã¾ããæºæµã¯ SML æ¹é¢ã«ããã¨èãã¾ãããâ¦ç§èªä¿¡ã¯ç¢ºèªãã¦ãã¾ãããè¦åºå ¸ã§ãã ã1ã¢ã¸ã¥ã¼ã«1ãã¼ã¿åã¹ã¿ã¤ã«ãã®æå³ããã¨ããã¯ç°¡åã§ã: ãã¼ã¿åä¸ã¤ä¸ã¤ã«ã¢ã¸ã¥ã¼ã«ãä¸ã¤ä¸ã¤ä½ãã ã¢ã¸ã¥ã¼ã«åã¯åã®æå³ããååãã¤ããã人ãªã Personã ã¢ã¸ã¥ã¼ã«å ã§å®ç¾©ãããã¼ã¿åã¯å¸¸ã« t ã¨ããæ½è±¡çãªååã«ããã t ã主対象ã¨ããæä½ã¯ã¢ã¸ã¥ã¼ã«å ã§å®ç¾©ããã ãã ããå ¨ã¦ã® OCaml ããã°ã©ã ã¯ãã®ããã«æ¸ãããã¹ããã¨ãããã®ã§ãããã¾ããã ä¾ãã°ã OCaml ã®ã³ã³ãã¤ã©ã®ã½ã¼ã¹ã³ã¼ãã¯ãã®ã¹ã¿ã¤ã«ã§ã¯å ¨ãæ¸ããã¦ãã¾ããã ã1ã¢ã¸ã¥ã¼ã«1ãã¼ã¿åã¹ã¿ã¤ã«ãã®å©ç¹ã¯: ã¢ã¸ã¥ã¼ã«å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}