Hacker Newsnew | past | comments | ask | show | jobs | submit | more xaedes's commentslogin

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!


I learned to love linked lists as soon as I discovered that I can just store them in vectors to get the performance of guaranteed contiguous memory:

  // LinkedListItem[k]: item[k], prev[k], next[k]
  std::vector<T> item;
  std::vector<uint> prev;
  std::vector<uint> next;
Similar is used in transparency rendering with per-pixel linked-lists.


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.


When the array is resized, it’s moved to a new contiguous block of memory: everything is copied or moved over. See: https://stackoverflow.com/questions/8261037/what-happen-to-p...


Simple, you just allocate a bigger contiguous chunk of memory and copy the entire vector over when the current chunk maxes out.


the size of a c++ object is fixed at compile-time


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. Official sources are recommended for this reason.


> 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).


Wow, amazing! This really is a comprehensive overview. Basically a syntax Tafelwerk.


Reminds me of Big Bug. This movie went mostly unnoticed, but it is really good science fiction.


I was expecting Kalman filters or something fancy new for positioning or localization.


"submersion of the world in water". What is seldom put in words, it might be frozen water: the mighty glacial sheet, the real cleanser and fertilizer.


With B2B you don't necessarily need to convince the final users of the product.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: