Hi again,
Here's some more feedback, after having read it completely: page 15: "you don't have to specify it's length", I think "it's" => "its" (or am I wrong ??) page 18: the example with if serial_hw_data(char) then ... end if might be a good opportunity to explain limitation of pseudo-vars. Looking at this example, I would ask "why don't we use serial_hw_data, as in: if char = serial_hw_data then ... end if or char = serial_hw_data if char ... then end if The fact is we can't use pseudo-var in this example, because "char = serial_hw_data" will block until a char is received. This is not what we want. And having non-blocking pseudo-var isn't possible: what to return if there's nothing to read ? Indeed, pseudo-vars are powerful, but have their limitations, here being a good example. [note: a bit out of topic regarding your document, you say "pseudo-var are nice because they can be passed through procedures. If we had a variable could store a reference to a procedure, and could be in turn passed to procedures, pseudo-vars aren't that "sexy" anymore, and much less powerful...] page 18 again: footnote, "a byte (which can takes 10 bits...", I'd say "which *can*", depending on how many stop bits you have. Nitpicking... page 20: "Below the sample ..., which is written by Jallib father, Sebastien Lelong". Well, if I read correctly, I'm really honored, but this honor is too heavy for my shoulders. Let's share this :) page 24: footnote, "to save space, he optimizer", missing "the" page 25: about volatile variables. "you will probably only need it for variables that are used both in interupts and main". I don't agree 100%, one important application is when you have to set different values that have be taken into account within a procedure's body. This is the case when you deal with pins (eg. GP2D02 IR ranger library, it uses "volatile bit out pin_vin" in signature. This pin controls the ranger with several high/low settings. If not "volatile", it won't work. page 25 again: bottom of the page, "that that generate" page 26: "in cases where you want to need to give information..." maybe "where you want to give" or "where you need to give" ? page 27: footnote 22. I can't resist. IIRC, approx. quoting Larry Wall, "if you don't like 'elsif' and want instead "elseif" or "elif", write your own programming language" :) page 28: about case... of, repeating what Kyle says in his document may be important: there's no need for a "break" statement at the end of a case, as next case won't be executed, compared to C. page 28, about "forever loop": just a thought. When I first programmed a PIC with jal, I felt guilty when writing this "forever loop ... end loop". Infinite loop !? Isn't it what we, software guys, try to avoid ? :) page 28, about "exit loop": I wasn't aware of this, cool ! page 32: "first thing to know of a slave is it's address". "it's" => "its" ? (or am I completely wrong ???). Also, sometimes i2c related pages also refer i2c read/write addresses, LSb corresponding to the selection of read or write address. Might be useful to note this when googling. page 35: "jallib provides libraries for peripherals, USB and memory card access". A bit limitative: and servos, various sensors (distance, temperature, humidity, CO2, ...), CAN, etc... This reading was great ! Kudos for you all ! Cheers, Seb 2010/3/15 Sebastien Lelong <[email protected]> > Hi Joep, > > I'm reading your starter guide, not yet finished, but I may start giving > some feedback while reading. > > Introduction: > There's no mention about compiler & libraries being open source. I think > it's a rather important point, and should be announced in introduction. > > Links: > Can Jaluino links point to either http://jaluino.org (redirect to > justanother language) or jaluino GC http://jaluino.googlecode.com(preferably > jaluino.org), instead of the group list ? > > Prerequisite: > "the best way ... is to 'Blink-a-Led' => I would add something like: > > "if you've ever learn another programming language, you may know the > "Hello World" tradition: this is the very first program, as simple as > possible, that can give you some feedback while running, so you actually > know everything is working. Usually, this program prints "Hello World" on > the screen but, with microcontrollers, printing something on a screen is far > from being that simple ! Blinking a LED is indeed much simpler and give > appropriate feedback. "Blink-a-LED" is the "Hello Worl" for > microcontrollers." > > page 6, bullet list: > > "..., the device files provides: > - defines of ..." > > it may be: " - definitions of" ? > > Later, "Since Jallib doesn't change things unexpectedly", I would add a > footnote or the like, "In Holy datasheet we trust: take a device file and > you'll get what's described in its datasheet, with every Microchip's default > defined there. "Unexpectedly" means here that you won't get something else > than what's described in this reference" > > page 7, "but used by the compiiler and it's libraries". I think "it's" > should be "its". > > page 8: "the brownout bit is untouched, ..., so with the JAL tradition, > ...". Shouldn't it be "jallib tradition" ? > > page 9: "next is a simple loop (...) last forever". Maybe "next is a > simple loop lasting forever", or "which lasts forever" ? > > page 12: as a footnote maybe, inform 12-bits resolution is not supported > for now. > > > To be continued. > > > Cheers, > Seb > > 2010/3/14 Joep Suijs <[email protected]> > > Hi Guys, >> >> The startersguide is almost finished. Enclosed is version 0.9 (in both >> A4 and Letter format). >> >> The aim of the document is: >> "This guide is a ‘stroll through JAL and Jallib’, it provides you an >> introduction to the use of JAL and Jallib. Together with the samples >> and documentation that come with Jallib and with the tutorial book, it >> gets you up to speed quickly." >> Please let me know what you think. >> >> Would version 1.0 be worth while to publish on >> justanotherlanguage.org? And if so, how & where do I put it? >> >> Joep >> >> -- >> You received this message because you are subscribed to the Google Groups >> "jallib" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<jallib%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/jallib?hl=en. >> >> > > > -- > Sébastien Lelong > http://www.sirloon.net > http://sirbot.org > -- Sébastien Lelong http://www.sirloon.net http://sirbot.org -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
