Fork me on GitHub
#off-topic
<
2017-08-09
>
pesterhazy09:08:09

Can anyone come up with a regex for rg (ripgrep) or ag (the silver searcher) that searches for the lisp-word "time"? What I mean is this. When I do rg -w time (`-w` meaning full word), it'll find start-time, time-period, and foo-time-bar as well. Instead I want to exclude those hyphenated matches. So essentially I want to change word boundaries to exclude -, which is a valid word char in lisp.

pesterhazy09:08:52

Hm it looks like rg '(?:^|[^\w-])time(?:[^\w-]|$)' does what I want

fellshard20:08:53

Jigsaw's finally here, huh? RIP JVM ecosystem.

souenzzo20:08:33

But about module system, my eyes are on "speculation" 👀

fellshard21:08:29

Jigsaw = module system, and yeah. I honestly hope it doesn't gain any traction. It's a convoluted mess.

noisesmith20:08:21

I fully expect a large number of Java / Saw memes if they don’t exist yet.

eggsyntax21:08:25

@koz -- re: the gist you posted in announcements (https://clojurians.slack.com/archives/C06MAR553/p1502304023221137): what does this give you over just doing (js/console.log my-data-structure)? Left a couple of comments on the gist asking about that as well.

koz21:08:32

@eggsyntax: The cinspect function is meant to be run from Clojure (not ClojureScript) so that you can view output of large data structures in the Chrome inspector that reside on the JVM

eggsyntax21:08:53

Ahhhh! Gotcha, I missed that. Thanks!

koz21:08:23

np! Yeah I really liked how nice viewing data was in CLJS running js/console.log and wanted that in a Clojure environment

eggsyntax21:08:02

:thumbsup: totally, cool stuff 🙂. I deleted the github comments since you were kind enough to answer here.

koz21:08:53

no problem!

koz21:08:03

I'm going to add a note regarding this to my initial comment since it definitely didn't make that part clear