0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Nim日本語コミュニティの公式サイトをリリース!🎉

0
Posted at

プログラミング言語 Nimの日本語コミュニティ公式HPがリリースされました!🎉

スクリーンショット 2026-03-01 15.26.26.png

Nim日本語コミュニティは
Nimがバージョン1.0.0の頃からDiscordにて活動してきたコミュニティです。
Nimは現在最新バージョン2.2.8となりました。

Nim言語は少なく分かりやすい記述で、C言語に匹敵する実行速度を実現しています。型ありPythonと近く、C, C++, Javascriptのトランスパイラ言語として機能します。

Nim サンプル
import std/strformat
  
type
  Person = object
    name: string
    age: Natural
  
let people = [
  Person(name: "John", age: 45),
  Person(name: "Kate", age: 30)
]
  
for person in people:
  echo(fmt"{person.name} is {person.age} years old")
  
iterator oddNumbers[Idx, T](a: array[Idx, T]): T =
  for x in a:
    if x mod 2 == 1:
      yield x
  
for odd in oddNumbers([3, 6, 9, 12, 15, 18]):
  echo odd
  
import macros, strutils
  
macro toLookupTable(data: static[string]): untyped =
  result = newTree(nnkBracket)
  for w in data.split(';'):
    result.add newLit(w)
  
const
  data = "mov;btc;cli;xor"
  opcodes = toLookupTable(data)
  
for o in opcodes:
  echo o

もちろん、この公式サイトもNim言語で実装されており
フレームワークにはmedyさんのBasolatoを使用しています。
コンパイルされたバイナリがCloudRun上で高速に動作しています。

これから勉強会やイベントの開催の情報、
その他Nim言語の公式アップデートについての情報をまとめたり、
チュートリアルを更新していく予定です!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?