handmade.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
handmade.social is for all handmade artisans to create accounts for their Etsy and other handmade business shops.

Server stats:

36
active users

#clojure

2 posts2 participants0 posts today
Replied in thread

@Regenaxer @borkdude @vindarel Thanks! Right, so my comparable in-REPL times for iterative factorial 1000 are

#PicoLisp: (bench (apply * (range 1 1000)))
0.000 sec
#Clojure: user=> (time (apply *' (range 1 1000)))
"Elapsed time: 2.428199 msecs"
#SBCL: CL-USER[1]: (time (apply #'* (alexandria:iota 1000 :step 1)))
Evaluation took:
0.000 seconds of real time
0.000015 seconds of total run time (0.000000 user, 0.000015 system)
100.00% CPU
45,990 processor cycles
0 bytes consed

[razzlom@void clojure]$ lein​​ ​​new​​ ​​luminus​​ ​​guestbook​​ ​​--template-version​​ ​​3.91​​ ​​--​​ ​​+h2​​ ​​+http-kit
bash: lein​​: command not found
It's not working.
[razzlom@void clojure]$ lein​​ version
Leiningen 2.11.2 on Java 11.0.25 OpenJDK 64-Bit Server VM
It's working!
[razzlom@void clojure]$ whereis lein
lein: /usr/bin/lein /usr/share/man/man1/lein.1
It's exist.
[razzlom@void clojure]$ /usr/bin/lein​​ ​​new​​ ​​luminus​​ ​​guestbook​​ ​​--template-version​​ ​​3.91​​ ​​--​​ ​​+h2​​ ​​+http-kit
bash: /usr/bin/lein​​: No such file or directory
It's not exist.

Am I stupid or something broken here?

#Linux #Bash #Leiningen #Clojure
Replied in thread

@screwtape Other. Write on #Cryogen, @yogthos' excellent #Clojure static site generator/blogging engine.

It is a bit geeky -- you have to be comfortable with a command line. I keep thinking about writing a little GUI launcher for it to make it easier for my less geeky friends, but I haven't got round to that yet.

cryogenweb.org/

cryogenweb.orgCryogen: Simple static sitesCryogen is a simple static site generator built with Clojure and designed by Carmen La. It's shipped on Leiningen so setup is simple and fuss free.
Replied in thread

@nsrahmad @mapcar @praetor I very much dislike special cases. A language should be clean. It's also not English and shouldn't pretend to be. But #Clojure has a similar noise keyword, `:else`, for `cond`, and while `true` still works, of course, Clojure's static analyser, whines if you use it.

Furthermore the JVM stack is horrible, and Clojure's 'simplified' syntax for arg lists, cond statements, let bindings and case is... sub-optimal, in my opinion.

So you takes your pick.

Replied in thread

@nsrahmad @ksaj @praetor why use `t`?

Because my training is in logic, and `t` is an expression which is always true;
Because I've been using it for the past 42 years and see no reason to change;
Because it works in more or less any dialect of #Lisp, not just "Common" Lisp (but note that #Scheme uses `else` rather than `otherwise`, and Portable Standard Lisp, just to keep you on your toes, uses `NIL`, while #Clojure uses nothing at all)!

In short, because.

Why is modeling so powerful?

ericnormand.substack.com/p/why

Upcoming talk next week: Virtual and open to the public, I will speak about Domain Modeling. Be there!People continue to like Grokking Simplicity continues to spread. If you want to help someone learn functional programming, please consider buying...

#clojure #clj #cljs !clojure@lemmy.ml @clojure

Eric Normand's Newsletter · Why is modeling so powerful?By Eric Normand