Readit News logoReadit News
euroclydon commented on Temporal .NET – Deterministic Workflow Authoring in .NET   temporal.io/blog/introduc... · Posted by u/kodablah
lorendsr · 3 years ago
For those not familiar with workflows as code, a workflow is a method that is executed in a way that can't fail—each step the program takes is persisted, so that if execution is interrupted (the process crashes or machine loses power), execution will be continued on a new machine, from the same step, with all local/instance variables, threads, and the call stack intact. It also transparently retries network requests that fail.

So it's great for any code that you want to ensure reliably runs, but having methods that can't fail also opens up new possibilities, like you can:

- Write a method that implements a subscription, charging a card and sleeping for 30 days in a loop. The `await Workflow.DelayAsync(TimeSpan.FromDays(30))` is transparently translated into a persisted timer that will continue executing the method when it goes off, and in the meantime doesn't consume resources beyond the timer record in the database.

- Store data in variables instead of a database, because you can trust that the variables will be accurate for the duration of the method execution, and execution spans server restarts!

- Write methods that last indefinitely and model an entity, like a customer, that maintains their loyalty program points in an instance variable. (Workflows can receive RPCs called Signals and Queries for sending data to the method ("User just made a purchase for $30, so please add 300 loyalty points") and getting data out from the method ("What's the user's points total?").

- Write a saga that maintains consistency across services / data stores without manually setting up choreography or orchestration, with a simple try/catch statement. (A workflow method is like automatic orchestration.)

euroclydon · 3 years ago
Seems like this would depend on some storage guarantees, but I can’t find anything about that
euroclydon commented on How Big Is Mexico?   vividmaps.com/mexico/... · Posted by u/danboarder
euroclydon · 3 years ago
Sometimes I'm not sure what the point of these Mercator criticisms are. GDP per land area is kind of more interesting, in that if you have a lot of land, but not much money, then there are probably a lot of desolate or lawless areas. https://ssz.fr/gdp/
euroclydon commented on Emacs in Odd Places (2020)   eigenbahn.com/2020/09/02/... · Posted by u/susam
euroclydon · 3 years ago
I was hoping to see an emacs macro operating a water pump or something.
euroclydon commented on Influencer parents and the kids who had their childhood made into content   teenvogue.com/story/influ... · Posted by u/newmac
PuppyTailWags · 3 years ago
More importantly, assuming that children are born owing their parents anything leads to deeply unhealthy societal outcomes:

- This enables abusive parenting styles and forces adult children to need to unlearn this lie in order to come to terms with their abuse;

- This enables parents having an outsized influence on adult children, such as controlling their sexuality, interests, physical location, etc;

Frankly: the parents have an obligation to care for their children because they generally chose to have children or chose to keep them once they were had. The child did not choose to be born and does not have a choice on the quality of their parentage. It's unacceptable to then place the burden on the child for choices they didn't make and have no control over.

euroclydon · 3 years ago
Bad parenting is like water flowing, it doesn't need any particular justification in order to be enabled and find a way to manifest itself
euroclydon commented on Governments should compete for residents, not businesses   bloomberg.com/opinion/art... · Posted by u/john_cogs
rayiner · 3 years ago
The moral obligation to allow equal participation of different groups who are already here follows from the concept of democracy. But that does not imply anything about how people within a country should view prospective immigrants. That the founders embraced certain principles because they were dealing with a union that already included disparate groups. They never confronted, much less addressed, the prospect of immigration changing the culture of already established communities.

The moral question here is more fundamental than your over-generalization of the founders’ intent. Human beings have a right to self determination, and they have the freedom of association. You don’t lose that right just because you were born in America.

euroclydon commented on The toxic tide of ship breaking   chemistryworld.com/featur... · Posted by u/whalesalad
NegativeLatency · 3 years ago
I think the point is that the corps should have to pay to keep their workers and the environment safe
euroclydon · 3 years ago
Why not just break the ships up in Western countries then? For Western countries to impose their safety and environmental regulations on other countries is denying them their sovereignty. The whole system of growth of nations and their economies is built on the fact that developing countries don't have to play by the same rules until they want to, or they have something to lose (in a reciprocal fashion, like with IP rights). In a trade regime, they're supposed to be punished when they engage in mercantilism, not self-sacrifice.
euroclydon commented on Gossip Glomers: Fly.io Distributed Systems Challenges   fly.io/blog/gossip-glomer... · Posted by u/yla92
euroclydon · 3 years ago
This is rude for pretty obvious reasons.
euroclydon commented on Why Men Are Hard to Help   nationalaffairs.com/publi... · Posted by u/mfiguiere
tptacek · 3 years ago
Yes, the part where having unrealistic expectations of a partner can lead the end of a relationship is coherent, if obvious, The part where the women is left raising a child alone is neither.
euroclydon · 3 years ago
It should also be obvious that maintaining two households is significantly more expensive than one. So excepting the cases where both parties reconstitute a household, these folks are on average poorer than their married counterparts in societies with minimal divorce. Further, the rate of failure to pay full child support in the US is high, like over 50%.
euroclydon commented on Nix: Taming Unix with Functional Programming   tweag.io/blog/2022-07-14-... · Posted by u/ingve
VTimofeenko · 3 years ago
Excellent read, thank you! Just in time, I have been eyeing one of those tinyminimicro pcs to replace OpenWRT with Nix.

Could you share more details on push_to_router.sh? Is it a wrapper around calling nixos-rebuild through ssh?

euroclydon · 3 years ago
Yes, although later I learned I could do it in a one-liner. Here nixconfig is a folder with all my nix files:

  tar -czf - nixconfig | ssh 192.168.1.1 \
    'tar -zxf - && sudo cp -r ./nixconfig/* /etc/nixos/ && sudo nixos-rebuild --show-trace '"${rebuild_flag} ${name_flag}"

u/euroclydon

KarmaCake day3708September 25, 2008View Original