PascalABC Support #19

Open
opened 2021-11-04 15:40:50 +00:00 by BareGamer · 6 comments
BareGamer commented 2021-11-04 15:40:50 +00:00 (Migrated from github.com)

Hello BeRo, I wanted to use Vulkan.pas in PascalABC, however it didn't work out of the box (which wasn't really surprising). So I added preliminary support for it in vkxml2pas.dpr. Would a pull request with patches for PascalABC be accepted/appreciated? Thank you in advance.
P.S. PascalABC is .net based, so it can work out of the box on Windows, Mac and Linux and possibly mobile.

Hello BeRo, I wanted to use Vulkan.pas in PascalABC, however it didn't work out of the box (which wasn't really surprising). So I added preliminary support for it in vkxml2pas.dpr. Would a pull request with patches for PascalABC be accepted/appreciated? Thank you in advance. P.S. PascalABC is .net based, so it can work out of the box on Windows, Mac and Linux and possibly mobile.
BeRo1985 commented 2021-11-04 19:12:02 +00:00 (Migrated from github.com)

You are welcome to share them with me, and I will have a look at them.

You are welcome to share them with me, and I will have a look at them.
BareGamer commented 2021-11-04 21:34:49 +00:00 (Migrated from github.com)

I will try to do a pull request during the next day then. Would that be ok?

I will try to do a pull request during the next day then. Would that be ok?
BeRo1985 commented 2021-11-04 22:07:06 +00:00 (Migrated from github.com)

Yep

Yep
BareGamer commented 2021-11-05 06:58:34 +00:00 (Migrated from github.com)

I was making sure the program compiles in PascalABC before working on Vulkan patches and suddenly it gave me a compilation error
(or rather an "exe not found" error even though the compiler didn't show any issues in the console). Looks like the problem is somewhere in the compiler/runner/whatever and is an unhandled exception. I will try to open an issue on PABC's github, but I'm not hopeful that'll get fixed at all/will be fixed quickly. Worsening the issue is the fact that I can't really pinpoint what specifically disrupts the execution.
IMG_20211105_074554

I was making sure the program compiles in PascalABC before working on Vulkan patches and suddenly it gave me a compilation error (or rather an "exe not found" error even though the compiler didn't show any issues in the console). Looks like the problem is somewhere in the compiler/runner/whatever and is an unhandled exception. I will try to open an issue on PABC's github, but I'm not hopeful that'll get fixed at all/will be fixed quickly. Worsening the issue is the fact that I can't really pinpoint what specifically disrupts the execution. ![IMG_20211105_074554](https://user-images.githubusercontent.com/78811370/140470931-1914a0bf-f465-49a2-be36-46f6035b97f4.jpg)
BareGamer commented 2021-11-05 13:02:18 +00:00 (Migrated from github.com)

Judging by the response of a contributor, the compiler is crashing because of a Stackoverflow. So looks like that'll have to be fixed first in order for things to progress. Also, there might be issues with sizeof(class) as it doesn't really do anything.

As of 29.11, even though the compiler is (hopefully) fixed, I will be able to start working on the patches again only in about 2 weeks, so progress will still be made, but rather in the department of fixing the incompatibilities with fpc introduced by my changes.

Judging by the response of a contributor, the compiler is crashing because of a Stackoverflow. So looks like that'll have to be fixed first in order for things to progress. Also, there might be issues with sizeof(class) as it doesn't really do anything. As of 29.11, even though the compiler is (hopefully) fixed, I will be able to start working on the patches again only in about 2 weeks, so progress will still be made, but rather in the department of fixing the incompatibilities with fpc introduced by my changes.
BareGamer commented 2021-12-11 21:50:48 +00:00 (Migrated from github.com)

@BeRo1985 for about a week now I have been trying to finalize the patches and encountering more and more functions pabc doesn't have natively and that are either impossible or very difficult to implement. However I think there is still a way: compile the needed functions in fpc as a dll and {$rederence} (load) this dll in the source. Do you think that approach would work?

@BeRo1985 for about a week now I have been trying to finalize the patches and encountering more and more functions pabc doesn't have natively and that are either impossible or very difficult to implement. However I think there is still a way: compile the needed functions in fpc as a dll and {$rederence} (load) this dll in the source. Do you think that approach would work?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/pasvulkan#19
No description provided.