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)