HNHacker News
TopNewBestAskShowJobs

foodoos

4 karma · joined April 3, 2023

submissionscomments
foodoos··on Generalized Macros
Thanks for sharing your experience with Ruby templates and for the links.

> I don't think the power/danger tradeoff is worth it.

The power/danger tradeoff might not be worth it for the overwhelming majority of programs. For some kinds of programs I don't see how this power can be got with anything less powerful than macros.

foodoos··on Generalized Macros
I appreciate and I'm impressed you're gratuitously positive.

I think you mean within reasonable programs that's not a metric that matters because most programs solve problems that don't need much autogeneration to be solved. For problems that do need autogeneration macros are one of the strongest ways.

A good way to become convinced of the power of macros is to try and write a web app in Arc to generate lots of HTML.

IDEs that generate a lot of the code are proof macros are needed because when you want to change the autogenerated code you have to do it by hand. Autogeneration can be done with macros and is simpler with macros.

foodoos··on Generalized Macros
The author is reaching for a code walker.
foodoos··on Generalized Macros
There's a stronger abstraction than "generalized macros" and the author of this article missed it.
foodoos··on I made my blog solar-powered, then things escalated
Magnets can generate energy.
foodoos··on Generalized Macros
> the power of Lisp macros isn't actually ever worth the responsibility in my experience

Expand your experience.

> At the very least, you can just write the code the macro would expand into.

You can "just" get it wrong when the code is used in many places.

Consider this as the hot take: macros reduce the number of characters you have to type. I haven't seen anything that beats macros in this metric.

foodoos··on The Inner Workings of Distributed Databases
> we chose our goal to be achieving multi-master replication with Async consistency. We believe that this approach strikes the best balance of fault tolerance and transaction throughput.

"SLOG: Serializable, Low-latency, Geo-replicated Transactions"

https://par.nsf.gov/servlets/purl/10126332

foodoos··on Ask HN: Who is hiring? (April 2023)
Emailed in the past and never heard back.
foodoos··on Ask HN: Who is hiring? (April 2023)
I saw a 101 min coding exercise for a position that had a verified 163 applicants. I asked for upfront payment of $101. Received no reply.