Search found 95 matches

by graph100
Sat Jul 25, 2015 11:22 am
Forum: General Discussion
Topic: Loss of momentum?
Replies: 38
Views: 23305

Re: Loss of momentum?

That's nice, SpiderBasic is listed in the page you linked :
https://github.com/jashkenas/coffeescri ... o-js#basic
by graph100
Mon Dec 15, 2014 11:21 pm
Forum: Announcement
Topic: XMas 2014 PurePunch Contest
Replies: 86
Views: 48552

Re: XMas 2014 PurePunch Contest

How do you write such a program?

1. Just programming something with indentation and structure ... like other programs?
2. Optimizing and compressing the source code.

How good can you predict before optimizing/compressing if your program will fit the rules?

Thank you,
guido
Hi !

Falsam pretty ...
by graph100
Fri Sep 05, 2014 10:25 pm
Forum: Feature Requests and Wishlists
Topic: ID and Parent
Replies: 23
Views: 29165

Re: ID and Parent

that is why i put my opinion that it's useful. Maybe one day enough user will have post here, and it will be considered enough to do it.
But if now I just read this and walk by, it will never change.
by graph100
Fri Sep 05, 2014 8:23 pm
Forum: Feature Requests and Wishlists
Topic: ID and Parent
Replies: 23
Views: 29165

Re: ID and Parent

And no, writing your own layout engine is not a very frequent use case.

Yes, but it's getting more frequent, isn't it ?
I also add my tiny bit of salt on this scale platter.

I missed these functions a lot in one of my project. it's the kind of feature that you remark only when they are missing ...
by graph100
Fri Sep 05, 2014 7:02 pm
Forum: Announcement
Topic: PurePunch Contest July-August 2014
Replies: 113
Views: 67676

Re: PurePunch Contest July-August 2014

HI !

Since it finished, I post here the code of my punch in 'readable' version, since the punched one isn't humanly useful :lol:


-> Moonlander nightmare : (should be linux / mac / windows compatible)

;{ structure

InitSprite()
InitKeyboard()
UsePNGImageDecoder()

Structure _pointD_
x.d
y.d ...
by graph100
Thu Aug 21, 2014 3:03 pm
Forum: Coding Questions
Topic: Pointer to an array inside of a structure
Replies: 19
Views: 5414

Re: Pointer to an array inside of a structure

This should be in the help of PureBasic.
by graph100
Mon Aug 18, 2014 11:11 pm
Forum: Game Programming
Topic: Window and full screen switch
Replies: 11
Views: 7915

Re: Window and full screen switch

as said, this work : (no 3D function)

Enumeration
#WinScrn
#BtnFullScreen
EndEnumeration

ExamineDesktops()

Declare FullScreen()
Declare WindowedScreen()
Declare HandleError(Result.l, Text.s)

Procedure HandleError(Result.l, Text.s)
;--------------------------------------

If Result = 0 ...
by graph100
Sun Aug 17, 2014 11:51 pm
Forum: Game Programming
Topic: Window and full screen switch
Replies: 11
Views: 7915

Re: Window and full screen switch

I just wanted to point out that this :

Code: Select all

Procedure PI() 
	ProcedureReturn 3.141592653589793 
EndProcedure 

Procedure PI_180() 
	ProcedureReturn 0.017453292519943 
EndProcedure 
is awfully slow.

It should be like this :

Code: Select all

#__PI = 3.141592653589793 
#__PI_180 = 0.017453292519943
by graph100
Sun Aug 17, 2014 11:47 pm
Forum: Tricks 'n' Tips
Topic: Unicode string Len and Mid procedures using SSE2
Replies: 32
Views: 14794

Re: Unicode (UCS2) string length using SSE2

avec mon : i7-3630QM @2.40GHz

window 8, PB5.22x86 :
Short string : 48(SSE2) vs 59(PB)
Longer string : 106(SSE2) vs 297(PB)
Very long string : 285(SSE2) vs 929(PB)


Mandriva (VM), PB5.22x86 :
Short string : 72(SSE2) vs 66(PB)
Longer string : 125(SSE2) vs 231(PB)
Very long string : 283(SSE2) vs ...
by graph100
Thu Aug 14, 2014 10:20 pm
Forum: Feature Requests and Wishlists
Topic: Add Macro const,procedures,prototypes to AutoComplete/Help
Replies: 7
Views: 3122

Re: Add Macro const,procedures,prototypes to AutoComplete/He

well, this is why it was named "silly code example" :lol:
but I agree with you, that it must be doable.

I can't think of a specific example, but I know that it happened that I didn't use a macro because the autocompletion would not be working. And that I lose some time because of it.

So this is ...
by graph100
Thu Aug 14, 2014 1:14 pm
Forum: Feature Requests and Wishlists
Topic: Add Macro const,procedures,prototypes to AutoComplete/Help
Replies: 7
Views: 3122

Re: Add Macro const,procedures,prototypes to AutoComplete/He

so you think this should not be concerned by the demand of skywalk ?

; Silly code example...
Macro x(_name_)
#c_in_macro_#_name_ = 1
Prototype.i proto#_name_(a.i)
Procedure.i proc#_name_(b.i)
ProcedureReturn 1
EndProcedure
EndMacro
#c_in ;<-- typing here does not trigger autocomplete
pro(2 ...
by graph100
Thu Aug 14, 2014 10:53 am
Forum: Feature Requests and Wishlists
Topic: TestMemory(*mem)
Replies: 2
Views: 2081

Re: TestMemory(*mem)

it's not reliable.. 1 time over 5 it answers "1 1"
by graph100
Thu Aug 14, 2014 10:50 am
Forum: Feature Requests and Wishlists
Topic: Add Macro const,procedures,prototypes to AutoComplete/Help
Replies: 7
Views: 3122

Re: Add Macro const,procedures,prototypes to AutoComplete/He

I would very much appreciate it too !

But I believe the macros must be processed in "real coding time" for it to come true.
So It would be a awfully powerful feature, but really cpu time demanding.
by graph100
Mon Aug 11, 2014 8:37 pm
Forum: Announcement
Topic: PureBasic Interface to OpenCV
Replies: 885
Views: 728537

Re: PureBasic Interface to OpenCV

The example "cv_calculate.pb" has a huge memory loss :

in the OpenCV(ImageFile.s)

replace

Code: Select all

					*resize = cvCloneImage(*reset)
by

Code: Select all

          cvReleaseImage(@*resize)
					*resize = cvCloneImage(*reset)
by graph100
Fri Aug 08, 2014 4:54 pm
Forum: Announcement
Topic: Removing 'ASCII' switch from PureBasic
Replies: 210
Views: 131542

Re: Removing 'ASCII' switch from PureBasic

I took the code of codeprof and made some tests :

DisableDebugger

Str.s
#Text = "1234567890"

Time = ElapsedMilliseconds()

For i=1 To 10000
Str = UCase(Str+#Text)
Next i

time = ElapsedMilliseconds()-Time

MessageRequester("", StrF(time/1000, 3))

;Results: (Tested With Linux 64Bit)
;5.5s ...