Open13
ð Computer Programming with the Nim Programming Language æ¥æ¬èªèš³
翻蚳ããã¢ãããŒã·ã§ã³
æè¿ãäœã¬ã€ã€ãŒãå匷ãå§ããã
ãããŠãRust ã調ã¹ãŠãããªãã§ããŸããŸèŠã€ãã Nim ãå匷ãå§ããã
ãããšã©ãã ãäœã¬ã€ã€ãŒã Nim ãåæã«å匷ã§ããããªãããããããªãµã€ããããããããªããã
ç®æ¬¡
- ãã®æ¬ã«ã€ããŠ
- ããŒã 1: å°å
¥
- ã³ã³ãã¥ãŒã¿ãšã¯ïŒ
- ã¢ããã°ãšããžã¿ã«
- ãªãã¬ãŒãã£ã³ã°ã»ã·ã¹ãã ã£ãŠïŒ
- ãŠãŒã¶ãŒã»ã€ã³ã¿ãŒãã§ãŒã¹ã£ãŠïŒ
- ã³ã³ãã¥ãŒã¿ã»ããã°ã©ãã³ã°ã£ãŠïŒ
- ã¢ã«ãŽãªãºã ã£ãŠïŒ
- ããã°ã©ãã³ã°èšèªã£ãŠïŒ
- ã³ã³ãã€ã«ãšã€ã³ã¿ããªã¿
- ããã°ã©ãã³ã°èšèªã®ãåã
- ã©ãã㊠Nim ãªã®ïŒ
- Nim ã«é¢ããããã€ãã®äºå®
- Nim ã¯ãããããªããã°ã©ãã³ã°ã¹ã¿ã€ã«ããµããŒãããŠãŸãã
- Nim ã¯ãå¹çç
- Nim ã¯ãè¡šçŸåè±ãã§ãšã¬ã¬ã³ããããªãŒãšã¬ã¬ã³ã
- Nim ã¯ããªãŒãã³ãœãŒã¹ã§ã¿ã
- Nim ã¯ãæ¥ã é²åããŠããâŠïŒ
- ã©ãã㊠Nim ã¯ãæªã ã«äººæ°ã®ããäž»æµãªããã°ã©ãã³ã°èšèªãããªãã®ïŒ
- Nim ã¯ãåå¿è ã«ãšã£ãŠæ¬åœã«ç¬¬äžèšèªãšããŠãµããããéžæè¢ãªã®ïŒ
- Nim ã¯ãæ¬åœã«è¯ãæè²èšèªãªãã§ããïŒ
- ã§ãçµå± Nim ã¯ãæ¬åœã«ç§ã«ãšã£ãŠæè¯ã®ã¹ã¿ãŒããªã®ïŒ
- Nim ãåŠãã ããšã¯ãä»ã®èšèªãåŠã¶å¿ èŠãããã®ïŒ
- ãªã㧠Nim ã䜿ããªãã®ïŒ
- ç§ãã¡ã®æåã® Nim ã®ããã°ã©ã
- 2 é²æ°
- 16 é²æ°
- ã³ã³ãã€ã©ã®ã€ã³ã¹ããŒã«
- ãœãŒã¹ã»ã³ãŒãã»ãã¡ã€ã«ã®äœæ
- ã³ã³ãã€ã©ã®èµ·åãšããã°ã©ã ã®å®è¡
- ããŒã 2: åºæ¬
- 宣èš
- æ§æ
- ã€ã³ããããšã¢ãŠãããã
- ããŒã¿å
- æŽæ°å
- æµ®åå°æ°ç¹å
- ç°ãªãå
- ãµãã¬ã³ãžå
- åæå
- çåœå€å
- æå
- åºæ°å
- ã»ãã
- æå
- ã³ã¡ã³ã
- ã»ãã®ããŒã¿å
- Nim ã®ãœãŒã¹ã³ãŒã
- ãããã¯ãã¹ã³ãŒããèŠèªæ§ãç£å°ãã·ã£ããŠã€ã³ã°
- ã°ããŒãã«ã³ãŒã
- 空çœãå¥èªç¹ãæŒç®å
- ãªãã¬ãŒã¿ãŒ
- å®è¡é åº
- æ§é ãã³ã³ãããŒã«ãã
- Ifã¹ããŒãã¡ã³ããšIfãšã¯ã¹ãã¬ãã·ã§ã³
- Whenã¹ããŒãã¡ã³ã
- Caseã¹ããŒãã¡ã³ã
- While ã«ãŒã
- Blockã¹ããŒãã¡ã³ã
- Forã«ãŒããšã€ãã¬ãŒã¿
- ãªããžã§ã¯ã
- é
åãšã·ãŒã±ã³ã¹
- 詳现
- ã¹ã©ã€ã¹
- å€ãªããžã§ã¯ããšåç §
- ãªãã¡ã¬ã³ã¹ãšãã€ã³ã¿
- ãã€ã³ã¿ã®çŽ¹ä»
- ãã€ã³ã¿ã®ç®è¡æŒç®
- ãªããžã§ã¯ãã®å²ãåœãŠ
- ãªããžã§ã¯ããžã®åç §
- ããã·ãŒãžã£ãšé¢æ°
- ã¯ããã«
- ç¹æ®ãªåŒæ°åãOpenArray ãš Varargs
- ããŒã¿åã«æçžãããããã·ãŒãžã£
- ã¹ã³ãŒããå¯èŠæ§ãå±ææ§
- ãžã§ããªãã¯ã¹
- ãžã§ããªãã¯ã®äœ¿çšäŸ
- ã¡ãœããåŒã³åºãã®æ§æ
- ããã·ãŒãžã£å€æ°
- ãã¹ããããããã·ãŒãžã£ãšã¯ããŒãžã£
- å¿åããã·ãŒãžã£
- ã³ã³ãã€ã«æã®ããã·ãŒãžã£å®è¡
- ããã·ãŒãžã£ã®ã€ã³ã©ã€ã³å
- ååž°
- ã³ã³ããŒã¿
- ãªããžã§ã¯ãæåããã°ã©ãã³ã°ãšç¶æ¿
- ãã®ä»ã®çµèŸŒã¿ããŒã¿å
- ã¿ãã«å
- ãªããžã§ã¯ãã®ããªã¢ã³ã
- ã€ãã¬ãŒã¿
- ãã³ãã¬ãŒã
- åä»ããã©ã¡ãŒã¿ãšåç¡ããã©ã¡ãŒã¿
- ãã³ãã¬ãŒãã«ã³ãŒããããã¯ãæž¡ã
- ãã³ãã¬ãŒãã«æŒç®åãæž¡ã
- ãã³ãã¬ãŒãã®é«åºŠãªäœ¿çšæ³
- ãã£ã¹ããšåå€æ
- ãããåäœã®æŒç®
- äŸå€åŠç
- äžå ·åãšãã£ããå¯èœãªãšã©ãŒ
- Raiseã¹ããŒãã¡ã³ã
- ã«ã¹ã¿ã äŸå€
- Tryã¹ããŒãã¡ã³ã
- TryåŒ
- Exceptç¯
- ã€ã³ããŒããããäŸå€
- Deferã¹ããŒãã¡ã³ã
- å¹æã·ã¹ãã
- ãã¹ãã©ã¯ã¿
- ãã¹ãã©ã¯ã¿ãšç¶æ¿
- ãã¡ã€ãã©ã€ã¶
- ã¢ãžã¥ãŒã«
- åšæçã€ã³ããŒã
- ã€ã³ã¯ã«ãŒã
- ããŒã 3: Nim ã®æšæºã©ã€ãã©ãª
- ã³ãã³ãã©ã€ã³åŒæ°
- ã¿ãŒããã«ããããŒã¿ãèªã¿èŸŒã
- 端æ«ã®ãŠã£ã³ããŠã«ããã¹ããæžã蟌ã
ãªãã·ã§ã³ã®çš®é¡
- ã·ãªã¢ã©ã€ãº - å€éšã¹ãã¬ãŒãžã«ããŒã¿ãæä¹ çã«ä¿åãã
- ã¹ããªãŒã ãšãã¡ã€ã«
- ãã¡ã€ã«
- ã¹ããªãŒã
- æåååŠç
- æååã®åºæ¬æäœ
- ã¢ãžã¥ãŒã«stringutils
- ã¢ãžã¥ãŒã« parseutils
- strscansã¢ãžã¥ãŒã«
- ã¢ãžã¥ãŒã« strformat
- é
åãšã·ãŒã±ã³ã¹
- ã¢ãžã¥ãŒã« sequtils
- ä¹±æ°
- ã¿ã€ã
- ããã·ã¥ããŒãã«
- ãŠãŒã¶å®çŸ©ããã·ã¥å€
- çå€æ§ãšæçæ§
- æ§èœ
- ã¿ãã«ãä»ã®ã³ã³ãããããŒãšããŠäœ¿çšå¯èœ
- ã«ãŠã³ãããŒãã«
- ããã·ã¥ã»ãã
- ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãµãŒãã¹
ã³ãã³ãã©ã€ã³è§£æ
-
æ£èŠè¡šçŸ
- 貪欲ãªãããã³ã°
- ãšã¹ã±ãŒãã·ãŒã±ã³ã¹
- æçµçãªæ³šæäºé
- ããŒã 4: ããã€ãã®ããã°ã©ãã³ã°ã¿ã¹ã¯
- ãœãŒã
- éžæãœãŒã
- æ¿å ¥ãœãŒã
- ã¯ã€ãã¯ãœãŒã
- ããŒãžãœãŒã
-
ã¡ãã£ãšããç·Žç¿
- é£æ¥ããéè€ã®åé€
- é åã®å·®å
- ãã€ããªãµãŒã
- æŽæ°ãšæååã®å€æ
- ã²ãŒã ããã°ã©ãã³ã°ã¯ããªãã®ïŒ
- ãœãŒã
-
ããŒã 5: å€éšããã±ãŒãž
- åŒèšèªã®ããŒã¹
- ããŒã¿ã®åã蟌ã¿
Cligen, ã³ãã³ãã©ã€ã³ã€ã³ã¿ãŒãã§ãŒã¹ãžã§ãã¬ãŒã¿
- åŒèšèªã®ããŒã¹
- ããŒã 6: Nim ã®å¿çš
- ãã¯ããšã¡ã¿ããã°ã©ãã³ã°
- ã¯ããã«
- ãã¯ããã©ã¡ãŒã¿ã®çš®é¡
- åŒçšãšåŒçšdo:æ§æ
- ASTãæåã§æ§ç¯ãã
- ã¢ãµãŒããã¯ã
- ãã©ã°ããã¯ã
- ã€ãã¬ãŒã¿ã®ãã©ã°ããã¯ã
- æ°ããæŒç®åã·ã³ãã«ãçæãããã¯ã
- ããã»ã¹ã®å®è¡
- ã¹ã¬ããããŒã«ã¢ãžã¥ãŒã«
- æ°ããã¹ã¬ãããäœæããããã®threadsã¢ãžã¥ãŒã«ã®äœ¿çš
- ã¹ã¬ããéã®ããŒã¿äº€æã®ããã®ãã£ãã«ã®äœ¿çš
- ã¬ãŒã¹ã³ã³ãã£ã·ã§ã³
- ã¬ãŒããšããã¯
- ã¹ã¬ããã«ãããäŸå€
ããŒã¿ãã¡ã€ã«ã®äžŠåããŒã¹
- async/awaitã䜿ã£ãã³ãŒãå®è¡
- async/awaitã¯ãã«ãã¹ã¬ããããéãïŒ
- Nimã®éåæãã£ã¹ãããã£
- éåæããã·ãŒãžã£
- ç°¡åãªäŸ
- ãã¡ã€ã«ã®ããŠã³ããŒã
- ãã£ãããµãŒãã¢ããªã±ãŒã·ã§ã³
- ã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³
- ã³ã³ã»ãã
- ãã¯ããšã¡ã¿ããã°ã©ãã³ã°
- ãã®ä»
- è¬èŸ
-
Nimble - ããã±ãŒãžãããŒãžã£ãŒ
- ããã±ãŒãžãããŒãžã£ãŒã®ç®ç
- Nimbleã®ããã±ãŒãžã®äœæãšå ¬é
- å ¬éããã±ãŒãž
- ASCIIããŒãã«
- DivãšModã®æäœ
- ããã¹ãã¹ã¿ã€ã«
- ChangeLog
- 2021幎11æ
- 2022幎2æ
- 2022幎3æ
çµæ§ãããããªãé·ããªç¬