r/codedbyhand • • 17h ago

Clojure, an academically interesting production Lisp designed for concurrency with a Java back end created without AI: How to get involved.

Thumbnail
youtube.com
48 Upvotes

https://clojure.org

Clojure allows you to utilize the full ecosystem of Java software without generally writing any public static void main (String[] args) Java. Instead it is a Lisp, an elegant and innovative parentheses heavy programming idiom that arose even before C, and which was a pioneer of 'functional' programming concepts. Lisps allow you to redefine and invent language defining macros extremely expressively. The kinds of programmers who proselytize for Structure and Interpretation of Computer Programs (SICP) advocate for learning a lisp because it can revolutionize how you think of programming. Academic programmers who study theoretical computer science often have a Lisp on their short list. The Clojure community https://clojureverse.org takes a bit of pride in being composed of especially talented and experienced software engineers.

This academic reputation doesn't mean Clojure is confined to theoretical projects however. Clojure is widely used in production software by large corporate entities including Nubank(one of the world's largest digital banks), Walmart and many others. https://clojure.org/community/success_stories

Clojure was invented by Rich Hickey, and released in 2007. The goal of the project was to integrate Lisp and the Java platform in a project that emphasized concurrency and functional programming concepts.

If you want to use libraries from the extensive Java ecosystem, but don't like Java's boilerplate and find Lisp interesting, Clojure might be a good fit for you. However, if you don't know any Java at all can be a liability in in Clojure because stack traces can often send you into the Java framework.

Clojure has a clear no AI policy, both in language development and in it's forums.

https://clojure.org/dev/contributor_agreement
"No Generated Code
Clojure’s code is written and reviewed by humans. Code generated by a large language model or similar technology, such as Anthropic’s Claude, GitHub/Microsoft’s Copilot, OpenAI’s ChatGPT, Facebook/Meta’s Code Llama et al, is not compliant with the covenants and representations of Clojure’s Contributor’s Agreement, and is thus not acceptable as code for Clojure."

https://clojureverse.org/t/clojureverse-ai-policy/14988
"We expect messages posted on ClojureVerse to be written by you, a human. We want your own words, however rough and unpolished. If English is not your first language, you can use automated translation tools. In that case, you must mention that you used a translation tool, and post the original message in your own language, below the English post."

Although Clojure itself does not allow AI code, the broader Clojure community generally seems fairly tolerant of LLM use.

How to contribute:

Clojure language development is mainly done by a core team. They encourage people to help the project by programming in Clojure, advocating for Clojure and participating in the "Ask Clojure" Q&A forums https://ask.clojure.org
https://clojure.org/community/contributing

However, opportunities for language development are open to skilled Java/Clojure programmers who sign a contributor agreement and meet the high bar of design for the project. https://clojure.org/dev/contributor_agreement

You can learn more about the Clojure development process here:
https://clojure.org/dev/developing_patches
https://clojure.org/dev/workflow

No-AI Clojure Projects

If you would like to contribute to AI free projects using the Clojure language, here are a few options:

Splint: a Clojure linter focused on style and code shape
https://github.com/NoahTheDuke/splint

No-AI policy:
https://github.com/NoahTheDuke/splint/blob/main/CONTRIBUTING.md
"Do not use any generative AI when contributing to this project in any form. Not when writing code, not when writing an issue, not when writing a comment. Nothing. This is on the honor system but I'm trusting you here. Don't fuckin do it."

Lazytest: A standalone BDD test framework for Clojure
https://github.com/NoahTheDuke/lazytest

No-AI policy:
https://github.com/NoahTheDuke/lazytest/blob/main/CONTRIBUTING.md
"Do not use any generative AI when contributing to this project in any form."

Leiningen: A system for automating Clojure projects without setting your hair on fire
https://codeberg.org/leiningen/leiningen

No-AI policy:
https://codeberg.org/leiningen/leiningen/src/branch/main/CONTRIBUTING.md
"Please note that it is ethically unacceptable to submit patches (to this project or any other) which you did not author yourself without giving clear attribution to the original author. Note that this includes submitting changes generated by most so-called "artificial intelligence" language models as these systems often make it impossible to even identify (much less credit) the original author."


r/codedbyhand • • 20h ago

Starting a GBA Tile Maker

Post image
32 Upvotes

My previous post on GBA programming got so much love, thank you all, it’s very encouraging.✌️

I quickly realized that solid colored tiles were easy, but specialized ones were not! And I couldn’t find any suitable tile editor that ran on my computer and came with documentation, so I decided to make my own with C and Raylib.

The GUI shows an 8x8 pixel tile, pressing the left or right key changes the palette color, and clicking draws the pixel on the GUI and assigns that cell the palette index number. If you press the key for export, it will create tile.txt, which contains a C array of 32 shorts, each containing the palette index for two pixels. Then, you paste the array into your code, copy the indices to vram, and viola! You’re now free to use that tile in your tilemap.

It’s severely limited right now. It’s hardcoded to the specific palette I’m using, 8bpp mode, can only export C arrays, can’t load images from array data, can’t be resized, no tilemap support, crummy GUI….these are things I’ll fix later! For now I’m just satistfied that it works.


r/codedbyhand • • 2h ago

Coded our website with php

21 Upvotes

We started with Zola (static site generator) but then found out that they started using AI. So we rewrote the site with php. No AI of course! Turned out it was easier than using Zola!

It's hard avoiding tools that use AI these days but it's worth the effort. Otherwise they mess up your project too over time.