getting started

getting started

Postby joearms » Mon May 26, 2014 1:53 pm

Hello,

I'm a total newby (as regards the parallella) ... so I thought I'd start with a few questions

I've just got a 64 core board up and running.

Now what?

I want to understand in detail what I can do with this little beauty - can we compile Erlang to it
despite the small memory. Can we write a BIF accelerator and run erlang in the arm processor?

What I want to do make the "simplest possible C" program that does something.
say set x=10 double it and stop.

I want to load the code into one core - then from another core read the code and
data memory and disassemble everything.

What do I need to download?

Are there any blogs etc that go through the really simple stuff.

/Joe Armstrong
joearms
 
Posts: 1
Joined: Mon May 26, 2014 1:45 pm

Re: getting started

Postby 9600 » Mon May 26, 2014 2:19 pm

Hi Joe,

Welcome and it's great to hear that you are up and running your 64-core board!

For some simple and more advanced example programs see:

https://github.com/adapteva/epiphany-examples

https://github.com/parallella/parallella-examples

As regards running Erlang, you might find these two posts from Omer Kilic useful:

http://www.parallella.org/2013/05/25/ex ... a-prelude/

http://www.parallella.org/2013/09/10/ex ... th-pixels/

Very much looking forward to hearing about Erlang developments on Parallella :)

Cheers,

Andrew
Andrew Back (a.k.a. 9600 / carrierdetect)
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: getting started

Postby shodruk » Tue May 27, 2014 5:01 am

joearms wrote:I've just got a 64 core board up and running.


I'm so envious of your 64 core Parallella board! :D
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm

Re: getting started

Postby ZenoArrow » Sun Aug 17, 2014 2:35 pm

Hi Joe,

Think this guide is the best one for getting started...
http://www.erlang-embedded.com/2013/09/ ... lang-mini/

Permission to fangirl for a second... OMG it's Joe Armstrong! :shock: :D Thank you for letting me get that out of my system! ;)

ZenoArrow
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: getting started

Postby shr » Fri Aug 22, 2014 1:34 am

Yes, it's good to see Joe involved with this. Parallella has much promise and and Erlang looks like the best candidate to bring that promise to fruition, but I'm sure there's considerable work to make that happen.
“At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation” — Igor Sikorsky
shr
 
Posts: 23
Joined: Mon Dec 17, 2012 3:29 am
Location: Lyons, Colorado, USA

Re: getting started

Postby ZenoArrow » Fri Aug 22, 2014 1:17 pm

shr wrote:Parallella has much promise and and Erlang looks like the best candidate to bring that promise to fruition, but I'm sure there's considerable work to make that happen.


Yes, Parallella and Erlang do look like a great match shr. If there is considerable work to make Erlang a success on the Parallella, it's the responsibility of those who have an interest in it to help out, even if it's just writing some test programs and reporting back on the performance.

For those reading this interested in learning Erlang, this is a friendly introduction (just spotted the cartoon on the homepage, very cool cheeky homage!): http://learnyousomeerlang.com/
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: getting started

Postby greytery » Fri Aug 22, 2014 4:28 pm

Thanks for that great good link to Erlang-mini.

Got very excited for a short while there, until I saw that it was '-mini' and not '-micro'. So no Erlang on the Epiphany. :(
But, the ARM version for Parallella - and Pi - looks well worth a visit. The package size of 20MB sounds doable.
The key to the success of Erlang on Parallella will be getting some performant library routines (C/C++/ASM) to interface Erlang-mini to Epiphany cores.
At first glance (last year) it looked like porting the libs in the e-sdk manual wouldn't be a big stretch (for someone who knows what they're doing).

(1+ ) I can also recommend that Erlang intro. It's far better written than the grammar of the title would suggest. :)
The paperback version weighs (and costs) a ton, but you can read the same text on-line.

Cheers
tery
User avatar
greytery
 
Posts: 205
Joined: Sat Dec 07, 2013 12:19 pm
Location: ^Wycombe, UK

Re: getting started

Postby ZenoArrow » Sat Aug 23, 2014 3:18 am

Hey teri, thanks. It sounds to me like you've had some experience with Erlang in the past, do you have any other Erlang learning resources or articles you could recommend? Personally I'd be most interested in learning the best methods to debug Erlang, but any constructive advice would be most welcome.
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: getting started

Postby greytery » Sat Aug 23, 2014 5:51 pm

Hi ZenoArrow,

I talk a bigger talk than I ought to.
I came to Erlang as a result of looking under the hood of Wings 3D. There were some bits of code that I thought looked very elegant, almost like poetry.
I suppose I fell in love. :geek: :geek:

Wings 3D does not really stretch the Erlang language or architecture; for example, it runs in a single Erlang VM on one PC. It was originally written in Erlang - it seems - as a part-time programming exercise by one of the early developers. As a starter, however, just downloading and deconstructing the code gives many good examples of how the language works.

An important point though, is that when low-level performance stuff like graphics is needed, Wings 3D calls up C libraries (like any other interpreted language). That is the same thing that will need to be done between, say, Erlang mini and the Epiphany. Even with the 64 * 128kb core Epiphany coming in 2015(?), there's no room on the chip for the Erlang base.

Cheers,
tery
User avatar
greytery
 
Posts: 205
Joined: Sat Dec 07, 2013 12:19 pm
Location: ^Wycombe, UK


Return to Erlang

Who is online

Users browsing this forum: No registered users and 1 guest