Remix.run Logo
z_open a day ago

[flagged]

dimitar a day ago | parent | next [-]

Can you give an example? I can't speak for all possible lisps but Common Lisp and clojure have great string built-ins:

https://lispcookbook.github.io/cl-cookbook/strings.html

https://clojuredocs.org/clojure.string

z_open a day ago | parent [-]

printf("x = %6d\ny = %.8E\n", x, y) ;

What's the equivalent lisp?

mrcode007 a day ago | parent | next [-]

(format t "x = ~6d~%y = ~.8E~%" x y)

taeric a day ago | parent | prev | next [-]

The "format string" capabilities of common lisp are quite advanced. https://gigamonkeys.com/book/a-few-format-recipes is a fun overview.

ramenbytes a day ago | parent [-]

An inelegant weapon, for a less civilized age. And yet, it works.

rscho a day ago | parent | prev | next [-]

You seriously thought that lisps had no printf equivalent ?!

Jtsummers a day ago | parent [-]

People still think that Lisps only offer lists for data structures, which hasn't been true since at least 1960.

zck a day ago | parent | prev [-]

Someone else has given you the Common Lisp version. Here's one for Clojure:

  (printf "x = %6d\ny = %.8E\n" x y)
If I've understood everything right, and your example is in C, the format string in Clojure is identical to the one in your comment.
rootnod3 a day ago | parent | prev | next [-]

I am 99% percent sure that for most of your use-cases Common Lisp has a way to do it and/or is flexible enough to change the language so that it is possible. You are talking about one of THE most malleable languages to exist. Literally a programmable programming language.

assimpleaspossi a day ago | parent | prev [-]

Are you aware that this very site is programmed in Lisp?

iLemming a day ago | parent [-]

I can't hit reply on the top level comment anymore (it's flagged and now is 'dead'). I just wanted to say that is a text-book example case of how to tell the world "I am a dilettante in my field".

Experienced pros usually recognize when they don't know something well enough to critique it meaningfully. The harshest critics often have the least hands-on experience - while people who've actually built substantial systems in various technologies tend to be more measured in their assessments.

You can sense all of the psychological patterns in that paragraph - frustration displacement, confirmation bias, cognitive shortcuts, social signaling, Dunning-Kruger effect, etc.

I guess it's quite normal, if I start reflecting on my own history of comments on HN, Reddit and other forums, perhaps I will find a few examples from my own past of knee-jerk reactions such that comment.

We all have technologies we've formed opinions about based on limited exposure, early bad experiences, or just cultural osmosis. I bet if any of us looked back, they'd find comments where they'd be responding more to the reputation of a technology or the perceived attitudes of its community rather than deep technical experience.

The key difference is usually how the criticism is framed. Compare:

- "Lisp is impractical for real work" (broad dismissal)

- "I struggled with Lisp's syntax when I tried it briefly" (personal experience)

- "I haven't used Lisp much, but I'm curious how you handle XYZ" (honest engagement)

Forums like HN reward quick, confident takes over nuanced "it depends" responses. The incentive structure almost encourages this behavior, even from people who know better in calmer moments. As we gain experience, we often become more aware of what we don't know and more cautious about sweeping statements.