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)