{"id":1072,"date":"2010-01-09T12:10:40","date_gmt":"2010-01-09T16:10:40","guid":{"rendered":"http:\/\/www.contrapositivediary.com\/?p=1072"},"modified":"2010-01-09T23:40:05","modified_gmt":"2010-01-10T03:40:05","slug":"freepascal-and-lazarus-from-square-one","status":"publish","type":"post","link":"https:\/\/www.contrapositivediary.com\/?p=1072","title":{"rendered":"FreePascal (And Lazarus) From Square One"},"content":{"rendered":"<p>About two years ago I started piecing together a book on <a href=\"http:\/\/www.freepascal.org\/\">FreePascal<\/a> based on my 1992 Bantam book, <em>Borland Pascal 7 From Square One<\/em>. I set the project aside in part because I needed to get my assembly book updated and back into print&#8211;something that took most of a year and all of the personal energy I could summon. But there was another problem: The text-mode IDE included with FreePascal is erratic in the extreme, and crashed constantly on me, especially under Windows. I had hoped that there was an easy fix, but apparently not. I installed the new 2.4.0 release of FreePascal yesterday, and the IDE hasn&#8217;t changed a bit. Try to set the text display resolution to anything at all (25 X 80, 43 X 80, whatever) and it crashes. One wonders why the damned thing is still there.<\/p>\n<p>I&#8217;ve been following <a href=\"http:\/\/wiki.freepascal.org\/History\">the Lazarus project since it had been the Megido project<\/a>, back in 1998. The idea was to create an open-source alternative to Delphi, by writing a GUI front end for FreePascal. It&#8217;s possible to create ordinary console apps in FreePascal using Lazarus as the IDE, but I hesitated to use Lazarus as the example IDE in the book because it&#8217;s only available for Windows, Linux, and FreeBSD. (There&#8217;s a Mac port, but I&#8217;ve heard it&#8217;s less complete and much less robust than the others.)<\/p>\n<p>Pascal and VDM readers, feel the irony: Jeff Duntemann hanging back from a RAD environment because he&#8217;d hoped to have a more broadbly applicable (read here: portable) book. Wow.<\/p>\n<p>Heh. I changed my mind. I&#8217;ll have to go back to the beginning and pull out all the references and screenshots involving the text-mode IDE, but Lazarus is a much better IDE, even if you&#8217;re not actually doing any RAD work&#8230;.yet.<\/p>\n<p>&#8220;Yet&#8221; is key. If this first book works out, I hope to adapt some of my material from <em>The Delphi 2 Programming Explorer<\/em> into an intro book for Lazarus as a RAD tool. So getting readers familiar with the editing and project management machinery built into Lazarus is a good thing, even if the bulk of the app goes to waste while people learn the fundamentals of Pascal.<\/p>\n<p>I&#8217;m going to try something new with this book. I&#8217;m going to pull a Cory Doctorow and give away the complete PDF version for free, and sell the printed version on Lulu. The book will be yet another descendant of <em>Complete Turbo Pascal<\/em> (in fact, it will in essence be the 25th Anniversary Edition!) and I&#8217;ve been paid for the work many times over. So I won&#8217;t be losing much by giving it away, and I&#8217;m very curious to see how many paid print sales I&#8217;ll make based on a free ebook.<\/p>\n<p>Most of the work lies in the early chapters, where I introduce people to the Lazarus RAD environment. After that, well, it&#8217;s all basic Pascal, and while Delphi has extended Pascal fantastically in the last fifteen years, CASE statements are still CASE statements.<\/p>\n<p>Unlike my earlier books, I intend to post regular PDFs of the work in progress, so you can follow the project as it happens. (There&#8217;s a 2008-era PDF out there now, and you can get it from <a href=\"http:\/\/www.copperwood.com\/pub\/FreePascalSquareOneVol1.pdf\">my FTP area using HTTP<\/a>.) I&#8217;ll post an updated PDF as soon as I untangle all the existing references to the text-mode IDE. Watch this space for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>About two years ago I started piecing together a book on FreePascal based on my 1992 Bantam book, Borland Pascal 7 From Square One. I set the project aside in part because I needed to get my assembly book updated and back into print&#8211;something that took most of a year and all of the personal [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33,89,90,32],"class_list":["post-1072","post","type-post","status-publish","format-standard","hentry","category-noneoftheabove","tag-books","tag-delphi","tag-pascal","tag-programming"],"_links":{"self":[{"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/posts\/1072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1072"}],"version-history":[{"count":2,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/posts\/1072\/revisions"}],"predecessor-version":[{"id":1074,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=\/wp\/v2\/posts\/1072\/revisions\/1074"}],"wp:attachment":[{"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.contrapositivediary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}