this post was submitted on 23 Apr 2025
14 points (93.8% liked)

Learn Programming

1813 readers
3 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

should i go with Clojure or common Lisp? i'm looking for an intuitive language and the tooling is great. my background: Ruby programmer and i use neovim. my goal: AI development. do people really use Lisp family for AI dev tho?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 2 days ago* (last edited 2 days ago) (1 children)

Ruby is already a functional programming language -- you can pass functions to functions, return functions from functions, and make closures in Ruby already. You're probably already using some functional programming concepts if you've done anything non-trivial in Ruby even if it didn't register for you as "functional programming".

If you want to do ML (current "AI"), you'd probably do best to learn some Python (PyTorch, TensorFlow, etc.) and maybe CUDA for lower-level control. (It's basically C++ with extra features for running code on NVIDIA GPUs.) There might be Ruby wrappers for the underlying ML libraries, but I expect most resources you'll find (e.g. StackOverflow answers) will assume you're working with Python...

If you're still interested in learning one of the languages you listed, you'll get some educational benefits from exploring them but I don't think you're likely to get much practical benefit out of it for AI over Ruby. I learned a lot from exploring Clojure personally -- I particularly liked the idea of identity as a series of values over time -- but I don't work in the JVM ecosystem, and so I haven't actually done anything with the language in 10+ years... The concepts I learned from playing with it were more useful than the language itself to me.

[โ€“] [email protected] 1 points 2 days ago

yes i been already using some of functional features on it, but i want to use Lisp family language esp for AI dev