News for hackers. Stuff that matters.
Re:Rust's Type System Is Turing-Complete: Type-Level Program... by deegles on Saturday March 11, 2017 @01:47AM (#13844559)
Serious question... should I spend time in 2017 on Prolog? It seems like another case of "everything old is new again"...
Re:Rust's Type System Is Turing-Complete: Type-Level Program... by pjmlp on Saturday March 11, 2017 @01:55AM (#13844575)
Yes, you surely should, even if it is just wasting a few hours over a few weekends.

Getting to grasp logic programming would improve your skills, even if you never use Prolog again.

Use SWI-Prolog, one of the best free implementations out there.

http://www.swi-prolog.org/

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by qznc on Saturday March 11, 2017 @02:34AM (#13844662)
Yes, for the concepts. Just like it helps to know relational databases, even if you always use an ORM in practice.

It is debatable if Datalog is enough or if cuts et al are worthwhile.

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by pjmlp on Saturday March 11, 2017 @11:49AM (#13846048)
> even if you always use an ORM in practice.

I seldom use an ORM, I rather leave the work for the database engine.

My knowledge of PL/SQL, Transact-SQL, PL/pgSQL is way better than trying to make an ORM perform better.

Something like Dapper.NET or jOOQ are good enough for the remaining part of the work.

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by fauigerzigerk on Saturday March 11, 2017 @03:32AM (#13844793)
Not sure if ORMs are a good analogy here. ORMs are a leaky and misleading abstraction on top of an actual RDBMS.
Re:Rust's Type System Is Turing-Complete: Type-Level Program... by charlieflowers on Saturday March 11, 2017 @02:51PM (#13846872)
The GP seems to be thinking in the opposite direction. His analogy is that knowing an ORM but not SQL is like not knowing Prolog, and that adding knowledge of SQL to your ORM knowledge is like learning Prolog.

So the argument is that it is a similar eye-opening transition from ignorance to awareness.

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by continuational on Saturday March 11, 2017 @07:19AM (#13845222)
Well, SQL is a pretty complicated implementation of Datalog. I think it's easier to learn Prolog from first principles, since the pure subset is pretty simple.
Re:Rust's Type System Is Turing-Complete: Type-Level Program... by chubot on Saturday March 11, 2017 @12:25PM (#13846208)
Probably related? I still have to go over this:

"Writing custom type systems for Python in Prolog"

https://news.ycombinator.com/item?id=12108041

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by _nalply on Saturday March 11, 2017 @04:03AM (#13844848)
Try to implement the unification algorithm yourself.

Example https://unify.ly5.ch/ (Caveat: it's an old implementation)

Re:Rust's Type System Is Turing-Complete: Type-Level Program... by sitkack on Saturday March 11, 2017 @08:46AM (#13845393)