HackerTrans
TopNewTrendsCommentsPastAskShowJobs

falafel

no profile record

comments

falafel
·3 năm trước·discuss
BBC, NPR and Washington Post are all left leaning organizations funded by governments and billionaires. I don't know if I would call this "getting a reasonable overview of world and local news".
falafel
·3 năm trước·discuss
I like Angular and I think it's still a solid choice for new apps in an enterprise setting, and signals are a welcome addition that solve real problems, but I don't understand the hype. Signals are as old as JavaScript if not older. The diamond problem and sync propagation are not new problems. We've come full circle. Old problems become new problems but with the same solutions. What did we gain with all of these iterations if we landed back on what was essentially the Knockout model of 2010?

I'm reminded of papers such as "Deprecating the Observer Pattern (2010) [1]" which documented solutions to these problems a long time ago.

[1] https://www.semanticscholar.org/paper/Deprecating-the-Observ...
falafel
·3 năm trước·discuss
do-notation can be easily implemented using delimited continuations (ie. generators). Generators compose well and flatten tail calls so you don't need TCO or trampolines. The only notable issue is that one-shot delimited continuations like generators don't work with non-deterministic monads (ie. List). Multi-shot can be emulated by keeping a cache of past values and replaying the generator, but performance will suffer. See burrido [1] for a JavaScript do-notation implementation.

[1] https://github.com/pelotom/burrido