Search found 255 matches

by JeanMars
Sun Sep 15, 2019 6:54 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, sorry I realize this dicussion is starting to bug you and that was not my objective at all. Let's just conclude we have different views on what a plugin/dynamic lirary is and how it should behave regarding apps and that's it. You are very free to have your opinion on this as well as me....
by JeanMars
Sun Sep 15, 2019 1:23 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, You can't be serious about that... Agree that my wording might be a bit too much but think about it: what are the pro/cons of dynamic libraries vs static libraries? Pros: 1- Not having everything in memory as app can decide only to load the code only when needed 2- Not having to recompi...
by JeanMars
Sun Sep 15, 2019 9:59 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, Then you are back to the LDG system, which needs an extra program in the auto folder, but this time even if the library is not shared. This model does not look bad to me, I always prefer having a common thing to deal with a problem rather than having every application making its own imp...
by JeanMars
Sat Sep 14, 2019 8:55 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, Malloc(-1) only gives you the size of the largest block, that might be the same if the module was loaded somewhere else. To get the total memory, you can use Dfree(35) on Mint. For Single-TOS, you have to allocate blocks until you get NULL, then free them again. In ORCS, i use something...
by JeanMars
Sat Sep 14, 2019 4:57 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi, maybe it is not unloaded immediately. And have you ldg.prg in the auto folder? And how to you display the available mem, if you just display the largest block, it might just have been fragmented. I tried with ldg.prg in auto folder, same behavior. I'm using Mxalloc(-1, 0) and Mxalloc(-1, 1) to g...
by JeanMars
Fri Sep 13, 2019 11:03 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, Thats your choice of course, but IIRC it was you who asked for SLB support, long before i started working on zview and the modules. Originally, it was to provide support for png to Vision, this has been done by using the SLB png library (the port you made for Atari from open source libr...
by JeanMars
Fri Sep 13, 2019 7:23 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, But that doesn't make sense. If you don't set some function, and the plugin fails if any is null, you won't be able to use any of them. I'm pretty sure all plugins don't need all exported functions. My suggestion was just to fail init if some function plugin knows it needs is not provid...
by JeanMars
Fri Sep 13, 2019 4:47 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, But that is already done. Well..not. I didn't add these pieces of code in Vision's sources because I'm not ready to have this kind of dependency in Vision. My proposal here is to have some kind of trade-off between your SLB model, for which I don't want it to make these dependencies in ...
by JeanMars
Fri Sep 13, 2019 1:47 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, as I'm still reluctant to have this plugin_slb_get and related functions in Vision, can we do half-way: - Vision will export regular 'C' functions to SLB plugin - SLB plugin won't crash if an expected export is not present (function NULL) and report an error from plugin_set_imports call...
by JeanMars
Thu Sep 12, 2019 7:14 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, I still see dependencies to exifslb.lib and jpegslb8.lib in vision.prj. And iizview.c still has these dependencies: SLB *__CDECL plugin_slb_get(zv_int_t lib) { switch ((int)lib) { case LIB_PNG: return slb_pnglib_get(); case LIB_Z: return slb_zlib_get(); case LIB_JPEG: return slb_jpeglib...
by JeanMars
Thu Sep 12, 2019 2:58 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Ah good news :-)
So what does Vision need to do now? 'Just' export 'C' stdlib functions to zvSLB? Would be nice to get rid of this dependency too BTW...
Right now I'm working on the smart image module memory loader, I'll look into this after.

Cheers,
Jean
by JeanMars
Thu Sep 12, 2019 12:22 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten,

not sure I get your point; does that mean I don't have to have any tiff/png/jpeg hard-coded dependency in Vision's code to use the SLB plugins?
by JeanMars
Wed Sep 11, 2019 8:49 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, But you have done that already ;) And Lonny is almost finished converting his modules, so once they are available, you could drop instead the LDG module support. With your help :D Actually, zView LDG modules are working pretty nicely except for memory consumption I would agree but this ...
by JeanMars
Wed Sep 11, 2019 8:37 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, thanks for your efforts on this, I'm a bit confused; I don't want to waste your time as I'm not sure I will implement new zView SLB modules in Vision. Let's take a step back: zView has the legacy LDG module system. They are working with some drawbacks such as: - memory consumption as co...
by JeanMars
Mon Sep 09, 2019 6:40 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, You might have missed this one as a page wrap occurred right after: I had a quick look at the modifications you made, 2 comments: - Yes please I would prefer to have a ZIP containing all updated source archive - I see many static dependencies in new sources regarding jpg, png and tiff f...
by JeanMars
Sun Sep 08, 2019 5:05 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi, @Thorsten: I had a quick look at the modifications you made, 2 comments: - Yes please I would prefer to have a ZIP containing all updated source archive - I see many static dependencies in new sources regarding jpg, png and tiff for new SLB format. Why this? The caller should not be aware of thi...
by JeanMars
Sun Sep 08, 2019 8:08 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten

Well great job :D
Why using callbavks for mem... functions? Save some code room in module?
Should be able.to work a bit on this this evening.
Again thanks for the time you spent on this!
by JeanMars
Sat Sep 07, 2019 8:04 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Btw to.compile vision, did you use the original purec include and libs?
by JeanMars
Sat Sep 07, 2019 8:02 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, Thanks for pointing this out, it is true that vision was developed in early 90s and a refresh of include/lib would definitively be a good idea. Not sure why there are 2 xaes.h in the backup but the one used to compile is the one in tools folder. Can't look at this now but afair iconify ...
by JeanMars
Fri Sep 06, 2019 2:47 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten,

thanks for this check, I'll check on my side when free.
And yes, confused Aranym with Mint :-(

Cheers,
Jean
by JeanMars
Fri Sep 06, 2019 10:33 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi, Generally, it should work. There are only two issues maybe: - you must not use "ANSI keywords only" (but in that case you will get a compile error when using cdecl) - you should check that "cdecl" isn't defined to empty somewhere else. My guess is that this is the case. ANSI keywords only: for s...
by JeanMars
Fri Sep 06, 2019 7:29 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, hat is the case on MiNT IIRC, but need not be. I think in MagiC it points to some internal structure. Just treat it as an opaque type that you pass along when calling functions. Ah OK, pity as MagicPC is the only env where I have a decent debugger... However, header on Aranym looks bad ...
by JeanMars
Thu Sep 05, 2019 8:22 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi, I'm still fighting against SLB zView plugins being called... On Aranym, function ordinal 8 (SLB_get_option) is OK and returns correctly the list of file extensions but it then crashes on ordinal 1 (SLB reader_init). On MagicPC 6, it crashes at function ordinal 8. I made a screenshot of a debug s...
by JeanMars
Mon Sep 02, 2019 3:52 pm
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi Thorsten, I found the comment on the 'official' Magic library page same as in toshyp but moved to github: https://freemint.github.io/tos.hyp/en/magic_sharelib.html (also at the very end in 11.23.10 SLB.H, cdecl is missing) I'll try adding the cdecl keyword as it has to be there anyway. Would be g...
by JeanMars
Mon Sep 02, 2019 10:38 am
Forum: Coding
Topic: SLB 'devkit' ?
Replies: 68
Views: 14938

Re: SLB 'devkit' ?

Hi, I'm facing an issue when using PureC; slbopen looks OK but any attempt to run a function leads to err -32 (invalid function number). I guess this has to do with the function call which is cdecl but slb.h mentions: /* Unfortunately this does not work in Pure-C, because Pure-C has an error (!!!) h...

Go to advanced search