Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
3
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do I declare a variable in ling-lang?" }, { "role": "assistant", "content": "Use `bind` to create a name-to-value binding:\n\n```ling\nbind x = 42\nbind...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's the entry point of a ling-lang program supposed to look like?" }, { "role": "assistant", "content": "Every Ling program's entry point is a binding na...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Explain what a `do` block is in Ling." }, { "role": "assistant", "content": "`do { ... }` is a block *expression* — it runs its statements in order and eval...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How does Ling write functions? Show me the basic form." }, { "role": "assistant", "content": "With the `fn` keyword, a parameter list, and a `{ }` body whos...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Does Ling support typed function signatures?" }, { "role": "assistant", "content": "Yes — parameters can carry `: Type` annotations and the return type foll...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does an `if`/`else` look like in ling-lang, and can I use it as an expression?" }, { "role": "assistant", "content": "Ordinary branch syntax, no parent...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do while loops work in Ling?" }, { "role": "assistant", "content": "`while <condition> { ... }`, re-binding the loop variable each iteration since Ling ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's the syntax for a for loop over a range in ling-lang?" }, { "role": "assistant", "content": "`for <var> in <start>..<end> { ... }`. The range is exclu...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Can Ling's `for` loop iterate over something other than a numeric range?" }, { "role": "assistant", "content": "Yes — `for x in <list>` iterates elements di...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What is `form` used for in Ling?" }, { "role": "assistant", "content": "`form` declares a record/struct type — a name plus a list of field names:\n\n```ling...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do enums / tagged variants work in Ling — what's the `choose` keyword for?" }, { "role": "assistant", "content": "`choose` declares a set of named varia...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does the `use` keyword do in a .ling file?" }, { "role": "assistant", "content": "`use \"path\"` imports another Ling module/file by path (relative, no...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What is `mod` for, and how do I call something inside one?" }, { "role": "assistant", "content": "`mod` groups related functions into a namespace, accessed ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do comments work in Ling — is it `#` or `//`?" }, { "role": "assistant", "content": "Both are valid comment markers in real Ling source. `#` line commen...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's this about Ling not having a unary minus operator?" }, { "role": "assistant", "content": "Correct — Ling has no prefix `-` operator. You can't write ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What operators does Ling support?" }, { "role": "assistant", "content": "Standard arithmetic and comparison operators, all spelled the same across every lan...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do I write a list literal and index into it in Ling?" }, { "role": "assistant", "content": "Square brackets, comma-separated, and `[i]` to index (zero-b...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What literal values does Ling recognize out of the box?" }, { "role": "assistant", "content": "- Booleans: `true` / `false`\n- Result markers: `ok` / `bad`\...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What built-in types does Ling have?" }, { "role": "assistant", "content": "Six built-in types: `number` (integer or float, always f64 under the hood for mat...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "I keep seeing this in Ling docs — what is the 'multilingual keyword aliasing' feature everyone talks about?" }, { "role": "assistant", "content": "It's Ling...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Show me the same tiny Ling program in two different keyword languages to prove this multilingual thing is real." }, { "role": "assistant", "content": "Here'...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `p.x` mean when `p` is a `form` value — is `.` a general field-access operator?" }, { "role": "assistant", "content": "Yes. `.` accesses a named f...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `list_new()` do?" }, { "role": "assistant", "content": "Creates and returns a new, empty list. It's the starting point for building up a list incr...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Explain `list_push` — does it mutate the list in place?" }, { "role": "assistant", "content": "No — `list_push(list, value)` returns a *new* list with `valu...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `list_get(lst, i)` do, and is it zero-indexed?" }, { "role": "assistant", "content": "`list_get(list, index)` returns the element at `index`, zero...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's the difference between `.len` and `str_len`/`list_len` in Ling?" }, { "role": "assistant", "content": "They return the same thing, just via different...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `substr` do in Ling, and what are its arguments?" }, { "role": "assistant", "content": "`substr(s, start, len)` returns `len` characters of `s` st...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `trim` do?" }, { "role": "assistant", "content": "`trim(s)` returns `s` with leading and trailing whitespace stripped:\n\n```ling\nbind clean = tr...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `split` do in Ling?" }, { "role": "assistant", "content": "`split(s, separator)` breaks a string into a list of pieces on every occurrence of `sep...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `str_replace` do?" }, { "role": "assistant", "content": "`str_replace(s, from, to)` returns a copy of `s` with every occurrence of `from` replaced...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `starts_with` check, and what does it return?" }, { "role": "assistant", "content": "`starts_with(s, prefix)` returns a boolean — `true` if `s` be...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's `ends_with` for?" }, { "role": "assistant", "content": "`ends_with(s, suffix)` returns `true` if the string ends with `suffix`. Real usage from Ling'...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `str_strip_prefix` do, and how is it different from `starts_with`?" }, { "role": "assistant", "content": "`starts_with(s, prefix)` only tests and ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `str_find` return?" }, { "role": "assistant", "content": "`str_find(s, needle)` returns the character index of the first occurrence of `needle` in...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `html_escape` do and when would I use it?" }, { "role": "assistant", "content": "`html_escape(s)` escapes characters that are special in HTML (lik...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What is `json_escape` for?" }, { "role": "assistant", "content": "`json_escape(s)` escapes a string so it's safe to embed inside a JSON string literal (esca...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `format` do and what placeholder syntax does it use?" }, { "role": "assistant", "content": "`format(template, args...)` builds a string by substit...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "How do I convert a string to a number and back in Ling?" }, { "role": "assistant", "content": "`to_number(s)` parses a string into a number, and `to_str(n)`...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What print-related builtins does Ling have?" }, { "role": "assistant", "content": "`print` (aliased `println`) writes value(s) to stdout, accepting multiple...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What math builtins does Ling ship with?" }, { "role": "assistant", "content": "All the usual suspects, operating on `number` (f64) with angles in radians: `...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What do `is_num`, `is_str`, `is_list`, and `is_bool` do?" }, { "role": "assistant", "content": "None of those exist in ling-lang — there are no runtime type...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What does `str_contains` (or the `.contains` method form) check?" }, { "role": "assistant", "content": "It tests whether a string contains a given substring...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a ling-lang function that returns the first 10 characters of a string." }, { "role": "assistant", "content": "```ling\nfn first_10(s) {\n return su...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a for loop that prints the numbers 0 through 9 in Ling." }, { "role": "assistant", "content": "```ling\nbind start = do {\n for i in 0..9 {\n ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "I need a recursive Fibonacci function in Ling with type annotations." }, { "role": "assistant", "content": "```ling\nfn fibonacci(n: number) -> number {\n ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write an iterative (non-recursive) Fibonacci function in Ling — I want it fast." }, { "role": "assistant", "content": "```ling\nfn fib_iter(n: number) -> nu...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Define a Point struct in Ling with x and y fields, and write code that creates one and prints both fields." }, { "role": "assistant", "content": "```ling\nf...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that builds a greeting string by concatenation, mixing a name and a count." }, { "role": "assistant", "content": "```ling\nfn greet(name, c...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Same greeting, but using `format` instead of `+` concatenation." }, { "role": "assistant", "content": "```ling\nfn greet(name, count) {\n return format(\...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that builds a list of squares from 0 to 9 using the list builtins." }, { "role": "assistant", "content": "```ling\nfn squares() {\n bind...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that sums all the numbers in a list, walking it with a while loop." }, { "role": "assistant", "content": "```ling\nfn sum_list(nums) {\n ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that checks whether a string is a safe filename — no slashes, no `..`, no spaces." }, { "role": "assistant", "content": "```ling\nfn is_saf...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that extracts a Bearer token from an Authorization header string." }, { "role": "assistant", "content": "```ling\nfn extract_bearer_token(h...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a Ling function that builds an HTML unordered list from a list of strings, escaping each item." }, { "role": "assistant", "content": "```ling\nfn html...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a Ling function that builds a minimal JSON array of objects from a list of package records with `name` and `description` fields." }, { "role": "assistant"...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function `t(lang, en, th)` that picks between an English and a Thai string based on a language code." }, { "role": "assistant", "content": "```ling\...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a state-machine enum in Ling for a traffic light, with a function that returns the next state." }, { "role": "assistant", "content": "```ling\nchoose ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a `mod` in Ling that wraps a couple of time-related helper functions, and call one from `start`." }, { "role": "assistant", "content": "```ling\nmod c...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that trims a line and checks if it starts with a function definition keyword, in either English or Thai." }, { "role": "assistant", "conten...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that splits a comma-separated string into a list and trims whitespace off each piece." }, { "role": "assistant", "content": "```ling\nfn sp...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a rate limiter helper: return true if `count` is below `max_allowed`, else false." }, { "role": "assistant", "content": "```ling\nfn under_limit(count...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a small program that opens a window and draws a filled circle, using the `do` block entry point." }, { "role": "assistant", "content": "```ling\nbind ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that safely divides two numbers, returning 0 instead of crashing on division by zero." }, { "role": "assistant", "content": "```ling\nfn sa...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that clamps a health value between 0 and 100 using a math builtin." }, { "role": "assistant", "content": "```ling\nfn clamp_health(hp) {\n ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that builds a rate-limit key by combining an action name and client IP, falling back when the IP is empty." }, { "role": "assistant", "cont...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that counts how many times a substring appears at the start of any line in a block of text." }, { "role": "assistant", "content": "```ling\...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that strips a `.ling` file extension off a filename." }, { "role": "assistant", "content": "```ling\nfn strip_ling_ext(name) {\n return ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Write a function that returns true only if a value is a non-empty string." }, { "role": "assistant", "content": "```ling\nfn is_nonempty_str(v) {\n if is...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This crashes: `bind negative = -x`. What's wrong?" }, { "role": "assistant", "content": "Ling doesn't have a unary minus operator, so `-x` isn't valid synta...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why doesn't my list have the item I pushed?\n\n```ling\nbind items = list_new()\nlist_push(items, \"hello\")\nprint(items.len) # prints 0\n```" }, { "role": "...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Fix this — it won't parse:\n\n```ling\nfn add(a, b) {\n a + b\n```" }, { "role": "assistant", "content": "The function body's closing brace is missing. I...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's wrong with this for loop?\n\n```ling\nfor i 0..10 {\n print(i)\n}\n```" }, { "role": "assistant", "content": "It's missing the `in` keyword betwee...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This `match` never hits the `Idle` case — what's wrong?\n\n```ling\nreturn match state {\n Idle => \"IDLE\",\n Walk => \"WALK\",\n _ => \"???\",\n}\n```" ...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "My `while` loop never terminates:\n\n```ling\nbind i = 0\nwhile i < 10 {\n print(i)\n i = i + 1\n}\n```\nWhat's wrong?" }, { "role": "assistant", "con...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why does field access fail here?\n\n```ling\nform Point { x, y }\nbind start = do {\n bind p = Point(3, 4, 5)\n print(p.x)\n}\n```" }, { "role": "assistan...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Is this substr call correct if I want just the first 5 characters of `s`?\n\n```ling\nbind head = substr(s, 0, 5)\n```" }, { "role": "assistant", "content":...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This is supposed to import a sibling module but nothing gets loaded:\n\n```ling\nload \"controllers/home\"\n```" }, { "role": "assistant", "content": "`load...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why does this `if`-as-expression fail to bind a value?\n\n```ling\nbind label = if score > 90 {\n \"A\"\n}\n```" }, { "role": "assistant", "content": "An...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "What's wrong with this string check?\n\n```ling\nif name.equals(\"admin\") {\n print(\"blocked\")\n}\n```" }, { "role": "assistant", "content": "`equals`...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This function never returns the right thing — help me spot the bug:\n\n```ling\nfn is_safe_name(s) {\n if s.contains(\"/\") {\n false\n }\n return true\...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why does this module call fail?\n\n```ling\nmod clock {\n fn current_hour() {\n return 14\n }\n}\n\nbind h = clock.current_hour()\n```" }, { "role"...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This range loop skips the last element I want — why?\n\n```ling\nbind items = [10, 20, 30]\nfor i in 0..items.len {\n print(list_get(items, i))\n}\n```\nIs the range...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Fix this JSON-building snippet — the output has invalid quoting:\n\n```ling\nbind body = \"{\\\"name\\\":\\\"\" + user.name + \"\\\"}\"\n```" }, { "role": "assi...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why doesn't this print anything useful?\n\n```ling\nbind start = do {\n bind msg = \"hi\"\n}\nprint(msg)\n```" }, { "role": "assistant", "content": "`msg...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This HTML output isn't escaped and I'm worried about XSS — what's the fix?\n\n```ling\nbind html = \"<p>\" + comment.body + \"</p>\"\n```" }, { "role": "assista...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "Why does this comparison always evaluate as true?\n\n```ling\nif valid = true {\n print(\"ok\")\n}\n```" }, { "role": "assistant", "content": "`=` is the...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language." }, { "role": "user", "content": "This `choose`/`match` is missing something the compiler complains about — what?\n\n```ling\nchoose Light { Red, Yellow, Green }\n\nfn next(state) {\n return match st...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What does ling-core do?" }, { "role": "assistant", "content": "ling-core is the foundation of the Ling language — the types, val...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "I need post-quantum encryption in a Ling project. Which crate should I reach for?" }, { "role": "assistant", "content": "Use lin...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What's the difference between ling-net and ling-http?" }, { "role": "assistant", "content": "ling-net is the general async netwo...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "How does ling-web relate to ling-http?" }, { "role": "assistant", "content": "ling-web is a Flask-flavored layer built on top of...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "Which crate would I use to add 3D rendering to a ling-lang game?" }, { "role": "assistant", "content": "ling-graphics. It's a 3D...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What is ling-game and what does it provide?" }, { "role": "assistant", "content": "ling-game is Ling's game engine crate — an En...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "I want spatial audio and tone synthesis for a Ling game. What crate handles that?" }, { "role": "assistant", "content": "ling-au...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What's the difference between ling-audio and ling-mic?" }, { "role": "assistant", "content": "ling-audio is the output/synthesis...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What does ling-music do, and how is it different from ling-audio?" }, { "role": "assistant", "content": "ling-music is a much hi...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "Which crate simulates rigid bodies, soft bodies, and fluids in Ling?" }, { "role": "assistant", "content": "ling-physics. It's a...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "How do ling-physics and ling-gpu relate?" }, { "role": "assistant", "content": "ling-gpu is a small GPU compute backend crate th...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "What does ling-ai provide for a Ling program?" }, { "role": "assistant", "content": "ling-ai is Ling's tensor-math, neural-netwo...
[ { "role": "system", "content": "You are a coding assistant for the Ling programming language and its ecosystem of crates." }, { "role": "user", "content": "I want NPCs with behavior-tree AI and unique dialog voices. What should I use?" }, { "role": "assistant", "content": "ling-ai co...
End of preview. Expand in Data Studio

Ling-Lang Chat SFT Dataset

Instruction-tuning data (chat/messages JSONL) for fine-tuning LLMs to help with the Ling programming language — a multilingual systems programming language with keyword aliases in 15 human languages, a Cranelift JIT/AOT + tree-walking interpreter + bytecode VM, and a ling-* crate ecosystem.

Used to fine-tune zai-org/GLM-4-32B-0414 via QLoRA for chat.ling-lang.org.

Categories

File Topic
01_syntax.jsonl Core ling-lang syntax (use, bind, fn, do, no semicolons)
02_crates.jsonl The ling-* crate ecosystem reference
03_shell_contrast_and_workflow.jsonl Ling-lang vs. shell syntax, real CLI workflows
04_translation.jsonl General + ling-lang-keyword translation
05_disambiguation.jsonl Corrects the "ling-lang is a linguistics/NLP tool" misconception
06_corrections.jsonl Hand-written corrections (import→use, let→bind, real keyword aliases)
07_builtins.jsonl Complete verified builtin function reference, with negative training for hallucinated builtins
08_multilingual_keywords.jsonl Complete 15-language keyword table, language-consistency guidance
09_game_patterns.jsonl Real game-code idioms mined from LingForFun and soul-symphony-ling
10_cli_build.jsonl Real ling CLI subcommands/flags and Cargo build features

Format

Each line is a JSON object: {"messages": [{"role": "system", ...}, {"role": "user", ...}, {"role": "assistant", ...}]}, the standard OpenAI-style chat/messages SFT format consumed directly by trl's SFTTrainer.

Notes

Every fact in this dataset was verified against the authoritative Ling interpreter/compiler source (lexer, parser, builtin dispatch table) rather than docs or marketing copy, specifically to correct hallucinated syntax/builtins/keywords observed in earlier fine-tuning rounds.

Downloads last month
20