ANNOUNCE: Ajhc Haskell Compiler 0.8.0.7 Release

We are happy to announce Ajhc 0.8.0.7. You can program interrupt handler with Haskell language on this release. But not yet collect (big) patch sets, the changes will be merged to jhc. You can get Ajhc using "cabal install ajhc" command. The usage is found at Ajhc's project web site http://ajhc.metasepi.org/. The source code at https://github.com/ajhc/ajhc/tags. Welcome sending any bugs or your ideas to https://github.com/ajhc/ajhc/issues. ## An example of interrupt handler written with Haskell https://github.com/ajhc/demo-cortex-m3/tree/master/stm32f3-discovery The demo for Cortex-M4 has main context and intrrupt context. The main context waits time expire with polling counter. https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/... The interrupt context is called from clock exception, and decrement counter. https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/... ## Other changes * Guard StablePtr critical section. * Add _JHC_JGC_SAVING_MALLOC_HEAP option for getting smaller malloc heap. * Link forkIO to forkOS. Enjoy! :) - - - Metasepi team

Is this a practical way to write Android and iPhone code? I don't mean
console programs, I mean realistic smartphone apps.
Seeing as smartphones outsell laptops by about 10 to 1 nowadays, it would
be nice if it was.
Adrian.
On 6 Jul 2013 12:03, "Kiwamu Okabe"
We are happy to announce Ajhc 0.8.0.7. You can program interrupt handler with Haskell language on this release. But not yet collect (big) patch sets, the changes will be merged to jhc.
You can get Ajhc using "cabal install ajhc" command. The usage is found at Ajhc's project web site http://ajhc.metasepi.org/. The source code at https://github.com/ajhc/ajhc/tags.
Welcome sending any bugs or your ideas to https://github.com/ajhc/ajhc/issues.
## An example of interrupt handler written with Haskell
https://github.com/ajhc/demo-cortex-m3/tree/master/stm32f3-discovery
The demo for Cortex-M4 has main context and intrrupt context. The main context waits time expire with polling counter. < https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/...
The interrupt context is called from clock exception, and decrement counter. < https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/...
## Other changes
* Guard StablePtr critical section. * Add _JHC_JGC_SAVING_MALLOC_HEAP option for getting smaller malloc heap. * Link forkIO to forkOS.
Enjoy! :) - - - Metasepi team
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Adrian.
On Sat, Jul 6, 2013 at 2:40 PM, Adrian May
Is this a practical way to write Android and iPhone code? I don't mean console programs, I mean realistic smartphone apps.
Umm... Is your question "Is Ajhc's goal that build the compiler for Android"? If so, the answer is No. The Ajhc's goal is that find the compiler to rewrite the NetBSD kernel with Haskell. But you can do support Android. I think porting (A)jhc's RTS to Android NDK is as easy as to Cortex-M4. Thank's. -- Kiwamu Okabe

On Jul 6, 2013, at 03:07 , Kiwamu Okabe
Umm... Is your question "Is Ajhc's goal that build the compiler for Android"? If so, the answer is No. The Ajhc's goal is that find the compiler to rewrite the NetBSD kernel with Haskell.
But you can do support Android. I think porting (A)jhc's RTS to Android NDK is as easy as to Cortex-M4.
Similarly, I might look into a PIC32 port (= MIPS 4K). I don't expect any problems. I presume nobody have started on this yet. Tommy

I'd be very interested in a pic32 port.
On Mon, Jul 8, 2013 at 7:24 PM, Tommy Thorn
On Jul 6, 2013, at 03:07 , Kiwamu Okabe
wrote: Umm... Is your question "Is Ajhc's goal that build the compiler for Android"? If so, the answer is No. The Ajhc's goal is that find the compiler to rewrite the NetBSD kernel with Haskell.
But you can do support Android. I think porting (A)jhc's RTS to Android NDK is as easy as to Cortex-M4.
Similarly, I might look into a PIC32 port (= MIPS 4K). I don't expect any problems. I presume nobody have started on this yet.
Tommy
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Any plans on supporting the popular Raspberry Pi platform? I poked at the
source code a bit, but I didn't even know where to begin.
- jeremy
On Fri, Jul 5, 2013 at 11:01 PM, Kiwamu Okabe
We are happy to announce Ajhc 0.8.0.7. You can program interrupt handler with Haskell language on this release. But not yet collect (big) patch sets, the changes will be merged to jhc.
You can get Ajhc using "cabal install ajhc" command. The usage is found at Ajhc's project web site http://ajhc.metasepi.org/. The source code at https://github.com/ajhc/ajhc/tags.
Welcome sending any bugs or your ideas to https://github.com/ajhc/ajhc/issues.
## An example of interrupt handler written with Haskell
https://github.com/ajhc/demo-cortex-m3/tree/master/stm32f3-discovery
The demo for Cortex-M4 has main context and intrrupt context. The main context waits time expire with polling counter. < https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/...
The interrupt context is called from clock exception, and decrement counter. < https://github.com/ajhc/demo-cortex-m3/blob/master/stm32f3-discovery/hs_src/...
## Other changes
* Guard StablePtr critical section. * Add _JHC_JGC_SAVING_MALLOC_HEAP option for getting smaller malloc heap. * Link forkIO to forkOS.
Enjoy! :) - - - Metasepi team
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Jeremy.
On Tue, Jul 9, 2013 at 3:30 AM, Jeremy Shaw
Any plans on supporting the popular Raspberry Pi platform? I poked at the source code a bit, but I didn't even know where to begin.
I think you can do it already, if you have cross GCC for Raspberry Pi. http://ajhc.metasepi.org/manual.html#crosscompilation Best regards, -- Kiwamu Okabe
participants (5)
-
Adrian May
-
Jeremy Shaw
-
Kiwamu Okabe
-
Robert Wills
-
Tommy Thorn