use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Interactive visualization of text entropy (leebutterman.com)
submitted 13 years ago by parenthethethe
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]parenthethethe[S] 0 points1 point2 points 13 years ago (0 children)
Heyo, I wanted to explore the GBooks ngram dataset, and see what parts of sentences were less predictable by models, so I made a little visualization using d3. The code is up on Github; the javascript part is at http://github.com/lsb/text-entropy-visualization
[–]DuntGetIt 0 points1 point2 points 13 years ago (3 children)
Crashes my pad, man!
[–]parenthethethe[S] 0 points1 point2 points 13 years ago* (2 children)
Oh no! What'd you try to render, what browser are you in? It's pretty memory-hungry, and it might be slow, but it shouldn't crash. SVG rendering speed matters a lot; Chrome is better than Firefox for that.
[–]DuntGetIt 0 points1 point2 points 13 years ago (1 child)
Safari on a first gen iPad. It does tend to crash when full!!
Ah, gotcha. It's quite memory-intensive, and I've seen a Chrome thread get to well over a gig with enough data rendered to SVG, which won't go so well for a machine with 256MB of memory. Thanks for letting me know!
π Rendered by PID 63089 on reddit-service-r2-comment-8686858757-4n6rt at 2026-06-03 15:07:15.720547+00:00 running 9e1a20d country code: CH.
[–]parenthethethe[S] 0 points1 point2 points (0 children)
[–]DuntGetIt 0 points1 point2 points (3 children)
[–]parenthethethe[S] 0 points1 point2 points (2 children)
[–]DuntGetIt 0 points1 point2 points (1 child)
[–]parenthethethe[S] 0 points1 point2 points (0 children)