
I asked about running GHCI on something like the Arduino due, and was told that there wasn't enough CPU on it for that. How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390

The spec sheet says MicroPython runs on bare metal on the PyBoard. It
would be a lot of effort to make GHCi or even Hugs/Gofer do the same.
As the price point for the PyBoard is the same as Raspberry PI, such
an effort would perhaps be headstrong rather than sensible.
On 14 February 2015 at 04:55, Mike Meyer
I asked about running GHCI on something like the Arduino due, and was told that there wasn't enough CPU on it for that.
How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I have used GHC on a 32 bit NUC running Ubuntu, and it is a bit slow compiling. Run time performance was ok for my app IO app.
I prefer a MinnowBoardMax running Ubuntu. The 64 bit dual core performs well much better, reasonable compile times.
Just don’t expect it to run like an I5/7 Quad core.
It is more like $150 + a Drive, so about $200. But it it works well.
On Feb 14, 2015, at 1:45 AM, Stephen Tetley
The spec sheet says MicroPython runs on bare metal on the PyBoard. It would be a lot of effort to make GHCi or even Hugs/Gofer do the same.
As the price point for the PyBoard is the same as Raspberry PI, such an effort would perhaps be headstrong rather than sensible.
On 14 February 2015 at 04:55, Mike Meyer
wrote: I asked about running GHCI on something like the Arduino due, and was told that there wasn't enough CPU on it for that.
How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Mike Meyer wrote:
I asked about running GHCI on something like the Arduino due, and was told that there wasn't enough CPU on it for that.
How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390
For a very similar price (but yes much large physical size) you can get a Beagle Bone Black which is capable of running a full Linux OS. I run Debian on mine and have successfully cross-compiled from my linux-amd64 machine to linux-armhf binaries that run on the BBB. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

On Mon, Feb 16, 2015 at 3:14 AM, Erik de Castro Lopo
Mike Meyer wrote:
How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390 For a very similar price (but yes much large physical size) you can get a Beagle Bone Black which is capable of running a full Linux OS. I run Debian on mine and have successfully cross-compiled from my linux-amd64 machine to linux-armhf binaries that run on the BBB.
And presumably, weight. I work with rc aircraft - and like the small scale ones. I won't say every gram counts, but every ounce certainly does. So while I appreciate such pointers (though if I get something like that, I'll probably go wit the new Raspberry Pi 2, as I'm already using the older one for some projects), they don't help that much for my higher - literally - goals.

On 02/14/15 05:55 AM, Mike Meyer wrote:
I asked about running GHCI on something like the Arduino due, and was told that there wasn't enough CPU on it for that.
How about getting it running on something like a PyBoard? http://www.adafruit.com/products/2390
That's Cortex-M4. Size and weight is really nice but just 1MB of ROM and 192KiB of RAM is not enough to run GHCi. Perhaps you may attempt to try Hugs but I still think it's more prepared to be run on top of Linux/Unix than on RTOS -- at least yet. For such devices really the only option for now is to compile haskell to bare metal which means Ajhc. If you insist on GHCi, then search for Cortex-Ax which is able to run Linux and which fulfill your weight reqs. For example Gumstick or Variscite makes a lot of nice SOMs, perhaps some of them is applicable for your app? Karel

On 02/16/15 10:39 AM, Karel Gardas wrote:
If you insist on GHCi, then search for Cortex-Ax which is able to run Linux and which fulfill your weight reqs. For example Gumstick or Variscite makes a lot of nice SOMs, perhaps some of them is applicable for your app?
Also have a look at http://www.friendlyarm.net/ -- their TinyXXXX modules are really close to what you proposed in PyBoard and still able to run Linux + GHCi. Karel

FriendlyARM modules look very good.
If you are interested in compute performance on a pocket budget, e.g.
for computer vision on this RC plane, you could try 8-core Merrii A80
(http://linux-sunxi.org/Merrii_A80_Optimus_Board) or Pcduino8
(http://www.pcduino.com/pcduino8-beta-available-application/) or
Cubieboard A80. There is some preliminary Linux support.
You could even test-drive Parallel Haskell on those :)
These A80 boards draw 3 Amps of current at 5 Volts which is doable for
a standard LiPo battery. This current draw is considerably less than
that required by the motor anyway. Boards should work from a battery
source regulated by a 5V voltage regulator.
Yet I wonder why do you have a requirement to run code in the
interpreter on an automnomous vehicle? Wouldn't compiled code run more
efficiently and require less resources?
--Vladimir
On 16 February 2015 at 09:46, Karel Gardas
On 02/16/15 10:39 AM, Karel Gardas wrote:
If you insist on GHCi, then search for Cortex-Ax which is able to run Linux and which fulfill your weight reqs. For example Gumstick or Variscite makes a lot of nice SOMs, perhaps some of them is applicable for your app?
Also have a look at http://www.friendlyarm.net/ -- their TinyXXXX modules are really close to what you proposed in PyBoard and still able to run Linux + GHCi.
Karel
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

On Mon, Feb 16, 2015 at 10:50 AM, Vladimir Komendantskiy < komendantsky@gmail.com> wrote:
Yet I wonder why do you have a requirement to run code in the interpreter on an automnomous vehicle? Wouldn't compiled code run more efficiently and require less resources?
Because the ability to change the programming in the field is important. A lot of the configuration is pure functions that get iterated over the state to produce new state, and expressing those in Haskell is where I think this can win. Ok, there'd be an advantage to writing it in Haskell in the first place, but that's a hard sell. On the other hand, replacing a text file in INI or XML or YAML or some ad-hoc format that specifies what is, when all is said and done, a pure function that takes the state of the hardware as input with an actual Haskell function, that I think I can sell.
participants (6)
-
Erik de Castro Lopo
-
Karel Gardas
-
Michael Jones
-
Mike Meyer
-
Stephen Tetley
-
Vladimir Komendantskiy