TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using the Free Pascal IDE for a Week

148 pointsby memorableover 2 years ago

18 comments

jqpabc123over 2 years ago
<i>I&#x27;m not sure what the rationale is for maintaining the text mode FP IDE. It seems kinda quaint in 2022 to maintain a recreation of the old Turbo Pascal editor, but I&#x27;m so glad that it&#x27;s there.</i><p>I think you just answered your own question. It&#x27;s there because it&#x27;s functional and works on most if not all of the supported developer desktops. Of course, it won&#x27;t win any beauty contest but I suspect most of those using it probably won&#x27;t either.
评论 #33203750 未加载
评论 #33210720 未加载
评论 #33203756 未加载
Andrew_nenakhovover 2 years ago
The best feature I <i>loved</i> about TurboPascal was built-in help.<p>Press Ctrl+F1 on any function name, and you are instantly taken to a very good help page, often <i>with a working code snippet</i> example!!!<p>I can&#x27;t overstate how <i>insanely great</i> it was, especially in pre-stackoverflow days!
评论 #33210747 未加载
评论 #33215454 未加载
Tozenover 2 years ago
Good to see Pascal&#x2F;Object Pascal getting some renewed love, after all the C&#x2F;C++&#x2F;C# wars. Way too many act like &quot;there can only be one&quot;, versus explore and appreciate what various languages and tools have to offer.
评论 #33210963 未加载
评论 #33206085 未加载
figitalover 2 years ago
First learned programming in Turbo Pascal and have fond memories of that IDE. Thanks for posting this. Would love to learn of a framework for reconfiguring this UX to do whatever I want (menus, scripting, etc).
评论 #33207832 未加载
评论 #33205866 未加载
评论 #33208520 未加载
memsomover 2 years ago
Welcome to Delphi 1. My first job was using Delphi and it was 1.0 we used to do most of the dev till we managed to go 32bit (circa 1998) and the IDE had <i>absolutely</i> no autocompletion nor did it have any suggestions. You needed to know what you were typing. I think it was Delphi 3 that introduced Borland&#x27;s version of code completion (I want to say it was called &quot;Code Sense&quot;, but that might be the Microsoft tools.) Even that was terrible till Delphi 5.<p>I think a lot of modern coders really forget how much you used to need to know. Even stuff like &quot;jump to definition&quot; wasn&#x27;t a thing IIRC back then.
评论 #33204348 未加载
评论 #33208386 未加载
maupinover 2 years ago
I have a sudden nostalgia for my high school days using Turbo Pascal in the computer lab.
评论 #33240176 未加载
dbsmith83over 2 years ago
I used to hack away with Delphi back in the day. I tried getting back into it with Lazarus, but I really find Pascal syntax painful to work with again for some reason. It just has some strange conventions and I feel like I&#x27;d have to actually read a book to become proficient. A very different experience than learning, say, Kotlin where I could essentially pick it up knowing other OO languages and having a good IDE
评论 #33206505 未加载
renewedrebeccaover 2 years ago
It&#x27;s kind of weird that the text mode IDE won&#x27;t run on macOS. FPC&#x2F;Lazarus themselves run fine there.
评论 #33210750 未加载
评论 #33204155 未加载
pmontraover 2 years ago
&gt; when you want to do more than quickly update a few files, you need a full Integrated Development Environment (IDE).<p>I remember that when I was developing with compiled languages ages ago (C and Java) I had an emacs configuration to compile and debug from within the editor. Eventually I gaved up emacs when writing Java and switched to Netbeans and Eclipse. Then I switched to interpreted languages (Ruby, Node, Python) and I&#x27;m using emacs again. Plain modes for those languages, no autocompleters except a very basic language indipendent one and it works like a charm. It also works like that with Elixir and Phoenix, which autocompiles itself. It&#x27;s been probably 10 years since I installed an IDE on one of my computers.
评论 #33208703 未加载
badsectoraculaover 2 years ago
Some notes. I assume this is for Linux, based on the beginning of the article.<p>&gt; It used to be possible to run a terminal session &#x27;attached&#x27; to Lazarus, so that it could be debugged from the IDE, but since a previous update this always seems to fail on my PC.<p>There could be some lingering settings. In my Lazarus build (from git, so it has the latest and greatest features and bugs) it is possible to run a program using a separate &quot;launcher&quot; from Run -&gt; Run Parameters -&gt; Check the &quot;Use launching application&quot; and then type something like &quot;xterm -e some command that runs your app&quot;. In fact in my PC it pre-fills &quot;&#x2F;usr&#x2F;bin&#x2F;xterm -T &#x27;Lazarus Run Output&#x27; -e $(LazarusDir)&#x2F;tools&#x2F;runwait.sh $(TargetCmdLine)&quot;<p>This should allow for debugging terminal programs from Lazarus.<p>&gt; I&#x27;m not sure what the rationale is for maintaining the text mode FP IDE. It seems kinda quaint in 2022 to maintain a recreation of the old Turbo Pascal editor.<p>It provides a basic IDE wherever Free Pascal is available. Note that, e.g., Free Pascal runs on DOS, OS&#x2F;2, AmigaOS, etc and the IDE works in those environments too (DOS support is also why the IDE &quot;embeds&quot; the compiler instead of calling out fpc.exe).<p>It also works as a showpiece for Free Vision (also part of Free Pascal) which provides a TUI framework. Sadly, as it is based on the original Turbo Vision, it uses the old &quot;object&quot;-based types instead of &quot;class&quot;-based types, so it misses a lot of useful functionality for programming - but from a user&#x27;s perspective it is IMO a perfectly fine TUI.<p>&gt; I&#x27;m not sure why this is the default setup, but you need to tell the IDE where to find the Free Pascal files on your system.<p>This might be some installation problem, on a fresh install FP should be able to work out of the box. Perhaps some distro issue? Try to use the generic tar-based installer from the Free Pascal site and install it system-wide.<p>&gt; One of the main differences in the interface, compared to Lazarus, is that instead of a tabbed interface it has a series of windows. With the right font size, I actually prefer this interface as it means that I can see several related files on screen at once.<p>Note that you can have multiple source windows with Lazarus too, right click on any tab and select &quot;Clone in new window&quot; and it will create a new source window you can have side by side with other windows (sadly you can&#x27;t use Alt+number to switch between them though - but your window manager might be able to do that for you). This way you can have both tabbed and floating windows if you want.<p>&gt; The biggest thing that I&#x27;m missing so far is a good auto complete. The IDE will offer suggestions for completing Pascal keywords but, unlike Lazarus, it won&#x27;t try to autocomplete your own variables or procedure names.<p>And auto-completing function&#x2F;procedure definitions, etc in interfaces section to the implementation section, and symbol renames, and a quick jumps to declarations or between the interface and implementation section for a function&#x2F;procedure, and a bunch of other stuff :-P. It&#x27;d be neat if those were added at some point though.<p>But i&#x27;m not sure how many people really work on the IDE nowadays, IIRC it used to be an external project that was merged with Free Pascal early in Free Pascal&#x27;s history. I think nowadays even main FPC developers use Lazarus instead (note that despite being joined at the hip, Free Pascal and Lazarus are technically two different projects with each having its own development team).<p>But having said that and regardless of the limitations, i wrote a very large part of Post Apocalyptic Petra[0]&#x27;s code in Free Pascal and the game can be compiled and debugged from the IDE just fine. I did eventually switch to using Lazarus when i started working on the editor though (since i needed the GUI bits) and the standalone &quot;Petra Engine&quot;[1] (which contains only the engine part of the game, slightly modified) is really meant to be used with Lazarus for development (you can build the standalone example game with just FPC though).<p>[0] <a href="https:&#x2F;&#x2F;bad-sector.itch.io&#x2F;post-apocalyptic-petra" rel="nofollow">https:&#x2F;&#x2F;bad-sector.itch.io&#x2F;post-apocalyptic-petra</a><p>[1] <a href="http:&#x2F;&#x2F;xtra.runtimeterror.com&#x2F;petra" rel="nofollow">http:&#x2F;&#x2F;xtra.runtimeterror.com&#x2F;petra</a>
pascal_wizzardover 2 years ago
Even working with the &#x27;modern&#x27; delphi ide makes intellij feel like advanced alien technology.
评论 #33207860 未加载
708733454927516over 2 years ago
&gt;I&#x27;m going to try and restrict myself to just using this IDE for the next week to see if I can still use it for my hobby project.<p>So how did the test week go? (Just curious; I couldn&#x27;t find an update...)
raydiatianover 2 years ago
Wow, I haven’t seen bright teal prompt text since MS DOS.
GartzenDeHaesover 2 years ago
Someone mentioned the idea of a TUI VS Code the other day and I thought it was a great idea. Also, how about a text-only reboot of the web?
评论 #33206896 未加载
评论 #33207703 未加载
评论 #33206465 未加载
评论 #33204779 未加载
haolezover 2 years ago
This would be very useful in a post-apocalipse scenario. Simple to use, simple to run, very powerful on what can be created with it :)
kuuover 2 years ago
* <i>University flashbacks</i> *
评论 #33204775 未加载
BirAdamover 2 years ago
TUIs are the best. Love ‘em.
falcolasover 2 years ago
This is your annual reminder than vim and eMacs are fully featured and extensible IDEs that support code completion, folding, and navigation by default.<p>Or, no, you don’t need to use a graphical IDE to develop code, as TFA states.<p>Thank you for coming to my Ted talk.<p>EDIT: Don&#x27;t believe me that VIM is an IDE? Read the threads for elucidation. :)
评论 #33203821 未加载
评论 #33203444 未加载
评论 #33203453 未加载
评论 #33203834 未加载