Fork me on GitHub
#clojure-europe
<
2020-09-25
>
ordnungswidrig07:09:13

I just had to use '~k#` in some code and now I don’t know if I’m super smart or super filthy.

ouvasam07:09:43

bonjour à tous !

otfrom08:09:57

@ordnungswidrig I'm not even sure how to google that let alone what it does

slipset08:09:45

God morgen!

synthomat08:09:44

Доброе утро!

borkdude08:09:35

I'm assuming @ordnungswidrig is using a nested syntax quote there

borkdude08:09:25

e.g.:

user=> (eval `(let [k# 'clojure.core/inc] (prn `'~k#)))
(quote clojure.core/inc)

ordnungswidrig08:09:11

Basically I've created a small macro to dump some expressions in a map: (prn "DBG" (binding-map foo bar baz))

ordnungswidrig08:09:47

Printing e.g. {foo 123 bar :whatever baz nil}

borkdude08:09:05

(defmacro bindings [& ks]
  (zipmap (map #(list 'quote %) (keys &env))
          ks))

(let [a 1 b 2 c 3]
  (bindings a b)) ;;=> {a 1 b 2}

borkdude08:09:31

Hmm, might be handy to capture function inputs:

(defn foo [a b c]
  (def x (bindings a b))) 

(foo 1 2 3)
x ;;=> {a 1 b 2}

dominicm11:09:20

There's a few repls about that do that. Scopr capture too. There's a few contexts where things need to be filtered.

genRaiy11:09:37

yes, that's something I want to add to repl-repl also

genRaiy11:09:28

this is nice

dominicm11:09:12

I'm foolishly waiting for a cljs&clj compatible one that doesn't require me to move to shadow.

dominicm11:09:37

Now that REBL is free, maybe they'll open the source and we can have a poke

3
otfrom13:09:17

does anyone know if nubank will still be building a business around datomic or not? I know they use it a lot internally but being a bank and a database vendor seems a bit odd

otfrom13:09:28

(same on REBL really - dev tools and a bank?)

genRaiy13:09:25

did you see that Oracle and Walmart are buying TikTok US ... no clue

borkdude13:09:51

Cognitect will remain operating as their own thing and will continue to offer Datomic consultancy

otfrom13:09:12

I think it will kill them selling it to other banks (banks don't like buying products from other banks. that does often mean we get nice open source things tho)

otfrom13:09:19

but yeah, we'll see

otfrom13:09:29

I hope all involved got a nice chunk of money

borkdude13:09:09

Maybe RH can buy himself another two years of whatever he likes to do :)

otfrom13:09:25

I hope more than that

otfrom13:09:32

@raymcdermott I thought the deal that eventually came out was that they were going to use Oracle cloud and that there wasn't anything else

genRaiy14:09:52

> Oracle and Walmart will own 20% of TikTok Global, with respective stakes of 12.5% and 7.5%, and the data of TikTok's U.S. users will be stored in Oracle's cloud servers.

genRaiy14:09:11

[ linking to the Motley Fool should not be considered an endorsement of their site 🙂 ]

genRaiy14:09:59

I understand that the Donald wants a kickback of $5bn to fund "patriotic" history lessons which means https://en.wikipedia.org/wiki/The_1619_Project

jasonbell14:09:31

There’s a few bank-in-a-box startups floating about now.

Sandra Wichtrup14:09:32

Dearest Clojurians! How about a  :umbrella_on_ground: :clojureD 2021-Summer Edition? :umbrella_on_ground: Let us know your wishes & opinions! http://clojured.de/clojured-2021-… Our little poll runs until 09 October, we take a little break while you are voting and will update you with the results asap. Thank you so much in advance for your support!

plexus15:09:40

A summer conference! I like it!

plexus15:09:02

(also how is it possible that we never put the heart of clojure logo on here as an emoji)

borkdude15:09:05

❤️

❤️ 9
otfrom16:09:00

oof, can't peek or pop with a transient vector

Ben Hammond17:09:17

if you really need the high performance of transient and the queueing functionality, I would be starting to look in java.util.collection

Ben Hammond17:09:00

the fact that Clojure makes it so easy to interact with java.util.concurrent.ConcurrentLinkedDeque is pure genius

borkdude18:09:13

🍻 happy weekend y'all