Re: [Haskell-cafe] GSOC idea: Haskell JVM bytecode library

2010-03-26 Thread Brian Alliet
On Fri, Mar 26, 2010 at 08:01:57PM +, Alexandru Scvortov wrote: I'm thinking of writing a library for analyzing/generating/manipulating JVM bytecode. To be clear, this library would allow one to load and work with JVM classfiles; it wouldn't be a compiler, interpretor or a GHC backend.

Re: [Haskell-cafe] Haskell on the JVM

2008-10-27 Thread Brian Alliet
On Mon, Oct 27, 2008 at 10:58:11AM +, Simon Peyton-Jones wrote: Is there an interest in hosting GHC on the JVM (besides my own). Yep. I wrote a JVM backend for GHC (LambdaVM). It is suffering from bit-rot though. I think this thread has re-spaked my interest in it though. I don't think

Re: [Haskell-cafe] Re: Haskell and Java

2008-09-11 Thread Brian Alliet
On Wed, Sep 10, 2008 at 09:50:36PM -0300, Mauricio wrote: Would it allow allow Haskell to also call Java code, besides running in JVM? Yep. LambdaVM can fully access existing Java code. The base library heavily uses FFI to access java.io.* to implement Handle, etc. 'foreign export' even works

Re: [Haskell-cafe] Haskell and Java

2008-09-10 Thread Brian Alliet
On Wed, Sep 10, 2008 at 02:12:00PM +0200, Marc Weber wrote: There used to be. http://www.cs.rit.edu/~bja8464/lambdavm/ (Last darcs change log entry: Sun Oct 21 03:05:20 CEST 2007 Brian Alliet [EMAIL PROTECTED] * fix build for hsjava change ) Sorry about this. I hit a critical mass

Re: [Haskell-cafe] New book: Real-World Haskell!

2007-05-24 Thread Brian Alliet
On Wed, May 23, 2007 at 10:48:38PM -0700, Bryan O'Sullivan wrote: Number two on my wish list: interfacing with Java. The temptation to cover new and exciting material is of course strong. LambdaVM is both, but it's also an in-progress one-person master's project. We think we'd do best to

Re: [Haskell-cafe] question about Data.Binary and Double instance

2007-04-17 Thread Brian Alliet
On Tue, Apr 17, 2007 at 10:32:02AM -0700, David Roundy wrote: I'm wondering what exactly inspired the decode/encodeFloat implementation I kind of wondered the same thing when I first saw it. Looks like it was just the quickest way to get it going. Are there any suggestions how I could use

Re: [Haskell-cafe] question about Data.Binary and Double instance

2007-04-17 Thread Brian Alliet
On Tue, Apr 17, 2007 at 12:18:29PM -0700, David Roundy wrote: machine ghc run on). It might not be fast enough for you though as it still goes via Integer in the conversion. It seems like this conversion shouldn't take any time at all, and we ought to be able to just copy the memory right

Re: [Haskell-cafe] question about Data.Binary and Double instance

2007-04-17 Thread Brian Alliet
On Wed, Apr 18, 2007 at 12:34:58PM +1000, Duncan Coutts wrote: We'd like to use IEEE format as the default Data.Binary serialisation format for Haskell's Float and Double type, the only thing that makes this tricky is doing it portably and efficiently. You should note that your current method

[Haskell-cafe] Re: Lambada and connecting Haskell to a Weblogic server

2007-02-15 Thread Brian Alliet
On Thu, Feb 15, 2007 at 11:24:31AM -0800, Adam Megacz wrote: You should check out Brian Alliet's LambdaVM: http://www.cs.rit.edu/~bja8464/lambdavm/ I think what is in darcs is actually broken right now (the base repo is out of sync with the ghc repo), but thanks for giving me a big

[Haskell-cafe] LambdaVM (was Re: Lambada and connecting Haskell to a Weblogic server)

2007-02-15 Thread Brian Alliet
On Thu, Feb 15, 2007 at 02:53:47PM -0500, Mark T.B. Carroll wrote: Is it easy to create Haskell stubs (in the IO monad, presumably) for standard Java libraries so that your compiled-to-JVM Haskell code can easily use the usual Java APIs like Swing? One source of vexation for us is mapping

Re: [Haskell-cafe] Implementations of bit vectors

2006-11-25 Thread Brian Alliet
On Sat, Nov 25, 2006 at 10:41:56AM -0200, Maur??cio wrote: Does anyone knows of a nice implementation of bit vectors? I like the functions I see in Data.Bits (rotate, shift etc.), but that only works with predefined sizes and I need a bit vector of exactly 33 bits. Check out