SuperCode IDE
Lua 5.4 IDE-hub/Lua 5.4 bitwise, <close> & multi-file
4.9 ★ ECHTE NATIVE LUA 5.4.7 · 64-BITS BITWISE · <CONST> & <CLOSE> · MULTI-MAP

Echte Native Lua 5.4.7 vs. verouderde Lua 5.2 mobiele apps.

De meeste Lua-apps op Google Play draaien om oude Java LuaJ 5.2-engines die vastlopen op moderne syntax. SuperCode voert echte native Lua 5.4.7 offline uit — met 64-bits bitwise-ops (& | ~ << >>), // integerdeling, <const> / <close> en zero-config multi-map require().

5.4.7
Echte Native VM
64-Bit
// & Bitwise-ops
<close>
Scoped RAII
6Dirs
Auto package.path
01 MODERNE LUA 5.4.7-SYNTAX & MULTI-MAP PACKAGE WORKBENCH
64-Bit Bitwise & // · <const> & <close> RAII · Multi-Folder Entry Routing
lua54-modern-pkg/bitwise_64.lua — 64-Bit Bitwise, // & string.pack
Interactieve console-uitvoer
Ready
Genuine Lua 5.4.7 · 64-Bit
UTF-8 LF Ln 7, Col 1
02 KERNMOGELIJKHEDEN

Elke moderne Lua 5.3 & 5.4-taalvernieuwing, offline

Schrijf moderne, standaardconforme Lua 5.4-code en multi-directory-packages zonder syntax-workarounds.

02.1

Native 64-bits integers, // deling & bitwise-operators

Bewerk bitmasks, flags, hashes en tile-coördinaten direct met &, |, ~ (XOR/NOT), <<, >> en // integerdeling — ondersteund door exacte 64-bits signed integers in plaats van float-benaderingen.

& | ~ << >> · // Integerdeling · 64-bits math.type()
02.2

Compile-time <const> & scoped <close> cleanup

Dwing onveranderlijke locals af bij compile-time met <const> en koppel deterministische __close-metamethods via <close>, zodat open bestanden, locks en SQLite-statements automatisch vrijkomen bij scope-exit of fouten.

local x <const> · local f <close> · __close RAII
02.3

Binaire string.pack / unpack & ingebouwde utf8

Codeer en decodeer binaire structs met endianness-specifiers via string.pack, string.unpack en string.packsize, en itereer veilig over meertalige Unicode-strings met utf8.codes, utf8.len en utf8.char.

string.pack / unpack · utf8.codes · Generational GC
02.4

Auto-wired package.path over 6 standaardsubmappen

SuperCode configureert package.path automatisch voor je workspace-root plus src/, lib/, modules/, core/ en utils/ (zowel ?.lua als ?/init.lua) en lost zowel opgeslagen bestanden als niet-opgeslagen tabbladen op.

src/ · lib/ · modules/ · core/ · utils/ · ?/init.lua
02.5

Slimme main.lua / init.lua entry-arbitrage

Werk je in een submodule die eindigt met return M? Tik op Uitvoeren ▶ direct vanuit core/codec.lua zonder tabbladen te wisselen — SuperCode detecteert main.lua of init.lua en start je project naadloos.

Uitvoeren vanuit elk moduletabblad · Auto entry-detectie
02.6

1:1 klikbare tracebacks & generational GC

Draai onder Lua 5.4.7's generational garbage collector met lage latentie, sub-milliseconde cold starts en klikbare stacktraces die direct naar het exacte bestand en regelnummer in multi-mapprojecten springen.

Cross-module stacktraces · ~400µs cold start
Voor telefoons, foldables & tablets · Lichtgewicht 45 MB Lua 5.4 IDE-hub
03 STAPSGEWIJZE WORKFLOW

Multi-bestand Lua 5.4-packages structureren op Android

Schaal moeiteloos op van één script naar een gestructureerde Lua-codebase met meerdere mappen.

STEP 01 Explorer -> New Folder

Maak modulaire mappen aan (src/, lib/, core/)

Plaats je entrypoint in main.lua en organiseer herbruikbare modules in src/, lib/, modules/, core/ of utils/ — zonder LUA_PATH aan te passen.

STEP 02 Lua 5.4 Syntax

Schrijf 64-bits bitwise, <const> en <close>-code

Gebruik moderne //, >>, &, <const> en <close>-constructies met live Error Radar-syntaxcontroles en offline Lua-formatting.

STEP 03 Run ▶ Inside Any Tab

Voer uit vanuit main.lua of een submodule

Druk op Uitvoeren terwijl je een return M-library bewerkt — entry-arbitrage draait automatisch main.lua inclusief niet-opgeslagen wijzigingen.

STEP 04 Visual Git -> Push

Versiebeheer & schone Lua-packages publiceren

Bekijk diffs over je hele modulestructuur in Visual Git en push direct naar GitHub, GitLab of een externe SFTP-host.

Echte Lua 5.4.7 C-runtime · Ondersteunt ?.lua & ?/init.lua · Live buffer-sync App-gids
04 FUNCTIEMATRIX

Native Lua 5.4.7 (SuperCode) vs. verouderde LuaJ 5.2 Android-apps

SuperCode's Native Lua 5.4.7-interpreter overtreft verouderde LuaJ 5.2 Android-apps door echte 64-bits Lua 5.4 offline uit te voeren in ~400 microseconden. Ondersteunt integerdeling (//), bitwise-operators, <const> en <close>-variabelen, string.pack, utf8 en multi-map require() entry-routing.

LUA 5.4.7 VS. VEROUDERDE MOBIELE LUA-INTERPRETERS
Taalfunctie SuperCode (Native Lua 5.4.7) Java LuaJ 5.2 Android-apps Webdemo's (1 bestand) Desktop Lua 5.4
Bitwise & // deling Native & | ~ << >> en 64-bits // Syntaxfout (vereist bit32) Alleen online Ondersteund
<const> & <close> RAII Volledige Lua 5.4-ondersteuning (__close) Niet ondersteund Verschilt per site Ondersteund
Binary Pack & UTF-8 Ingebouwde string.pack/unpack + utf8 Ontbreekt Alleen online Ondersteund
Multi-map require() Auto-koppeling root, src/, lib/, core/, utils/ Faalt bij relatieve paden Alleen losse bestanden Handmatig LUA_PATH
Uitvoeren vanuit module Auto-arbitrage main.lua / init.lua Draait module & toont niets Niet van toepassing Handmatig CLI-doel
Voor telefoons, foldables & tablets · Lichtgewicht 45 MB Google Play
05 VRAGEN & ANTWOORDEN

Veelgestelde vragen

Vragen over Lua 5.4 bitwise-operators, `<close>`-variabelen en multi-map `require()` op Android.

Waarom geven `//` en `&` syntaxfouten in andere Android Lua-apps?
Veel oudere mobiele Lua-apps gebruiken LuaJ, een Java-port gebaseerd op Lua 5.2 voordat native 64-bits integers, `//` integerdeling en bitwise-operators in Lua 5.3/5.4 werden toegevoegd. SuperCode draait echte native Lua 5.4.7.
Hoe werkt multi-bestand `require()` zonder `LUA_PATH` in te stellen?
SuperCode stelt `package.path` automatisch in om zowel de projectroot als `src/`, `lib/`, `modules/`, `core/` en `utils/` te doorzoeken op `?.lua` en `?/init.lua` — en synchroniseert zelfs niet-opgeslagen open tabbladen voor uitvoering.
Wat gebeurt er als ik op Uitvoeren tik vanuit `lib/math_ext.lua` in plaats van `main.lua`?
Als het actieve bestand een moduletabel teruggeeft (`return M`) en er een `main.lua` of `init.lua` in je projectroot staat, voert SuperCode automatisch het entryscript uit zonder dat je van tabblad hoeft te wisselen.
Werkt Lua 5.4 `<close>` ook als er een fout optreedt binnen een blok?
Ja. Net als in standaard desktop Lua 5.4.7 roept elke lokale variabele met `<close>` deterministisch de `__close(self, err)`-metamethod aan, zowel bij normaal verlaten van het blok als bij een `error()`.
06 GIDSEN VOOR LUA 5.4, GAMELOGICA & INGEBOUWDE MODULES

Complete Lua 5.4.7 IDE-documentatiesuite

Navigeer tussen de hoofd-hub van de Offline Lua 5.4 IDE en alle 5 gespecialiseerde Lua-scriptinggidsen.

LUA-HUB Lua 5.4.7 · 11+ mods · Hoofdgids

Offline Lua 5.4.7 Studio overzicht

Hoofdoverzicht van SuperCode's native ~400µs Lua 5.4.7-engine, 11+ ingebouwde offline modules, multi-file require() en . vs : AST-aanvulling.

lua-ide Gids openen →
LUA-01 Entity OOP · Coroutines · ~400µs

Game-scripting, metatables & coroutines

Bouw prototypes van RPG-statemachines, coroutines en metatable OOP-klassen offline voor Luau/Roblox, Love2D en embedded game-engines.

lua-game-scripting-metatables-oop Gids openen →
LUA-02 cjson · lsqlite3 · lfs · crypto

11+ ingebouwde modules (cjson, lsqlite3, lfs)

Importeer cjson, lsqlite3, lfs (LuaFileSystem), crypto/sha2, regex, base64, socket.http en inspect direct out-of-the-box zonder luarocks.

lua-builtin-modules-cjson-sqlite Gids openen →
LUA-03 64-Bit & | << // · <const>/<close>

Lua 5.4 Bitwise, <close> & multi-file

Gebruik echte Lua 5.4 64-bit bitwise-operatoren, integer floor division //, <const>/<close>-variabelen, utf8 en multi-map require()-packages.

lua-54-bitwise-close-multifile Gids bekijken
LUA-04 8 Lua-scripts · . vs : AST · PDF

Leer Lua offline op Android

Beheers Lua-tabellen, closures en pattern matching offline met 8 uitvoerbare sjablonen, . vs : AST-aanvulling, Lua-formatter en PDF-export.

learn-lua-offline-android Gids openen →
LUA-05 crypto · regex · socket.http · lfs

Crypto, Regex, HTTP & bestandsautomatisering

Automatiseer Android-taken in microseconden met native Lua 5.4.7 met BoringSSL crypto/sha2, ICU Unicode-regex, OkHttp socket.http (1 MB OOM-beveiliging), lfs-bestandssysteemoperaties en 1-tik opmaak.

lua-android-crypto-regex-http-automation Gids openen →
6 verbonden Lua 5.4.7-gidsen · Ingebouwde cjson, lfs, lsqlite3, crypto & socket Lua 5.4 IDE-hub