[Haskell-cafe] #haskell-game Haskellers Game Interest Group

2011-02-12 Thread Korcan Hussein

Some of us interested in Haskell GameDev have formed chat room  Haskellers 
Interest Group, you can out find more info here. Just spreading the word around.
  
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] build and use ghc's rts without a full unregistered ghc port?

2010-07-24 Thread Korcan Hussein

Hi, I was just wondering if this is possible, I would like to use a gcc port
which cross compiles to the PPC architecture (Wii DevkitPPC to be specifically:
http://wiibrew.org/wiki/DevkitPPC) for a platform that is not POSIX compatible I
believe (at least not fully or maybe I'm wrong entirely).

Ideally I would make an unregistered port of GHC but the problem is because GHC
doesn't support true cross compiling yet I need to bootstrap on to the target
machine, which isn't running a POSIX environment.

Still I did try to attempt to build with both the host and target set to
'powerpc-unknown-linux' and build it with devkitPPC, I did use a custom build.mk
which should pull in all the required dependencies, defines, etc for devkitPPC.

In the end I didn't get very far with it, it looked like missing posix 
functions.

I didn't want to spend to much time trying to make it work this way (maybe i'm
doing it wrong completely). It's quite possible that I could make this work more
easily if I used a linux port for the wii but I would like to avoid the need of
using linux on the wii because I guess most home-brew users don't have such a 
setup.

So I thought maybe it's possible with less effort to build GHC's RTS and then
compile Haskell in C with the RTS as a library dependency. Is this possible?
maybe I'm missing something or doing something stupid?

Thanks in advance.
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us 
now___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] build and use ghc's rts without a full unregistered ghc port?

2010-07-24 Thread Korcan Hussein

I did initially thought about it and had reservations but you convinced me so 
I've been trying out jhc. Seems a lot more promising but unfortunately I had 
problems, here's my targets.ini:

[wii]
cc=powerpc-eabi-gcc
byteorder=be
gc=static
cflags+=-DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
executable_extension=.elf
bits=32

bits_max=64

Trying to compile a simple hello world haskell program resulted in the 
following error message:

hs.out.elf_code.c:118:2: error: #error Could not determine bitsize
hs.out.elf_code.c:150:24: error: sys/select.h: No such file or directory
hs.out.elf_code.c:154:25: error: sys/utsname.h: No such file or directory
...
...

For the first error I looked at the line and there is some pre-processor 
conditional code to determine the word size, this seems a bit odd since i've 
already specified these in the target.ini I would assume that they would get 
passed in to the compiler as extra defines.

More depressing is the last two lines, which looks like a POSIX compatible 
environment is required with jhc it seems. Having a look at devkitPPC include 
directory it seems it does implement some POSIX headers but those particular 
headers certainly do not exist in there.

Anyway I'll send a message to the jhc mailing list about it.


 Date: Sat, 24 Jul 2010 20:51:39 +1000
 Subject: Re: [Haskell-cafe] build and use ghc's rts without a full 
 unregistered ghc port?
 From: mwot...@gmail.com
 To: korca...@hotmail.com
 CC: haskell-cafe@haskell.org

 can't speak as to how difficult it is to get GHC built unregisterised,
 but you might want to consider JHC if you don't need to use a lot of
 Hackage. It compiles to C without a special RTS needed, which might
 make it a lot easier.

 mark

 On Sat, Jul 24, 2010 at 8:45 PM, Korcan Hussein  wrote:

 Hi, I was just wondering if this is possible, I would like to use a gcc port
 which cross compiles to the PPC architecture (Wii DevkitPPC to be 
 specifically:
 http://wiibrew.org/wiki/DevkitPPC) for a platform that is not POSIX 
 compatible I
 believe (at least not fully or maybe I'm wrong entirely).

 Ideally I would make an unregistered port of GHC but the problem is because 
 GHC
 doesn't support true cross compiling yet I need to bootstrap on to the target
 machine, which isn't running a POSIX environment.

 Still I did try to attempt to build with both the host and target set to
 'powerpc-unknown-linux' and build it with devkitPPC, I did use a custom 
 build.mk
 which should pull in all the required dependencies, defines, etc for 
 devkitPPC.

 In the end I didn't get very far with it, it looked like missing posix 
 functions.

 I didn't want to spend to much time trying to make it work this way (maybe 
 i'm
 doing it wrong completely). It's quite possible that I could make this work 
 more
 easily if I used a linux port for the wii but I would like to avoid the need 
 of
 using linux on the wii because I guess most home-brew users don't have such 
 a setup.

 So I thought maybe it's possible with less effort to build GHC's RTS and then
 compile Haskell in C with the RTS as a library dependency. Is this possible?
 maybe I'm missing something or doing something stupid?

 Thanks in advance.

 _
 http://clk.atdmt.com/UKM/go/19780/direct/01/
 We want to hear all your funny, exciting and crazy Hotmail stories. Tell us 
 now___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




 --
 A UNIX signature isn't a return address, it's the ASCII equivalent of a
 black velvet clown painting. It's a rectangle of carets surrounding a
 quote from a literary giant of weeniedom like Heinlein or Dr. Who.
 -- Chris Maeda
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us 
now___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] build and use ghc's rts without a full unregistered ghc port?

2010-07-24 Thread Korcan Hussein

I managed to get a hello world app working on the Wii! but I had to do some 
hacking of the generated C code because the devkitPPC is missing 2 posix 
headers referenced in the generated C code from Jhc. The functions the code 
used from those headers didn't seem completely essential. Basically I set the 
define JHC_isPosix to 0, commented out problem code. Of-course this isn't 
ideal, the solution would be to implement the missing headers for devkitPPC.


 From: korca...@hotmail.com
 To: mwot...@gmail.com
 CC: haskell-cafe@haskell.org
 Subject: RE: [Haskell-cafe] build and use ghc's rts without a full 
 unregistered ghc port?
 Date: Sat, 24 Jul 2010 18:25:56 +


 I did initially thought about it and had reservations but you convinced me so 
 I've been trying out jhc. Seems a lot more promising but unfortunately I had 
 problems, here's my targets.ini:

 [wii]
 cc=powerpc-eabi-gcc
 byteorder=be
 gc=static
 cflags+=-DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
 executable_extension=.elf
 bits=32

 bits_max=64

 Trying to compile a simple hello world haskell program resulted in the 
 following error message:

 hs.out.elf_code.c:118:2: error: #error Could not determine bitsize
 hs.out.elf_code.c:150:24: error: sys/select.h: No such file or directory
 hs.out.elf_code.c:154:25: error: sys/utsname.h: No such file or directory
 ...
 ...

 For the first error I looked at the line and there is some pre-processor 
 conditional code to determine the word size, this seems a bit odd since i've 
 already specified these in the target.ini I would assume that they would get 
 passed in to the compiler as extra defines.

 More depressing is the last two lines, which looks like a POSIX compatible 
 environment is required with jhc it seems. Having a look at devkitPPC include 
 directory it seems it does implement some POSIX headers but those particular 
 headers certainly do not exist in there.

 Anyway I'll send a message to the jhc mailing list about it.

 
 Date: Sat, 24 Jul 2010 20:51:39 +1000
 Subject: Re: [Haskell-cafe] build and use ghc's rts without a full 
 unregistered ghc port?
 From: mwot...@gmail.com
 To: korca...@hotmail.com
 CC: haskell-cafe@haskell.org

 can't speak as to how difficult it is to get GHC built unregisterised,
 but you might want to consider JHC if you don't need to use a lot of
 Hackage. It compiles to C without a special RTS needed, which might
 make it a lot easier.

 mark

 On Sat, Jul 24, 2010 at 8:45 PM, Korcan Hussein wrote:

 Hi, I was just wondering if this is possible, I would like to use a gcc port
 which cross compiles to the PPC architecture (Wii DevkitPPC to be 
 specifically:
 http://wiibrew.org/wiki/DevkitPPC) for a platform that is not POSIX 
 compatible I
 believe (at least not fully or maybe I'm wrong entirely).

 Ideally I would make an unregistered port of GHC but the problem is because 
 GHC
 doesn't support true cross compiling yet I need to bootstrap on to the 
 target
 machine, which isn't running a POSIX environment.

 Still I did try to attempt to build with both the host and target set to
 'powerpc-unknown-linux' and build it with devkitPPC, I did use a custom 
 build.mk
 which should pull in all the required dependencies, defines, etc for 
 devkitPPC.

 In the end I didn't get very far with it, it looked like missing posix 
 functions.

 I didn't want to spend to much time trying to make it work this way (maybe 
 i'm
 doing it wrong completely). It's quite possible that I could make this work 
 more
 easily if I used a linux port for the wii but I would like to avoid the 
 need of
 using linux on the wii because I guess most home-brew users don't have such 
 a setup.

 So I thought maybe it's possible with less effort to build GHC's RTS and 
 then
 compile Haskell in C with the RTS as a library dependency. Is this possible?
 maybe I'm missing something or doing something stupid?

 Thanks in advance.

 _
 http://clk.atdmt.com/UKM/go/19780/direct/01/
 We want to hear all your funny, exciting and crazy Hotmail stories. Tell us 
 now___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




 --
 A UNIX signature isn't a return address, it's the ASCII equivalent of a
 black velvet clown painting. It's a rectangle of carets surrounding a
 quote from a literary giant of weeniedom like Heinlein or Dr. Who.
 -- Chris Maeda

 _
 http://clk.atdmt.com/UKM/go/19780/direct/01/
 We want to hear all your funny, exciting and crazy Hotmail stories. Tell us 
 now
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy

[Haskell-cafe] HSDL 0.5.4 on GHC 6.10.1

2008-11-14 Thread Korcan Hussein

Hi the package at hackage fails to build on GHC 6.10.1 (on windows mingw) this 
is due to 2 reasons:

1. I believe the order of libraries to be linked needs to change from 
-lmingw32 -lSDLmain -lSDL to -lSDLmain -lSDL -lmingw32 otherwise you get 
linker errors which multiple definitions of main. I think the build system 
should output `sdl-config --cflags --libs` instead of explicitly stating which 
libraries besides.

2. For some reason the the library  include paths plus the list of which 
libraries to be linked gets appened to the output twice and thus causing linker 
errors. I'm a casual user of haskell so I don't much about cabal packages so I 
manged to figure out a hackish workaround by deleting the entry in the 
SDL.buildinfo file (the entry for the ld-options).

_
Win £1000 John Lewis shopping sprees with BigSnapSearch.com
http://clk.atdmt.com/UKM/go/117442309/direct/01/___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] A video of Frag

2008-11-10 Thread Korcan Hussein

Okay so i've written a blog on how to build and run frag on windows @ 
http://monadickid.blogspot.com/2008/11/haskell-eye-for-windows-guy.html

 CC: [EMAIL PROTECTED]; haskell-cafe@haskell.org
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [Haskell-cafe] A video of Frag
 Date: Mon, 10 Nov 2008 08:22:20 -0600
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Nov 10, 2008, at 3:15 AM, Hugo Pacheco wrote:
 
  Perhaps this effort could be targeted at creating a cabal package in  
  Hackage
 
 It's already there. :)
 
 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/frag
 
 - - Jake
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (Darwin)
 
 iEYEARECAAYFAkkYQ5wACgkQye5hVyvIUKkZCACgwy3VdzBfVTf8aIKxk67PAzgt
 yyEAnjrbiaZTBQFqfI3jUSEn96Iv16GP
 =Jwyf
 -END PGP SIGNATURE-

_
See the most popular videos on the web 
http://clk.atdmt.com/GBL/go/115454061/direct/01/___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] A video of Frag

2008-11-09 Thread Korcan Hussein

I don't understand why there is no video of Frag online so I made one here: 
http://uk.youtube.com/watch?v=0jYdu2u8gAU

_
BigSnapSearch.com - 24 prizes a day, every day - Search Now!
http://clk.atdmt.com/UKM/go/117442309/direct/01/___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe