Fork me on GitHub
#clojurescript
<
2016-10-10
>
shaunlebron01:10:10

@stbgz: nice job on https://github.com/eginez/huckleberry, classpath support is definitely needed though. would be a great next step!

stbgz03:10:27

@shaunlebron: yeah I've been thinking about that

gregnwosu10:10:44

how does clojure script handle authentication against an api. Im fresh to web dev, so be gentle 😄

zilvinasu10:10:54

@gregnwosu that’s something that’s defined by the requirements of an API 🙂 Is it HTTP Basic Authentication or something, then you would be using functionality available by your chosen lib, i.e. https://github.com/r0man/cljs-http

lxsameer11:10:09

guys, I'm using figwheel and sidecar, but I keep getting the exceed max line 4096 error which I believe is related to http-kit, does any one knows what might be the problem ?

tomjkidd13:10:38

I am working on a design and have a pretty general question. Is there a shorthand that people find useful for creating documentation for their structure/types? I know there is some using (doc x) written by authors, spec for a more formal approach, core.typed for types. I’m thinking something along the lines of BNF that is concise.

dm313:10:23

I use Haskell notation with Clojure map/set literals (so the type itself looks like Schema) when designing informally. The final docs are probably best generated from clojure.spec 🙂

tomjkidd13:10:47

@dm3 thanks, I appreciate it

pesterhazy16:10:33

@lxsameer it's possibly about cookie size - at least that's where I encountered this problem

lxsameer17:10:54

@pesterhazy: how did you fix it?

pesterhazy17:10:19

not have such huge cookies

jasonjckn19:10:07

figwheel / cljs analyzer doesn't seem to give very good line number info to where the analyzer error happened when it's inside the body of a macro I called

jasonjckn19:10:38

it just gives the line number to where the macro is called, as oppose to somewhere in the body of the macro

jasonjckn19:10:02

is this the standard state of affairs ? or did I write the macro wrong somehow and it obfuscated the line number info

jasonjckn19:10:44

how is line # info preserved through macros?

jasonjckn19:10:16

(defmacro foo [& body] ... (first body) (second body) (third body) ... ) how is this info transmitted

anmonteiro19:10:42

it’s why you only get the line number referring to the call

anmonteiro19:10:57

that’s to be expected, and it’s common behavior

jasonjckn19:10:50

@anmonteiro well for some reason my own defui macro is getting far less helpful figwheel analyzer error messages than the original om.next defui macro

jasonjckn19:10:04

@anmonteiro there must be some piece of data i'm loosing along the way 😞

jasonjckn19:10:32

@anmonteiro i did (-> body s/conform ... s/unform) so maybe some macro meta data got lost shrug

lxsameer20:10:32

how can i tell whether a library is compatible with google closure or not ?

darwin20:10:49

@lxsameer that’s the halting problem: use the library in your app, compile everything in advanced mode, exercise your app and then watch if your app halts on a javascript error 😛 it was proven that this cannot by solved by a machine (unless you constrain it with a timeout) ... but easier approach is to ask the library author, if it is human 🙂

lxsameer20:10:14

@darwin I just read the code of library in question. I could not find any goog.provide

lxsameer20:10:35

@darwin is it enough to just provide the namespace in the source file ?

darwin20:10:43

are you speaking about a javascripr library, right? if you want to treat it as a foreign library you should follow this: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies

darwin20:10:13

but that does not guarantee that it will work under advanced compilation, it must be written in google closure compiler compatible-way

darwin20:10:18

that packaging page is about producing libraries which will be consumed by other cljs devs

lxsameer20:10:42

@darwin btw, is there any easy way to generate a extern file ?

darwin20:10:04

I don’t know, I don’t use externs

lxsameer20:10:19

thanks a lot

jrheard21:10:40

lxsameer there is, let me find it

mattsfrey22:10:04

curious if anyone has encountered the compiler error "X is not a relative path" when trying to build with third-party js libs included

mattsfrey22:10:22

^^on windows

dnolen22:10:04

@mattsfrey please make something minimal (no 3rd party stuff or tooling please) and open an issue. It may be obvious what is wrong. Thanks.

jasonjckn23:10:44

what's the difference between satisfies? implements?

jasonjckn23:10:52

(core/defmacro implements?
  "EXPERIMENTAL"
  [psym x]