Better HN
topnewbestaskshowjobs
Log inSign up

Splizard

297 karma · joined Aug 12, 2020 (6y ago) · 75 submissions

Submissions

comment 1y ago · link · parent

This is great! There's way too many arcane text file formats (configs, Dockerfiles, workflow definitions etc) without any sort of fast feedback loop on type-safety, documentation etc.

We need more projects like this and if a system is running SystemD, this needs to be enabled and integrated with any LSP-supported editors.

32.

Duplex Numbers(duplexnumbers.com ↗)

1 points · by Splizard · 1y ago · discuss

comment 1y ago · link · parent

> makes it easier for integrators to build a robust integration with you

No, don't say 'easier'. It makes it possible to build a robust integration. We need to stop with this notion that omiting idempotency from an API just makes things "more difficult" to develop. Without idempotency, you garuantee that the resulting system is "difficult" to use and full of nasty issues that are waiting for the right conditions to collapse the entire house of cards you've built.

So many SaaS providers have never even heard of idempotency, let alone design it into their APIs. Many people believe you can just sprinkle it on as a library without having to think about it.

All APIs with multiple distributed servers must support idempotency. Refuse to do business with any organisations who do not design this into their APIs!

comment 1y ago · link · parent

> The second part demonstrates how agents communicate with each other through workflows defined in YAML

oh no

comment 1y ago · link · parent

You've set the Go code to use int64 but the other faster implementations are using int32.

comment 2y ago · link · parent

Why create a new language, rather than use an established programming language like Go where you can actually write an implementation too?

comment 2y ago · link · parent

I think the point the author is trying to express here, is that it can be a useful in API representation, to couple the design with other representations designed by other parties.

I don't think "No Abstractions" is a good framing for this, although I would have to admit I dislike use of the term abstraction, as it implies there is a hierarchy of representations.

38.

Rice's Theorem and Software Failures(blog.relyabilit.ie ↗)

1 points · by Splizard · 2y ago · discuss

39.

Freedom to Own: Open-Sourcing the Mirror(themirror.space ↗)

3 points · by Splizard · 2y ago · discuss

comment 2y ago · link · parent

Alignment, if you add a uint8 tag for example, you'll end up effectively doubling your pointer size.

comment 3y ago · link · parent

Consider a codebase where all variables are consistently named with single letters and all values are string-typed for consistency.

Somebody comes along and creates a new, isolated piece of functionality using words for variable names and using the languages type system for numeric values and structures. It works well.

It certainly looks like this inconsistency would make it easier to work with this code in the future. Any conversion functions introduced that deal with the consistent string types and the new inconsistent types will help new developers understand both types of code.

comment 3y ago · link · parent

Code unambiguously defines 'what' it's doing, so I'm not sure what value technical consistency provides.

If anything, consistency hurts the capacity for developers to generalise their understanding of a system. Differences in representation ie. multiple perspectives, help people to develop their understanding of the underlying concepts of the system.

This is important because code doesn't effectively record concepts, intents and oughts. These are things recorded within the context of the system. So the more context, usage and interactions available, the more opportunity for learning.

I think consistency is one of those things that sounds appealing and offers the illusion of making development 'easier' but boils down to someone deciding by fiat that their poorly communicated representation of the system is correct and nobody else should add their own representations of the system to build up a useful level of context and understanding.

comment 3y ago · link · parent

I guess the 1-2 star feedback is pretty useful then, it gives a good indication of how good your marketing is (the conclusion here being that only people who like the product/project should be buying/ using it).

comment 3y ago · link · parent

get rid of the cable!

comment 4y ago · link · parent

The incentive is to sell the developed property for a profit. The state would be responsible for determining what the reasonable occupancy rates are on properties for sale or under development. A paid occupier (perhaps a real-estate agent) can be placed onsite for the reasonable amount of time in order to avoid any default occupancy fees by the state.

comment 4y ago · link · parent

This 18 year old can get a loan, they can pool together with a group of flatmates to purchase a property together or they can live in staffed accommodation, such as a dorms, motel, hotel or hostel. They can purchase a room in a boarding house. They can stay with friends and family. Plenty of options.

comment 4y ago · link · parent

These businesses should be paid by the landlord to occupy (and therefore maintain) the property for them. This notion that you can own land without occupying it (or paying somebody to occupy it) is an absurdly backwards idea that is responsible for a lot of suffering and exploitation in modern society.

We've constructed a bit of a euphemism for this. "I just want to make a living to put food on my plate". Except it's not the food that's expensive. It's the rent. Which in many places, for low income earners amounts to greater than 50% of their take home pay.

In my city there are dozens of empty stores in the CBD "for lease" as if there is no demand for use of these properties. Absolutely ridiculous. Strangely enough, everyone thinks that renting a home or workplace to occupy is a perfectly normal thing to do.

Would be great to have a discussion on this.

comment 4y ago · link · parent

There's not a lot of context here around what exactly this means in relation to your project, however what this could mean, is that the project is more of a minimum-viable implementation rather than a customer-facing product/service.

Some useful questions to consider here could be:

Does this product/service have a good customer-experience? Is it usable with supporting documentation?

Does the product/service have a clear documented purpose and roadmap? Why does it exist? Does it have an identity?

Are you developing maintainable processes and practices around this product/service in order to secure its future and enable growth?

Without a wider amount of work to establish concrete answers to these questions, a project could be considered to be more of a feature than a startup/business.

comment 4y ago · link · parent

Enum supports an exhaustive Switch as well, here's an example based on the blog post: https://go.dev/play/p/Ef78vLyw33g

comment 4y ago · link · parent

Sum types: https://go.dev/play/p/R7Bhy2LDmde

Enums: https://go.dev/play/p/MnbmE0B3sSE

Here you go.

comment 4y ago · link · parent

Go 1.18 supports type-safe enums and sum types. It takes 300loc to implement.

comment 4y ago · link · parent

No, it does. Go 1.18 supports closed enums.

comment 4y ago · link · parent

Right, the builtin switch statement is not exhaustive but you can quite easily create a Switch method on your enum type in Go 1.18+ that is exhaustive.

comment 4y ago · link · parent

Since 1.18 was released it's now trivial to implement compile-time (safe) 'sum types' in Go. They're fully supported.

It's about 300loc to implement and then sum types can be defined declaratively just like any other type (and without any boilerplate).

There hasn't been any fanfare about this capability because it doesn't require any special syntax or new keywords. Just know that the suggestion that "Go 1.18+ doesn't support sum types and/or enums", is very wrong.

comment 4y ago · link · parent

SYSTEMANTICS. THE SYSTEMS BIBLE / How Systems Work and Especially How They Fail

comment 4y ago · link · parent

> but the messaging and coordination system in itself does not produce energy.

Isn't this exactly how energy works? Aren't photons, electrons and other force carriers merely message passing?

comment 4y ago · link · parent

Money is a form of energy, where conservation and the laws of thermodynamics apply. I'm surprised that there isn't widespread understanding of this.

The common understanding appears to be that money is just an imaginary human-thing and that often "we would be better off without it".

Consider the case of a crypto mine being established in a remote and isolated location in the desert (or on the moon) with plenty of sunshine and solar power. As long as the mine has an internet connection, it can use the available solar energy to mine crypto and send them to anyone on earth. This physically results in the mine being able to transmit energy wirelessly across vast distances.

Almost like magic.

Sure, it's not in an electrical form and there is energy loss, but at the end of the day, the result is a very real physical capacity to do work.

comment 4y ago · link · parent

So the answer is, standardize communication/protocols but leave procedure to the free market?

comment 4y ago · link · parent

Except when Tim decides to standardize how each micro-service is built, using a custom framework...

comment 4y ago · link · parent

Let me SSH into a cluster and navigate the configuration database like a virtual filesystem. Make it feel more like a traditional operating system. That will make Kubernetes more approachable.
123