Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
BreakfastB0b
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
BreakfastB0b
4y ago
Of course, all the to-do about alternative meats overlooks another dietary option, one with the lowest environmental footprint of all: Simply eat less meat and more beans, grains and vegetables. The additional processing involved in plant-
32.
▲
by
BreakfastB0b
4y ago
We don’t do anything like this in Australia. I can’t imagine being forced every morning to pledge something you’re not old enough to understand.
33.
▲
by
BreakfastB0b
4y ago
Sorry for context I live in Australia and the OP said he’s from the UK. Both places have Universal Health care so “full time benefits” are not really a thing here. I just started responding to recruiters that I was only interested in contra
34.
▲
by
BreakfastB0b
4y ago
Try working as a “contractor” on less than full time hours. Say 3-4 days a week. I made the switch 2 years ago and will never go back to full time. I hadn’t worked on a side project for years prior, now I feel like I have enough energy to w
35.
▲
by
BreakfastB0b
4y ago
Yeah I have no idea what icedchai is talking about, DynamoDB free tier is super generous https://aws.amazon.com/dynamodb/pricing/on-demand/ . It's going to cost you nothing until you have enough customers
36.
▲
by
BreakfastB0b
4y ago
Thanks for the feedback, I should have spent more time connecting the logic statement to the equivalent rust syntax as you’re right the post has a weird audience problem otherwise. You either already know logic well enough that the proof is
37.
▲
by
BreakfastB0b
4y ago
Yeah that makes sense, thanks for explaining. I don't want to make it seem like I'm proving anything novel here, the proof I work through is definitely pretty basic as far as proofs go. It's written somewhat narratively becau
38.
▲
by
BreakfastB0b
4y ago
I’m not sure I understand the connection to dependent types, would you be able to elaborate?
39.
▲
by
BreakfastB0b
4y ago
That’s totally fair, it does make it sounds like I’m verifying the compiler’s implementation of it. However it is proving that making such a transformation between the two styles of static dispatch is always sound. What would you have title
40.
▲
by
BreakfastB0b
4y ago
Absolutely! Every time I think there's a boring area of Computer Science when I read more deeply into it, it turns out to be amazing. Even something which I hated in University like Complexity Analysis turned out to be utterly fascinat
41.
▲
by
BreakfastB0b
4y ago
I didn't mean to imply that people should be using Coq or another proof assistant in their development workflow. More that understanding formal verification aids in thinking about typed programs. However no type system of a Turing comp
42.
▲
by
BreakfastB0b
4y ago
Author here. Glad you liked it! I’ve had a real fear of writing since High School and so starting this blog is my attempt to work through it. It’s a shame that more engineers don’t have the time or interest to learn formal verification beca
43.
▲
Formally Verifying Rust's Opaque Types
(dylanj.xyz)
133 points
by
BreakfastB0b
4y ago
|
65 comments
44.
▲
by
BreakfastB0b
4y ago
TIL
45.
▲
by
BreakfastB0b
4y ago
Minor nitpick but goroutines are absolutely not preemptable, they’re cooperative. The go compiler regularly sticks in yield statements around IO, and certain function calls, but you absolutely can starve the runtime by running a number of g
46.
▲
by
BreakfastB0b
4y ago
It's not great, but I use this pattern to check / enforce interface membership. type Bar interface { BarMethod(int, int) int } type Foo struct {} // Error: Foo does not implement Bar (missing method BarM
47.
▲
by
BreakfastB0b
4y ago
Concurrency is a major stumbling block https://eng.uber.com/data-race-patterns-in-go/ . Mutexs, conditional variable subtleties, wait groups, null pointer propagation, partial struct initialisations, channel lifetime co
48.
▲
by
BreakfastB0b
4y ago
How long before someone figures out how to encode lightweight higher kinded types[1] in Golang. There shall be weeping and gnashing of teeth. [1] https://ybogomolov.me/01-higher-kinded-types/
49.
▲
by
BreakfastB0b
4y ago
Facebook’s algorithm deliberately amplified this speech to increase profit. I’d say that counts as a kind of editorial discretion which then comes with a moral responsibility for the consequences of that editorialising. If Facebook wants to
50.
▲
by
BreakfastB0b
4y ago
We recently adopted it at my company for managing local dev machines, project environments, and CI. It definitely has some warts, often the best documentation is “read the source code”, but man is it an awesome tool. I’ve switched all of my
51.
▲
by
BreakfastB0b
5y ago
Underrated point. Conservation Laws emerge from symmetries via Noether's theorem. In particular, Conservation of Mass / Energy arises from Time Translation Symmetry. General Relativity doesn't have Time Translation Symmetry b
52.
▲
by
BreakfastB0b
5y ago
Banach–Tarski relies upon the Axiom of Choice / Law of the Excluded Middle. Zermelo–Fraenkel set theory is independent of the Axiom of Choice and there's an entire field of Mathematics called Constructivist Mathematics which avoid
53.
▲
by
BreakfastB0b
5y ago
Yes! Formally verified implementations of Elliptic Curve algorithms http://adam.chlipala.net/theses/andreser_meng.pdf . Amazon has also made use of TLA+ and lightweight formal methods to prove the correctness of their d
54.
▲
by
BreakfastB0b
5y ago
Human Bacon, the final frontier. How long until you can buy Beyond Human burgers?
55.
▲
by
BreakfastB0b
5y ago
I think I miscommunicated what I meant, there was an implicit assumption that copying value types over channels was bad due to GC overhead. Efficient Immutable data structures let you have your cake and eat it too. You can avoid GC overhead
56.
▲
by
BreakfastB0b
5y ago
This is something I'm hoping will change with the introduction of Generics. Right now using any custom data structures like immutable map or lists are very cumbersome requiring either code generation or runtime type coercion via `inter
57.
▲
by
BreakfastB0b
5y ago
Tell me you didn’t read the article without telling me you didn’t read the article. The paper uses the Casimir effect to avoid the need for negative mass.
58.
▲
by
BreakfastB0b
5y ago
It’s probably supposed to be (P & R) <-> (Q & S)
59.
▲
by
BreakfastB0b
5y ago
Very cool! Thanks for the link! Got a lot of reading to do. However I do wonder if it’ll turn out that these higher dimensional geometric problems turn out to have the same structure as Godel’s proof. That the higher dimensional geometric s
60.
▲
by
BreakfastB0b
5y ago
The only ones I’m aware of are. Can you link me some examples? I’d like to read up on it.
More ›