caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] First-Class Types?!
@ 2016-10-11 21:55 Oliver Bandel
  2016-10-11 21:57 ` Oliver Bandel
  2016-10-12  7:07 ` Kakadu
  0 siblings, 2 replies; 8+ messages in thread
From: Oliver Bandel @ 2016-10-11 21:55 UTC (permalink / raw)
  To: caml-list

Hello,

will there be first-class types in OCaml one day?

GADT and first-class-modules as a first step towards
first-class-types?

Is it planned?
Is it possible in OCaml at all?


Ciao,
    Oliver


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-11 21:55 [Caml-list] First-Class Types?! Oliver Bandel
@ 2016-10-11 21:57 ` Oliver Bandel
  2016-10-11 22:20   ` Oliver Bandel
  2016-10-12  7:07 ` Kakadu
  1 sibling, 1 reply; 8+ messages in thread
From: Oliver Bandel @ 2016-10-11 21:57 UTC (permalink / raw)
  To: caml-list

Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Tue, 11 Oct 2016  
23:55:21 +0200)

> Hello,
>
> will there be first-class types in OCaml one day?
[...]

Meaning: types as first-class values...


Ciao,
    Oliver


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-11 21:57 ` Oliver Bandel
@ 2016-10-11 22:20   ` Oliver Bandel
  2016-10-11 23:09     ` Ivan Gotovchits
  0 siblings, 1 reply; 8+ messages in thread
From: Oliver Bandel @ 2016-10-11 22:20 UTC (permalink / raw)
  To: caml-list


Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Tue, 11 Oct 2016  
23:57:48 +0200)

> Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Tue, 11 Oct  
> 2016 23:55:21 +0200)
>
>> Hello,
>>
>> will there be first-class types in OCaml one day?
> [...]
>
> Meaning: types as first-class values...


...or does static types contradict first-class types?


Ciao,
    Oliver


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-11 22:20   ` Oliver Bandel
@ 2016-10-11 23:09     ` Ivan Gotovchits
  2016-10-12  7:25       ` Oleg
  0 siblings, 1 reply; 8+ messages in thread
From: Ivan Gotovchits @ 2016-10-11 23:09 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: caml-list


> On Oct 11, 2016, at 6:20 PM, Oliver Bandel <oliver@first.in-berlin.de> wrote:
> 
> 
> Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Tue, 11 Oct 2016 23:57:48 +0200)
> 
>> Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Tue, 11 Oct 2016 23:55:21 +0200)
>> 
>>> Hello,
>>> 
>>> will there be first-class types in OCaml one day?

OCaml with first-class types is called Coq. 

>> [...]
>> 
>> Meaning: types as first-class values...
> 
> 
> ...or does static types contradict first-class types?

They do not… once you have decided what is the type of type, and should it be first class too :)



> 
> Ciao,
>   Oliver
> 
> 
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-11 21:55 [Caml-list] First-Class Types?! Oliver Bandel
  2016-10-11 21:57 ` Oliver Bandel
@ 2016-10-12  7:07 ` Kakadu
  2016-10-12  7:11   ` Haoyang Wang
  2016-10-12 11:39   ` Oliver Bandel
  1 sibling, 2 replies; 8+ messages in thread
From: Kakadu @ 2016-10-12  7:07 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: Caml List

Which languages already have first class types? Where can I read about it?

Kakadu

On Wed, Oct 12, 2016 at 12:55 AM, Oliver Bandel
<oliver@first.in-berlin.de> wrote:
> Hello,
>
> will there be first-class types in OCaml one day?
>
> GADT and first-class-modules as a first step towards
> first-class-types?
>
> Is it planned?
> Is it possible in OCaml at all?
>
>
> Ciao,
>    Oliver
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-12  7:07 ` Kakadu
@ 2016-10-12  7:11   ` Haoyang Wang
  2016-10-12 11:39   ` Oliver Bandel
  1 sibling, 0 replies; 8+ messages in thread
From: Haoyang Wang @ 2016-10-12  7:11 UTC (permalink / raw)
  To: Caml List

> On Oct 12, 2016, at 12:07 AM, Kakadu <kakadu.hafanana@gmail.com> wrote:
> Which languages already have first class types? Where can I read about it?

Coq https://coq.inria.fr

See also https://en.wikipedia.org/wiki/Lambda_cube

Haoyang

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-11 23:09     ` Ivan Gotovchits
@ 2016-10-12  7:25       ` Oleg
  0 siblings, 0 replies; 8+ messages in thread
From: Oleg @ 2016-10-12  7:25 UTC (permalink / raw)
  To: oliver, ivg; +Cc: caml-list


Currently MetaOCaml does not allow struct ... end and sig ... end
to appear within brackets. If it did, it becomes legitimate to talk
about splices not only within expressions but also type definitions,
etc. So, the notion of first-class types arises quite naturally once
we considered staging.

We have tried to contemplate this question and what good might
first-class types do. One immediate benefit would be specializing
functor applications and reducing/removing overhead of using
functors. When we thought about it further, it turns out we can do
essentially the same in existing (Meta)OCaml. Hence the problem: we
couldn't come up with a compelling example why we would need to extend
staging to type expressions. You can read more details in the PEPM
2016 paper

        http://okmij.org/ftp/meta-programming/StagingNG.pdf


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] First-Class Types?!
  2016-10-12  7:07 ` Kakadu
  2016-10-12  7:11   ` Haoyang Wang
@ 2016-10-12 11:39   ` Oliver Bandel
  1 sibling, 0 replies; 8+ messages in thread
From: Oliver Bandel @ 2016-10-12 11:39 UTC (permalink / raw)
  To: Kakadu; +Cc: Caml List

Aldor has first class types.
Aldor was developed as add-non language for the AXIOM-CAS.


Aldor:
   http://www.aldor.org/


AXIOM:
   http://axiom-developer.org/


Ciao,
    Oliver


Zitat von Kakadu <kakadu.hafanana@gmail.com> (Wed, 12 Oct 2016 10:07:27 +0300)

> Which languages already have first class types? Where can I read about it?
>
> Kakadu
>
> On Wed, Oct 12, 2016 at 12:55 AM, Oliver Bandel
> <oliver@first.in-berlin.de> wrote:
>> Hello,
>>
>> will there be first-class types in OCaml one day?
>>
>> GADT and first-class-modules as a first step towards
>> first-class-types?
>>
>> Is it planned?
>> Is it possible in OCaml at all?
>>
>>
>> Ciao,
>>    Oliver
>>
>>
>> --
>> Caml-list mailing list.  Subscription management and archives:
>> https://sympa.inria.fr/sympa/arc/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-12 11:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 21:55 [Caml-list] First-Class Types?! Oliver Bandel
2016-10-11 21:57 ` Oliver Bandel
2016-10-11 22:20   ` Oliver Bandel
2016-10-11 23:09     ` Ivan Gotovchits
2016-10-12  7:25       ` Oleg
2016-10-12  7:07 ` Kakadu
2016-10-12  7:11   ` Haoyang Wang
2016-10-12 11:39   ` Oliver Bandel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).