FJ ファイル形式とは?
.fj ファイルには、2021年頃に Tom Herman (tomhea) によって作成された難解な単一命令プログラミング言語、FlipJump のソースコードが含まれています。FlipJump は、単一命令セットコンピュータ(OISC)の一種です。その唯一の命令は a;b という形式で、アドレス a のビットを反転させ、アドレス b にジャンプします。この一つの操作だけで、言語をチューリング完全にするのに十分です。
.fj ファイルはプレーンテキストです。生の a;b 命令に加えて、x = 6; のような定数、ラベル、パラメータ化されたマクロ、rep(n, i) による反復、名前空間、およびアセンブル時の式を保持できます。このプロジェクトには、bit、hex、stl 名前空間に分割された標準ライブラリが付属しており、入力、出力、数学、制御フロー用のマクロが含まれています。コメントは // で始まります。
セキュリティと安全性
リスク: LOWA .fj file is plain-text source code and cannot run on its own; it only executes when assembled and run by the FlipJump interpreter. There are no macros that touch the host OS and no embedded binaries, so opening one in an editor is safe. As with any source code, only assemble and run files from sources you trust.
形式の詳細
概要FJ ファイルを開くプログラム
pip install flipjump, then run fj yourfile.fj to assemble and execute the program, or fj --asm yourfile.fj -o out.fjm to only assemble. .fj file to read and edit the FlipJump assembly with plain-text highlighting and search across the codebase. pip install flipjump, then run fj yourfile.fj in Terminal to assemble and run the program. .fj file to edit the source and inspect the standard-library macros it references. pip install flipjump, then run fj yourfile.fj to assemble and run, or fj --run out.fjm to execute a compiled file. .fj source in a terminal editor to make quick edits before assembling with fj. 技術的詳細
詳細仕様| Encoding | UTF-8 / ASCII plain text |
| Byte order | N/A (text) |
| Container | None; flat text file |
| Compression | None (source is uncompressed text) |
| Typical size | A few hundred bytes to tens of kilobytes |
| Structure | Human-readable FlipJump assembly. Each statement is the single instruction 'a;b' (flip the bit at address a, then jump to address b), with sugar forms like ';J', 'F;' and ';'. Files also contain constant definitions (x = 6;), labels (label:), macro definitions with parameters and temporary labels, rep(n, i) repetitions, namespaces, memory-segment and address-reservation directives, and assembly-time arithmetic/bitwise/logical expressions. Comments start with //. |
| Platforms | Windows, macOS, Linux |
| Notes | The standard library ships three namespaces (bit, hex, stl) with macros for I/O, math, logic, comparison, pointers, and stack/functions. The wflip operation flips multiple bits in a word at once. Source is assembled to the binary .fjm format for execution. |
| Language Paradigm | One Instruction Set Computer (OISC), esoteric |
| Toolchain | flipjump Python package providing the fj command-line assembler and interpreter |
| リリース日 | 2021 |
| 最新バージョン | FlipJump 1.5.0 (June 2026) |
| 仕様書 | esolangs.org |
FJ の変換
コミュニティ Q&A
ユーザーからの質問まだ質問はありません。FJ ファイルについて最初の質問をしてみましょう。
よくある質問
.fj ファイルとは何ですか?
.fj ファイルを開くにはどうすればよいですか?
pip install flipjump で FlipJump ツールチェーンをインストールし、fj yourfile.fj を実行してください。FlipJump プログラムを実行するにはどうすればよいですか?
fj コマンドを使用します。fj hello.fj はアセンブルと実行を一度に行います。fj --asm hello.fj -o hello.fjm はアセンブルのみを行い、fj --run hello.fjm はコンパイルされたファイルを実行します。.fj と .fjm の違いは何ですか?
.fj は人間が記述する読み取り可能な FlipJump ソースであり、.fjm はアセンブラによって生成され、インタプリタが実行するバイナリの FlipJump Machine ファイルです。