1
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?

プログラミング言語 Poron

1
Posted at

Poron プログラミング言語

Poron 1 from Outer School
Copyright (C) 2002-2026 Masashi Astro Tachibana astro@apolloron.org

現在、新しいプログラミング言語 Poron を作っています。現在のバージョンは、 1.0.0RC60 です。ホームページは、 https://apolloron.org/poron/ です。

Poronは、C言語やJavaScriptに近い文法を持つ言語であり、スタックベースのPコードインタプリタです。通常はJITで動作します。JSONをネイティブに扱えます。

汎用の言語で、C言語やJavaScriptに似ています。汎用ですが、NN系ライブラリを充実させています。

基本的には、以下のように書きます。

println("Hello World!");

main関数があれば、そこが開始点になります。

func hw() {
    println("Hello World!");
}

int func main() {
    for (var i = 0; i < 10; i++) {
        hw();
    }
    return 0;
}

JavaScriptとの違いはおおよそ以下です。

  • function が func
  • 変数は var (または int とか string とか)で定義。letは未定義です。
  • JSON がネイティブで扱えますが、関数は JSON に代入できません
  • クラスは、Poronでは作成できません。C++で定義することはできます。
  • 速い(独自ベンチでは、Node.jsより高速、省メモリです)

完全なドキュメントは、https://apolloron.org/docs/ にあります。

2026年末リリース目標です。頑張ります!

1
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
1
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?