pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
wilkerlucio 2021-03-06T13:52:33.058800Z

Also project for Pathom 3: https://github.com/wilkerlucio/pathom3/projects/1

wilkerlucio 2021-03-06T18:43:09.058900Z

🎉 5
2021-03-06T23:39:22.059800Z

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

2021-03-07T09:57:26.061Z

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

2021-03-07T09:58:39.061200Z

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

2021-03-07T10:01:32.061500Z

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

2021-03-07T10:28:18.061700Z

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

2021-03-07T10:35:08.061900Z

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

2021-03-07T10:37:15.062100Z

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 ❤️

2021-03-07T11:29:30.062300Z

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

wilkerlucio 2021-03-07T11:57:39.062600Z

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

wilkerlucio 2021-03-07T11:58:27.062800Z

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

wilkerlucio 2021-03-07T11:59:15.063100Z

thanks for the feedback, always appreciated

2021-03-07T12:07:28.063300Z

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

👍 1