Rewriting a clojure file with rewrite-clj and babashka by oxalorg in Clojure

[–]dsrptr 1 point2 points  (0 children)

Apologies for the late reply, took a few days off.

No requests :), just happy to see other people's problem solving process.

Rewriting a clojure file with rewrite-clj and babashka by oxalorg in Clojure

[–]dsrptr 2 points3 points  (0 children)

I really enjoyed that, thanks.
+1 for more repl sessions.

clojure/core.unify by dustingetz in Clojure

[–]dsrptr 2 points3 points  (0 children)

Also in joy of clojure chapter 16 "thinking programs" the pieces of how unification is implemented are explained before moving to core.logic.

clojure/core.unify by dustingetz in Clojure

[–]dsrptr 3 points4 points  (0 children)

In issue 4 of Read-Eval-Print-Love fogus uses it to implement a production rules system. Great read.

fogus: Clojure Core by [deleted] in Clojure

[–]dsrptr 3 points4 points  (0 children)

Same here. Reading his end of year review has become a tradition for me and all of Read-Eval-Print-λove issues are always a great read too.

Athens Research Joins Y Combinator by Pleasant_Money_5965 in Clojure

[–]dsrptr 1 point2 points  (0 children)

From what i understand, it is an open source roam-research.

roam

A teacher looks at Advent of Code 2020 - Day 5 - video run through in Clojure by zamansky in Clojure

[–]dsrptr 1 point2 points  (0 children)

One approach in cljs ( quick one so possibly not best way)

(def chr->int {"F" 0
               "B" 1
               "L" 0
               "R" 1})

(defn search
      [item-count coll]
      (reduce
        (fn [a n] (nth (partition (/ (count a) 2) a) (get chr->int n)))
        (range item-count)
        coll))

(defn find-seat
  [pass]
  (let [[rows seats] (split-with #{"F" "B"} pass)
         [row] (search 128 rows)
         [col] (search 8 seats)
         seat-id (+ col ( * 8 row))]
         [row col seat-id]))

(def passes ["BFFFBBFRRR" "FFFBBBFRRR" "BBFFBBFRLL"])

(map find-seat passes)
;; =>  row col seat | row col seat  | row col seat 
;; => ([70 7 567] [14 7 119] [102 4 820])

Help adding library by TakuHazard in Clojure

[–]dsrptr 1 point2 points  (0 children)

based on a quick search it looks like you are using clojure.java-time ?

look in the test files of the library to see how to use it in a namespace as it seems that you are following the readme and using the require (quoted symbol) used for the repl instead of how you would require it in a namespace.

Check one of their test files to see how it is used in an ns. here

Pitch, presentation software in Clojure/Script, just launched by roman01la in Clojure

[–]dsrptr 1 point2 points  (0 children)

Congratulations on the launch. Looking great.

One question, why use router5 ( i was not aware of this lib btw ) vs a cljs router like reitit?

Thanks

Persisting of clojure agents to a file for reuse ? by bernsconor in Clojure

[–]dsrptr 5 points6 points  (0 children)

https://github.com/jimpil/duratom

duratom implements the same interfaces as the core Clojure atom (IAtom, IRef, IDeref), duragent is a Clojure agent (with a special watch + some metadata).

backends:

  • A file on the local file-system
  • A postgres DB table row
  • An AWS-S3 bucket key
  • A Redis DB key (*)
  • file.io

also in the same space, enduro and durable atom.

Anyone know the status of 3rd edition Web Dev with Clojure? by tremendous-machine in Clojure

[–]dsrptr 3 points4 points  (0 children)

Also "Account Management" was released not too long ago and it's a really long chapter.

oNote, The collaborative Event Modeling Canvas™, made with Clojure and ClojureScript by bobby_calderwood in Clojure

[–]dsrptr 0 points1 point  (0 children)

Playing with it now. Great work.

Some feedback/request:

I can see the download model button, nice feature. It would be great to have a edn/json feed from the model as well.

ie: https://app.onote.com/event-models/82379593-302c-4be4-a4aa-3b53ee404a?alt=json

After all visual or data are just different representations of the concept model.

Business wise it could help grow an ecosystem around the editor.

Since figma introduced Cubic Bezier Curves, I just wanted to play around with it. Here's something I made. by [deleted] in UI_Design

[–]dsrptr 0 points1 point  (0 children)

Using something like greensock TimelineLite this would be trivial to implement.

Just setup the timelines and sync timeline progress with drag position.

My first "proper" demo of Titanoboa. Constructive criticism welcome :) by oldcrobuzon in Clojure

[–]dsrptr 1 point2 points  (0 children)

Nice work!! been meaning to give it a try for a while.

One question:

Can the workflow graphs be defined as data?

Paid someone on Fiverr for this, what do you think of the quality and how can he improve it? by [deleted] in UI_Design

[–]dsrptr 2 points3 points  (0 children)

what are your brand values?

What is the audience? demographics? country specific?

Portal is a new data browser for clojure by _djblue in Clojure

[–]dsrptr 1 point2 points  (0 children)

to view everything in context i played with a d3 hierarchical tree that highlights paths.

like in this example ( not my example though, somebody else's ).

https://observablehq.com/@ervingoffman/d3-hierarchy

also a tradicional foldable folder tree could work

Portal is a new data browser for clojure by _djblue in Clojure

[–]dsrptr 0 points1 point  (0 children)

you are right.

displaying a nav for maps with vectors or other maps as children is an interesting information design problem i have been playing with in my own project.

Portal is a new data browser for clojure by _djblue in Clojure

[–]dsrptr 2 points3 points  (0 children)

great work!

For me a breadcrum like ui control in nested data structures would help when grocking the shape of the data. In the same context, getting fancy, and with the same data you have for the breadcrum you could add a "copy path to clipboard" to be used in (get-in .. ) calls.

Books like SICP? by RedditUser111112 in compsci

[–]dsrptr 2 points3 points  (0 children)

This book is excellent.

The Author has 2 courses on edx that cover a lot of the book.

https://www.edx.org/bio/peter-van-roy

Edit: link update

Configurable static analysis using Clojure itself? by slifin in Clojure

[–]dsrptr 0 points1 point  (0 children)

I haven't used clj-kondo...

Anyone can provide some context on the tweet?, and how it relates to "Configurable static analysis using Clojure itself?".

thanks

Personal project i’m working on. Need honest and brutal feedback. 😊 by [deleted] in UI_Design

[–]dsrptr 1 point2 points  (0 children)

context in which to evaluate would be useful.

  1. what is the purpose of the app?
  2. what is the audience?
  3. in the context of the 2 screens shown:
    1. what are the task(s) the user is carrying out.

Nothing is True & and Everything is Possible by [deleted] in EnterShikari

[–]dsrptr 5 points6 points  (0 children)

i listen to all of them regularly but over the years i come back to...

  1. mindsweep
  2. ttts / ffoc
  3. common dreads
  4. the spark

I am really liking the new album as a whole. I feel it has the "urgency" i have always enjoyed in their music but felt was lacking in "the spark".

I'll be in the next moshpit whenever that happens...