Links
Table of Contents
- 1. Links links
- 1.1. xkcd xkcd
- 1.2. Blogs blogs
- 1.2.1. https://master–taonaw-blog.netlify.app/
- 1.2.2. https://www.gwern.net/
- 1.2.3. http://www.articlesbyaphysicist.com/
- 1.2.4. http://bactra.org/
- 1.2.5. https://pythonspeed.com/
- 1.2.6. https://doughellmann.com/
- 1.2.7. https://ryxcommar.com
- 1.2.8. https://www.danielclemente.com/
- 1.2.9. https://michaelnielsen.org/
- 1.2.10. Steve Yegge
- 1.2.11. https://daemons.it/
- 1.2.12. Not Even Wrong
- 1.2.13. Juan Reyero
- 1.2.14. Johnny Lee
- 1.2.15. Eduardo Da Silva
- 1.2.16. Max Zsol
- 1.2.17. https://acko.net
- 1.3. Debate
- 1.4. Lenguaje
- 1.5. Arte art
- 1.6. Música music
- 1.6.1. James Jamerson bajista visualización
- 1.6.2. Beyond Borders. Broadening the Artistic Palette of (Composing) Improvisers in Jazz
- 1.6.3. Melodies as Maximally Disordered Systems under Macroscopic Constraints with Musical Meaning physics
- 1.6.4. NEW PYTHON PACKAGE: Sync GAN Art to Music with “Lucid Sonic Dreams”!
- 1.6.5. Introducing Maestoso: An open source music animation software!
- 1.7. Física physics
- 1.7.1. arxiv arxiv
- 1.7.1.1. Do equidistant energy levels necessitate a harmonic potential?
- 1.7.1.2. Quantum Thermodynamics Allows Quantum Measurement Almost Without Collapse
- 1.7.1.3. Negative contributions to entropy production induced by quantum coherences quantum_thermo
- 1.7.1.4. Bifurcation and chaos in nonlinear Lindblad equations tfg
- 1.7.1.5. Newton vs the machine: solving the chaotic three-body problem using deep neural networks
- 1.7.1.6. Entanglement statistics in Markovian open quantum systems: a matter of mutation and selection
- 1.7.1.7. Entanglement: Quantum or Classical?
- 1.7.1.8. Revivals imply quantum many-body scars tfg
- 1.7.1.9. Imperfect bifurcations in opinion dynamics under external fields
- 1.7.1.10. A Quantum Field Theory View of Interaction Free Measurements
- 1.7.1.11. Quantum information in phase space
- 1.7.1.12. Emergence of singularities from decoherence: Quantum catastrophes tfg
- 1.7.1.13. Challenges in Scaling-up the Control Interface of a Quantum Computer
- 1.7.1.14. Quantum Lissajous Scars tfg
- 1.7.1.15. P≠NP y Cuántica
- 1.7.1.16. Dissipation-induced structural instability and chiral dynamics in a quantum gas arxiv
- 1.7.2. Dynamical Systems dynamical_systems
- 1.7.3. Marco Tavora marco_tavora
- 1.7.4. Libros
- 1.7.5. Landauer’s principle - Wikipedia
- 1.7.6. Open Research Software computer
- 1.7.7. Summary Quantum Black Hole Information Paradox
- 1.7.8. A pedagogical explanation for the non-renormalizability of gravity
- 1.7.9. The Scientific Paper Is Obsolete. Here’s What’s Next. - The Atlantic
- 1.7.10. Samuel Fernández-Lorenzo
- 1.7.11. Critical Phenomena
- 1.7.12. ML_Physics ml_physics
- 1.7.13. HASH - Complex Systems Simulation - Build multi-agent simulations in minutes complex_systems
- 1.7.14. Phys. Rev. Lett. 124, 080401 (2020) - Tracking the Dynamics of an Ideal Quantum Measurement
- 1.7.15. What, Exactly, is Entropy?
- 1.7.1. arxiv arxiv
- 1.8. Hacking computer
- 1.9. Linux desktop
- 1.9.1. Flatpak/Snap/AppImage
- 1.9.2. TICKLER Windows se convierte en una capa sobre Linux. Se cumple?
- 1.9.3. How to manage Ubuntu Snaps: the stuff no one tells you
- 1.9.4. Leaving Debian (Sytemd stuff)
- 1.9.5. The rocky road to better Linux software installation • Linux desktop packaging
- 1.9.6. pipewire
- 1.10. Awesome
- 1.11. Ingenieria de software
- 1.12. Computer science computer
- 1.13. Realidad Virtual
- 1.14. Organización
- 1.14.1. What it Takes to Read 2 Books a Week
- 1.14.2. Typing Faster Will Change Your Life
- 1.14.3. How to estimate time time_tracking
- 1.14.4. Invertir
- 1.14.4.1. You Will Destroy Yourself Financially If You Save
- 1.14.4.2. “This is How I Made $40k In Passive Income By Age 26”
- 1.14.4.3. “The Stock Market Is a Ponzi Scheme”
- 1.14.4.4. “If You Have Any Money, It’s About to Lose (A Lot) of Value” por Tim Denning https://link.medium.com/dEGWDl5N98
- 1.14.4.5. Scorpion Capital | Activist short selling focused on publicly traded frauds and promotes
- 1.15. Psicología y mejora personal psicology
- 1.15.1. https://fs.blog/2020/01/inner-game-of-tennis/ mejora_personal
- 1.15.2. How not to be stupid
- 1.15.3. Valor de automatizar
- 1.15.4. The power moves
- 1.15.5. “Your ‘Surge Capacity’ Is Depleted — It’s Why You Feel Awful”
- 1.15.6. Two Books That Turned a 26-Year-Old Programmer Into a Billionaire
- 1.15.7. “8 Life Lessons I’ve Learned at 40-Something That I Wish I’d Known at 20-Something”
- 1.15.8. “33 Things I Stole From People Smarter Than Me”
- 1.15.9. El mito de Sísifo - La Mente es Maravillosa
- 1.15.10. Why your brain loves conspiracy theories
- 1.15.11. Predictive coding is changing our understanding of the brain | Medium
- 1.15.12. 12 Age-Reversing Habits: How I Made My Brain 10 Years Younger
- 1.16. Software Libre
- 1.17. Viajes
- 1.18. Games
- 1.19. Curiosidades
- 1.20. Chorradas
- 1.20.1. Generador AI de memes
- 1.20.2. Corporate B.S. Generator
- 1.20.3. Automatizar todo máximo
- 1.20.4. You can’t parse [X]HTML with regex
- 1.20.5. Comandos graciosos
- 1.20.6. 0-ver (versiones 0.algo sin lanzar nunca la 1)
- 1.20.7. set-ver (versiones con {}) Setaceous Version
- 1.20.8. FOaaS Fuck Off as a Service
- 1.20.9. Alargador de urls
- 1.20.10. Uncyclopedia - Cualquiera puede editar, wikipedia troll
- 1.20.11. Cursed text
- 1.20.12. My first Python script (coming from C), feedback appreciated Python and C code at the same time
1. Links links
1.1. xkcd xkcd
https://www.explainxkcd.com/
https://thomaspark.co/2017/01/relevant-xkcd/
- Competing standards https://xkcd.com/927/
- Physics approaching any topic as it was trivial https://xkcd.com/793/
- Python import any lib which does things incredibly easier https://xkcd.com/353/
- How do you write smiley (inside parenthesis :)) https://xkcd.com/541/
- StackOverflow “Someone is wrong on the internet” https://xkcd.com/386/
- Ballmer Peak Alcohol vs Programming Skill plot https://xkcd.com/323/
- Shibboleet (Tech support for technical people) https://xkcd.com/806/
- emacs FTW! https://xkcd.com/378/
1.2. Blogs blogs
1.2.4. http://bactra.org/
1.2.5. https://pythonspeed.com/
1.2.5.1. Optimizing your code is not the same as parallelizing your code
1.2.6. https://doughellmann.com/
Python & Stuff → virtualenvwrapper
1.2.7. https://ryxcommar.com
1.2.8. https://www.danielclemente.com/
Sección sobre idiomas y lógica muy interesante
1.2.9. https://michaelnielsen.org/
Phyiscs, AI, note taking
1.2.10. Steve Yegge
- https://steve-yegge.medium.com/ 2018-Now
- https://steve-yegge.blogspot.com/ 2006-2018
- https://sites.google.com/site/steveyegge2/blog-rants 2004-2006
1.2.11. https://daemons.it/
1.2.12. Not Even Wrong
1.2.13. Juan Reyero
http://juanreyero.com/
Un poco de programación y un poco de productividad en la empresa, con org mode
1.2.14. Johnny Lee
1.2.15. Eduardo Da Silva
1.2.16. Max Zsol
1.2.17. https://acko.net
Lo que me gusta es que te lleva de un tema a otro y me gustan todos (tecnología (informática) + sociedad + psicología)
1.3. Debate
1.4. Lenguaje
1.4.1. ranking de idiomas por velocidad y por información
El resultado es que aunque algunos lenguajes transmitan más fonemas por unidad
de tiempo, se adapta la velocidad para que la información por unidad de tiempo
sea aprox igual entre todos las lenguas que consideran
1.4.2. Lógica y lenguajes
1.5. Arte art
1.5.1. https://www.wikiart.org/
Tienen una página aleatoria, muy útil para improvisar en base a una pintura
1.5.2. hundredrabbits/Orca: Esoteric Programming Language
https://github.com/hundredrabbits/Orca
Sintetizador como si fuese un juego de la vida
Programación espacial sintetizador
1.5.3. Aseprite - Animated sprite editor & pixel art tool
https://www.aseprite.org/
Animaciones de estil 8bit pintando en el ordenador
Editor lineal (tiempo y capas)
1.6. Música music
1.6.1. James Jamerson bajista visualización
1.6.2. Beyond Borders. Broadening the Artistic Palette of (Composing) Improvisers in Jazz
1.6.3. Melodies as Maximally Disordered Systems under Macroscopic Constraints with Musical Meaning physics
1.6.4. NEW PYTHON PACKAGE: Sync GAN Art to Music with “Lucid Sonic Dreams”!
1.6.5. Introducing Maestoso: An open source music animation software!
1.7. Física physics
1.7.1. arxiv arxiv
1.7.1.1. Do equidistant energy levels necessitate a harmonic potential?
1.7.1.2. Quantum Thermodynamics Allows Quantum Measurement Almost Without Collapse
1.7.1.3. Negative contributions to entropy production induced by quantum coherences quantum_thermo
1.7.1.4. Bifurcation and chaos in nonlinear Lindblad equations tfg
https://arxiv.org/abs/1907.0934 9 La dinámica con Lindblad es lineal en ρ en vez
de ser lineal en ψ. Citan como ejemplo de dinámica no-lineal Hartree-Fock,
aunque es lineal en ρ y resulta una aproximación de campo medio
1.7.1.5. Newton vs the machine: solving the chaotic three-body problem using deep neural networks
1.7.1.6. Entanglement statistics in Markovian open quantum systems: a matter of mutation and selection
1.7.1.7. Entanglement: Quantum or Classical?
https://arxiv.org/abs/1911.02201 Muy filosófico
1.7.1.8. Revivals imply quantum many-body scars tfg
1.7.1.9. Imperfect bifurcations in opinion dynamics under external fields
1.7.1.10. A Quantum Field Theory View of Interaction Free Measurements
https://arxiv.org/abs/1911.03339 Parte del detector de bombas cuántico de Sergio
(interferómetro de Mach-Zender)
1.7.1.11. Quantum information in phase space
https://arxiv.org/abs/1911.04242 Parece que se queda en W(x, p) gaussiana
siempre…
1.7.1.12. Emergence of singularities from decoherence: Quantum catastrophes tfg
1.7.1.13. Challenges in Scaling-up the Control Interface of a Quantum Computer
1.7.1.14. Quantum Lissajous Scars tfg
https://arxiv.org/abs/1911.09729 El sistema cuántico presenta mayor robustez
ante perturbaciones que el sistema clásico a la hora de conservar las figuras de
Lissajous
1.7.1.15. P≠NP y Cuántica
1.7.1.16. Dissipation-induced structural instability and chiral dynamics in a quantum gas arxiv
1.7.2. Dynamical Systems dynamical_systems
1.7.3. Marco Tavora marco_tavora
1.7.3.1. Resumen de toda la física
https://link.medium.com/5bcLgbN3b3 Va sobre la ecuación de Wheeler-DeWitt, que
es una ecuación del universo en formulación 3+1 cuantizada canónicamente (en la
que desaparece el tiempo como variable independiente, curiosamente, “no hay
tiempo”)
1.7.3.2. Gravity and Electric Charges: Attraction and Repulsion
“Gravity and Electric Charges: Attraction and Repulsion” por Marco Tavora
https://link.medium.com/AnF7t9Gqf5
Desde QFT, muy completo
1.7.3.3. Resumen de econofísica esp
1.7.3.4. Critical Phenomena
1.7.4. Libros
1.7.4.1. A concise treatement of quantum mechanics in phase space
1.7.5. Landauer’s principle - Wikipedia
https://en.m.wikipedia.org/wiki/Landauer%27s_principle Información-Masa-Energía
1.7.6. Open Research Software computer
https://openresearchsoftware.metajnl.com/ Revista científica con software altamente reutilizable
1.7.7. Summary Quantum Black Hole Information Paradox
1.7.9. The Scientific Paper Is Obsolete. Here’s What’s Next. - The Atlantic
1.7.10. Samuel Fernández-Lorenzo
1.7.11. Critical Phenomena
1.7.12. ML_Physics ml_physics
1.7.12.1. Differential Equations Versus Machine Learning
https://medium.com/swlh/differential-equations-versus-machine-learning-78c3c0615055
Type | Empirical Data Driven | Mechanistic |
---|---|---|
Deterministic | ML | ODE |
Stochastic | statistical model | agent based model |
1.7.12.2. Neural networks are fundamentally Bayesian
1.7.12.3. “Temporal Convolutional Networks, The Next Revolution for Time-Series?”
“Temporal Convolutional Networks, The Next Revolution for Time-Series?” por
Barak Or https://link.medium.com/6vwtdzFiY8
1.7.12.4. Travelling Salesman using Annealing
1.7.13. HASH - Complex Systems Simulation - Build multi-agent simulations in minutes complex_systems
1.7.14. Phys. Rev. Lett. 124, 080401 (2020) - Tracking the Dynamics of an Ideal Quantum Measurement
1.7.15. What, Exactly, is Entropy?
Entropy explained with some links
https://link.medium.com/oBvWeuzb2cb
1.8. Hacking computer
1.8.1. Academics turn RAM into Wi-Fi cards to steal data from air-gapped systems | ZDNet
https://www.zdnet.com/google-amp/article/academics-turn-ram-into-wifi-cards-to-steal-data-from-air-gapped-systems/
la lista y concepto del final
1.9. Linux desktop
1.9.1. Flatpak/Snap/AppImage
https://www.youtube.com/watch?v=9HuExVD56Bo https://youtu.be/xLGdoL7xa3o
https://youtu.be/Pzl1B7nB9Kc → para las aplicaciones que tienen pocos usuarios y/o que tienen librerías raras, como no hay recursos para mantenerlas y testearlas tanto, entonces empieza a compensar snap/appimage/flatpak
https://github.com/AppImage/AppImageUpdate -> Actualizar AppImages incremental
Algunos consideran a homebrew como algo parecido
La diferencia está en que en homebrew el trabajo lo tiene que hacer en mayor parte el gestor de paquetes, mientras que en Flatpak/Snap/AppImage la mayor parte del trabajo lo hace el desarrollador de esa aplicación en concreto
1.9.1.1. Flatpak y snap funcionan mal con plugins binarios
https://youtu.be/KlFeEIJETm0?t=142
Cuando tienes que utilizar un plugin con compatiblidad binaria, Flatpak/Snap te dan problemas entre librerías del sistema versus librerías de snap (si es distinta versión ya no funciona)
1.9.1.2. Flatpak OSTree
1.9.1.3. Appimage
1.9.2. TICKLER Windows se convierte en una capa sobre Linux. Se cumple?
1.9.4. Leaving Debian (Sytemd stuff)
1.9.5. The rocky road to better Linux software installation • Linux desktop packaging
1.9.6. pipewire
https://pipewire.org/
alternativa a pulseaudio y jack
1.10. Awesome
https://awesomerank.github.io/
Lista de awesomes con estrellas y última actualización (está desactualizado)
1.11. Ingenieria de software
1.12. Computer science computer
1.12.1. Growing cellular automata
1.12.2. Blub Progrsmming Language
http://wiki.c2.com/?BlubParadox
As long as our hypothetical Blub programmer is looking down the power continuum,
he knows he’s looking down. Languages less powerful than Blub are obviously less
powerful, because they’re missing some feature he’s used to. But when our
hypothetical Blub programmer looks in the other direction, up the power
continuum, he doesn’t realize he’s looking up. What he sees are merely weird
languages. He probably considers them about equivalent in power to Blub, but
with all this other hairy stuff thrown in as well. Blub is good enough for him,
because he thinks in Blub.
1.12.3. Functions and the rule of least power
1.12.4. Coding is Not Computer Science
1.13. Realidad Virtual
1.13.1. Gafas VR código abierto
1.14. Organización
1.14.1. What it Takes to Read 2 Books a Week
1.14.2. Typing Faster Will Change Your Life
“Typing Faster Will Change Your Life” por Niklas Göke
https://link.medium.com/KPpJOW1GR6
https://www.freecodecamp.org/news/i-learned-to-touch-type-at-the-ripe-old-age-of-29-was-it-worth-it-112ef2150fec/
https://www.typingclub.com/
1.14.3. How to estimate time time_tracking
1.14.4. Invertir
1.14.4.1. You Will Destroy Yourself Financially If You Save
“You Will Destroy Yourself Financially If You Save” por Tim Denning
https://link.medium.com/smrPMFFsK6
1.14.4.2. “This is How I Made $40k In Passive Income By Age 26”
“This is How I Made $40k In Passive Income By Age 26” por Amardeep Parmar
https://link.medium.com/JFo36XJf18
1.14.4.3. “The Stock Market Is a Ponzi Scheme”
“The Stock Market Is a Ponzi Scheme” por Tim Denning
https://link.medium.com/grzDYBHs48
1.14.4.4. “If You Have Any Money, It’s About to Lose (A Lot) of Value” por Tim Denning https://link.medium.com/dEGWDl5N98
1.15. Psicología y mejora personal psicology
1.15.1. https://fs.blog/2020/01/inner-game-of-tennis/ mejora_personal
1.15.2. How not to be stupid
https://fs.blog/2019/01/how-not-to-be-stupid/ Factores
- Estar fuera de tu entorno o cambiando tus rutinas
- Estar en presencia de un grupo
- Estar en presencia de un experto, o creerte que lo eres
- Hacer cualquier tarea que requiera mucha atención
- Sobrecarga de información, o multitarea
- Estrés o fatiga física, emocional, o mental
- Tener prisa o sensación de urgencia
- Lo contrario también, estados de flow, o sentimientos positivos muy intensos pueden adormecer y hacer que se cometan más errores
Las listas de comprobación son peores si provocan 7. No tomar decisiones en los
estados 6., 7. Cuando estés en una situación crítica (4.) elimona distracciones
(5.)
1.15.3. Valor de automatizar
1.15.4. The power moves
Recopilación de libros y resúmenes https://thepowermoves.com/
1.15.5. “Your ‘Surge Capacity’ Is Depleted — It’s Why You Feel Awful”
Psicología y mejora personal https://link.medium.com/0uh8MxYh88
1.15.6. Two Books That Turned a 26-Year-Old Programmer Into a Billionaire
“Two Books That Turned a 26-Year-Old Programmer Into a Billionaire” por Alan Trapulionis https://link.medium.com/isAcz1xm88
Sobre la falta de habilidades sociales y sobre mejor gestión
- “Influence” by Robert Cialdini
- Reciprocation: the human need to return the favor
- Consistency: the human need to “save face” in front of others
- Social proof: why bartenders put a few dollars into the tip jar before the customers walk in
- Liking: an old truism, “we do business with people we like.”, based on someone’s looks and familiarity with us
- Authority plays a major role in business. Highlighting things like titles and money may seem wrong and inaccurate to a logical person, but they do work on a subconscious level.
- Reciprocation: the human need to return the favor
- “High Output Management” by Andrew Grove
- Sales forecasts: how many customers are you expecting to serve today? ⇒ how many staff and inventory do you need to keep the customers satisfied?
- Inventory levels: evaluate your inventory levels to properly fulfil orders, not having inventory is about the worst customer experience there is.
- Condition of the equipment, your production instruments. As a waiter, have you checked whether the toaster is working today? The customers won’t care if “it’s not your fault.” They’ll simply choose another place next time.
- Workforce indicators are needed to keep track of your staff.
- Quality indicators. Did the customers like the breakfast? Will they come back again? Companies that fail to learn go bankrupt
- Sales forecasts: how many customers are you expecting to serve today? ⇒ how many staff and inventory do you need to keep the customers satisfied?
1.15.6.1. “4 Books Everyone in Tech Should Read and Why”
“4 Books Everyone in Tech Should Read and Why” por Marco Antonio Ghiani
https://link.medium.com/P7l2ovqQi9
1.15.7. “8 Life Lessons I’ve Learned at 40-Something That I Wish I’d Known at 20-Something”
“8 Life Lessons I’ve Learned at 40-Something That I Wish I’d Known at
20-Something” por Shannon Hilson
https://medium.com/the-post-grad-survival-guide/8-life-lessons-ive-learned-at-40-something-that-i-wish-i-d-known-at-20-something-d7d1b0617eff
1.15.8. “33 Things I Stole From People Smarter Than Me”
“33 Things I Stole From People Smarter Than Me” por Ryan Holiday
https://link.medium.com/NMD67ToRi9
1.15.9. El mito de Sísifo - La Mente es Maravillosa
https://lamenteesmaravillosa.com/el-mito-de-sisifo/ El blog tiene más cpsas interesantes
1.15.10. Why your brain loves conspiracy theories
1.15.11. Predictive coding is changing our understanding of the brain | Medium
1.15.12. 12 Age-Reversing Habits: How I Made My Brain 10 Years Younger
1.16. Software Libre
1.17. Viajes
1.18. Games
- teardown game
- the pedestrian
1.19. Curiosidades
1.19.1. Paper plotter
1.19.2. Teleforking
1.19.3. https://www.microsiervos.com/archivo/seguridad/cryptii-sistemas-cifrado-codificacion-textos.html
1.19.4. Lenguaje de programación basado en MIDI music engineering
1.19.5. Generador de imágenes en base a texto (GAN)
1.20. Chorradas
1.20.1. Generador AI de memes
1.20.2. Corporate B.S. Generator
1.20.3. Automatizar todo máximo
1.20.4. You can’t parse [X]HTML with regex
1.20.5. Comandos graciosos
“7 Terminal Commands That Will Just Make You Smile” por Coder’s Cat
https://link.medium.com/K0naEI2uY8
sl
→ train animationfortune
cookies in terminalcowsay
toilet
beautiful color ascii artoneko
cat following your mousexeyes
eyes following your mousecmatrix
matrix visualizationhollywood
→ hacking according to hollywood
1.20.6. 0-ver (versiones 0.algo sin lanzar nunca la 1)
1.20.7. set-ver (versiones con {}) Setaceous Version
1.20.8. FOaaS Fuck Off as a Service
1.20.9. Alargador de urls
1.20.10. Uncyclopedia - Cualquiera puede editar, wikipedia troll
1.20.11. Cursed text
Lo bueno que tiene este es que es incremental como la respuesta de stack overflow
https://anytexteditor.com/cursed-text-generator
1.20.12. My first Python script (coming from C), feedback appreciated Python and C code at the same time
1.20.12.1. python
#include <stdint.h> #include <stdio.h> #/* pre-declare types and functions */ void: (type) = (type) ("(void *)0"), int16_t: (type) = (type) (int(16))(), int32_t: (type) = (type) (int(32))(), puts: ((str) := void) = (print), printf: ((str) := void) = (puts), #/* confirm function and variable declarations */ [[void]] = (void), [[total]] = (int32_t), [[i]] = (int32_t), [[puts]] = (puts), [[printf]] = (printf), #/* ensure forwards and backwards compatibility */ import __future__ as __past__ #define FUTURE PAST #define PAST FUTURE #/* output a formatted string to stdout */ def printf(s, __VA_ARGS__) -> (void) :{ (void) (puts((void).__mod__(s, __VA_ARGS__), end=((void).__new__)(void))), } #/******************************************************* # * SUMMATION SCRIPT * # ******************************************************* # * Sum up all the natural numbers up to 6. The result * # * should be 0 + 1 + 2 + 3 + 4 + 5 + 6 = 21. * # *******************************************************/ #/* print numbers from 0 to 6 */ int32_t: i = 0, while (i <= 6) :{ (void) (printf(" %d\n", i)), (i := i + 1), } (void) (puts("__")), #/* sum up numbers from 0 to 6 */ int32_t: total = 0, int32_t: i = 0, for (int32_t) in (i <- 0, i <= 6, ++i) :{ (total := total + i), } (void) (printf("%d\n", total)),
1.20.12.2. C
#include <stdint.h> #include <stdio.h> #/* pre-declare types and functions */ void: (type) = (type) ("(void *)0"), int16_t: (type) = (type) (int(16))(), int32_t: (type) = (type) (int(32))(), puts: ((str) := void) = (print), printf: ((str) := void) = (puts), #/* confirm function and variable declarations */ [[void]] = (void), [[total]] = (int32_t), [[i]] = (int32_t), [[puts]] = (puts), [[printf]] = (printf), #/* ensure forwards and backwards compatibility */ import __future__ as __past__ #define FUTURE PAST #define PAST FUTURE #/* output a formatted string to stdout */ def printf(s, __VA_ARGS__) -> (void) :{ (void) (puts((void).__mod__(s, __VA_ARGS__), end=((void).__new__)(void))), } #/******************************************************* # * SUMMATION SCRIPT * # ******************************************************* # * Sum up all the natural numbers up to 6. The result * # * should be 0 + 1 + 2 + 3 + 4 + 5 + 6 = 21. * # *******************************************************/ #/* print numbers from 0 to 6 */ int32_t: i = 0, while (i <= 6) :{ (void) (printf(" %d\n", i)), (i := i + 1), } (void) (puts("__")), #/* sum up numbers from 0 to 6 */ int32_t: total = 0, int32_t: i = 0, for (int32_t) in (i <- 0, i <= 6, ++i) :{ (total := total + i), } (void) (printf("%d\n", total)),