Show newer

@icedquinn sounds like you should be micro-investing in farmland then. Sounds like a great opportunity for you if that's the case. I wonder how many people spent their stimulus checks on splurging on fun things they dont need (most of the posts I've seen seem to suggest so) rather than taking the economic down turn as an opportunity to invest...

Clearly I need to brush up on my number theory.. this was so much harder because the whole problem revolved around limiting solutions to integer values. Ultimately GCD was needed to make it an integer based solution, which I ultimately kinda knew, I knew I had to use GCD somewhere but took me a minute to realize where and put it into a final solution.... I feel like this took 10x longer than it would have a few years ago, just too long since i had to work with a GCD I guess or integer domain problems.

🎓 Dr. Freemo :jpf: 🇳🇱  
Ok so yesterdays algorithm took a little more extra work than I had hopped to finally get into its final form but I **think** its there. I just nee...

Ok so yesterdays algorithm took a little more extra work than I had hopped to finally get into its final form but I **think** its there. I just need to run it through some tests to know for sure.

@math @Science

@mur2501
I can see that particularly with the word mul (short for multiple) that looks like mol

@pganssle so the keys i a sorted containers implementation are required to be comparable and dont need to be hashable?

I love it when an algo finally clicks and i realize how to implement it... 3 pages later...

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

@p

I was talking to @LuKthu, not you. stop pretending just because you happen to be in the thread somewhere that every message is addressed to you, and then start drama over it. No one cares about your little drama show move along.

@LuKthu

@hansw @nommon

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.

@p

Seems you are correct and I was mistaken on that part. didnt notice the other user added you in before I replied.

@LuKthu

@LuKthu

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:

qoto.org/@freemo/1054513595845

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.

@p

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.