Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Haskell-cafe] Small Japi binding for GHC

1 view
Skip to first unread message

Philippos Apolinarius

unread,
Nov 7, 2009, 7:44:30 PM11/7/09
to haskel...@haskell.org
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!

http://www.flickr.com/gift/

Ketil Malde

unread,
Nov 8, 2009, 4:02:40 AM11/8/09
to haskel...@haskell.org
Philippos Apolinarius <phi5...@yahoo.ca> 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
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Philippos Apolinarius

unread,
Nov 8, 2009, 3:18:23 PM11/8/09
to Ketil Malde, haskel...@haskell.org
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 <ke...@malde.org> wrote:

Philippos Apolinarius <phi5...@yahoo.ca> writes:

__________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/

Ketil Malde

unread,
Nov 8, 2009, 3:25:57 PM11/8/09
to haskel...@haskell.org
Philippos Apolinarius <phi5...@yahoo.ca> 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

0 new messages