clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
alexmiller 2021-01-15T00:17:04.103500Z

Working on that right now, coming in 1.11... :)

alexmiller 2021-01-15T00:18:23.104700Z

I think you’re unlikely to beat reduce-kv, or self reduction on a map

alexmiller 2021-01-15T00:20:27.106400Z

Maps don’t store entries, just kvs. So anything that makes entries that you have to take apart is just additional cost in making and destroying objects

alexmiller 2021-01-15T00:21:43.107300Z

reduce-kv avoids that

wilkerlucio 2021-01-15T00:38:30.107600Z

:bananadance:

seancorfield 2021-01-15T00:46:37.107800Z

@alexmiller Great to hear! Can you say how it's going to be addressed?

alexmiller 2021-01-15T00:47:11.108400Z

All in good time

seancorfield 2021-01-15T00:53:39.108600Z

You know me: as soon as there are changes on master (or another accessible branch), I'm happy to try them out at work! 🙂

alexmiller 2021-01-15T01:44:17.108800Z

well obviously nothing before 1.10.2 ... likely rc3 coming tomorrow

1
seancorfield 2021-01-15T02:37:13.109100Z

Will get it on dev a.s.a.p. and onto QA early next week...

Adrian 2021-01-15T08:35:28.109800Z

Hey!

Adrian 2021-01-15T08:36:18.110500Z

I followed the "Web Development with Clojure 3Ed" up to the end

Adrian 2021-01-15T08:36:52.111200Z

It builds a Luminous app with Shadow-cljs app

Adrian 2021-01-15T08:37:17.111700Z

but when I tried to deploy it to heroku I got into troubles

Adrian 2021-01-15T08:37:53.112Z

I did what heroku recommends:

Adrian 2021-01-15T08:38:06.112400Z

heroku buildpacks:clear
heroku buildpacks:add heroku/nodejs
heroku buildpacks:add heroku/clojure

Adrian 2021-01-15T08:38:29.112900Z

in order to first have it run npm install

Adrian 2021-01-15T08:39:09.113600Z

but in the phase of compiling the ClojureScript app I get the error:

Adrian 2021-01-15T08:39:36.113900Z

[:app] Compiling ...
remote:        The required JS dependency "process" is not available, it was required by "node_modules/prop-types/checkPropTypes.js".

Adrian 2021-01-15T08:40:00.114200Z

...and I am stuck 🙂

Adrian 2021-01-15T08:40:05.114400Z

any insights?

thheller 2021-01-15T10:30:07.115100Z

@adicirstei looks like you don't have shadow-cljs installed in the project? npm install -D shadow-cljs

Adrian 2021-01-15T11:39:16.116Z

Thanks @thheller! I actually needed to add it to actual dependencies not as development dependencies. It seems heroku is ignoring that part.

Adrian 2021-01-15T11:39:31.116400Z

anyway. it worked.

Adrian 2021-01-15T12:05:19.116800Z

well, next one: How can I tell it ran the migrations?

✅ 1
v 2021-01-15T15:58:08.119100Z

I am trying to use aws ses service using cognitect’s aws-api library. I tried looking for com.cognitect.aws/ses package in maven but there is nothing. Any ideas 🙂

v 2021-01-15T15:59:04.119300Z

Nevermind, i found com.cognitect.aws/sesv2

alexmiller 2021-01-15T16:01:14.119500Z

there is also email

alexmiller 2021-01-15T16:01:20.119700Z

not sure if that's older or newer

alexmiller 2021-01-15T16:01:42.119900Z

a few of their api names don't match service names like that

ghadi 2021-01-15T16:03:45.121100Z

look at latest-releases.edn, that includes the artifact name + AWS service description

v 2021-01-15T16:19:43.121800Z

Thank you @alexmiller @ghadi 🙂