aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-27 16:18:05 -0500
committersejo <sejo@texto-plano.xyz>2021-05-27 16:18:05 -0500
commit3526ecf92b39c789c82c079283707e6a04493a64 (patch)
tree56edfc37e47683006543b5911ec98635b100de3b /src
parentfb33351d6213216969d718365a979a6954a6794b (diff)
downloadsitio-3526ecf92b39c789c82c079283707e6a04493a64.tar.gz
notas de postfix
Diffstat (limited to 'src')
-rw-r--r--src/actualizaciones.gmo6
-rw-r--r--src/actualizaciones.xml12
-rw-r--r--src/apuntes.gmo7
-rw-r--r--src/indice.gmo1
-rw-r--r--src/postfix.gmo98
-rw-r--r--src/running.gmo1
-rw-r--r--src/tw.txt1
7 files changed, 120 insertions, 6 deletions
diff --git a/src/actualizaciones.gmo b/src/actualizaciones.gmo
index 5a11971..9ab863c 100644
--- a/src/actualizaciones.gmo
+++ b/src/actualizaciones.gmo
@@ -8,6 +8,12 @@ si lo prefieres, puedes seguir las (y más) actualizaciones via git:
=> https://tildegit.org/sejo/lentejanumerica repositorio git con scripts y archivos fuente
+
+## sjm-1661d1
+
+página nueva:
+=> ./postfix.gmi {postfix}
+
## sjm-1660d7
páginas nueva:
diff --git a/src/actualizaciones.xml b/src/actualizaciones.xml
index 99b9478..9bc1dd5 100644
--- a/src/actualizaciones.xml
+++ b/src/actualizaciones.xml
@@ -5,11 +5,21 @@
<title>🧆 ln: updates en el sitio</title>
<author><name>sejo</name></author>
<generator>a mano</generator>
-<updated>2021-05-26T12:00:00Z</updated>
+<updated>2021-05-27T12:00:00Z</updated>
<link href='https://quesomango.neocities.org/actualizaciones.xml' rel='self'/>
<link href='https://quesomango.neocities.org/actualizaciones.html' rel='alternate'/>
<entry>
+<id>https://quesomango.neocities.org/actualizaciones.html#sjm-1661d1</id>
+<title>sejmana-1661, día 1</title>
+<updated>2021-05-27T12:00:00Z</updated>
+<link href='https://quesomango.neocities.org/actualizaciones.html#sjm-1661d1' rel='alternate'/>
+<summary>
+ página de postfix
+</summary>
+</entry>
+
+<entry>
<id>https://quesomango.neocities.org/actualizaciones.html#sjm-1660d7</id>
<title>sejmana-1660, día 7</title>
<updated>2021-05-26T12:00:00Z</updated>
diff --git a/src/apuntes.gmo b/src/apuntes.gmo
index 2844c3e..233d6a0 100644
--- a/src/apuntes.gmo
+++ b/src/apuntes.gmo
@@ -8,10 +8,7 @@ recordatorios de procesos
## computacionales
-### cli
-
-comandos de línea (de comandos)
-
-=> ./imagemagick.gmi {imagemagick}
=> ./ffmpeg.gmi {ffmpeg}
+=> ./imagemagick.gmi {imagemagick}
=> ./ed.gmi {ed}
+=> ./postfix.gmo {postfix}
diff --git a/src/indice.gmo b/src/indice.gmo
index 6893a2e..ce2bfd1 100644
--- a/src/indice.gmo
+++ b/src/indice.gmo
@@ -16,6 +16,7 @@
=> ./ffmpeg.gmi {ffmpeg}
=> ./gemini.gmi {gemini}
=> ./imagemagick.gmi {imagemagick}
+=> ./indice.gmi {indice}
=> ./linkroll.gmi {linkroll}
=> ./logiteca.gmi {logiteca}
=> ./non_e-computers.gmi {non e-computers}
diff --git a/src/postfix.gmo b/src/postfix.gmo
new file mode 100644
index 0000000..5ab589f
--- /dev/null
+++ b/src/postfix.gmo
@@ -0,0 +1,98 @@
+# notación postfix (o rpn: reverse polish notation)
+
+los operadores van después de los operandos, y todo funciona con una pila (stack)
+
+por ejemplo, para sumar dos números:
+
+```
+3 4 +
+```
+
+leyendo de izquierda a derecha:
+
+* primero se hace "push" al 3
+* luego se hace "push" al 4
+* el operador + hace "pop" dos veces, suma los valores, y hace "push" al resultado
+
+tres números:
+
+```
+3 4 2 + +
+```
+
+nota: el primer operador + realiza la suma entre 4 y 2, y el segundo operador + realiza la suma entre ese resultado y 3.
+
+otra posibilidad:
+
+```
+3 4 + 2 +
+```
+
+# operadores de stack
+
+* pop: saca (y descarta) el elemento de arriba de la pila
+* swp: intercambia los dos elementos superiores en la pila
+* dup: duplica el elemento superior en la pila
+* ovr: copia el segundo elemento de la pila, y colócalo hasta arriba
+* rot: quita el tercer elemento de la pila, y colócalo hasta arriba
+
+# rutinas con firth
+
+firth es una calculadora rpn con fracciones:
+
+=> https://git.sr.ht/~rabbits/firth firth
+
+el operador . imprime el estado de la pila
+
+## tiempos
+
+convierte (minutos, segundos) a una cantidad de segundos. en el ejemplo, son 8 minutos, 49 segundos:
+
+```
+8 49
+swp 60 * + .
+
+resultado: 529
+```
+
+convierte (minutos, segundos) correspondientes a un "paso" min/km, a una velocidad km/hr:
+
+```
+4 30
+swp 60 * + 3600 swp / .
+
+resultado en modo dec: 13.3333 (km/hr)
+```
+
+convierte una velocidad km/hr, a un "paso" min/km
+
+```
+14
+3600 swp / 60 / .
+
+resultado en modo dec: 4.285714 min/km
+```
+
+o para obtener minutos y segundos:
+
+```
+14
+3600 swp / dup 60 / swp 60 % .
+
+resultado en modo mix: 4&2/7 17&1/7 ( 4'17" min/km)
+```
+¿se nota que me gusta el {running}?
+
+
+# herramientas
+
+firth, una calculadora rpn con fracciones:
+=> https://git.sr.ht/~rabbits/firth firth
+
+uxn, una máquina virtual basada en pilas
+=> https://wiki.xxiivv.com/site/uxn.html uxn
+
+
+
+## llega(n) aquí:
+=> ./apuntes.gmi {apuntes}
diff --git a/src/running.gmo b/src/running.gmo
index c76518a..1653001 100644
--- a/src/running.gmo
+++ b/src/running.gmo
@@ -65,3 +65,4 @@ volando con los pies
## llega(n) aquí
=> ./acerca.gmi {acerca}
+=> ./postfix.gmi {postfix}
diff --git a/src/tw.txt b/src/tw.txt
index e324f2d..0696ed0 100644
--- a/src/tw.txt
+++ b/src/tw.txt
@@ -2,6 +2,7 @@
# nick = sejo
# url = https://quesomango.neocities.org/tw.txt
#
+2021-05-27T16:00:00-05:00 added postfix notation notes, including some routines for pace to speed conversions
2021-05-26T20:00:00-05:00 moving the gemini capsule to the soviet
2021-05-26T18:00:00-05:00 i find it fun to describe a turing machine for people to perform
2021-05-25T20:00:00-05:00 starting to use git for (almost) everything (?). still figuring out what (and how) to mirror online
Un proyecto texto-plano.xyz