Recent

Author Topic: Hello, I'm new :D  (Read 4008 times)

sabino

  • New member
  • *
  • Posts: 7
Hello, I'm new :D
« on: March 26, 2015, 10:55:45 pm »
Hello everyone! I'm new here and I'm fashinated in programming; I already know what a compiler is, what a library and a game engine are, performance, and some other concepts. I've read that Pascal is used both in learning  that in serious development. I'm mainly fashinated in game development, so I think I will have not to worry about resources because there are some Pascal game engines/libraries. I will not ask about features or achievements because I know that Pascal can do everything. My main doubt is: how is the Pascal performance compared to C? They are both compiled languages and they both support multi-threading. Are there notable performance issues by using Pascal instead of C?
PS. I would like to start doing some programming exercises and then start creating games. By the way, will FPC fully support Android platform?
Should my Pascal app be packed in a Java app? Thank you for your support, I really appreciate it! And, by the way, what book can I buy to learn Pascal?
Thank you.  :)

Basile B.

  • Guest
Re: Hello, I'm new :D
« Reply #1 on: March 26, 2015, 11:55:25 pm »
Performances are closed, depending on the compiler options of course. The fact is that in the compiled language family, performances are more or less equivalent, there is no big gap. The big gap exist when you compare a compiled lang to an interpreted lang.

Performances wont be a problem.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: Hello, I'm new :D
« Reply #2 on: March 27, 2015, 05:14:23 am »
Welcome :-)

RE: Books - follow the links in my signature.  There's some good free ones there with good introductions to pascal programming (always a good idea to get the basics in).   

There's also a good set of tutorials on the LazPlanet blog (just google :) )

As for googling for help, Lazarus/FPC is very similar to Delphi.  While not all work, you'll find most of the examples and tutorials for Delphi around the Net will also apply.

We've also got a very full wiki here (see link on left hand side), and once you get started you'll find various answers on this forum.

Cheers

Mike
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Hello, I'm new :D
« Reply #3 on: March 27, 2015, 07:06:55 am »
My main doubt is: how is the Pascal performance compared to C? They are both compiled languages and they both support multi-threading. Are there notable performance issues by using Pascal instead of C?
Comparing language's speed is impossible. Comparing language IMPLEMENTATION's speed is possible. Languages don't run, languages don't generate executable code, implementations do. Which Pascal and C implementations are you referring to? FPC is certainly a magnitude faster than TCC, but is on par and a bit behind with GCC/Clang. If you wonder the real speed, try running Castle Game Engine games. Do you notice any performance issue? Certainly you will need a good graphics card since the games contain heavy 3D operations everywhere.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 678
    • My games in Pascal
Re: Hello, I'm new :D
« Reply #4 on: March 27, 2015, 09:58:46 am »
Quote
I'm mainly fashinated in game development, so I think I will have not to worry about resources because there are some Pascal game engines/libraries.
hi, sabino!
I'm using Lazarus for game development :) And I can tell you that Pascal game engines/libraries are not that good. The main problem is lack of decent documentation and tutorial. So, if you want to 'dive into game development' it might be better to check one of universal game development kit like Unity, Cry engine etc. They have been made free for low-income/non-commercial games, and as they say, there's lot of documentation and resources relative assets.
E.g. for me it was another story. I started pascal in early 1990s, so it's easier for me to hit the wall with my head trying to understand how the engine works, than to learn a new programming language plus a non-free (as in freedom) engine.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Hello, I'm new :D
« Reply #5 on: March 27, 2015, 12:04:22 pm »
For some game applications like high performance rendering asm assembly code can give you significant differences in speed, for better, of course. But I heard people talking about it. I am not a professional as well. :)
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Hello, I'm new :D
« Reply #6 on: March 27, 2015, 12:09:35 pm »
Can I enter in this newbie  boat and ask you if you ever tried OpenGl or OpenCv in a Lazarus/Free Pascal environment? I am interested in some interfaces between computer vision and behavioral sciences.
Be mindful and excellent with each other.
https://github.com/cpicanco/

sabino

  • New member
  • *
  • Posts: 7
Re: Hello, I'm new :D
« Reply #7 on: March 27, 2015, 12:50:25 pm »
@Eugene Loza-> I have heard about ZenGL, Andorra2D, Castle engine, Terra engine and nxPascal. What are tou using?
----------
Can I buy a book about Delphi to learn to program with FPC?

 

TinyPortal © 2005-2018