Better HN
topnewbestaskshowjobs
Log inSign up

foodoos

4 karma · joined Apr 3, 2023 (3y ago) · 13 submissions

Submissions

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

The author is reaching for a code walker.

comment 3y ago · link · parent

There's a stronger abstraction than "generalized macros" and the author of this article missed it.

comment 3y ago · link · parent

Magnets can generate energy.

comment 3y ago · link · parent

> 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.

comment 3y ago · link · parent

> 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

comment 3y ago · link · parent

Emailed in the past and never heard back.

comment 3y ago · link · parent

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.