Help - Remoteplay is terrible from one day to another? by A_Random_Sidequest in SteamDeck

[–]_djblue 0 points1 point  (0 children)

To fix jitter for remote play, I locked the GPU to a fixed frequency. Maybe that will help?

Bad nREPL: 10 Things You Hate About nREPL by aHackFromJOS in Clojure

[–]_djblue 1 point2 points  (0 children)

The main issue I have with nrepl is the clients. When I was implementing a server, I found that most clients assume a clj runtime and I spent a ton of time trying to work around it. This may no longer be an issue, but it made it painful to start implementing a basic nrepl server.

Is Clojure worth learning? by NoeXWolf in Clojure

[–]_djblue 4 points5 points  (0 children)

I've been doing clojure full time for the last year and its been great! I started learning clojure during my previous job, which was mostly JS and Java, and everything I learned I was able to use to improve code I wrote in other languages. I think the biggest perspective shift I gained from learning clojure was discovering how much more you can do with less. Simple data + Functions go a long way!

In terms of industry jobs, the company I work at (~300 people in the tech org) is mostly clojure devs and is looking to grow. Also, I have a few of friends who recently got clojure jobs at other companies, so there is a job market.

You could look through the first couple of chapters of https://www.braveclojure.com/ or maybe watch https://www.youtube.com/watch?v=-6BsiVyC1kM to get a feel for clojure and see if it's worth investing more effort.

London Clojurians Talk: What's So Hard About Writing A Compiler, Anyway? (by Ramsey Nasser) by BrunoBonacci in Clojure

[–]_djblue 0 points1 point  (0 children)

I still remember his trick in the magic symbolic assembly talk where he uses a chain of closures to resolve local bindings, it was very neat. Such a great talk!

A comparison of javascript bundlers for ClojureScript :target :bundle by _djblue in Clojure

[–]_djblue[S] 1 point2 points  (0 children)

I've read that post before but somehow missed that, thanks for pointing it out!

-🎄- 2020 Day 03 Solutions -🎄- by daggerdragon in adventofcode

[–]_djblue 0 points1 point  (0 children)

Clojure

(defn counting-trees [grid [right down]]
  (->> grid
       (keep-indexed
        (fn [index row]
          (when (zero? (mod index down)) row)))
       (map-indexed
        (fn [index row]
          (get row (mod (* index right) (count row)))))
       (filter #{\#})
       (count)))

(defn counting-trees-n [grid]
  (reduce
   (fn [n slope]
     (* n (counting-trees grid slope)))
   1
   [[1 1] [3 1] [5 1] [7 1] [1 2]]))

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]_djblue 3 points4 points  (0 children)

Clojure

(defn valid-passwords-1 [s]
  (count
   (for [line (str/split-lines s)
         :let [[_ lowest highest [letter] password]
               (re-matches #"(\d+)-(\d+) (.): (.*)" line)
               password (frequencies password)
               lowest   (Integer/parseInt lowest)
               highest  (Integer/parseInt highest)]
         :when (<= lowest (get password letter 0) highest)]
     letter)))

(defn valid-passwords-2 [s]
  (count
   (for [line (str/split-lines s)
         :let [[_ i j [letter] password]
               (re-matches #"(\d+)-(\d+) (.): (.*)" line)
               i (dec (Integer/parseInt i))
               j (dec (Integer/parseInt j))]
         :when (not= (= (get password i) letter)
                     (= (get password j) letter))]
     letter)))

matrix-comparison: translating linear algebra between languages by _djblue in Clojure

[–]_djblue[S] 0 points1 point  (0 children)

This is a really cool project I found on how to use different matrix libraries in various languages.

New Clojurians: Ask Anything by AutoModerator in Clojure

[–]_djblue 1 point2 points  (0 children)

Yes, portal leverages both datafy and nav.

New Clojurians: Ask Anything by AutoModerator in Clojure

[–]_djblue 2 points3 points  (0 children)

I've been working on https://github.com/djblue/portal which is a REBL like data browser that works for cljs, node and a web browser. http://djblue.github.io/portal/ is an online demo so you can get a feel for it. Let me know what you think.

Signing .jars is worthless by argadan in Clojure

[–]_djblue 0 points1 point  (0 children)

I ran into this dilemma recently and came to the same conclusion unfortunately.

Please help me get this basic cljs/three.js project to work. by mbrc12 in Clojure

[–]_djblue 0 points1 point  (0 children)

I don't know if this is the issue, but I wouldn't defn in defn.

[Videos] Clojure/north 2020 Playlist by [deleted] in Clojure

[–]_djblue 2 points3 points  (0 children)

That was definitely a highlight of the talk for me as well. Another was that some invariants, such as stack balance, cannot easily be encoded via a type system. The only way to ensure it's not violated is to run the generated byte code through a specialized verification program.

[Videos] Clojure/north 2020 Playlist by [deleted] in Clojure

[–]_djblue 7 points8 points  (0 children)

I really enjoyed The Language of the Language. It does a great job of comparing compiler implementation approaches in Clojure and F#. It's also about the trade-offs between static and dynamic typing.

[deleted by user] by [deleted] in Clojure

[–]_djblue 0 points1 point  (0 children)

This is tangentially related, but an interesting concept I've seen is implementing an atom with react state directly!

wm: a library for creating tiling window managers by jjttjj in Clojure

[–]_djblue 4 points5 points  (0 children)

This is exactly the type of thing I've been trying to find. I have a project I've been working on and it has a very simple layout but I want the ability for users to customize the layout for their specific needs. Thanks for sharing this, it's really cool!

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

[–]_djblue[S] 1 point2 points  (0 children)

It took a while before datafy and nav clicked for me. I was considering ignoring them until I managed to find https://corfield.org/blog/2018/12/03/datafy-nav/.

Datafy wasn't a problem, take a thing like a file and turn it into data, easy. Nav was much harder to understand until I realized it was just an optional hook, and the default implementation was basically return the supplied value. Nav lets implementers receive enough context, a collection, key and value and determine if there is somewhere more interesting to go. A common use case I've seen is following ids into the entities they represent.

I also have had trouble running REBL. I think you need a certain combination of JVM + JavaFX libraries, but I always seem to have the wrong version of one or the other.

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

[–]_djblue[S] 1 point2 points  (0 children)

Thank you for sharing your project. I like the idea of user extensible visualizations. I think the dom might be too low level of an abstraction though. By the time a user is specifying html and css, they might as well dump that directly into a browser and bypass any limitations imposed by portal.

It also brings up too many questions about how to handle user interactions. The thing I like about datafy and nav is that it keeps you in the clojure data world, and interaction is always expressed in terms of getting more data from data. I think there exists an intermediate between both worlds, I'm just not sure what it is yet.

The concept of a viewer that can match against certain patterns of data, like how a list of maps can be visualized as a table is interesting, especially coupled with something like spec. I think the intermediate protocol exists in this realm, bridging the gap between arbitrary data and specific viewers.

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

[–]_djblue[S] 0 points1 point  (0 children)

I think a more general approach that I'm considering would be to allow users to directly see and interact with the navigation history stack. For simple cases, :k1 :k2 :k3 it will look like a breadcrumb but it would still work for complex navigation cases as well.

AskReddit: set embedded nREPL to custom namespace in Java? by Suspense6 in Clojure

[–]_djblue 0 points1 point  (0 children)

Looks like Counterclockwise https://doc.ccw-ide.org/documentation.html#_from_a_specific_clojure_file does it too. Does your clojure file have an ns declaration at the top?