News for hackers. Stuff that matters.

acdw

Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:29PM (#48379543)
In CL and Scheme, it's (let ((var1 val) (var2 val)) body...). So parentheses are used for grouping and function/macro application. In Clojure, parens are just used for application, so you have e.g. (let [var1 val var2 val] body...), or (defn foo [x] ..) or (cond testa 1 testb 2 ...).

It takes some getting used to, and I do wish Clojure would do something more like (let [[var1 val] [var2 val]] ... .. though of course then you'd have to figure something else out for destructuring.

Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:25PM (#48379526)
I have heard of Smalltalk and it is intriguing but honestly I don't even know how to get started with it lol
Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:25PM (#48379524)
It's ok because I'm a hobbyist programmer!
Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:25PM (#48379520)
I use Emacs's built-in structural editing bindings, which doesn't have the auto-move-past any kind of paren/bracket thing. Maybe I could add that in.

But I was talking about like, when refactoring, I'll maybe change something from a list to a vector, and I have to change the delimiters at front and back. Or, where electric-pair does do the move-past-all-parens thing when I just spam ), it doesn't do that with ]}]}]]}}]})).

Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:21PM (#48379504)
This is very much what I meant in the post (hi, I'm the author :P)! CL has maps, but they're a pain to use - not just because of the syntax, but because of the relative dearth of standard library functions to work with them compared to say, lists or even vectors.
Re:My thoughts after using Clojure for about a month on Tuesday June 02, 2026 @11:19PM (#48379493)
Oh I've written an SSG in multiple variations of lisp, as well as sh, make, and most other languages I toy around with. It's been a good "kick the tires" project but I think I need a new one.
HAHAHAH Hell yeah that's praxis baby die mad about it
Re:Meow: Yet another modal editing on Emacs on Friday September 12, 2025 @11:47PM (#45229139)
> What works best for me is no modal editing at all.

I used vim for 8 years and after switching to Emacs, realized that I'm the same. I was spending way more time (in vim) thinking about (to borrow another commenter's metaphor) how I was going to play the notes than what notes I was going to write.

Re:AI crawlers haven't learned to play nice with websites on Tuesday March 18, 2025 @10:13AM (#43399668)
could you share the code for that? thinking I could set up a fail2ban rule for these ips
Re:I am rich and have no idea what to do on Thursday January 02, 2025 @06:34PM (#42580278)
seriously, study after study shows that just giving people money is the most effective form of altruism. just give it away. go to your city's homeless shelter and give money away. write a check for your local school board. keep everything anonymous. give it all away.
Re:Ask HN: Why isn't having two or three careers the norm? on Tuesday November 26, 2024 @08:24PM (#42251999)
I remember reading long ago that the average person changes careers 6 times. So that means that half of everyone changes more than 6 times.
Re:Smallest Typeface (3x3) on Thursday December 28, 2023 @11:06PM (#38801667)
> Please do not post this article to Hacker News.

oop!

honestly I'm so sick of this attitude. it's the same as the recycling push...when like a dozen companies are creating the vast majority of pollution, there's not a lot us little people can do. HSAs are a symptom of an extremely broken system. we should fix the system, not max out on our HSAs (if we even can...see the other replies to this post)
$ cat ai.txt no $
$ cat ai.txt no
Re:Why Lisp? on Sunday May 07, 2023 @01:43PM (#35853763)
so Lisp is actually not a pure language, like, at all. Emacs is often written about as a big hairy ball of state and Lisp itself can be as imperative or statefule as you want. So while I don't know much about what you're designing, Lisp wouldn't be necessarily a bad choice.
Re:Speak English to me, The secret World of Programmers on Friday March 17, 2023 @09:27AM (#35196794)
I agree, and I've seen more "blogs" on GitHub lately. it's very annoying.
Re:Speak English to me, The secret World of Programmers on Friday March 17, 2023 @09:26AM (#35196777)
I really wish people would stop writing blogs in naked GitHub repos.
I humbly submit either bash, sh, or zsh --- they all put dotfiles in $HOME that you can't move (zsh technically /can/, but they're still dotfiles and you have to set them in ~/.zshenv). Very annoying IMO.

Course, might not work so well with the way boxxy is run ... unless you chsh to boxxy bash or something.

Re:Ask HN: Would You Work for Elon? on Wednesday November 16, 2022 @11:26AM (#33625748)
God no LMAO
Re:Ask HN: What are your “scratch own itch” projects? on Sunday November 13, 2022 @01:43PM (#33586018)
Pretty much all of my Emacs packages are scratching my own itch. Most of them are at codeberg:

https://codeberg.org/acdw

Just hopping in to say : it's laughable to claim that open source projects have "hard-coded" anything. It's literally impossible to hard code things when anyone can download the source, edit it, compile it and run it on any machine they own
Re:So you want to be a writer? on Friday September 16, 2022 @04:40PM (#32871755)
thank you!
Re:So you want to be a writer? on Friday September 16, 2022 @04:39PM (#32871746)
okay ya got me! i've read one posthumous book by bukowski and heard that one modest mouse song ... i should obviously read more because the random pick you gave is, indeed, pretty good.

thanks for changing my mind :)

Re:Ask HN: What interesting problems are you working on? on Friday September 16, 2022 @10:02AM (#32866150)
I'm writing an ed clone in scheme. I hope to have autoindentation since that's about the only thing I miss with ed.
Re:Facebook bans Holocaust film for violating race policy on Friday September 16, 2022 @08:20AM (#32865129)
I'm really bothered by the way you casually conflate an actual war in the middle east---the longest war in American history, by the way---with a metaphorical war on domestic violent extremism and neonazism. these are two very different things.
Re:So you want to be a writer? on Friday September 09, 2022 @10:05AM (#32779398)
Maybe I should read more Bukowski. Have you any recommendations?
Re:So you want to be a writer? on Friday September 09, 2022 @10:04AM (#32779388)
I mean there is no art there. There is art, there is angst, in OG punk songs, and the music helps. There is no art in Bukowski's poems. His line breaks are all over the place, he's cynical and bitter, and ... that's it. That's all there is to his writing. There's no nuance, no feeling, no nothing.

At least punk songs have some kind of emotional resonance, or at the very least a good hook, you know?

I guess what I'm saying is that every Bukowski poem I've read reads like one I wrote in seventh grade.

Re:So you want to be a writer? on Friday September 09, 2022 @01:25AM (#32775618)
honestly this is such a bad take and it really annoys me. it's okay if it doesn't come easily! some of the best works of art took ages to conceptualize and realize, and the fact bukowski thinks that's antithesis to art shows in his sloppy and unconsidered writing.
Re:Ask HN: Can I see your scripts? on Monday August 15, 2022 @01:53PM (#32472992)
MISC is a really good name for these ---- I've been putting them in ~/src/vendor but I might just move em to ~/misc :D

Older »