Что такое формат файла JUK?
Файл .juk содержит исходный код на языке Juka - бесплатном языке программирования с открытым исходным кодом, созданном для работы на различных платформах. Файл представляет собой обычный текст в кодировке UTF-8, поэтому он содержит понятные инструкции: объявления функций и классов, циклы, условия, блоки try/catch и вызовы вывода, такие как printLine("test" + 5);.
Juka является преемником более раннего языка под названием Juliar, который использовал расширение .jlr. Проект поддерживается сообществом JukaLang, а его исходный код размещен на GitHub и Codeberg. Внутри программы Juka обрабатываются компонентом JukaCompiler для .NET, который использует библиотеки Microsoft Roslyn для превращения исходного кода в промежуточный код .NET или запускает его напрямую через интерпретатор. Чаще всего с файлами .juk сталкиваются разработчики, изучающие этот язык или работающие с его репозиториями.
Безопасность и защита
РИСК: 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.
Детали формата
в двух словах- 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.
Программы, открывающие файлы JUK
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. Технические подробности
глубокая спецификация| 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) |
| Выпущен | 2020 |
| Последняя версия | Rolling release (JukaCompiler 0.0.x on NuGet) |
| Спецификация | codeberg.org |
Конвертации JUK
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах JUK.
Часто задаваемые вопросы
Что такое файл .juk?
Как открыть файл .juk?
juka yourfile.juk в терминале.Как запустить программу .juk?
./juka yourfile.juk. Запуск juka без аргументов открывает интерактивный REPL.Является ли Juka тем же самым, что и Juliar?
.jlr; проект был переименован в Juka, и новые файлы исходного кода используют .juk.Безопасно ли открывать файл .juk?
Можно ли превратить файл .juk в приложение?
.exe или сборку .dll. Также существуют приложения Juka, которые упаковывают код для мобильных платформ.