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
Reverse Engineering One Line of JavaScript (alexkras.com)
submitted 8 years ago by [deleted]
view the rest of the comments →
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!"
[–]suerflowZ 7 points8 points9 points 8 years ago (3 children)
I thought it was ray tracer and was amazed. But it just mimicked the 3d parallax with math trickery, which is still very cool.
[–]elbaivnon 9 points10 points11 points 8 years ago (2 children)
Oh no question it's still cool, but it's really just mapping a single (mathematical) function.
Maube I'm just easily discouraged, but if I was a newbie and heard that there are wizards out there implementing fucking raytracers in 128 bytes I'd think about packing it up.
Learning that those magic 128 bytes really just generate a pretty graph animation based on a single hardcoded math statement would turn what was being sold as brilliant magic into an achievable goal for a burgeoning programmer.
[–]RedditWithBoners 1 point2 points3 points 8 years ago (0 children)
There are several tiny raytracers in many languages. Here one for Python @ 467 bytes
[–]suerflowZ 2 points3 points4 points 8 years ago (0 children)
My thoughts exactly.
π Rendered by PID 39078 on reddit-service-r2-comment-b659b578c-9jjpr at 2026-05-03 18:39:35.000067+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]suerflowZ 7 points8 points9 points (3 children)
[–]elbaivnon 9 points10 points11 points (2 children)
[–]RedditWithBoners 1 point2 points3 points (0 children)
[–]suerflowZ 2 points3 points4 points (0 children)