Skip to main content

Questions tagged [clojure]

Clojure is a Lisp dialect for the Java Virtual Machine. Its main features include a software transactional memory system for coherent updates to data structures, transparent access to Java libraries, a dynamic REPL development environment, runtime polymorphism, and built-in concurrent programming constructs.

1 vote
0 answers
41 views

There are two versions of the CSV parser. The latter seems to be more performant than the former, although the former's code is easier to read. Variant 1, which parses a string: ...
Aleksei Tirman's user avatar
3 votes
0 answers
82 views

I am hoping to find out what you think about my implementation of tic-tac-toe. It is complete and working as expected with many tests, but the logic in the main module where I have the play-game main ...
user284985's user avatar
2 votes
0 answers
68 views

I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic&...
cgoates's user avatar
  • 185
2 votes
1 answer
79 views

I've been trying Advent of Code challenges to learn Clojure. I've successfully completed Day 2, but I feel like my solution is very clumsy, especially the functions for parsing text input. ...
Dušan Rychnovský's user avatar
0 votes
1 answer
66 views

I have a task which runs sequentially. If I have hundreds of thousands of tags, it is very time consuming. Can this be modified to run the task in parallel? Works fine upto 100 tags ...
Bindiya H's user avatar
  • 101
1 vote
1 answer
68 views

Context I am making a system, where different clients issue queries A query is resolved by issuing a set of subqueries I have an invalidation-worker, which gets notified when subqueries go stale ...
Stepan Parunashvili's user avatar
2 votes
1 answer
208 views

This is a problem from Exercism here, the goal is to clean up badly formatted phone numbers. The rules are: If the phone number is less than 10 digits assume that it is a bad number If the phone ...
Josh Friedlander's user avatar
1 vote
1 answer
143 views

I'd like some help to improve this cli program. It queries a city's weather and pushes a weather report. It takes two arguments: the city to query and the apikey for OpenWeatherMap. For example ...
Pablo's user avatar
  • 95
1 vote
2 answers
151 views

Problem statement: Write a program that converts all given temperatures from a given input temperature scale to a given output temperature scale. The temperature scales to be supported are Kelvin, ...
Christian Hujer's user avatar
2 votes
1 answer
108 views

My first ever lines of Clojure and while the script seems to work as expected, I'm sure it's far from idiomatic Clojure. Thank you for any suggestions. ...
Dušan Rychnovský's user avatar
1 vote
2 answers
261 views

I am a beginner to Clojure and I made a little script that prints out every prime number from 1 to 1000. Let me know if there are any improvements that I can make: ...
code writer 3000's user avatar
3 votes
1 answer
235 views

I've implemented a Game of Life in Clojure and would like to understand what I can do better, especially in terms of idiomatic Clojure (without losing readability/maintainability) of the current ...
Christian Hujer's user avatar
1 vote
2 answers
226 views

Background I am doing an exercise in clojure to make a function that can determine if a number is an Armstrong Number or not. The solution I came up with us a bit more complicated than it would be if ...
Billy Moon's user avatar
1 vote
1 answer
96 views

I've started learning Clojure a few days ago and I wrote this code that factorises numbers. How do I make it better? Is there any way to avoid doing it with a loop? Is that how I am supposed to code ...
Likepineapple's user avatar
5 votes
1 answer
298 views

I'm learning Clojure and am a rank n00b at it, trying to learn from books and online tutorials (but I'm sometimes concerned that I am picking up bad habits or at least not all the good habits). For ...
frIT's user avatar
  • 153

15 30 50 per page
1
2 3 4 5
21