Co to jest format pliku FJ?
Plik .fj zawiera kod źródłowy dla FlipJump, ezoterycznego języka programowania o jednej instrukcji, stworzonego przez Toma Hermana (tomhea) około 2021 roku. FlipJump to komputer z jednym zestawem instrukcji (OISC). Jego pojedyncza instrukcja ma postać a;b, która odwraca bit pod adresem a, a następnie skacze pod adres b. Ta jedna operacja wystarczy, aby język był kompletny w sensie Turinga.
Plik .fj jest zwykłym tekstem. Oprócz surowych instrukcji a;b może zawierać stałe, takie jak x = 6;, etykiety, makra z parametrami, powtórzenia rep(n, i), przestrzenie nazw oraz wyrażenia czasu asemblacji. Projekt dostarcza bibliotekę standardową podzieloną na przestrzenie nazw bit, hex i stl z makrami do obsługi wejścia, wyjścia, matematyki i sterowania przepływem. Komentarze zaczynają się od //.
Bezpieczeństwo
RYZYKO: 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.
Szczegóły formatu
w pigułceProgramy otwierające pliki 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 file to edit FlipJump assembly and manage multi-file projects. .fj source in a terminal editor to make quick edits before assembling with fj. Szczegóły techniczne
specyfikacja| 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 |
| Wydano | 2021 |
| Najnowsza wersja | FlipJump 1.5.0 (June 2026) |
| Specyfikacja | esolangs.org |
Konwersje FJ
Pytania i odpowiedzi społeczności
pytania użytkownikówBrak pytań - bądź pierwszą osobą, która zapyta o pliki FJ.
Najczęściej zadawane pytania
Co to jest plik .fj?
Jak otworzyć plik .fj?
pip install flipjump i uruchom fj twójplik.fj.Jak uruchomić program FlipJump?
fj z pakietu flipjump. fj hello.fj asembluje i uruchamia program w jednym kroku; fj --asm hello.fj -o hello.fjm tylko asembluje, a fj --run hello.fjm wykonuje skompilowany plik.Jaka jest różnica między .fj a .fjm?
.fj to czytelny dla człowieka kod źródłowy FlipJump, który piszesz, natomiast .fjm to binarny plik FlipJump Machine wyprodukowany przez asembler, który jest uruchamiany przez interpreter.