This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-14
Channels
- # announcements (2)
- # aws (1)
- # babashka (18)
- # babashka-sci-dev (103)
- # beginners (165)
- # calva (51)
- # cider (8)
- # circleci (1)
- # clj-kondo (22)
- # clj-on-windows (2)
- # cljdoc (1)
- # cljfx (31)
- # cljs-dev (16)
- # clojure (81)
- # clojure-europe (71)
- # clojure-nl (7)
- # clojure-uk (11)
- # clojurescript (20)
- # code-reviews (26)
- # conjure (1)
- # contributions-welcome (1)
- # core-async (15)
- # cursive (8)
- # datomic (8)
- # defnpodcast (2)
- # eastwood (24)
- # emacs (10)
- # events (1)
- # fulcro (4)
- # funcool (31)
- # graalvm (43)
- # graphql (8)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (12)
- # kaocha (3)
- # lsp (28)
- # malli (4)
- # meander (4)
- # membrane (7)
- # off-topic (64)
- # other-languages (3)
- # pedestal (1)
- # polylith (31)
- # portal (5)
- # re-frame (4)
- # reitit (1)
- # releases (5)
- # rum (2)
- # schema (2)
- # sci (34)
- # shadow-cljs (21)
- # vscode (1)
Thanks a ton for participating in the Clojurians slack world. I get a lot of value from this community and aspire to contribute as much! Being able to hang out with some of the sharpest minds in software... it rubs off on ya! š Very grateful!
Woah. That can run games š
Are you able to work (say use emacs) with it, or it's mostly to read documentation? Also what about dead "pixels" and expected lifetime ?
I read somewhere that they support to up to xx million refreshes, which is ok for reading but is a bit scary for something like editing
I am very tempted by a dasung/boox-mira, I am trying to convince myself e-ink is not ready yet for this kind of usage :)
But it won't display any syntax highlighting. What would you do about this?
I like using a theme without syntax highlighting every now and again, it helps me look at the code with fresh eyes
If you experience fatigue staring at a screen all day, it's nice, but the screen won't hard refresh which will get slightly smudged after some time
I think it's better if you have to read lots of papers or an eBook rather than programming
Anyone knows about any tool that prints or build my project code in a tree, showing all namespaces hierarchy?
https://github.com/alexander-yakushev/ns-graph -- graphical rather than text.
one of my favorite things about clojure is that in normal codebases there's a 1:1 mapping from files to namespaces, which means that in most projects $ tree
would give you nearly the same information as any actual clojure tool would
I assume under the hood it uses tool.namespace to get the dependencies as a data structure, so you could probably print out a text tree easily enough from that data structure?
unless you want a graph of how one namespace uses another namespace, yeah
thanks you @U04V70XH6,sounds perfect to my case
@U051SS2EU yes, the issue is that I want to see which namespace calls other
OK - that can't possibly be a tree is very unlikely to be a tree
(that's the thing that led me on the wrong track there)
@UKFSJSM38 Sure it does:
(! 595)-> clojure -Sdeps '{:deps {ns-graph/ns-graph {:mvn/version "RELEASE"}}}' -M:rebel
[Rebel readline] Type :repl/help for online help info
user=> (require '[ns-graph.core :as g])
nil
user=> (g/depgraph* {:name "next.jdbc" :source-paths ["src"]})
nil
user=> (System/exit 0)
Fri Jan 14 16:41:15
(sean)-(jobs:0)-(/Developer/workspace/next.jdbc)
(! 596)-> ls -l graph.png
-rw-r--r--@ 1 sean staff 2564932 Jan 14 16:41 graph.png
Fri Jan 14 16:41:18
(sean)-(jobs:0)-(/Developer/workspace/next.jdbc)
(! 597)-> open graph.png
which produces the following:Oops! I expected that to render inline.
Installing graphviz fixed my issue, thanks @U04V70XH6 :)
https://github.com/daveray/dorothy#usage (since ns-graph relies on that)
Based on clj-kondo analysis and work with deps.edn: https://github.com/SevereOverfl0w/vizns https://github.com/benedekfazekas/morpheus The latter is more fine grained and does it on the var level
@UKFSJSM38 morpheus also visualizes re-frame stuff, at least, @U0508JT9N was working on that and added stuff to clj-kondo for it
In my case I was looking for just namespaces relationship for now to help some refactor on the codebase arch
gah, wrong thread!
do people have recommendations on web servers for static content? ease of use is more important to me than maximal performance.
I want a bit more control over my environment than delegating everything to the cloud provider's CDN, plus my VPS doesn't offer CDN delivery of content hosted on object storage
I'm hoping I can get a workflow going of rsync
over ssh + fast reloading for rapid prototyping on a live website without having to push everything through a git host + ci build + etc
with python it's literally a one liner if all you need is the bare basics
python3 -m http.server
I can't vouch for security but it works
I'm looking for something a bit more robust than that - was considering something like caddy
but I may just decide to throw a clojure web server into production
I use github pages for static hosting. And I use one of those static site generators. Right now the thing is gatsby
what does "robust" mean here?
"suitable to serve content to the internet at a real domain name", I think
nginx for example is industrial grade and the config for serving a directory is simple
I think the question about "robust" gets moved to "suitable" - is the concern about security? fault tolerance?
many people seem to use npm
for this sort of server, I have no experience with it
security mostly, scalability somewhat, being able to reload config changes seamlessly is nice to have - I guess this is all probably pointing me in the direction of nginx
github pages is quite nice. http://www.clj-commons.org is https://github.com/clj-commons/clj-commons.github.io. github pages also gives you the ability to have a jekyll site. Most of the stuff I write on http://slipset.github.io I write directly on github as markdown files.
I currently use GitHub pages and am currently migrating away from it.
I appreciate that GH pages provides a lot of people with ease of use, but I don't want to tie my publication workflow to a VM spun up on demand for a GitHub Actions CI workflow. My preference is for greater control over my environment and faster feedback, so I'm willing to put some additional work into setting that up if I need to.
Plus, if you want to use a custom domain with GH pages and a public repo, your CNAME
record gets messed up if anyone forks your repo.
https://medium.com/@jehy/hijacking-domain-using-github-pages-41c80ac57523
@UFTRLDZEW so far I really like Cloudflare pages that I started using for my blog: https://curiousprogrammer.net/#_cloudflare_pages
I don't really have anything against CDNs per se, but I did intentionally ask for recommendations on a web server and gave examples of what I was considering, and why. CDNs are not web servers, so they are not what I am looking for. I understand CDNs are nice for a lot of people, but it's not particularly helpful to me to be repeatedly directed away from the specific thing I'm asking about, especially when I said more than once that I wasn't looking for a CDN.
You mentioned that you are migrating away from GitHub pages: > I don't want to tie my publication workflow to a VM spun up on demand for a GitHub Actions CI workflow. My preference is for greater control over my environment and faster feedback, so I'm willing to put some additional work into setting that up if I need to. I migrated away recently and have found Cloudflare pages to be a really nice and powerful alternative. I perfectly understand if this is not a good solution for you but perhaps you should describe your problems in more detail.