(no subject)

Date: 2009-12-22 11:33 pm (UTC)
From: [identity profile] mentalguy.livejournal.com
Think about the type domain in ML dialects. Hindley-Milner type inference -- particularly with the introduction of type class constraints as in Haskell -- starts to look a LOT like value-domain Prolog.

(no subject)

Date: 2009-12-23 06:11 am (UTC)
From: [identity profile] kragen.livejournal.com
Hindley-Milner type inference is decidable and therefore can't do anything interesting.

(no subject)

Date: 2009-12-23 01:52 pm (UTC)
From: [identity profile] maradydd.livejournal.com
Say what? You can do a lot of interesting things with decidable languages. Sure, you can't do everything, but there's a lot you can express with linear-bounded automata.

(no subject)

Date: 2009-12-27 06:13 am (UTC)
From: [identity profile] mentalguy.livejournal.com
For that matter, with common Haskell extensions, type inference isn't strictly decidable either.

(no subject)

Date: 2009-12-27 06:07 pm (UTC)
From: [identity profile] kragen.livejournal.com
When I posted that comment I thought someone might respond this way.

The extent to which HM type inference falls short of Turing-completeness is a bigger difference between it and Prolog than almost any other conceivable language feature. I'm pretty sure you can't emulate an LBA with HM type inference. You can't emulate a PDA or even a DPDA, as far as I know. You don't even have definite iteration (for i = 1 to 10).

I'd be on pretty shaky ground saying you can't emulate a FSM with HM type inference, but I also don't see how to do it.

(no subject)

Date: 2009-12-27 06:15 pm (UTC)
From: [identity profile] maradydd.livejournal.com
This is the part where my knowledge of type systems falls down, and where I'd go dig out my copy of Pierce's Types and Programming Languages if I knew which box it was in, because I know Pierce gets into the decidability of the simply typed lambda calculus and what you can do with it, but I don't remember much of that chapter. It's one of those books I need to read five or six times before I really understand it.

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags