@pganssle in my case its a performance concern. I am basically implementing a pass-through array cache that remembers balues read from the underlying array-like object and stores it in a local array it needs to know what values it has seen though which makes it quite complicated as it would need to save ranges of seen values. Whole point of such a cahce is performance.
@pganssle Well having your code not be slow enough to force you to use it is, of course, not that uncommon. though in those cases your code was probably still significantly slower than it needed to be... But as i said it isnt **just** about code performance it is also about code complexity. Even if you never needed the performance improvement it would have forced your code in many situations to be more complex and bug-prone then it needed to be.
In terms of code elegance pretty much everyone has hit it if you ever needed a map where the keys had a sorting order (sorting it yourself every time you modify the map is added code and prone to issues).
In terms of performance you'd only need it if you needed a sorted-key map and that map was particularly large and needed to be re-sorted often.
@pganssle And yes, Treemaps and Navigable maps in most languages are backed by balanced red-black trees underneath or something very similar. So if you've ever seen a sorted map/dict in a language it was likely a red-black tree.
@pganssle Depends what you mean by "need". Obviously you could always roll your own Treemap so in the strictest sense you never truly "need" it.
But presuming you are relatively active coder I can guarantee you that you have been in positions where having it would have either (or both) made your code simpler and/or more efficient.
Chances are you accomplished the same end result by either using a hashmap (ordinary dictionary) or a hashset, and just repeatedly sorting it by calling a sort function every time you needed a sorted version of the data (which you may have even done after every new insert in some extreme cases). Which means inefficient code (often significantly so) and more lines of code and more logic than you might need. Not to mention the potential for all sorts of issues on top of that if it is a multithreaded environment.
I have used and needed Tree maps more times than I can count though could have hacked around it easy enough if i had really wanted to.
this wont happen again, I actually already do get alerts I just didnt realize I had to act on it.
Ya see all the custom domain certs on gitlab, along with every cert for every site I host is behind a framework I wrote that automatically obtains and renews certificates, so I didnt really think I had to do anything and that they would auto renew.
What I forgot is that while custom domains themselves for sites hosted on our git lab do indeed auto renew the default domain of *.qoto.io does not (its the only domain that doesn't. The reason for this is because the certbot doesnt support obtaining or renewing wildcard domains and are the only type of domain you have to renew manually. So I totally forgot that I actually **do** need to pay attention to the alerts.. next time I will.
Anyway it is fixed now and all is good.
@nommon certificate now updated
@nommon let me go look
@nommon Why would you expect there to be an endpoint at https://nomnom.qoto.org ?
I offered to bury the hatchet and treat each other respectfully last time, shake hands and move on. As I have in the times before as well. But he seems intent on perpetuating nonsense for no reason. The offer remains of course, but its unlikely at this point he will take the offer.
See the following message:
https://qoto.org/@freemo/105451359584573844
As for you, dont worry about it, he seems intent on starting drama every time he sees my name, regardless of if you or anyone provokes him. Your good.
> do you need one for reasons other than performance?
Yes and the performance difference would be very significant (so much so it is worth the extra development time)
But it also has the tendency to make code much simpler in many cases as well, which doesnt apply to me in this case, but also a valid reason for the need in any language.
> how much active maintenance does a basic data structure really need?
Probably not much but when I see something with very little time invested into it I worry it may be slow to fix bugs or not well flushed out. In this case I could be wrong (I am taking the risk and using it so we will see).
holy hell python doesnt even have a built in red-black tree implementation, just a hashmap style Dict... There is a third party implementation but the best one is something like 8 months since the last release and the repo only has 6 commits...
How do people even survive in #python?
Lies as usual, the first time either of us tagged eachother was you, tagging me, in this message:
https://freespeechextremist.com/objects/d9d3c235-526e-4cd7-89e7-9bd013fc1c65
So no it didnt go LuKthu tagged you, then I tagged you, then you responded... It went... LuKthu tagged you, then **you** tagged me, then **I** responded.
Not that I particularly care, but your penchant for lying to try to start shit all the time is getting out of hand. I had no intention or interest in you entering the conversation, and at no point did I tag you until after you tagged me (which you were brought in by LuKthu).
No I couldnt see it because i was viewing the post directly on FSE.. I was loggin in through the terminal (text only) as i didnt have my 2-factor with me to login via the web interface. To view the image i was following the link in the text to the post to try to view it and could not.
Always trying to start trouble I see, you should have left me muted and done me the favor.
@marathon I already spoke to snder, all good I figured out the deets, thanks though.
Jeffrey Phillips Freeman
Innovator & Entrepreneur in Machine Learning, Evolutionary Computing & Big Data. Avid SCUBA diver, Open-source developer, HAM radio operator, astrophotographer, and anything nerdy.
Born and raised in Philadelphia, PA, USA, currently living in Utrecht, Netherlands, USA, and Thailand. Was also living in Israel, but left.
Pronouns: Sir / Mister
(Above pronouns are not intended to mock, i will respect any persons pronouns and only wish pronouns to show respect be used with me as well. These are called neopronouns, see an example of the word "frog" used as a neopronoun here: http://tinyurl.com/44hhej89 )
A proud member of the Penobscot Native American tribe, as well as a Mayflower passenger descendant. I sometimes post about my genealogical history.
My stance on various issues:
Education: Free to PhD, tax paid
Abortion: Protected, tax paid, limited time-frame
Welfare: Yes, no one should starve
UBI: No, use welfare
Racism: is real
Guns: Shall not be infringed
LGBT+/minorities: Support
Pronouns: Will respect
Trump: Moron, evil
Biden: Senile, racist
Police: ACAB
Drugs: Fully legal, no prescriptions needed
GPG/PGP Fingerprint: 8B23 64CD 2403 6DCB 7531 01D0 052D DA8E 0506 CBCE