Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
perchanceยทPerchance - Create a Random Text Generatorbytehwabb1t

Bloated Export

Hi all, just a quick question, Why does a file with just:

...turn into a 613,141-character bloated blob with embedded:

๐Ÿง  NLP fallback engines, ๐ŸŒ Cloudflare callouts, ๐Ÿงพ Regex dictionaries, ๐Ÿงฉ Tag/ID trackers, ๐Ÿค– Language corpus logic, ๐Ÿ“š Word class classifiers (Plural, Ordinal, Comparative)

Is this intentional for runtime fallback purposes, or just bundled by default for safety? Genuinely curious if there's a flag to trim it down. Don't get me wrong i love the site and unique prompt building and design, It just feels a bit odd seeing all that baked into a blank export โ€” especially when it includes tracking and a slimline corpus.

View original on lemmy.world
2

3 replies

lemmy.world

Cloudflare callouts

Good catch, thanks. Cloudflare seems to inject its DDoS/analytics stuff into any HTML page returned by the server, regardless of Content-Disposition header which seems like a bug on their end. I'm just manually stripping for now. You'll need to edit your generator to clear the download cache.

As for the others, yeah, it embeds the whole perchance engine, since it can't know in advance (in the general case, at least) whether your code will use any particular perchance engine feature at runtime (JavaScript is a very dynamic language). The v2 engine will be a lot more efficient both in terms of size and speed, but that's unfortunately not going to land any time soon.

4

Thanks for the tip ๐Ÿ˜ yeah its nothing too troublesome if you view the code just when you create a local project and download its bloated and linked, but saving your project raw helps, see this audio player i made,

its nice and simple and using the platform is a perfect sandbox to tryout concepts like this Multi suite i was working on

and i modified the Ai Chat section [https://perchance.org/perchance-org-ai-chat-v2](Ai Chat Main).

So its great for awesome projects to sandbox and appreciate the platform.

.sorry for all the redits, the urls above just would not display and kept redirecting here, anyways i made this too.. just copy n paste

https://perchance.org/per-ception

2

You reached the end

Bloated Export | Spyke