Amiga-Development

Please login or register.

Login with username, password and session length
Advanced search  

News:

Created for developers of all Amiga camps

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - asrael22

Pages: [1] 2 3
1
Free Pascal / Re: Unit testing
« on: August 15, 2017, 10:18:02 PM »
na, not really a correction, just little bit more precise, the one from Greame is just the same with some addition I guess, he often do such thing.

@asrael22
is this ok for you?
Sure. I'll take a look at this.
Thanks.

2
Free Pascal / Re: Unit testing
« on: August 14, 2017, 07:35:10 PM »
Alright. Thanks for looking into this.

I thought I'd program something myself.
Something very simple, just some Assert statements into some Pascal unit.
Then I figured to test a Pascal unit a container 'program' must be created for either a number of units or one for each unit where the classes or code of the unit can be tested in separation.


Manfred

3
Free Pascal / Re: Unit testing
« on: August 13, 2017, 06:26:45 PM »
OK, I found FPTest:
https://github.com/graemeg/fptest

Tried to compile it but some EpikTimer, which is a dependency, requires 'baseunix'.
That doesn't seem to be available on the Amiga distribution.

Any ideas?


Manfred

4
Free Pascal / Unit testing
« on: August 13, 2017, 12:54:51 PM »
Hi.

What options do I have to follow a test-driven approach?
Is there a unit-testing framework or unit for FreePascal with a fast turnaround?


Manfred

5
AmigaOS 3.x Dev / Re: Opening a console window
« on: August 09, 2017, 11:48:17 AM »
Yeah, ALB42's is exactly what I wanted.

Open my own CLI on the screen.
The CON: alone seems to just give a console window where you have to implement reading and writing via the file handle.


Manfred

6
AmigaOS 3.x Dev / Opening a console window
« on: August 08, 2017, 10:26:09 PM »
Hi.

I need to bother you guys a bit more. :)

Now, I have opened a screen and a window in it.
Then I open CON: into that window:
Code: [Select]
DOSOpen(Format('CON://///WINDOW0x%p', [Win]));
That seems to be working.

But there is no Shell in there. Just a cursor, and I can type. Well, that's already something...
How do I get a full Shell in there?


Manfred

7
Free Pascal / Re: Documentation for amiga based units.
« on: August 08, 2017, 07:30:33 PM »
Yeps, that's great, thanks.


Manfred

8
Free Pascal / Re: Documentation for amiga based units.
« on: August 08, 2017, 07:15:46 PM »
Alright, thanks. That's useful.

The BPTR, the result of the Open() call, do I just take a longint in Pascal?


Manfred

9
Free Pascal / Documentation for amiga based units.
« on: August 08, 2017, 06:46:36 PM »
Hi.

Where can I get API documentation of the Amiga based units?
I mean, I can look at the RKRM library docs but using that under FreePascal is different.
In particular, I was searching for how to open a console window using amigados Open() call on a new screen.
But couldn't really find this as an example in the distribution.
Where could I get more information on this kind of stuff?


Manfred

10
Free Pascal / Re: Syntax highlighting for Cubic IDE?
« on: August 07, 2017, 03:48:43 PM »
Which editor do you guys use?

... (syntax highlight is overrated! :D) ....
For sure it is.
But I'm used to it from the Java/Scala/Swift/Objective-C world I'm usually operating in.
Still, I think it helps to keep overview of the source code.


IU've tried annotate but couldn't really get used to it.
Maybe I'll have another look.


Manfred

11
Free Pascal / Re: Compile speed and binary size on AmigaOS 3
« on: August 07, 2017, 03:41:58 PM »
It was just a suggestion. uae does the job just as well when really required (and in case you can live with that).

So, how is the cross-compiling being done, say, when I'm on Mac.
Can I cross-compile with FreePascal for a different target?


Manfred

12
Free Pascal / Re: Compile speed and binary size on AmigaOS 3
« on: August 07, 2017, 03:39:42 PM »
In my experience it is always a choice between evils, e.g. speed vs size / memory consumption and imho the trick with such things is usually to find a good balance between those two (or actually three).

Although i understand, i admit that i was truly surprised to see both gnu linker and vlink rapidly devouring about 200-300 mb of memory for (cross-)compiling a rather simple project. I never considered that it would take such huge amount of memory these days. I take it this is due to the same balance as i've mentioned above in my post ?
I would assume that how much memory is used for doing the job faster is determined on how much memory is available. If less is available more disk operations have to be done.

Manfred

13
Free Pascal / Syntax highlighting for Cubic IDE?
« on: August 07, 2017, 08:33:38 AM »
Hi.

Which editor do you guys use?
Is there a syntax plugin for Cubic IDE?


Manfred

14
Free Pascal / Re: Compile speed and binary size on AmigaOS 3
« on: August 07, 2017, 08:32:33 AM »
Hi.

Cross-compiling is not really an option. I'd like to code stuff in Cubic IDE (now that I've gotten used to the key shortcuts :).
I don't have a large project as of now, should I have that then I can also compile on UAE. On my Mac using FS-UAE the helloworld builds in 0.5 secs. Pretty fast.


Manfred

15
AmigaOS 3.x Dev / Re: Screen mode list
« on: August 07, 2017, 08:29:36 AM »
Sure, that's OK. I wanted to do that using Pascal.
Thanks.

In fact I had a look at the ASL stuff (in RKRM libraries) but only found File and Font requester types.
Was that Screen requester added later?


Manfred

Pages: [1] 2 3