This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-20
Channels
- # announcements (30)
- # babashka (118)
- # beginners (23)
- # calva (68)
- # cljdoc (10)
- # clojars (13)
- # clojure (90)
- # clojure-bangladesh (1)
- # clojure-europe (27)
- # clojure-gamedev (1)
- # clojure-nl (11)
- # clojure-uk (4)
- # clojurescript (59)
- # community-development (3)
- # cursive (13)
- # datomic (39)
- # defnpodcast (1)
- # emacs (10)
- # figwheel-main (1)
- # fulcro (18)
- # graalvm (21)
- # honeysql (1)
- # introduce-yourself (1)
- # juxt (1)
- # lsp (197)
- # malli (19)
- # off-topic (28)
- # practicalli (2)
- # re-frame (42)
- # reagent (4)
- # reitit (7)
- # releases (2)
- # sci (35)
- # shadow-cljs (13)
- # spacemacs (4)
- # vim (3)
Is it possible to use format
multiple times? Like
(format "text0: %s" text0) (format "text1: %s" text1)
? If it isn't, how can I achieve what I'm trying?Format is a function, since clojure is a functional programming language we would be in pretty bad shape of you can only call a function once
Hi. I'd like to make a simple web server that renders org files as HTML. I haven't done anything web related in Clojure so I wanted to know what some of the recommended libraries for making a web server would be. (By web server I guess I mean a backend rather than something like Jetty)
Check https://luminusweb.com/ for a simple project template or do a search in the chat, is a pretty common question.
Hi. Do clojure/script people use Postman or similar? Looking for alternatives, e.g. something that might have less features but is more open.
Beautiful! Thanks for reminding me that restclient exists! Btw. this is a nice and quick demonstration: https://www.youtube.com/watch?v=fTvQTMOGJaw
Is there any considerable overhead in core.async/timeout? Since it creates a new channel it doesn't sound as lightweight as for example Thread.sleep. I'm curious since if I use it I will end up calling it thousands of times per second: I'm developing a broadcasting server through which multiple connected clients can send messages to each other. For optimization I'm bundling outgoing messages together with a 5ms window. To achieve this I have a go-loop per client with a 5ms timeout. This means that I will have 1000/5 * client_count timeouts instantiated per second. Of course I should also profile this, but does using timeout in this manner sound fishy? I can see ways of optimizing this by implementing some kind of a repeating timeout channel but don't want to do it prematurely.
depending on your volume, you may run into an issue where there are more than 1000 processes taking from the same channel, which is an error
Ah, that is actually likely to happen. Where could I find info about these details? And do you have any suggestions how this could be solved nicely? Doesn't sound like I'm using the right tool for the job. (Ok, maybe not likely after all. But still curious.)
Hi, can someone please recommend some good resources to learn about functional programming concepts (not related to a language but general concepts)? Thanks
I think the best book I've read on functional programming general was Functional Programming in Scala by Manning. Yes, it's Scala, but taken as a language agnostic text, I thought it was brilliant.
Thanks everyone for the recommendations. Read first chapter of grokking simplicity yesterday. Looks nice. the video was nice too, breaking the shackles about FP and simplifying what FP actually is and not a sort of magic.