forresto / turtle-svg

JavaScript turtle graphics to SVG for laser cutting = LASER TURTLES!!!
http://forresto.github.com/turtle-svg/
26 stars 8 forks source link

Maximum code length? #6

Open forresto opened 11 years ago

forresto commented 11 years ago

Need to do some tests to see how much code can be reasonably zipped into the URL.

At a certain level maybe seamlessly save to an anon Gist and give a #gist/id URL.

craftoid commented 11 years ago

According to StackOverflow URL size is limited to 2,083 chars, at least for Internet Explorer. http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url

I also found this, which is very pretty much outdated: http://www.boutell.com/newfaq/misc/urllength.html

Would be interesting to know the current state of affairs...

forresto commented 11 years ago

I couldn't find a maximum for t.co, which would be a good cutoff.

360 LOC http://forresto.github.com/turtle-svg/#code/7dOxCsIwEAbgPU9xY2I0TQpO1UnrZEWkLxBoix3awDWtg/jupk/R5V8S+Dn44I4/y+jJ7TTRpbqSpvJRly+KgXgejegCy8Uz9WdbUH9y1q6/1oq+gijOPN7bLkpr3KHy8W3Yj00YpNpZk6sijQxhaW+BP54b6VLyE2KN6iDzo91TelIIBQqUbRWBDUGBgq5jQ1CgoOu4AxQo6DruAAUKug4FCpQtlD8=

720 LOC http://forresto.github.com/turtle-svg/#code/7di9DoIwFIbhvVdxxiIKhcRJnRQnMcZwAyRAZIAm5cfBeO+WwWtgeTu0yUmTJzknX4fGsTxcPQxyzi8SSnYvsqeMVtzUR6qxTs+lk/ZkDtIeE2OWMwwD+SiRcXL9rW5GbaJkl5fjK3JlX9lOBxsTpcHBX+nsXF+te5eu0omvfJVaSoXV6d5sxW++iIKCsq6i6BAKClmnQygoZJ05oKCQdeaAgkLWUVBQVsr6f8V81qOg8CDQIRQUsk6HUFDIOnNAQSHrzAEFhayjoKCsoPwA

Oh, zip = repeated text is packed, short url still

US Constitution = 44849 text to 18568 characters URL: Firefox doesn't blink, Twitter post hangs.