Che cos'è il formato di file LOBSTER?
Un file .lobster è un file di codice sorgente scritto nel linguaggio di programmazione Lobster. Lobster è stato progettato da Wouter van Oortmerssen e rilasciato per la prima volta nel 2011 sotto licenza Apache 2.0. Il file contiene testo semplice e leggibile dall'uomo utilizzando una sintassi concisa che si basa sull'indentazione piuttosto che sulle parentesi graffe, quindi a prima vista assomiglia molto al codice .py.
Sotto la superficie, i due linguaggi sono piuttosto diversi. Lobster è tipizzato staticamente con inferenza di tipo flow-sensitive, il che consente di saltare la maggior parte delle annotazioni di tipo pur rilevando gli errori prima dell'esecuzione del programma. Gestisce la memoria con il conteggio dei riferimenti a tempo di compilazione e l'analisi del tempo di vita (lifetime analysis) invece di un garbage collector a tempo di esecuzione. Il linguaggio è di uso generale, ma la sua implementazione di riferimento viene fornita con OpenGL, SDL e altre librerie integrate mirate a giochi e grafica, quindi molti file .lobster fanno parte di piccoli giochi o demo grafiche.
Sicurezza e incolumità
RISCHIO: 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.
Dettagli del formato
in sintesi- 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.
Programmi che aprono file 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. Dettagli tecnici
specifiche approfondite| 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 |
| Rilasciato | 2011 |
| Standard aperto | Sì · royalty-free |
| Specifica | aardappel.github.io |
Conversioni LOBSTER
Domande e risposte della community
chiesto dagli utentiAncora nessuna domanda - sii il primo a chiedere informazioni sui file LOBSTER.
Domande frequenti
Quale programma apre un file .lobster?
Come faccio a eseguire un file .lobster?
lobster yourfile.lobster (o bin/lobster yourfile.lobster) da un terminale.Un file .lobster è uguale a Python?
Posso trasformare un programma .lobster in una build standalone?
lobster --cpp per emettere C++ per una build nativa, o lobster --pak per creare un file pak .lpak che il runtime può eseguire direttamente.