Author Topic: DLLC status  (Read 8868 times)

0 Members and 1 Guest are viewing this topic.

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #45 on: August 03, 2020, 07:43:58 AM »
I think we should abandon the threaded IUP approach.

Can you post an example of using DLLC to generate a dynamic on the fly callback function? Just a modified version of one of your existing virtual function examples would be great. (first step)

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #46 on: August 03, 2020, 08:13:57 AM »
I think the stability problem is between DLLC and SB. IUP is ok.

I am looking at variations of projectsC\ScriptBasic\IUP\ButtonsBootB.sb & ButtonsB.sb

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #47 on: August 03, 2020, 08:24:34 AM »
Sounds good. Looking forward to what you find.

FYI: Dave's COM DLL has a working SB callback function you could call with DLLC FFI. (not a SB ext. module call)

Thanks again Charles for supporting your ScriptBasic extension module. It brings together the best of both worlds of an interpreter and compiler.
« Last Edit: August 03, 2020, 11:17:12 AM by John »

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #48 on: August 06, 2020, 11:47:20 AM »
OT Update

When DLLC and IUP  failed for my project I went for the only option I had left which was the VB6 ActiveX DLL form and using the COM extension module to interface with it.

I wasn't able to thread the form but was able to start a SB thread from a callback. I'm using MT to set inter-process variables and use a VB timer control to callback to SB to update the UI. Working great so far.


John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #49 on: August 20, 2020, 12:15:30 AM »
Charles,

Do you have any news about your efforts with DLLC and callbacks without creating a thread?


Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #50 on: August 20, 2020, 01:44:28 AM »
Unfortunately not. I'm going to have to give up on DLLC.

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #51 on: August 20, 2020, 02:11:38 AM »
Sad seeing you invested so much of your time into the interface.

Could you post an example of a virtual callback function so I can see what I can do to keep DLLC relevant?

« Last Edit: August 20, 2020, 09:44:12 AM by John »

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #52 on: August 20, 2020, 12:14:53 PM »

projectsC\ScriptBasic\DLLCtests\DllcSpec5BootT.sb

It was an interesting excercise in generics, but perhaps too far to be practical. I will not mourn the passing of DLLC.

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #53 on: August 20, 2020, 01:16:49 PM »
Will you also be glad to rid yourself of ThinBasic now that Eros chose FreeBasic over o2?

I still plan on investing time in DLLC as it gives ScriptBasic an embeddable JIT compiler when speed becomes a factor.
« Last Edit: August 20, 2020, 01:27:58 PM by John »

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #54 on: August 20, 2020, 01:45:11 PM »
It's a much simpler interface and requires no further maintenance.



https://www.thinbasic.com/community/content.php?47-thinBasic-1-10-8-x

Interesting proposal. I can see thinBasic using FreeBasic as a back-end since most thinBasic apps do not need to be interpretive.


John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #55 on: August 20, 2020, 01:56:11 PM »
Are you going to support your ThinBasic interface when Eros goes FB 64 bit?

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #56 on: August 20, 2020, 02:09:36 PM »
Could do, but first I need to complete a self-compiling 64bit oxygen.

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #57 on: August 21, 2020, 02:22:05 AM »
My understanding is Eros is converting ThinBasic to FreeBasic not just using it to extend the interpreter. Why would he want to use O2 as an extension to FreeBasic?

It would have been a big plus if Eros went with O2 instead of FreeBasic.

The only advantage using FB is it is now a C translator instead of an ASM compiler like O2.

John

  • Hero Member
  • *****
  • Posts: 3779
Re: DLLC status
« Reply #58 on: August 21, 2020, 09:21:14 AM »
Charles,

If I take over maintaining DLLC, will you be willing to answer questions I may have if I hit the wall? DLLC is complete as far as its intended role to replace DYC. The only change I would like to make is use O2 virtual functions to define callbacks and use the SB hook function to call SB functions and subs.

John
« Last Edit: August 21, 2020, 11:38:46 AM by John »

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4409
    • Oxygen Basic
Re: DLLC status
« Reply #59 on: August 21, 2020, 05:49:49 PM »
I am very tired. I just want to complete o2, wind down and retire.