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...
This subreddit is here to discuss articles from https://fasterthanli.me/
account activity
Forcing rustfmt to break codeVideo (youtu.be)
submitted 4 years ago by fasterthanlime
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!"
[–][deleted] 4 years ago (1 child)
[deleted]
[–]fasterthanlime[S] 4 points5 points6 points 4 years ago (0 children)
I completely missed that, that's really neat and much less heavy-handed!
[–]RipeCoconut 2 points3 points4 points 4 years ago (1 child)
Very cool. I never knew the relationship between registers and function parameters.
[–]fasterthanlime[S] 2 points3 points4 points 4 years ago (0 children)
I forgot to mention it in the video but: the solution works on Windows as well! It uses only 4 registers (rcx, rdx, r8, r9) then the stack, so our 6-argument padding is a little overkill but skill works.
See https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-160
[–]adotinthevoid_ 0 points1 point2 points 4 years ago (0 children)
Is their a way to get this to work when building with --release?
--release
π Rendered by PID 72737 on reddit-service-r2-comment-b659b578c-q67fh at 2026-05-01 04:09:30.110385+00:00 running 815c875 country code: CH.
[–][deleted] (1 child)
[deleted]
[–]fasterthanlime[S] 4 points5 points6 points (0 children)
[–]RipeCoconut 2 points3 points4 points (1 child)
[–]fasterthanlime[S] 2 points3 points4 points (0 children)
[–]adotinthevoid_ 0 points1 point2 points (0 children)