JUK ファイル形式とは?
.jukファイルには、Jukaで記述されたソースコードが含まれています。Jukaは、同じコードを多くのプラットフォームで実行できるように構築された、フリーでオープンソースのプログラミング言語です。ファイルはプレーンなUTF-8テキストであるため、関数やクラスの宣言、ループ、条件分岐、try/catchブロック、および printLine(«test» + 5); のような出力呼び出しなど、人間が読めるステートメントが保持されています。
Jukaは、.jlr拡張子を使用していたJuliarという以前の言語の後継です。このプロジェクトはJukaLangコミュニティによって維持されており、ソースはGitHubとCodebergで公開されています。内部的には、JukaプログラムはJukaCompilerによって処理されます。これはMicrosoftのRoslynライブラリを使用してソースを.NET中間コードに変換するか、インタープリタを介して直接実行する.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 の変換
コミュニティ Q&A
ユーザーからの質問まだ質問はありません。JUK ファイルについて最初の質問をしてみましょう。
よくある質問
.jukファイルとは何ですか?
.jukファイルはどうやって開きますか?
juka yourfile.juk を実行します。.jukプログラムはどうやって実行しますか?
./juka yourfile.juk を実行してください。引数なしで juka を実行すると、代わりに対話型REPLが開きます。JukaはJuliarと同じものですか?
.jlr 拡張子を使用していましたが、プロジェクト名がJukaに変更され、新しいソースファイルは .juk を使用します。.jukファイルを開いても安全ですか?
.jukファイルをアプリにできますか?
.exe や .dll アセンブリにビルドできます。また、モバイルプラットフォーム向けにラップするJukaアプリも存在します。