Better HN
topnewbestaskshowjobs
Log inSign up

rlaitila

68 karma · joined Aug 7, 2015 (11y ago) · 7 submissions

Submissions

comment 4y ago · link · parent

I think this article conflates interface and specification:

interface: describe required inputs in exchange for perceived outputs. No more, no less. Environmental concerns or invariants are the responsibility of the conformer. Interfaces communicate a boundary of incomplete information while allowing interoperability in face of incomplete information. Interfaces are explicitly inclusive.

specification: describe the exact inputs and exact outputs while describing all invariants. specifications communicate the exact conditions in which inputs/outputs can be exchanged and all possible (known) invariants. Specifications are explicitly exclusive.

Per the article:

  const Animal = union(enum){
     cat: Cat,
     dog: Dog,

Is a specification not an interface. At no point can I conform to this "interface" without the "interface" knowing of my existence. Animal must know about all possible invarients to operate correctly, such that it is a specification.

If I want to join two pieces of pipe together, the interface would be the inner diameter say 1". The specification of some use case would say only 1" inner diameter pipes can be joined with other 1" inner diameter pipes that have an outer-diameter of at minimum 1.25" due to "pressure constraints". If I choose a pipe that has the same inner diameter but different outer diameter, I've conformed the interface but failed the specification.

The rest of the article seems to try and affirm the interface argument by jumping into syntax and compilation arguments. I fail to see how this has anything to do with Zig or abstract ideas of interfaces.

comment 11y ago · link · parent

My first post. I wanted to put something up that would spur interesting discussion. I'll be sure to look closer at how I name a submission.

comment 11y ago · link · parent

I agree with you. SELinux should be on by default much like a firewall, but I guess I was referring to packages not shipping selinux policies leaving the user in limbo about why the software which is documented to work out of the box does not.

comment 11y ago · link · parent

Looks like the maintainer provides the sources in the release section:

https://github.com/bmatzelle/gow/releases

comment 11y ago · link · parent

I can't recall how many times i've installed vetted packages from a mainline distro, and the software does not work as expected due to some obscure selinux formality I have to wade through.

When you want users to use your software by default, users should not need to touch it by default.

Sorry about your luck selinux, probably not your fault.

6.

Gow - A lightweight alternative to Cygwin(github.com ↗)

79 points · by rlaitila · 11y ago · 60 comments