Modern Object Pascal Introduction: units, classes, generics, memory management, exceptions and more.
89 comments
So play with it I did. I hadn't used Visual Basic at the time, so the entire idea of "drag and drop" GUIs was kind of amazing, and I even kind of ended up liking the language.
I wasn't able to get any kind of OpenGL stuff working with it, so I ended up going back to C and I really haven't touched the language since, but I kind of feel like I should at some point just to finish off that loose thread in my education.
[1] I actually don't remember if that was proper freeware or if I had gotten it cough unofficially free...
https://computerhistory.org/blog/adobe-photoshop-source-code...
I'd love to be able to take it up again, and this document looks very promising for that, esp. paired with:
https://wiki.freepascal.org/pas2js
which I now see is supported in Lazarus.
If someone has an example graphical project which compiles to an HTML page w/ JavaScript using the above, I'd love to see it and a detailed set of build instructions and notes on installing the needed toolchain and deployment. (as a note, I'm currently working in flet.dev using Python which allowed me to get a small prototype up-and-running, but I'm still looking into self-hosting and doing something more complex)
- actually ported (_not_ emulated) w/ native drivers
- easy to install
- performant
- had an attractive GUI
- had a web browser which could handle the basics of the modern web
I mean, the documentation is sixteen pages --- seems like a perfect fit --- still waiting on a tablet shell for an rPi 5 (and still need to get an rPi 5 Compute Module for it), so will be looking into it then....
According to google:
When you assign one dynamic string to another, Free Pascal does not duplicate the actual characters in memory. Instead, both variables point to the same character buffer in the heap, and the runtime increments an internal reference counter. A physical memory copy is only triggered when one of the string instances is modified (written to)
Free Pascal strings are as close as you get to magic, compared to C/C++.
String -> immutable string
StringBuilder -> mutable string, optimized methods for string modification > Free Pascal strings are as close as you get to magic, compared to C/C++.
Not your point of reference, but Java and C# treat strings as immutable objects too.Actually all dynamic array are.
Read the full thread on Hacker News →
Related stories
- Hacker News · 1 points · 8 days ago
- DEV Community · 11 points · 10 days ago
- Hacker News · 1 points · 9 days ago
- Hacker News · 2 points · 9 days ago
- Hacker News · 1 points · 9 days ago
- Hacker News · 1 points · 8 days ago