This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-14
Channels
- # aleph (1)
- # aws (3)
- # beginners (75)
- # boot (1)
- # bristol-clojurians (2)
- # clj-kondo (18)
- # cljs-dev (5)
- # cljsrn (10)
- # clojure (62)
- # clojure-dev (15)
- # clojure-europe (3)
- # clojure-india (2)
- # clojure-italy (9)
- # clojure-madison (1)
- # clojure-nl (9)
- # clojure-norway (9)
- # clojure-spec (11)
- # clojure-uk (206)
- # clojurescript (30)
- # copenhagen-clojurians (1)
- # data-science (1)
- # datascript (2)
- # datomic (27)
- # emacs (1)
- # events (1)
- # fulcro (12)
- # gorilla (1)
- # jobs (2)
- # kaocha (2)
- # leiningen (4)
- # lumo (7)
- # malli (1)
- # off-topic (2)
- # pathom (14)
- # pedestal (5)
- # quil (3)
- # re-frame (8)
- # reitit (3)
- # remote-jobs (16)
- # ring-swagger (1)
- # shadow-cljs (70)
- # tools-deps (7)
- # vim (5)
- # vrac (1)
I remember reading somewhere about one of the "big" java profilers that had specific clojure support, which one is it?
Maybe I remember it wrong. Or also just a recommendation to use that is not yourkit (too expensive for the little use I have of it)
And clj-java-decompiler is a great tool for understanding WHY something is slow, in comparison to Java for example. You decompile the byte code and generate Java code and voila, you see the expensive operations.
It is useful and simple to use, thanks
So, I'm trying to launch a repl (in a docker container, for experimentation), and I'm trying to specify an address (by default the repl only listens on localhost), so following networking conventions to listen on all interfaces, I do this:
-Dclojure.server.repl={:address,0.0.0.0,:port,55555,:accept,clojure.core.server/io-prepl}
Exception in thread "main" java.lang.NumberFormatException: Invalid number: 0.0.0.0
at clojure.lang.EdnReader.readNumber(EdnReader.java:224)
at clojure.lang.EdnReader.read(EdnReader.java:136)
at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:766)
at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:680)
anyone know who i can reach out to on clojurist together? Want to convince coworker to work on clojure-lsp but need info on time commitments to see if he can commit to it for 3 months. anyone know who best to talk to?
Hey guys, I need some help regarding building an uberjar. Currently my personal project runs find through lein run
, I can also compile it through lein uberjar
, but there's probably something wrong in this compilation, that it because when I try to run it I get the following error message:
I believe there might be something wrong in the :profiles {:uberjar {}}
section, but I couldn't find much online, can anyone help me?
Do I need to add some sort of exception for the schema.core
namespace so that during the compilation it adds it to the uberjar?
Hey @U050ECB92, sorry for taking this long to reply. Can you still help me? The ns
macro looks like this:
(ns twito.data.users-schemas
(:require [schema.core :as s]
[schema.coerce :as schema-coerce]
[clj-time.core :as time]
[clj-time.coerce :as time-coerce]))
Also, I'm not using the schema/core/Schema protocol in any explicit place in the project
@zignd schema.core/Schema is not a class, it's a protocol, if it doesn't resolve properly that usually would mean you didn't require schema.core before accessing it
Hey @U051SS2EU, sorry for taking this long to reply, could you still help me? 😅 I'm not actually using the schema.core/Schema
protocol in anywhere explicitly in the project. It's weird because the application runs through lein run
odd - one thing to check is that you are using the standalone jar and not the project jar that uberjar also creates, there could be something going on with aot plus protocol usage though, where requiring schema.core redefines the protocol
If namespaces a.b.c
, and a.b.d
both need to use code that is not used by any other namespaces would it be more idiomatic to put that shared code in:
(1) a.b
(2) a.b.util
or similar
(1) a.b.c
(or a.b.d
)
Depending on what exactly the shared code is and what c
and d
"do", I'd either put the shared code in c
(or d
) and have d
depend on c
(or vice versa) -- or create a new a.b.x
ns that both a.b.c
and a.b.d
depend on.
The idiomatic goal would be to group functionality by namespace, so it depends on the specific functionality 🙂
It really depends on the specifics. I don't think you can have completely generic guidelines for namespace organization, to be honest.
In next.jdbc
, there's nothing in "a" and the primary public API in "a.b", and then there are more specialized functions in "a.b.c" for various "c" values.
I'm just wondering what kind of things I should consider when choosing between the available options.
At work we have a bunch of ws.member.*
namespaces but no ws.member
ns. Each of those "a.b.c" namespaces has specific groupings of functionality that relate to members (on our web sites).
We also have some ws.<domain>.*
namespaces. Some of those have ws/<domain>.clj
, some don't.
@zane Have you read Elements of Clojure? That has some good discussions around how to name/organize namespaces.
Page 20, primarily.
Part of the guidance there would question whether you really needed a.b.c
and a.b.d
in the first place, rather than just having everything in a.b
🙂
It's just before the Naming Macros section.
Starting "In theory, a namespace can hold an unlimited number of functions..."
I doubt there's a clojure sftp library so I would go with the most common/popular/well-garded Java sftp library
I'm looking at clj-ssh and https://github.com/oshyshko/uio
At work, we use this library https://github.com/hierynomus/sshj (via Java interop)
If you decide to use that hierynomus/sshj library, I'd be happy to share some of our code.