This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-09
Channels
- # admin-announcements (5)
- # architecture (8)
- # beginners (7)
- # boot (41)
- # braveandtrue (1)
- # cider (77)
- # clara (3)
- # cljs-dev (56)
- # cljsjs (7)
- # cljsrn (7)
- # clojure (44)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-hk (3)
- # clojure-russia (137)
- # clojure-spec (14)
- # clojure-uk (44)
- # clojurescript (33)
- # cloverage (3)
- # core-async (10)
- # css (1)
- # cursive (16)
- # datomic (116)
- # devcards (14)
- # emacs (1)
- # events (1)
- # funcool (2)
- # functionalprogramming (1)
- # hammock-driven-dev (1)
- # jobs-rus (124)
- # lein-figwheel (1)
- # leiningen (1)
- # liberator (4)
- # melbourne (3)
- # mount (73)
- # off-topic (3)
- # om (4)
- # om-next (15)
- # onyx (38)
- # other-languages (4)
- # perun (2)
- # proton (36)
- # protorepl (2)
- # random (1)
- # re-frame (56)
- # reagent (7)
- # specter (4)
- # testing (1)
- # untangled (13)
- # yada (18)
Is there a good way to debug where the most garbage is getting made?
I’m trying to write a game and I’m getting 60fps most of the time, and then when I get a GC pause it drops to 5fps.
This would be acceptable occasionally but it’s happening very often.
@porglezomp: have you tried jvisualvm or yourkit?
For Javascript, not Java
I figured out how to use the allocation tracker in Firefox, but I’m wondering if there’s anything Clojurescript specific
I might have been a bit hasty asking here though, since the top 2 functions listed here are using 1/5 of all the memory allocated, and they’re both “warning/debug” functions inside react.
https://developers.google.com/web/tools/chrome-devtools/profile/memory-problems/memory-diagnosis?hl=en could be helpful
but I don’t think there’s anything cljs specific
I was reading that article. This is a new computer and I use firefox for my regular browsing, but it looks like I need to download chrome for the devtools. Thanks for the help!
This article appeared on my Twitter feed multiple times this morning. At first glance, it seems they make clojurescript harder than necessary? http://www.ibm.com/developerworks/cloud/library/cl-clojure-node-bluemix-app/index.html?ca=drs-
@thheller: shadow-build shows me quite a lot of warnings when I run find-resources-in-classpath
- https://paste.in.ua/1866/ and more stuff like that
@thheller: it also fails on compilation of https://github.com/r0man/sablono/blob/master/src/sablono/util.cljc#L3 with Invalid :refer, var clojure.set/rename-keys does not exist at line 1 sablono/util.cljc
Wow, that bluemix article is madness
@asolovyov: yeah I need to relax the warnings when there is garbage on the classpath. unfortunately many libs package stuff that should never be in a jar 😞
I’m trying to write externs for the first time, when packaging something that uses nodejs exports.foo = …
how should I package it?
@porglezomp: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies
Sorry, I meant while writing the externs file.
I have a suspicion that this library isn’t written according to best practices, because every example I’ve seen is only referring to names in the source.
I’m working with this library: https://github.com/andrewrk/node-tmx-parser/blob/master/index.js
and I presume I want to export that exports
object, but I’m not sure the right way to do that.
Since I don’t think I want to expose that as the API of the package I export.
How can I package it so that something like tmx
refers to that exports
?
I keep getting an error java.lang.IllegalArgumentException: Namespace gateway.routes does not exist
, even though that namespace/file exists and there is nothing wrong with it. Usually it seems to result from messing up some other ns elsewhere. Any ideas what could be causing that, and what I should do about it?
Can anyone help me do namespacing in my externs?
@porglezomp: I'm not very familiar with externs, but you might be able to find what you're looking for by finding a node package in CLJSJS's packages: https://github.com/cljsjs/packages
Yeah, I was looking at the nodejs buffer, but I can’t figure out how it actually works.
Oh wait, the nodejs ones are out of tree there as well.
For now I’m trying to use the library itself as the extern file, but the cljs extern packaging instructions isn’t working for me.
I created deps.cljs
in my src/
folder with the library under it, but I’m still getting
No such namespace: node-tmx-parser.core, could not locate node_tmx_parser/core.cljs, node_tmx_parser/core.cljc, or Closure namespace "node-tmx-parser.core”
@shaunlebron: your API docs are awesome. thank you so much! http://cljs.github.io/api/