LOBSTER ファイル形式とは?
.lobster ファイルは、Lobster プログラミング言語で書かれたソースコードファイルです。Lobster は Wouter van Oortmerssen 氏によって設計され、2011年に Apache 2.0 ライセンスの下で最初にリリースされました。このファイルは、中括弧ではなくインデントに依存する簡潔な構文を使用した、人間が読めるプレーンテキストを保持しているため、一見すると .py コードによく似ています。
表面上は似ていますが、これら2つの言語は大きく異なります。Lobster はフローに敏感な型推論を備えた静的型付け言語であり、プログラムを実行する前にミスをキャッチしながら、ほとんどの型注釈を省略できます。実行時のガベージコレクタの代わりに、コンパイル時の参照カウントとライフサイクル分析によってメモリを管理します。この言語は汎用ですが、そのリファレンス実装には OpenGL、SDL、およびゲームやグラフィックスを目的としたその他の組み込みライブラリが付属しているため、多くの .lobster ファイルは小さなゲームやグラフィカルなデモの一部となっています。
セキュリティと安全性
リスク: LOWA .lobster file is plain-text source code and cannot run on its own by double-clicking. It only does something when executed by the Lobster compiler, and like any script it can perform whatever actions its code contains, so read unfamiliar files before running them.
形式の詳細
概要- Lobster ETL / test framework (SAP) - Some SAP LO extraction and QA tooling uses the name Lobster, but that is unrelated to this source-code format.
- Lobster_data / Lobster Integration - Lobster GmbH sells data-integration software called Lobster; its projects are not saved as .lobster source files.
LOBSTER ファイルを開くプログラム
lobster yourfile.lobster, or build/pack it using --cpp or --pak. lobster yourfile.lobster from a terminal to execute the program. bin/lobster yourfile.lobster to execute the program. 技術的詳細
詳細仕様| Encoding | UTF-8 plain text |
| Container | None (flat source text) |
| Typical size | A few hundred bytes to tens of kilobytes |
| Structure | Human-readable Lobster source using significant indentation instead of braces, in the style of Python. Contains function and struct definitions, imports of other .lobster modules, and statements. Statically typed with flow-sensitive type inference, so most types are not written out explicitly. |
| Integrity | None built in |
| Platforms | Windows, macOS, Linux, Web (WebAssembly) |
| Notes | The reference implementation runs a .lobster file through a JIT/interpreter by default. It can also emit a .lpak bytecode pakfile (--pak) or transpile the program to a .cpp file (--cpp) for shipping builds. The engine bundles OpenGL, SDL and related batteries aimed at games and graphics. |
| Syntax Style | Python-esque, indentation-based |
| Type System | Static, flow-sensitive type inference with specialization |
| Memory Management | Compile-time reference counting with lifetime analysis |
| リリース日 | 2011 |
| オープンスタンダード | はい · ロイヤリティフリー |
| 仕様書 | aardappel.github.io |
LOBSTER の変換
コミュニティ Q&A
ユーザーからの質問まだ質問はありません。LOBSTER ファイルについて最初の質問をしてみましょう。
よくある質問
.lobster ファイルを開くプログラムは何ですか?
.lobster ファイルを実行するにはどうすればよいですか?
lobster yourfile.lobster(または bin/lobster yourfile.lobster)を実行します。.lobster ファイルは Python と同じですか?
.lobster プログラムをスタンドアロンのビルドにできますか?
lobster --cpp を使用してネイティブビルド用の C++ を出力するか、lobster --pak を使用してランタイムが直接実行できる .lpak パックファイルを作成します。