Fork me on GitHub
#pathom
<
2021-03-06
>
ribelo23:03:22

i wrote a minimalistic clone of pathom, for fun and for fame. maybe someone will find it useful https://github.com/ribelo/pathos

wilkerlucio00:03:52

awesome! I think its a great way to understand how pathom works 🙂

wilkerlucio00:03:12

I like ask you about this text on your docs:

one of the main differences from pathom is that pathos doesn’t bother about the code inside and you can easily use let and whatever your heart desires

wilkerlucio00:03:09

not sure if I understand, because pathom doesn't care about the code inside the resolver, just what it outputs in the end, maybe a misunderstand of some sorts?

ribelo09:03:26

@U066U8JQJ the most annoying thing I encounter when using pathom is having to write in such a way that the first element in resolver is a map

ribelo09:03:39

in pathos I use a simple macro that goes as far into the function as possible, assuming that the last element returned by the function is either a map or a keyword

ribelo10:03:32

this was the first thing that caught my eye as I read the pathom3 documentation

ribelo10:03:18

@U066U8JQJ i created a PR, maybe you will find it useful

ribelo10:03:08

another thing that I don't think pathom makes easy is memoization with ttl, and I think it would be super useful. sometimes data changes every certain time and it would be a good idea to only retrieve it when it's changed

ribelo10:03:15

and by the way, thanks not even for a piece of really great software that I use every day, but for changing my perspective on programming and specifically data driven development ❤️

ribelo11:03:30

i take back what i said about memoization, last time I looked in the documentation, i didn't see the section about cache

wilkerlucio11:03:39

hello Ribelo, I posted the reasoning for not having deep checks for output in your issue

wilkerlucio11:03:27

about cache with TTL, the cache system in Pathom 3 is made to be extensible, you can use the TTL from core.cached for example, there is some integration examples at https://pathom3.wsscode.com/docs/cache

wilkerlucio11:03:15

thanks for the feedback, always appreciated

ribelo12:03:28

I read an explanation of why deep check is not a good idea and well, you are right. I hadn't thought of that. 😉

👍 3