Recent

Author Topic: Object Pascal decline?  (Read 163620 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Object Pascal decline?
« Reply #90 on: November 30, 2013, 09:56:17 am »
Quote
Well, converting C code snippets to Pascal is not so hard.
Syntax conversion is (somewhat, with all those C quirks) easy, but library? I don't think so...
Quote
The big problem is that people wish and don't act.

If i could i would, but im still learning
I'm still learning as well at this time, just like when I developed my fpos kernel, just like when I contributed to Greyhound and Brook framework, just like when I developed a compiler for a research language, just like when I wrote all my other projects. Nobody stops learning except quitters. And quitters never make dream or wish come true. Wanna be one of them?

Scoops

  • Full Member
  • ***
  • Posts: 105
Re: Object Pascal decline?
« Reply #91 on: November 30, 2013, 10:05:29 am »
Nobody talked about giving up, but if you see my level of Pascal coding, maybe you
would understand that trying to convert to c aswell may be over my head, but giving up
NO, but don't be in a hurry to see anything.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Object Pascal decline?
« Reply #92 on: November 30, 2013, 10:10:29 am »
NO, but don't be in a hurry to see anything.

Not at all.

Scoops

  • Full Member
  • ***
  • Posts: 105
Re: Object Pascal decline?
« Reply #93 on: November 30, 2013, 10:15:01 am »
Good.  :D

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: Object Pascal decline?
« Reply #94 on: November 30, 2013, 10:15:39 am »
If you like to participate, MSElang is on the way:
https://gitorious.org/mseide-msegui/pages/Mselang

Martin

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Object Pascal decline?
« Reply #95 on: November 30, 2013, 10:55:45 am »
Quote
Nobody talked about giving up, but if you see my level of Pascal coding, maybe you
would understand that trying to convert to c aswell may be over my head, but giving up
NO, but don't be in a hurry to see anything.
It's OK, nobody pushes you. Quitters do nothing at all, but contributors do something, even if it's invisible ;)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4660
  • I like bugs.
Re: Object Pascal decline?
« Reply #96 on: November 30, 2013, 12:58:50 pm »
... you may have good ideas.
I have an idea: pick one of the issues here:
  http://bugs.freepascal.org/
Then learn the relevant code, fix the issue and provide a patch. Or you can implement a missing feature of your choice in the IDE or libraries.

Converting C to Pascal is not realistic. Small code snippets would be possible but real C code uses libraries and ugly #define hacks.
Besides you can already use C code through shared libraries.
Converting Java or C# would be a little easier but still not realistic because of all the libraries used. Even converting Delphi code for Lazarus is difficult. You can look at the open Delphi converter bugs and maybe fix them for practice. (?)

Forget the C to Pascal idea! Let's make this Pascal environment + libs better instead.
« Last Edit: November 30, 2013, 02:09:19 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Object Pascal decline?
« Reply #97 on: November 30, 2013, 01:42:37 pm »
After passing through their respective compilers, all languages end up in machine code. Then you can reassemble it and do what you want. Maybe you could have a converter from ASM to Pascal and get the Pascal code. But for a code snippet it is overwork.

High level languages exist to make easier to write and understand logical reasoning. Of course it is difficult to know all implications a code snippet has on the program and the "recommended" way to know that is comparing the machine codes.

Of course statements can be easily converted, one could quickly write a tool even to magically paste C statements converted to Pascal in the editor, if you don't care about logic or compilable code. If Google Translator can do so, why could I not?
« Last Edit: November 30, 2013, 02:53:37 pm by typo »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4660
  • I like bugs.
Re: Object Pascal decline?
« Reply #98 on: November 30, 2013, 02:04:23 pm »
Well, I do remember one particular drinking binge in the Netherlands too. I even have pictures of Juha to prove it :-)

Damn. I saw in one picture a red devil from BSD project had come to sleep with me. I don't know how he came there. :)

This has been quite amazing so far. At 2009 I was "outsourced" from my job and started IT studies in evening school. I was looking at open source projects but I really don't know why I started contributing code to exactly this one.
Concentrating on Pascal felt like a "professional suicide" but I did not care. However over four years later, this autumn, I started work in a company that uses FPC and Lazarus in their development. They hired me mainly because of my experience in this project.
Before that I also had one job where Lazarus experience was an advantage.
Often important turns in life happen by accident, at least for me. Their importance cannot be seen at the moment they happen. For me this project seems to be one of those "accidents", although a positive one.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Object Pascal decline?
« Reply #99 on: November 30, 2013, 02:19:06 pm »
... you may have good ideas.
I have an idea: pick one of the issues here:
  http://bugs.freepascal.org/
Then learn the relevant code, fix the issue and provide a patch. Or you can implement a missing feature of your choice in the IDE or libraries.

Quote
Nobody talked about giving up, but if you see my level of Pascal coding, maybe you
would understand that trying to convert to c aswell may be over my head, but giving up
NO, but don't be in a hurry to see anything.
It's OK, nobody pushes you. Quitters do nothing at all, but contributors do something, even if it's invisible ;)

Completely agreed with Juha & Leledumbo. I started fixing bugs that hampered my (simple) programs... I still don't think my coding is particularly good but it's good enough to fix quite some things and once I started to show I could and did contribute (instead of somebody who only talks), I got a lot of help from the experts.
Even if you just contribute documentation/improve articles on the wiki or helping out on the forum, you are already contributing.

PS: Pics or it didn't happen - especially if daemons are involved: they're usually invisible ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Object Pascal decline?
« Reply #100 on: November 30, 2013, 03:23:16 pm »
Anyway, Scoops is invited to write an online tool to convert statements from C, Java, etc, to Pascal. I can find anything like this on the web (perhaps it is a symptom of the decline of programming).

I will highly recommend this tool on LazarusBrasil site.
« Last Edit: November 30, 2013, 03:39:43 pm by typo »

Scoops

  • Full Member
  • ***
  • Posts: 105
Re: Object Pascal decline?
« Reply #101 on: November 30, 2013, 03:41:54 pm »
I think you should read my first post again, i never said i could or would, and i never said a decline
in programming, i made a point that i see lots of posts comparing c to pascal, and i made a wish
for having a parser in the code editor.  Nothing more and nothing less.  I'll contribute when i'm able, thanks

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Object Pascal decline?
« Reply #102 on: November 30, 2013, 03:48:55 pm »
OK, so you are telling me your wish and I am telling you the mine.

Scoops

  • Full Member
  • ***
  • Posts: 105
Re: Object Pascal decline?
« Reply #103 on: November 30, 2013, 03:53:06 pm »
This afternoon i found  a tool called 'delphi2cpp', written by Ivan Vecerina,
i'll try to learn something from it.

http://ivan.vecerina.com/code/delphi2cpp/delphi2cpp.zip
« Last Edit: November 30, 2013, 03:55:49 pm by Scoops »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Object Pascal decline?
« Reply #104 on: November 30, 2013, 04:04:38 pm »
Thanks, I will take a look at it.

Internet has served to make some billionaires and do economic espionage, maybe it can serve also to us.

 

TinyPortal © 2005-2018