Vad är filformatet JUK?
En .juk-fil innehåller källkod skriven i Juka, ett fritt programmeringsspråk med öppen källkod byggt för att köra samma kod på många plattformar. Filen är vanlig UTF-8-text, så den innehåller läsbara instruktioner: funktions- och klassdeklarationer, loopar, villkor, try/catch-block och utmatningsanrop som printLine(«test» + 5);.
Juka är efterföljaren till ett tidigare språk kallat Juliar, som använde filändelsen .jlr. Projektet underhålls av JukaLang-communityn och dess källkod finns på GitHub och Codeberg. Under huven hanteras Juka-program av JukaCompiler, en .NET-komponent som använder Microsofts Roslyn-bibliotek för att omvandla källkod till .NET-intermediärkod, eller kör den direkt via en interpretator. De flesta som stöter på en .juk-fil är utvecklare som testar språket eller arbetar med dess arkiv.
Säkerhet & trygghet
RISK: MEDIUMA .juk file is plain-text source code and cannot execute on its own by being opened in an editor. The risk is in running it: Juka code compiled or interpreted through the Juka runtime can perform any action the language allows, so treat files from untrusted sources like any other unreviewed script and read the code before running it.
Formatdetaljer
i ett nötskal- KDE JuK music manager - JuK is a KDE audio jukebox and music player. It manages libraries and playlists but does not use a .juk data file; the name is unrelated to the Juka language.
- JUKU BASIC - A BASIC-like language for the JUKU computer exists as a hobby project; unrelated to Juka and not the dominant meaning of the .juk extension.
Program som öppnar JUK-filer
juka yourfile.juk in a terminal to execute the file, or launch juka alone for the interactive REPL. .juk file to read and edit the source as plain text with syntax highlighting from a generic language mode. ./juka yourfile.juk from Terminal to compile and run the file. ./juka yourfile.juk to execute the source, or ./juka for the REPL. new JukaCompiler.Compiler().JukaCompile(fileName, (isFile: true)); to compile a .juk file programmatically. .juk file to inspect or edit the plain-text source. .juk snippets in a notebook. Tekniska detaljer
djup specifikation| Encoding | UTF-8 / ASCII plain text |
| Byte order | Not applicable (text) |
| Container | None (flat text file) |
| Typical size | Under 100 KB for a single source module |
| Structure | Human-readable Juka source code: function and class declarations, variable assignments, loops (for/while), conditionals, try/catch blocks, and calls such as printLine(). Statements terminate with a semicolon. |
| Integrity | None built in |
| Platforms | Windows, macOS, Linux, FreeBSD, Android |
| Initial Release Full | 2020 (evolved from the earlier Juliar language, .jlr) |
| Notes | Juka source is compiled by JukaCompiler, which uses the Microsoft.CodeAnalysis (Roslyn) libraries to emit .NET intermediate code, or run directly through the Juka interpreter/REPL. The compiler targets .NET 8 and is distributed on NuGet as JukaCompiler. |
| Language Paradigm | General-purpose, imperative with functions and classes |
| Runtime | .NET 8 (cross-platform) |
| Släppt | 2020 |
| Senaste version | Rolling release (JukaCompiler 0.0.x on NuGet) |
| Specifikation | codeberg.org |
JUK-konverteringar
Frågor & svar
frågat av användareInga frågor än - bli den första att fråga om JUK-filer.
Vanliga frågor
Vad är en .juk-fil?
Hur öppnar jag en .juk-fil?
juka dinfil.juk i en terminal.Hur kör jag ett .juk-program?
./juka dinfil.juk. Om du kör juka utan argument öppnas istället en interaktiv REPL.Är Juka samma sak som Juliar?
.jlr; projektet bytte namn till Juka och nya källkodsfiler använder .juk.Är det säkert att öppna en .juk-fil?
Kan jag göra om en .juk-fil till en app?
.exe eller en .dll-assembly, och det finns Juka-appar som paketerar det för mobila plattformar.