Small Japi binding for GHC

View: New views
4 Messages — Rating Filter:   Alert me  

Small Japi binding for GHC

by Philippos Apolinarius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JAPI is by far my favorite GUI library.  Since every machine has Java RE installed, JAPI offers GUI with a very small footprint. Besides this, it is very easy to code, and delivers GUI programs that are hardly larger than console applications. I use Jorlano's version of JAPI, coded for Java 2, which is very cool. I study Computer Science in a small college, and I always handle my homework in JAPI. When I  took functional programming one year ago,  the language chosen by Professor Lopes was Clean, that has a GUI.  However, I feel that JAPI is much easier than ObjectIO; therefore, I used JAPI for my homework.

So, I searched for JAPI bindings for Haskell. The only library I found was something called Small Japi binding for GHC.  The package  is incomplete, and  bug ridden. I wonder whether the author fixed the bugs, completed the package, and added more examples. I would appreciate if people could send me links to a complete Japi binding for GHC. In the mean time, I fixed the bugs of Small Japi Binding, and added a few important components (j_textfield, j_settext, j_gettext, j_button, etc.) Of course, a link to a more recent version of the official binding will save me a  lot of work.



Looking for the perfect gift? Give the gift of Flickr!
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Small Japi binding for GHC

by Ketil Malde-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Philippos Apolinarius <phi500ac@...> writes:

> So, I searched for JAPI bindings for Haskell. The only library I found
> was something called Small Japi binding for GHC.  The package  is
> incomplete, and  bug ridden.

I don't know anything about this particular library, but this happens.
Now that we have Cabal and Hackage making tons of libraries easily
available, what's still missing is a good way of ranking equivalent
libraries by completeness and usefulness.

> I wonder whether the author fixed the
> bugs, completed the package, and added more examples.

Did you try to identify and email the original author?

> In the mean time, I fixed the bugs of Small Japi Binding, and
> added a few important components (j_textfield, j_settext, j_gettext,
> j_button, etc.) Of course, a link to a more recent version of the
> official binding will save me a  lot of work.

If nothing else, perhaps you would make your modifications available?
That way, the next JAPI user will have less trouble than you did.
(Assming the license allows it, of course.)

-k
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Small Japi binding for GHC

by Philippos Apolinarius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ketil Malde wrote:
> If nothing else, perhaps you would make your modifications available?
> That way, the next JAPI user will have less trouble than you did.
> (Assming the license allows it, of course.)

JAPI  license allows it. In fact, it is one of the most liberal licenses I saw. It says:

is free software. You can use under the conditions of the licence GNU Lesser General Public License

In short this means that you can use free of charge and you can also embed it into proprietary, non-free software.

Could you tell me what should I do to make my version and examples available?

> Did you try to identify and email the original author?

No, the author does not provide an email. In fact, I am not sure whether my implementation is idiomatic. Therefore, I would prefer to use the patches of the original author.



--- On Sun, 11/8/09, Ketil Malde <ketil@...> wrote:

From: Ketil Malde <ketil@...>
Subject: Re: [Haskell-cafe] Small Japi binding for GHC
To: haskell-cafe@...
Received: Sunday, November 8, 2009, 2:02 AM

Philippos Apolinarius <phi500ac@...> writes:

> So, I searched for JAPI bindings for Haskell. The only library I found
> was something called Small Japi binding for GHC.  The package  is
> incomplete, and  bug ridden.

I don't know anything about this particular library, but this happens.
Now that we have Cabal and Hackage making tons of libraries easily
available, what's still missing is a good way of ranking equivalent
libraries by completeness and usefulness.

> I wonder whether the author fixed the
> bugs, completed the package, and added more examples.

Did you try to identify and email the original author?

> In the mean time, I fixed the bugs of Small Japi Binding, and
> added a few important components (j_textfield, j_settext, j_gettext,
> j_button, etc.) Of course, a link to a more recent version of the
> official binding will save me a  lot of work.

If nothing else, perhaps you would make your modifications available?
That way, the next JAPI user will have less trouble than you did.
(Assming the license allows it, of course.)

-k
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe


The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free!
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Small Japi binding for GHC

by Ketil Malde-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Philippos Apolinarius <phi500ac@...> writes:

> Could you tell me what should I do to make my version and examples available?

1) Make sure it builds with cabal.
2) Upload it to Hackage

And optionally,
3) make the darcs repository available on the web

The process is nicely described here:

  http://www.haskell.org/haskellwiki/How_to_write_a_Haskell_program#Structure_of_a_simple_project

-k
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe