We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Talk:Interpret Esolangs Online

From Esolang
Jump to navigation Jump to search

URL length limit on GitHub

I wasn't aware that GitHub pages had a URL length limit, but I'm curious now: Would it make sense to support using the hash of the URL? The server will never see it, and thus Github Pages can't have a length limit on it (browsers might though). Sgeo (talk) 04:13, 28 August 2023 (UTC)

Reply from None1
Unfortunately, it's impossible to restore the URL from its hash (because there are a finite number of hash results and an infinite number of possible text). Isn't it?

Honestly, I'm not very good at web development, so if I say something wrong, you can reply in the talk page.

Note: Currently, Interpret Esolangs Online encodes URL's via base64 for the permanent link, you can see that from the source code. --None1 (talk) 05:48, 28 August 2023 (UTC)

By "hash", I meant window.location.hash, which is # and whatever follows it in the URL, as opposed to window.location.search.

https://developer.mozilla.org/en-US/docs/Web/API/Location/hash

Sgeo (talk) 07:10, 28 August 2023 (UTC)

But the permanent link needs to contain 3 parts of data: the language name, the program and the input, e.g.: https://none-none1.github.io/Interpret-Esolangs-Online/?lang=YnJhaW5mdWNr&code=LFsuLF0_&input=aW5wdXQ_ is the permanent link of a brainfuck cat program. Also, there are a lot of permanent links of Interpret Esolangs Online on this wiki, I'll have to change all the permanent links if modifying the method of encoding URLs. --None1 (talk) 08:16, 28 August 2023 (UTC)

Thanks for your advice, now Interpret Esolangs Online has supported both hash and search for permalinks! --None1 (talk) 08:24, 17 February 2024 (UTC)

New features

A new feature will be added to Interpret Esolangs Online these days: Python code interpretation via PyScript, and ABCDXYZ and other esolangs will be added in this way. --None1 (Nope.) 02:00, 22 June 2025 (UTC)

new update is droping!
User:Gaham (Discord:mrglebsun)

Finished. --None1 (Nope.) 01:27, 29 June 2025 (UTC)
I wanna create a fork. Also, I still wondered how you execute Python in HTML/JS. -- i  s  l  p  t  n  g  04:20, 30 June 2025 (UTC)
I said it in the README: using PyScript. I first load the corresponding scripts for PyScript, then create a python script element and PyScript automatically executes the Python code. I add some code in the end of the original Python code, in order to make it read from the input box and output to the output box and error box. You can see how I did these in the pyexec.js file. --None1 (Nope.) 00:30, 1 July 2025 (UTC)

[object Promise]

I'm trying to add my language to this project, but the interpreter is written in Python. The problem is I keep getting [object Promise]. Why does this happen and how can I fix it? --Win7HE (talk) 05:26, 23 July 2026 (UTC)

I changed a lot of code yesterday for the JS files in Python interpreters failed to load before the event DOMContentLoaded after I added a new esolang Brain-Flak (which is interpreted in C++). The Python execution template has been change radically, too. Now I tested that the existing esolangs in Python worked correctly, so show me your Python file and JS file if you're still facing the issue. --None1 (Nope.) 09:15, 23 July 2026 (UTC)
I found the bug: your JS file is wrong:
async function methemetics(program/*should be 'code'*/, input){
    let resp=await fetch('methemetics.py');
    var methemetics_py_code=await resp.text();
    execute(methemetics_py_code,code,input,'methemetics',['re']);
}
window.methemetics=methemetics;

--None1 (Nope.) 10:24, 23 July 2026 (UTC)

I've fixed the bug for you, now your esolang can be interpreted correctly. --None1 (Nope.) 10:30, 23 July 2026 (UTC)