unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Functional language syntax
@ 2010-12-22 11:30 Hans Aberg
  2010-12-22 21:12 ` Linas Vepstas
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Aberg @ 2010-12-22 11:30 UTC (permalink / raw)
  To: guile-user

I have put up the source code of the standard functional language  
syntax program on top of Guile mentioned in earlier posts. One can see  
that Guile already has a combined imperative/functional syntax, but to  
go further, it would need to be extended.

Take down the file guile++.tar.bz2 inside the folder on the webpage  
below, unpack using 'tar -xjf'; inside there is a file Readme.txt with  
further instructions and examples. It is possible to pretty-print as  
Scheme code, so it should be easy to see what the program does.

   Hans


https://www-lagring.telia.se/Shares/Home.aspx?ShareID=e195dec2-1c1a-42a1-851e-da47e674d91b





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

* Re: Functional language syntax
  2010-12-22 11:30 Functional language syntax Hans Aberg
@ 2010-12-22 21:12 ` Linas Vepstas
  2010-12-22 21:23   ` Hans Aberg
  2011-01-04 16:51   ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Linas Vepstas @ 2010-12-22 21:12 UTC (permalink / raw)
  To: Hans Aberg; +Cc: guile-user

Hi,

On 22 December 2010 05:30, Hans Aberg <haberg-1@telia.com> wrote:
> I have put up the source code of the standard functional language syntax
> program on top of Guile mentioned in earlier posts. One can see that Guile
> already has a combined imperative/functional syntax, but to go further, it
> would need to be extended.

It would be useful to recap; I don't remember the earlier posts. Yours is
a new project that does what? to solve what problem?

Off-topic -- but -- are there any scheme extensions to add CAML-like
type system & type inference, etc. to the language?

--linas



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

* Re: Functional language syntax
  2010-12-22 21:12 ` Linas Vepstas
@ 2010-12-22 21:23   ` Hans Aberg
  2011-01-04 16:51   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Aberg @ 2010-12-22 21:23 UTC (permalink / raw)
  To: linasvepstas; +Cc: guile-user

On 22 Dec 2010, at 22:12, Linas Vepstas wrote:

>> I have put up the source code of the standard functional language  
>> syntax
>> program on top of Guile mentioned in earlier posts. One can see  
>> that Guile
>> already has a combined imperative/functional syntax, but to go  
>> further, it
>> would need to be extended.
>
> It would be useful to recap; I don't remember the earlier posts.  
> Yours is
> a new project that does what? to solve what problem?

It was just mentioned in the body of some of my posts at the beginning  
of this month.

> Off-topic -- but -- are there any scheme extensions to add CAML-like
> type system & type inference, etc. to the language?

That is my intent to experiment with; I have looked at Goops a bit.

I am just doing my own language; right now it is close to Scheme in  
semantics. The syntax I have chosen is though intended to prepare for  
some typing. Since Guile is dynamic, one can probably go further than  
in statically typed languages.




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

* Re: Functional language syntax
  2010-12-22 21:12 ` Linas Vepstas
  2010-12-22 21:23   ` Hans Aberg
@ 2011-01-04 16:51   ` Ludovic Courtès
  2011-01-04 19:39     ` Hans Aberg
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2011-01-04 16:51 UTC (permalink / raw)
  To: guile-user

Hello & Happy New Year!

Linas Vepstas <linasvepstas@gmail.com> writes:

> Off-topic -- but -- are there any scheme extensions to add CAML-like
> type system & type inference, etc. to the language?

There’s Typed Racket: <http://docs.racket-lang.org/ts-guide/>.

Bigloo understands optional type annotations but uses them mostly for
optimization purposes:
<http://www-sop.inria.fr/mimosa/fp/Bigloo/doc/bigloo-26.html#Explicit-typing>.

Thanks,
Ludo’.




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

* Re: Functional language syntax
  2011-01-04 16:51   ` Ludovic Courtès
@ 2011-01-04 19:39     ` Hans Aberg
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Aberg @ 2011-01-04 19:39 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-user

On 4 Jan 2011, at 17:51, Ludovic Courtès wrote:

>> Off-topic -- but -- are there any scheme extensions to add CAML-like
>> type system & type inference, etc. to the language?
>
> There’s Typed Racket: <http://docs.racket-lang.org/ts-guide/>.
>
> Bigloo understands optional type annotations but uses them mostly for
> optimization purposes:
> <http://www-sop.inria.fr/mimosa/fp/Bigloo/doc/bigloo-26.html#Explicit-typing 
> >.

The Hindley-Milner type system as used in Haskell prevents the useful  
function name-overloading based on argument type.




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

end of thread, other threads:[~2011-01-04 19:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 11:30 Functional language syntax Hans Aberg
2010-12-22 21:12 ` Linas Vepstas
2010-12-22 21:23   ` Hans Aberg
2011-01-04 16:51   ` Ludovic Courtès
2011-01-04 19:39     ` Hans Aberg

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 read-only IMAP folder(s) and NNTP newsgroup(s).