Autarkie – Instant Grammar Fuzzing Using Rust Macros

Autarkie – Instant Grammar Fuzzing Using Rust Macros
Why Meal Tracking Matters Reaching a Muscle Gain Goal
Meal tracking is essential for reaching a muscle gain goal because it provides structure, clarity, and control over your nutrition.
Ensures You’re in a Caloric Surplus
Keeps Macros Balanced for Optimal Gains
Identifies Nutritional Gaps or Excesses
Ah yes, the age-old quest of making C even more complex by concocting #macros to tell if an expression is constant. Because who doesn’t want to play detective while compiling?
Spoiler alert: it's not just a headache, it's a migraine in the making.
https://nrk.neocities.org/articles/c-constexpr-macro #CProgramming #Complexity #DeveloperHumor #CompilationHeadaches #HackerNews #ngated
How to Adjust Calories Based on Progress and Plateaus
Adjusting calories and macros is important because your body changes over time, what worked at the start of a muscle gain phase won’t work forever.
Track Weekly Averages, Not Daily Fluctuations
Increase Calories by 100–200 When Progress Stalls
Adjust Protein Intake to Match Lean Mass Increases
Automate Dates entry with code in Excel #ExcelAutomation #VBA #ExcelTips #DateEntry #Macros #ProductivityHack #ExcelMagic #OfficeAutomation #SpreadsheetTips
Very Low Fat Diet = Very Low Body Fat Levels? | Legion https://buff.ly/l5XChtJ #health #nutrition #diet #fat #macros
I find it a bit ironic: I can't write a Scheme macro, which pre-evaluates arguments for arbitrary form. Because I can't determine if form is a macro or procedure application and thus can't handle those use cases differently.
"Nutrition Optimizer" (AKA "macros.cheap") is a timely math macronutrient cost optimizer, based on the cost of food at the Aldi chain. Macronutrients are different categories of food such as protein, carbs, and fat. This app will be especially handy after everybody is poor from all the tariffs. The generated diet is pretty basic and I'm not sure that many people would want to do it on a long term basis.
OpenNutrition
This is a nice free search engine for nutrition information. It has a lot of nice search filters for people with special dietary concerns, eg. gluten sensitivity.
Deuxième post de Sensai25 :
"En suite #bureautique, on a rien et énormément de développements rapides reposent sur les #macros #Excel ou du #VB et si on quitte se monde là on sort des rails et du support à grande échelle.
Et les #StarOffice et #LibreOffice ne sont pas au niveau."
Ma réponse :
Je n'ai pas eu l'occasion de tester, mais il y a à présent #Python sur LibreOffice pour faire des macros :
https://help.libreoffice.org/latest/en-US/text/sbasic/python/python_programming.html
Et comme on peut aussi en faire sur Excel, c'est une fenêtre intéressante à étudier pour se former et migrer en douceur !
J'ai découvert ça il y a peu, et il y a là, je pense, une belle opportunité à saisir pour changer les choses.
4/4
How Much Protein Should You Eat When Cutting? | Legion https://buff.ly/Fj98ftW #Supplements #macros #nutrition #diet #fitness
I keep learning a lot about Scheme hygienic macros and macroexpander and today we talked about using macro as identifiers in arbitrary position of s-expression, syntax parameters, variable transformers and identifier-syntax helper.
Dialing in macros for 12–15% body fat.
Performance, not aesthetics.
Protein: 130g (25%)
Fats: 101g (40%)
No sugar. No junk. No alcohol. No dairy. No seed oils.
Strict? Maybe.
But the return is wild:
Better sleep
Razor-sharp focus
No cravings
Steady fat loss
Caloric Surplus for Muscle Gain - How Much is too Much?
The reasoning behind a caloric surplus for muscle gain comes down to energy balance and what the body needs to build new tissue.
Optimal Surplus Range: 250–500 Calories/Day
Individual Factors Matter
More Isn’t Always Better
Track Progress, Not Just Calories
If I name the macro, the inserted code is a defalias, which works. Maybe it's just the last-kbd-macro case that is broken?
In older versions of GNU Emacs you could create a keyboard macro C-x (
type-type-type C-x )
, execute it C-x e
, and generate the elisp for it, by M-x insert-kbd-macro
.
For example in Emacs 27.1 creating a simple macro typing "ABBA" and inserting it gives me:
(setq last-kbd-macro
"ABBA")
Evaluating the form gives me that macro back on C-x e
.
This seems to have changed in never versions, when I try the same in Emacs 31.0.50 compiled from source today (27c41d026f7) the code generated is:
(setq last-kbd-macro
(kmacro "A B B A"))
but when I evaluate that I get the value shown in *Messages*
as:
#[256 "\301\242\302^[^\\305\300^B\306#\210\301^L\240*\207" [[65 66 66 65] (0) "%d" kmacro-counter-format-start kmacro-counter execute-kbd-macro kmacro-loop-setup-function] 5 kmacro]
and when try to execute the macro, I get this error:
Keyboard macros must be strings or vectors
The value of last-kbd-macro is:
#f(kmacro "A B B A")
Shouldn't this workflow still work??
TIL: There is an identifier-syntax macro that you can use to implement syntax-id-rules or do other fancy macro stuff.
My small overview of "JRM’s Syntax-rules Primer for the Merely Eccentric" paper about Scheme macros and useful tricks for writing them. Difficulty: medium-easy.
mpv https://youtu.be/A2vi3vQ15kM
Paper:
- http://www.phyast.pitt.edu/~micheles/syntax-rules.pdf
- https://hipster.home.xs4all.nl/lib/scheme/gauche/define-syntax-primer.txt
Spoiler: at the end of the paper a minimal scheme evaluator implemented purely with macros.