PASM Intro and Tutorial book [updated - now with C and cogc chapters]
sanandak
Posts: 18
Friends,
I have put a book for sale on leanpub that I hope is a useful intro and tutorial on C and pasm programming for folks who know spin and want to speed things up.
https://leanpub.com/propellerassemblerpasmintroduction
You can read a free sample (first two chapters) and purchase the whole book if you are interested.
I implement a "Delta-compression" algorithm - first in Spin, then in PASM, then in C.
As you have comments and corrections I will update the text on leanpub and you can download the updated book for free (leanpub also has a 45 day refund policy if you are unsatisfied).
The code (spin and pasm) is on github.com/sanandak/propbook-code - please feel free to download/fork and send pull requests...
Sincerely,
Sridhar
Attached is the table of contents...
I have put a book for sale on leanpub that I hope is a useful intro and tutorial on C and pasm programming for folks who know spin and want to speed things up.
https://leanpub.com/propellerassemblerpasmintroduction
You can read a free sample (first two chapters) and purchase the whole book if you are interested.
I implement a "Delta-compression" algorithm - first in Spin, then in PASM, then in C.
As you have comments and corrections I will update the text on leanpub and you can download the updated book for free (leanpub also has a 45 day refund policy if you are unsatisfied).
The code (spin and pasm) is on github.com/sanandak/propbook-code - please feel free to download/fork and send pull requests...
Sincerely,
Sridhar
Attached is the table of contents...
Comments
I went ahead and purchased the full e-book from leanpub and downloaded the example code files from git hub. Purchasing from leanpub was easy and quick.
I look forward to going through the whole book. If I spot anything that needs correcting, I'll let you know.
Keep up the good work.
Latex is still very much in use. The ebook sites (leanpub, gitbook, overleaf, softcover) prefer markdown, but I found it difficult to integrate the diagrams into the text.
Sincerely,
Sridhar
Combine it with revision control like Git (not possible with binary formats, or messed-up XML formats), and Perl or other scripting to transform text, and LaTeX is unbeatable.
Those first chapters look good btw. I may buy it, haven't decided yet.
I added 4 chapters on programming the propeller with C.
Here is a table of contents to the book.
https://leanpub.com/propellerassemblerpasmintroduction
Sincerely,
Sridhar
Curious, are you Sridhar Anandakrishnan, Professor of Geosciences at Penn State? Oh, I see you say so on your Leanpub page. Seismology, Glaciology, that explains a lot about the keen focus on data compression. But what about the trains?
We used to go on a train to visit my grandmother every summer - it was the highlight of the year for me. I have loved trains ever since!
Sincerely,
Sridhar
I've just purchased and have started reading your book. Great! Although I am a fan of Spin, easily gets lost in C, and are in the wild with PASM - I am curious to learn, and your book is very clear, concise and educational. I look forward to enjoy reading it all. Thanks.
Erlend
Parallax is encouraging new users to learn to use C to program the propeller, and encouraging existing users to migrate.
and I do hope it will not become true any time soon. On project-to-completion speed, nothing beats Propeller+Spin.
Erlend
In terms of spin vs C - I am somewhat agnostic. In my opinion, C is almost as easy to use as Spin. The part that makes most people's head explode (including mine!) is pointers. In fact, there is an obfuscation contest to see how maddening one can make pointers! However, for most things you can use the simplest form of pointers...
Because I come from a unix/C background, and now that simpleIDE is available, I think I will tend towards C. (note that simpleIDE isn't as stable as the propeller tool or propellerIDE). I find that it will lock up very often and needs to be killed and restarted.
I am working on a Makefile solution where the compile and linking is done in the makefile so I can use command line tools to do my work (which I much prefer - using emacs to edit the code; a makefile to compile and link; and a command line tool to download the code to the propeller and a terminal to see the output - my idea of heaven!).
Spin and PASM work together very easily in terms of launching new cogs (either new pasm cogs or new spin cogs).
C can launch new C cogs easily enough. However, launching new cogC cogs or new PASM cogs is an intricate dance. C is faster than Spin, which may not matter for many projects...
The fact that new users are learning C hopefully means that the tools for using C will continue to improve and existing users *can* migrate if they wish to!
Cheers,
Sridhar
Have you discovered PropWare yet? You may find its build system exactly what you're looking for. As an emacs user, you may also like this suite of plugins: https://github.com/atilaneves/cmake-ide
He gave some very cool Props to Parallax and the folks on the forum for their assistance with his device as well as his book.
It's certainly worth a listen.
embedded.fm/episodes/206
dontpanicgeocast.com/?p=484
Just previewed the book. Looks good, just purchased. This is going to be most useful addition.
Thanks,
Frank
+1
Any feedback you have after spending some time reading the book would be welcome.
Thanks,
Sridhar