Search found 749 matches

by Dreglor
Sun Sep 13, 2009 10:22 pm
Forum: Feature Requests and Wishlists
Topic: Debugging Macros
Replies: 0
Views: 1034

Debugging Macros

I use macros heavily when one doesn't compile right it shows a window with the expanded code. however during run time the macro is just a series of steps for number of commands in the macro before going to the next line and no info about how it was expanded or what is the state currently in the ...
by Dreglor
Wed May 27, 2009 5:44 am
Forum: Feature Requests and Wishlists
Topic: Debugger Improvements
Replies: 1
Views: 1012

Debugger Improvements

I would like to suggest some debugger improvements for the next major release.
First off, better debugging of threads like selecting what thread to watch in terms of execution, with stepping and other debugging functions. along with reporting the thread id when an error occurs in a thread. This ...
by Dreglor
Thu Apr 09, 2009 1:19 pm
Forum: General Discussion
Topic: Is this a bug or dirty memory handling on my part?
Replies: 11
Views: 3306

unfortunately it doesn't and under hood so to speak it's signless. The sign and unsigned aspect really doesn't matter until mul and div (hence the opcodes imul and idiv) in terms of integer math, floating point I can't be sure of.
But, considering that we have char, where halfway there to a unsigned ...
by Dreglor
Thu Apr 09, 2009 6:51 am
Forum: General Discussion
Topic: Is this a bug or dirty memory handling on my part?
Replies: 11
Views: 3306

Right, Anyways reason i was asking was it figure out if i can get away with using a variable for optimization reasons rather then use copymemory() for every iteration of the loops for the image processing.

I ended up creating another structure that actually holds information rather then pointing ...
by Dreglor
Thu Apr 09, 2009 12:52 am
Forum: General Discussion
Topic: Is this a bug or dirty memory handling on my part?
Replies: 11
Views: 3306

Is this a bug or dirty memory handling on my part?

Simple code to interpret.

Structure SimplePixel ;32 bit color, no unicode!
Red.c
Green.c
Blue.c
Padding.b
EndStructure

Structure SimplePixelByReference ;it shouldn't have any memory allocated towards it.
Pixel.SimplePixel[0]
Value.l[0]
EndStructure

MyPixel.SimplePixelByReference ;should ...
by Dreglor
Thu Mar 12, 2009 8:09 pm
Forum: Feature Requests and Wishlists
Topic: Interfaces shouldn't always be a pointer!
Replies: 3
Views: 1911

well interfaces as they are now are a pointer to a structure like this

interfacevariable -> *vtable.i -> method1.prototype


so instead of having a pointer point to another pointer why not remove one less pointer and leave it as a structure of methods with a veector pointer at the top
by Dreglor
Thu Mar 12, 2009 8:02 am
Forum: Feature Requests and Wishlists
Topic: Interfaces shouldn't always be a pointer!
Replies: 3
Views: 1911

Interfaces shouldn't always be a pointer!

It occurred to me that interfaces are always a forced pointer, weather or not you have * prefixed the variable. it somewhat troubling, I can understand that under most circumstances that interfaces would be a pointer (created off site) and it looks neater to omit the pointer symbol from the code ...
by Dreglor
Mon Jan 12, 2009 8:30 am
Forum: Tricks 'n' Tips
Topic: Simple Profiler
Replies: 1
Views: 1890

Simple Profiler

Here is a simple cycle profiler I decided to code after a project of mine had some odd execute times on procedures.

All that is required is that you use "BeginProfiler" at the start of the section of code you want to measure and then at the end of section of code put "EndProfiler" and use ...
by Dreglor
Tue Dec 23, 2008 12:52 am
Forum: General Discussion
Topic: The Chaos that is Object Oriented Programming
Replies: 8
Views: 3653

SFSxOI:
The linked List library only is useful if wanted to nest them or use the extra functions I've provided for it like save and load I wanted to have a sort in there but but wouldn't be very good (like the search method right now). The other reason i saw a demand for this is to simplify the ...
by Dreglor
Mon Dec 22, 2008 12:24 pm
Forum: General Discussion
Topic: The Chaos that is Object Oriented Programming
Replies: 8
Views: 3653

The Chaos that is Object Oriented Programming

A while back I found a solution of natively using a simple object oriented type of programming found here: http://www.purebasic.fr/english/viewtopic.php?t=27986
That set of code has matured over the years internally, I've never released it, and I have always wanted to expand so that it had a better ...
by Dreglor
Mon Jul 28, 2008 4:28 am
Forum: General Discussion
Topic: A few networking code questions
Replies: 0
Views: 989

A few networking code questions

I'm working on some back-end code for networking and I'm also using threads to process the outgoing and incoming events and data for each connection and client. It unclear when an network event is cleared, is it when you call NetworkServerEvent()/NetworkClientEvent() or call EventServer ...
by Dreglor
Fri May 16, 2008 10:57 pm
Forum: General Discussion
Topic: Multithreaded and Parallelizing
Replies: 4
Views: 2077

Hi Dreglor,

Raytracing again? :D


1. Buffer access is no problem. But it will be more efficient if every thread has it's own buffer (splitting the original buffer into parts).

2. That's no problem. Every thread has it's own set. Just be careful with globals.

3. My method: I split everything ...
by Dreglor
Thu May 15, 2008 10:44 pm
Forum: General Discussion
Topic: Multithreaded and Parallelizing
Replies: 4
Views: 2077

Multithreaded and Parallelizing

So, In some of my recent work I been doing there has been some occasions where a certain segments of code could be easily put into context of multithreaded, Parallelized, or even both. There are a few questions both such topics that I have to ask to make sure I can actually do it and efficiently ...
by Dreglor
Thu Nov 01, 2007 11:13 pm
Forum: General Discussion
Topic: Designing Thread Safe Programs
Replies: 1
Views: 1507

Designing Thread Safe Programs

I am in the process of writing some network based software for my own use and I thought the best way of handling it would be through a thread pool like system.
I did write something like that a while ago here:
http://www.purebasic.fr/english/viewtopic.php?t=24417
but, I am unsure how well it will ...
by Dreglor
Wed Oct 03, 2007 10:21 pm
Forum: Off Topic
Topic: PC and HDTV
Replies: 6
Views: 2027

32bit, I wasn't aware that 64 bit had anything extra to 32 bit execpt for having everything in 64bit...
I have the 64 bit version available to me and i can run it but i turned it down just because of that very reason