2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions
comment 3y ago · link · parent
It doesn't take much for someone to sacrifice their health for something – whether it's for a job, leisurely activities, stress eating, or just not caring.
Marriage adds more reasons on top of this. You've found your mate, so less incentive to go to the gym / stay in shape. You've just had a kid, so less time overall to do so, and (especially!) less sleep in general, which causes all sorts of problems.
Can anyone recall a "marriage makes you healthier" trope? Seems like a straw-man to me?
comment 3y ago · link · parent
If you flip it around to say "games are like working at a remote job", then the flaw becomes obvious. A remote job is not like playing all games – only the ones with activities that mirror what we already do in real life. Which is, ultimately, not a very interesting statement.
comment 3y ago · link · parent
> the part I am currently stuck in is creating a reasonable abstraction level where I can reason (in soufflé) about code and not about an AST
I recommend aiming for an abstraction level similar to the one in the paper (starts on page 9). Once you have that target, writing relations to convert an AST fact such as `binary_op("=", leftId, rightId)` to `Move(to, from)` is fairly straightforward!
comment 3y ago · link · parent
That said, order of constraints can affect performance. But since reordering doesn't affect outcome, you are free resort them as you wish in effort to optimize for better performance :)
comment 3y ago · link · parent
But I do agree that being familiar with Prolog is a big help in understanding what Souffle is. For a quick intro to Prolog, I recommend this video[2], which speaks from a "industry practical" point of view, and introduces concepts that almost all apply to Datalog :)
[0] https://souffle-lang.github.io/simple
[1] https://souffle-lang.github.io/tutorial
[2] https://twitter.com/ThePrologClause/status/15006425339400233...
comment 3y ago · link · parent
1. Free de-duplication. No more debugging why a predicate is returning the same result more than once.
2. Commutativity. Order of predicates does not change the result. Finally, true logic programming!
3. Easy static analysis. There are many papers that describe how to do points-to analysis (and other similar techniques) with Datalog rules that fit on a single page :O
Souffle[0] is a mature Datalog that is highly performant and has many nice features. I highly recommend playing with it!
comment 3y ago · link · parent
https://virtuale.unibo.it/pluginfile.php/1273247/mod_unibore...
comment 3y ago · link · parent
I highly doubt that would ever be possible in practice, as our inputs are much too complex. But I want to point out, you're basically saying here "humans are nearly stateless if we take a snapshot of their state and simulate that state..."
comment 3y ago · link · parent
comment 3y ago · link · parent
For example, if you remove a field that's still needed, you'll receive a type error, eliminating the problem of losing track of use cases.