Hacker Newsnew | past | comments | ask | show | jobs | submit | Volt's commentslogin

Yeah, imagine if it was about some toy operating system.


The audience here already knows what "on-demand provisioning" means.


That's obviously why it was posted.


GCD is open source and runs on FreeBSD and Linux.


Neat. Now where's the Glamorous toolkit?



Intended to be like "tree", usually pronounced "try".


Use your OS's package manager.


Are you saying Safari had the right idea?

Because I agree.


> Just ensure the invariant function is called at every method

You make this sound way easier than I would expect it to be in the general case.


They're suggesting you write the output of the codegen shown in the image here:

https://gavinray97.github.io/static/images/ghidra-check-inva...

Yeah you totally could, and before writing this plugin it's what I was doing, haha. As there is a human involved, it is very error prone though, and boy is it tedious!


You add something like:

  DCHECK(myInvariants());
to your method bodies. Sure, it makes it possible to forget, but it's not that hard to use.


A big part of DbC is that contracts are part of the public interface, not the implementation. This becomes especially important once you mesh them with Simula-style OOP, as derived classes need a way for overridden methods to widen or narrow the inherited contract.


You should literally continue reading the rest of the sentence.


Haskell doesn't have generics or templates, it has an expressive type system.


"Expressive Type System" without context is just a buzzword. In this particular context, it simply means that Haskell allows for types to be parameterised, which is a different way of saying it allows for generic types.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: