meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
borkdude 2020-11-03T12:41:46.251600Z

I guess meander can be used on conformed output from clojure.spec right?

borkdude 2020-11-03T12:42:04.251900Z

It occurred to me that this might be useful for grasp (https://github.com/borkdude/grasp)

borkdude 2020-11-03T14:52:45.252300Z

https://github.com/borkdude/grasp#Meander

1➕
jimmy 2020-11-03T14:56:16.253600Z

@borkdude That was my first thought when I saw grasp. Was hoping to play with it soon. Glad to see you beat me to it.

borkdude 2020-11-03T14:57:29.254900Z

@jimmy now that you're here anyway: is it possible to define a pattern outside of a call to m/find? like:

(def pattern ...)
(m/find thing pattern out)
?

jimmy 2020-11-03T14:58:09.255900Z

You can use defsyntax. But other than that not currently.

borkdude 2020-11-03T14:58:25.256500Z

@jimmy One idea might be to support unquote. I've been doing this in the babashka.process $ macro:

($ ls -la ~file)

1❤️
borkdude 2020-11-03T14:58:40.257Z

(m/find thing ~pattern out)

jimmy 2020-11-03T14:59:09.257600Z

We have unquote for slicing in values. But not patterns. (If I recall correctly)

borkdude 2020-11-03T15:00:56.258300Z

or maybe expose functional equivalents to the macros?

(m/findf thing '{:my ?pattern} ...)

jimmy 2020-11-03T15:02:59.260700Z

Yeah, we do have plans around doing exactly that.

borkdude 2020-11-03T15:03:47.260900Z

great!

noprompt 2020-11-03T18:27:19.261200Z

@borkdude There is this PR: https://github.com/noprompt/meander/pull/128

noprompt 2020-11-03T18:28:14.262500Z

I think it’s probably safe to merge at this point. I left it open for a while to give folks (primarily @jimmy and others who know the most about the project) a chance to chime in.

noprompt 2020-11-03T18:29:43.264200Z

zeta which is in the works and hopefully available early next year, is being redesigned to place the interpreter API at the bottom with the compilation on top.

noprompt 2020-11-03T18:31:09.265700Z

Normally, that would have been the road I would have taken first, however, from a strategic point of view as a maintainer, and not knowing exactly what I was building, starting from the macro gave me the most leverage and control starting out.

noprompt 2020-11-03T18:33:27.267500Z

@borkdude I’m keen on having that interpreter in your hands if you’ll make use of it.

noprompt 2020-11-03T18:34:00.268100Z

All that I ask is that you complain here or on GH if you have issues with it.

noprompt 2020-11-03T18:34:03.268300Z

🙂

noprompt 2020-11-03T18:34:34.268900Z

Bugs and complaints are prized items in this channel.

noprompt 2020-11-03T18:51:17.270Z

Eh, I’ll try and see if I can push that out today. I’m working on some #asami stuff at the moment and once I wrap up what I’m doing I’ll move on that PR.