Vad är filformatet FJ?
En .fj-fil innehåller källkod för FlipJump, ett esoteriskt eninstruktions-programmeringsspråk skapat av Tom Herman (tomhea) omkring 2021. FlipJump är en «One Instruction Set Computer», eller OISC. Dess enda instruktion har formen a;b, vilket flippar biten på adress a och sedan hoppar till adress b. Denna enda operation är tillräcklig för att göra språket Turing-komplett.
En .fj-fil är vanlig text. Tillsammans med råa a;b-instruktioner kan den innehålla konstanter som x = 6;, etiketter, parametriserade makron, rep(n, i)-upprepningar, namnrymder och uttryck som beräknas vid assemblering. Projektet levereras med ett standardbibliotek uppdelat i namnrymderna bit, hex och stl med makron för inmatning, utmatning, matematik och kontrollflöde. Kommentarer börjar med //.
Säkerhet & trygghet
RISK: 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.
Formatdetaljer
i ett nötskalProgram som öppnar FJ-filer
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 file to edit FlipJump assembly and manage multi-file projects. .fj source in a terminal editor to make quick edits before assembling with fj. Tekniska detaljer
djup specifikation| 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 |
| Släppt | 2021 |
| Senaste version | FlipJump 1.5.0 (June 2026) |
| Specifikation | esolangs.org |
FJ-konverteringar
Frågor & svar
frågat av användareInga frågor än - bli den första att fråga om FJ-filer.
Vanliga frågor
Vad är en .fj-fil?
Hur öppnar jag en .fj-fil?
pip install flipjump och kör fj dinfil.fj.Hur kör jag ett FlipJump-program?
fj från paketet flipjump. fj hello.fj assemblerar och kör i ett steg; fj --asm hello.fj -o hello.fjm endast assemblerar, och fj --run hello.fjm kör den kompilerade filen.Vad är skillnaden mellan .fj och .fjm?
.fj är den mänskligt läsbara FlipJump-källkoden som du skriver, medan .fjm är den binära FlipJump Machine-filen som skapas av assemblern och som tolken kör.