Fork me on GitHub
#cljs-dev
<
2018-09-19
>
thheller06:09:24

@mfikes I think you mean cljs.core.PersistentQueue.EMPTY in https://dev.clojure.org/jira/browse/CLJS-2916

mfikes10:09:39

Yep. Fixed.

mfikes11:09:23

Do we have any precedent for describing / communicating changes in default configuration? For :npm-deps I have added a note in the draft compiler option reference: https://github.com/clojure/clojurescript-site/blob/7a90a7a434f04ef0e29858fbc692f0fd7ba0593a/content/reference/compiler-options.adoc#npm-deps

mfikes11:09:25

(I'm thinking about the case where someone upgrades to the next release, only to find their build failing if it relied on the previous default of {}. The solution is to explicitly configure :npm-deps.)

dnolen14:09:37

@mfikes not other than communicating via the announcement

mfikes14:09:38

Cool. I’ll add a bit to the news.

ericfode15:09:16

What magic do I use to partition this (js/Buffer. #js [0x01 0x02 0x02 0x04])

dnolen15:09:50

partition?

ericfode16:09:52

Yeah into blocks. Like partition-all

ericfode16:09:28

I'm trying to chunk a image into packets to be sent over the wire

ericfode16:09:14

I can't figure out how to get the data into a native cljs seq for the life of me.

dnolen16:09:48

hrm not sure why you would want to partition Buffer instead of just sending it

ericfode16:09:08

Because Mqtt has a Max message size

dnolen16:09:29

right but Node.js has stuff for partitioning / slicing buffers

dnolen16:09:36

no need to introduce indirection here

ericfode16:09:14

Are you referring to the .slice function on Buffer? Or is there a partition somewhere that I'm missing.

dnolen16:09:15

I guess slice, shouldn’t that suffice?

ericfode16:09:59

It should, I was hoping to avoid some edge cases.

ericfode16:09:28

My implementation has been buggy.

ericfode16:09:54

And clojure core has all these amazing collection functions

ericfode16:09:00

Ty for the pointer I appreciate you guys hanging around a public forum.

john17:09:56

Hey Eric, welcome to the community! FYI, this particular room is for discussion about development on cljs itself. Most regular cljs questions go through the #clojurescript channel.

ericfode19:09:00

My bad. should I delete the unrelated messages?

john19:09:03

Nah, I and others accidentally get off topic in here all the time.

john19:09:13

Just letting you know, since you're new