Limits and safety
Asomiya programs can only print text and read input. They can’t open files, use the network or run other programs, so running someone else’s code is safe. These limits keep it that way.
| Risk | Protection | Error |
|---|---|---|
| Endless loops | Stops after 10,000,000 steps (--max-steps) | R008 |
| Endless recursion | Call depth limit of 500 (--max-depth) | R009 |
| Deeply nested code | Parser nesting limit | P010 |
| Huge text or lists | Text up to 10 million characters, lists up to 1 million items | R019 |
| Hidden code (“Trojan Source”) | Invisible control and direction characters are rejected in text and comments | L008 |
| Terminal tricks | Error messages show control characters as visible symbols | |
| Look-alike names | Zero-width joiners only allowed inside Assamese letters | L001 |
In the playground
- Programs run in a separate background thread (a Web Worker), so the page never freezes, and the Stop button can end any program.
- Output is always shown as plain text, never as HTML.
- Shared links show the program but never run it until you press Run.
- A strict Content Security Policy blocks any script that isn’t ours, and the page can’t send data anywhere.
Found a security problem? Please report it privately: see SECURITY.md.