2024-11-16

[bg/ru] Любимец на музата, но не на самодържеца

Изображение: Orest Kiprensky чрез Wikipedia

Не сме всички като Евгений Онегин:
„Везде поспеть не мудрено.“
(Онегин бил канен поне на две места всяка вечер и за него не било трудно да отиде навсякъде, а ние често успяваме само на едно.)
_________

„Онегин, добрый мой приятель,
Родился на брегах Невы.
Там, может быть, родились Вы
Или блистали, мой читатель.
Там некогда гулял и я.

Но вреден Север для меня.
_________
Писано в Бессарабии. [бел. авт.]
(Където Пушкин е бил заточен за свободомислие; по сегашните мерки, леко се е отървал.)
_________

„У Пушкина жила, не выходя.“
(Музата, както пее Высоцкий.)

2024-11-15

[EN] How Many Generations?

Social changes need many generations, as is well known.
To illustrate, here is a conversation that happened in Italy (some thirty years ago).

Italian:
"Don't talk to me about Pisans, they are unrefined peasants."
Foreigner:
"Why is that?"
Italian:
"There was a war, Pisa lost, its population was exterminated, and Pisa's current population are descendants of peasants from the surrounding villages."
Foreigner:
"Oh... And when was that?"
Italian:
"In the 14th century."

2024-11-13

[EN] LLM "Knows" about `getpid'

Picture credit: Michelet B via Wikipedia.

Beware of the spoiler after the asterisks below, if you want to think about the answer first.

A process that retrieves and handles a large volume of data from a database, while making millions of calls to `read' and `write', also calls `getpid' a few million times interspersed with the former: why?

The program is written in Python and runs on Linux.

Embarrassingly I couldn't figure that out (and I didn't want to spend a lot of time on that), so I asked LLM, to test it, too.
Its answer was quite satisfactory.

*
*
*

Answer (shortened):
A program or library that does or is prepared to do multiprocessing may need the pids of its processes or threads in order to manage mutual exclusion.

2024-11-11

[EN;bg] November 11 before May 9 *** Единадесети ноември преди Девети май

Freiheit was censored, so Freude was substituted.
To remember how it is spelled, I use this mnemonic:
France — European Union — Germany: FR-EU-DE.
_________
Glossary: freedom; joy.

Just the fourth movement:
_________
My grandfather was a prisoner of war in World War I.
_________
Bulgaria, Germany, and Hungary are the three countries that lost both world wars.

***

Цензурата забранила „Freiheit“ и тя била заменена с „Freude“.
Помагам си да запомня как се пише чрез:
Франция — Европейски съюз — Германия: FR-EU-DE.
_________
Речник: свобода; радост.

Само четвъртата част:
_________
Дядо ми е бил военнопленник през Първата световна война.
_________
България, Германия и Унгария са трите страни, които са изгубили и двете световни войни.

2024-11-10

[bg] Софийски графити

(Около 2020 година; оградата на 120-то училище на десният бряг на Перловската река малко нагоре от улица Милин камък; забележете зеленото V върху F.)

(Около 2022 година; трамвайната спирка на улица Вишнева под Семинарията.)

За следващите нямам снимки, уви.

„Рангелова (по география) е курва.“
(Около 1991 година; мостът на Витошка над булевард България; скобите си бяха там.)

„All watmen are bastards.“
(Около 1988 година; стената на Семинарията до тогавашната трамвайна спирка.)

„Убий човек! Един по-малко ще ти диша въздуха.“
(Около 1988 година; навес на автобусна спирка на булевард Вапцаров.)

„Егеят и Вардарот бугарски ке са.“
(Около 1990 година; стената на тунелът под НДК.
Ядранот не беше споменат.)

„Truth remains.“
(Около 2010 година; стената на главната сграда на Софийският университет.)

2024-11-09

[EN] Once Upon a Time in the Golden Age


Picture via Facebook group At the Controls.

Jet propulsion engineer Emma Davis
working with MATH-MATIC by Grace Hopper
to model gas flow in a turbofan aircraft engine.

Computer:
UNIVAC II by Sperry Rand (1959);
Lockheed Aircraft Company, Marietta, Georgia 1960s.
Word size: 72 bits (twelve 6-bit characters).
Clock rate: 2.25 MHz.
Speed: 3000 operations per second.
Hardware: 5,200 vacuum tubes consuming 190 kW, 1,200 transistors, 18,000 crystal diodes.
Memory: 184,000 bits, ferrite core (tenfold improvement over the mercury delay-line tanks of the previous model).

Further reading:

[EN] Who Is Clever, Actually?

犬道

Finally I understand why dogs are our best friends:
dogs don't talk nonsense.

Canis sapiens.

_________
I took the liberty of constructing the Japanese expression above: inu-do, "the way of the dog", by analogy to bushi-do, "the way of the warrior".
I hear that the dogs of this breed are called "samurai dogs", because they are very faithful and trustworthy.
(The proper name of the breed photographed above, shiba-inu (柴犬), means "brushwood dog": they flush game out of undergrowth for hunters.)

[EN] Performance of 'Naive' Ratio Addition

;;;; -*- mode: lisp -*- ;;; Explore the performance of 'naive' ratio addition. ;;; Evaluate (time-addition 17000) ;;; to compare tha...