public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Proposal draft
@ 2017-04-03 14:15 Vasantha Ganesh
  2017-04-03 14:39 ` Per Bothner
  0 siblings, 1 reply; 2+ messages in thread
From: Vasantha Ganesh @ 2017-04-03 14:15 UTC (permalink / raw)
  To: kawa

Hello all,

  I've managed to write a proposal for the idea "Optimized function
types and values using MethodHandles"

Here is the first draft:

https://docs.google.com/document/d/1khL_gUy1-G7NDdJHTGNom3r2UXs8YTYEJNc-Ch0yuyo/edit?usp=sharing

Thank you,
Vasantha Ganesh K.

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

* Re: Proposal draft
  2017-04-03 14:15 Proposal draft Vasantha Ganesh
@ 2017-04-03 14:39 ` Per Bothner
  0 siblings, 0 replies; 2+ messages in thread
From: Per Bothner @ 2017-04-03 14:39 UTC (permalink / raw)
  To: Vasantha Ganesh, kawa

On 04/03/2017 07:15 AM, Vasantha Ganesh wrote:
> Hello all,
>
>   I've managed to write a proposal for the idea "Optimized function
> types and values using MethodHandles"
>
> Here is the first draft:
>
> https://docs.google.com/document/d/1khL_gUy1-G7NDdJHTGNom3r2UXs8YTYEJNc-Ch0yuyo/edit?usp=sharing

awesome-sauce-function :: int -> int -> bool
(define (awesome-sauce-function parm1 param2)
   (> (+ param1 param2) 0))

First, you have to realize that syntax would not "fit in" very well with
a language that uses Lisp syntax (even one with as many extensions as Kawa).
I think it would be quite difficult to parse.

Second, it's not needed.  Kawa already has a perfectly ok syntax for type signatures:

(define (awesome-sauce-function parm1::int param2::int)::boolean
   (> (+ param1 param2) 0))

This project is not about typing and checking of specific functions, which Kawa
does quite well.  It's about typing of function *expressions* and variables - for example
a function-valued parameter in a higher-order function.

I.e. to express things like: "I don't know the value of this variable, but I know it some
(unknown) 2-argument function that takes two ints and returns a boolean."

Sorry, I don't think this proposal is salvageable in the amount of time we have.
Maybe next year?
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

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

end of thread, other threads:[~2017-04-03 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 14:15 Proposal draft Vasantha Ganesh
2017-04-03 14:39 ` Per Bothner

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).