proomt

Search

Search posts, papers, and topics

All posts

Hacker News front pageMichalis Kamburelis, Castle Game Engine Developers111 min readtutorialintro

Modern Object Pascal Introduction for Programmers – Castle Game Engine

Summary

The piece is a concise tutorial introducing modern Object Pascal, showing how to write and compile simple programs with Free Pascal or Delphi and covering core syntax, functions, conditionals, and compiler modes. It highlights Pascal’s modern features and practical tips for cross‑platform development with the Castle Game Engine.

  • Object Pascal offers modern features (classes, generics, interfaces) comparable to C++/Java while remaining type‑safe and native‑compiled.
  • Both Free Pascal (FPC) and Delphi can share source files using {$ifdef} guards, letting you target either compiler without duplication.
  • A minimal program needs only mode directives, a program block, and WriteLn; compilation is a single fpc command or IDE click.
  • Functions return values via the implicit Result variable; Exit can return early, mirroring return in C‑like languages.

Pascal developers or engineers evaluating a modern, cross‑platform compiled language should read this to get up‑to‑speed quickly.

6/10

Related reading

  1. Article: Your Next DSL Author Is a Language Model

    Typed Domain Grounding (TDG) embeds a DSL inside a mainstream language the LLM already knows (e.g., Kotlin) and uses the host compiler as an oracle. The author describes five building blocks—embedding, choosing a host language with high training‑data frequency, compiler‑driven type safety, a generate‑compile‑repair loop, and an on‑demand teaching tool—and shows measured results from kUML, a Kotli…

    InfoQinfoq.com18 min
  2. Object-Oriented Programming (OOP) in Python

    This tutorial introduces Object-Oriented Programming (OOP) in Python, explaining how to define classes as blueprints and create objects from them. It covers core OOP concepts like encapsulation, inheritance, abstraction, and polymorphism, demonstrating class definition and instance creation with practical examples.

    Real Pythonrealpython.com27 minHN1
  3. Codebase Blueprint: it all started with Legacy Codebases

    This article introduces Codebase Blueprint, a static analysis tool designed to quickly understand complex legacy codebases for migration planning. It provides insights into code structure, dependencies, and usage patterns across various languages like RPG, COBOL, and SQL, demonstrating its utility through a practical change request scenario.

    Federico Tomassettitomassetti.me9 min
  4. Textbook review: Is Parallel Programming Hard, And, If So, What Can You Do About It?

    A detailed, personal review of Paul McKenney’s free online textbook on parallel programming. The author, coming from a TLA⁺/distributed‑systems background, finds the early chapters excellent for building intuition about CPU caches, memory ordering, and false‑sharing, but notes gaps (e.g., shallow coverage of C++11 atomics and MESI). The review is concrete, cites specific chapters, and offers prac…

    Lobstersahelwer.ca8 minHN12757lobste.rs48
  5. Execution in the Kingdom of Nouns

    Yegge uses a kingdom metaphor to contrast Java’s object‑centric style, where verbs are hidden behind noun objects, with functional languages that treat functions as first‑class citizens. The essay warns that over‑objectifying behavior can make code cumbersome.

    Hall of Fameblogspot.com13 minHN7325