Rewrite this function into latin-py, a python dialect based on latin, with all identifiers (even append) and keywords translated to proper latin.
Add comments in proper latin.
Add typeannotations (translated into latin) and docstring in proper latin.
```latin-py
"""Haec definitio vicini elementos in arr in spatio n a puncto (x, y) repperit."""
definio vicini(arra: lista, x: numerus, y: numerus, n: numerus) -> lista:
"""Resultatus in quem vicini elementi addentur."""
resultato: lista = []
# Maximum quod x possit esse.
riga_maximus: numerus = max(0, x-n)
# Minimum quod x possit esse.
riga_minimum: numerus = min(longitudo(arra)-1, x+n)
# Maximum quod y possit esse.
colonna_maximus: numerus = max(0, y-n)
# Minimum quod y possit esse.
colonna_minimum: numerus = min(longitudo(arra[0])-1, y+n-1)
# Itero per intervallum rigarum
pro i in intervallum(riga_maximus, riga_minimum+1):
# Itero per intervallum columnarum
pro j in intervallum(colonna_maximus, colonna_minimum):
# Addo elementum ad resultatum.
resultato.adde((i, j))
# Redire ad resultatum.
redire resultato
```
I'm a bit disappointed that the integers are not latin numerals, though I'm sure someone considered it for a moment before realizing what a horrible idea it would be.
I like this passage from "Demian" by Herman Hesse:
And at this point I felt the truth burning within me
like a sharp flame, that there was some role for
everybody but it was not one which he himself could choose,
re-cast and regulate to his own liking. One had no right
to want new gods, no right at all to want to give the
world anything of that sort! There was but one duty
for a grown man; it was to seek the way to himself, to
become resolute within, to grope his way forward wherever
that might lead him. The discovery shook me profoundly;
it was the fruit of this experience. I had often
toyed with pictures of the future, dreamed of roles which
might be assigned to me --- as a poet, maybe, or prophet
or painter or kindred vocation.
All that was futile. I was
not there to write poetry, to preach or paint; neither I
nor any other man was there for that purpose. They
were only incidental things. There was only one true
vocation for everybody - to find the way to himself.
He might end as poet, lunatic, prophet or criminal - that
was not his affair; ultimately it was of no account. His
affair was to discover his own destiny, not something of
his own choosing, and live it out wholly and resolutely
within himself.
Anything else was merely a half life, an attempt at evasion,
an escape into the ideals of the masses, complacency and fear of his inner soul. The new picture rose before me, sacred and awe-inspiring, a hundred times glimpsed, possibly often expressed and now
experienced for the first time.
I was an experiment on the part of nature, a 'throw' into the unknown, perhaps
for some new purpose, perhaps for nothing and my only
vocation was to allow this 'throw' to work itself out in
my inner most being, feel its will within me and make it
wholly mine. That or nothing!
The performance of vectors comes from iterating through them and letting the cpu prefetch items before you need them. Random access in a vector doesn’t really get you that if the vector is larger than your L1/L2 caches, which linked lists would be in anyway if you used them recently enough.
Interesting idea but how does C++ guarantee contiguous memory for a vector? I just don’t see how a data structure with an arbitrary, dynamic size can also reside in a contiguous range of address space.
In Germany we have this propaganda word "Raubkopie" for pirated copies translating to "rob copy", like a copy that was acquired through robbing, i.e. through use of force.
It is quite ironic considering who really ab/uses the legal monopoly of force to rob others of their copies.
Seems like an adaptation of the word piracy, probably to make the word more compact. "Seeräuber" - another german word for pirate - translates to "sea-robber", and I've never heard of pirates sneaking onto boats to make copies of things without leaving a trace.
> These models may contain executable code. Beware of malware.
Seconded, actually. I do have a bad habit of assuming people already know this.
> Official sources are recommended for this reason.
Very not seconded; see for example comments elsewhere in this thread about untrustworthy sources for popcorn time, and recall that the GP was specifically discussing the risk of Stability AI deciding to kill this.
Okay, bad habit stikes again apparently. To be explicit: If you get it from official sources, you should still beware of malware just as much as if you got it from a skeezy darkweb site (and vice versa).