Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 3y ago · link · parent

Agreed; I'm not saying it can't happen, just pointing out that certain incentives are no longer there.

comment 3y ago · link · parent

I agree it's a bad attitude! And as someone who is (happily) married, I still do my best to stay in shape.

What I'm doing is merely listing the common reasons why the trend is what it is. Exceptional people will likely stay exceptional.

comment 3y ago · link · parent

I've heard the "marriage for happiness" trope, but who says marriage makes you healthier?

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

I find the game analogy silly. Of course reality is "like" a game – games are inspired by and modeled after reality, after all!

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

Much of this kind of analysis is relatively easy in Datalog/Souffle. You can see a tutorial paper here: https://yanniss.github.io/points-to-tutorial15.pdf

> 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

It's a great one! From a logical perspective, it's ideal for the order of constraints to not affect the outcome. This missing behavior becomes a quirk quite early on when working with Prolog.

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

Turing completeness is not a requirement of a programming language! Just because you can't do infinite computation doesn't mean you can't do infinitely useful computation :)

That said, Souffle is touring complete due to its adding of constructors to the language.

comment 3y ago · link · parent

I recommend starting with the simple example[0], then taking a look at the tutorial[1].

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

Consider using Datalog (the incredible subset of Prolog) for this perfect use case. Compared to Prolog, you get:

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!

[0] https://souffle-lang.github.io

comment 3y ago · link · parent

I assure you, there are many scientists that would love to test that, given the resources to do so.

Of course no one would fund that, meaning it's the funders deciding on what they think is plausible.

comment 3y ago · link · parent

No, science is indeed testing random ideas. Limiting what is tested to an arbitrary plausibility score is something funders and sponsors do, not scientists.

What you're talking about is ethics, which is important too.

comment 3y ago · link · parent

What? Who is "celebrating" that Apple prevents interoperability? Unless you're saying that buying a macbook is equivalent to celebrating all of Apple's decisions, a clearly false equivalency?

comment 3y ago · link · parent

Not sure what you're saying here, can you explain the negative effects you're implicitly suggesting exist?

comment 3y ago · link · parent

Also see Logical English, a "Programming Language for Law and Ethics"

https://virtuale.unibo.it/pluginfile.php/1273247/mod_unibore...

comment 3y ago · link · parent

> Humans, too, would likely be nearly stateless if we took a point-in-time snapshot...

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

Not the same thing, but another "single file app" platform in the space that looks interesting is https://val.town. Could be used as a backend for Mu apps

comment 3y ago · link · parent

You're telling someone not to paint others as "immature", yet you're painting them as having ethical and moral failures. I hope you recognize one of these is more severe than the other.

comment 3y ago · link · parent

Full static typing alleviates this greatly, allowing you to pass in what you have now and decide to refactor later if/when you need to.

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.

comment 3y ago · link · parent

"God resists the proud, but gives grace to the humble." – James 4:6, 1Peter 5:5, and many such instances throughout the bible.

comment 3y ago · link · parent

> When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

> Be kind. Don't be snarky. Edit out swipes.

https://news.ycombinator.com/newsguidelines.html

comment 3y ago · link · parent

No, it's actually quite good due to being the most advanced (and a pleasure to use) type system to achieve mainstream adoption.

comment 3y ago · link · parent

When you're forced to pick your skin color, what else are you supposed to do?

comment 3y ago · link · parent

FYI, "Hispanic/latino" don't identify as white, but they are labeled as such by outsiders for political motivations.

comment 3y ago · link · parent

Progress is always made by those with an optimal amount of ignorance :)

comment 3y ago · link · parent

Agreed. Evil wins because good does nothing. Or in this case, evil reigns because good resigns.

comment 3y ago · link · parent

Can Pharo also store data in its language runtime (which is long-running if I understand right)? If so, does that make it its own type of database?

comment 3y ago · link · parent

Onelook is incredible. Indispensable for any art of writing.

comment 3y ago · link · parent

> As we celebrate Auto-GPT's rapid ascent, it's crucial to take a step back and scrutinize its potential shortcomings.

Why is it crucial? This project has existed for barely a month, and describes itself as an experiment. Who is using this for production?

comment 3y ago · link · parent

Interesting theory, but wouldn't Jaynes' definition of consciousness imply that animals are not conscious?
12345
31