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 - serprex

Pages: « 1 2 3 4 5 6 7 »
76
Announcements / Re: Trunkification (svn rearranged)
« on: November 29, 2009, 07:42:07 PM »
& if you think svn is a joke: http://github.com/serprex/Enigma

77
Announcements / Re: stdio.h
« on: November 15, 2009, 11:13:22 PM »
Why are you explaining COW without stating it so?

78
Issues Help Desk / Re: Pointer explosion
« on: November 15, 2009, 03:35:23 PM »
uint8 requirement(int64 value){return value&0xFFFFFF00?(value&0xFFFF0000?(value&0xFF000000?8:4):2):1;}

uint8 requirement(int8 value) { return requirement((int64)value); }
Why not just return 1?

Anyways the idea is pretty lame since you have to deal with the memory overhead of a void* and all and you waste memory dealing with all that so yeah, pretty silly

79
Announcements / Re: Fresh Topic
« on: August 15, 2009, 01:53:10 PM »
Quote
but CPU performance is not really related to the clockspeed
On the contrary, it is directly correlated. There's merely other factors that must be included

80
General ENIGMA / Re: Alternate to cpp {}
« on: August 15, 2009, 01:47:48 PM »
I'd like to openly commend Rusky for not joining in on you boys' little antiMS jackoffathon
If C# is just a rip of Java, it is at least an attempt to be a modernized rip
& let's keep it straight on the C#/.NET dichotomy

81
General ENIGMA / Re: XOR DOES NOT WORK
« on: August 03, 2009, 12:05:18 PM »
It is quite probable to be 80 bit if it goes along with the 8087's extended precision
In either case, even 128 bits of pi is less accurate than 40 digits of pi. And that's assuming fixed point, not floating point. IEEE 754 128bit floating point only has 113 bits of precision

82
Issues Help Desk / Re: Compiling Enigma
« on: August 03, 2009, 11:53:36 AM »
The engine is compiled with the created source that Enigma generates

This topic is now about how Josh is doing with optimizing compile time with static linking to the Enigma core

83
General ENIGMA / Re: XOR DOES NOT WORK
« on: July 31, 2009, 04:09:06 PM »
Processors are pretty inaccurate with pi if that's all you measure them by. Maybe if you could calculate arbitrary lengths of pi faster than your processor given enough memory (Paper is plentiful), I might care
Go blow a goat:
Code: [Select]
>>> f=lambda x,y:((not not x)^(not not y),(not x)^(not y),(not x)!=(not y))
>>> f(False,False),f(False,True),f(True,False),f(True,True)
((False, False, False), (True, True, True), (True, True, True), (False, False, False))

84
General ENIGMA / Re: XOR DOES NOT WORK
« on: July 29, 2009, 10:04:21 PM »
(!!x^!!y) == (!x^!y) == (!x!=!y)

85
General ENIGMA / Re: XOR DOES NOT WORK
« on: July 27, 2009, 10:39:32 AM »
!x^!y == !!x^!!y

86
Tips, Tutorials, Examples / Re: A random function
« on: July 27, 2009, 09:53:36 AM »
Code: [Select]
double draw_arrow(double x1,double y1,double x2,double y2,double sz){
enigma::untexture();
double dir=atan2(y2-y1,x2-x1);
glBegin(GL_LINES);
glVertex2f(x1,y1);
glVertex2f(x2,y2);
glEnd();
glBegin(GL_TRIANGLES);
glVertex2f(x2,y2);
glVertex2f(x2-cos(dir-pi/6)*(sz/2),y2-sin(dir-pi/6)*(sz/2));
glVertex2f(x2-cos(dir+pi/6)*(sz/2),y2-sin(dir+pi/6)*(sz/2));
glEnd();
return 0;}
FTFY again

87
General ENIGMA / Re: XOR DOES NOT WORK
« on: April 03, 2009, 07:54:30 PM »
^ is not ^^. 5^3 should return 0 in that case, but it'll end up as 6. Just use !x!=!y instead of x^^y

88
Announcements / Re: ENIGMA Needs a better storage method
« on: December 17, 2008, 07:27:56 PM »
I'd think you'd want to have an optimal worst case. The overkill of a tree on a low range of depth is outweighed by the advantage of when it is useful

And Retro, DIY fever kills. You should implement something rather than use the STL when there is more than boasting rights at stake. Also, ID changing would be lame because then you can't have some emulation of an instance pointer through the use of ID

89
Proposals / Re: Some things just have to be deprecated
« on: December 08, 2008, 04:56:57 PM »
I use object_add to save space in the editor
Luda used execute_script in his AI comp manager

90
Tips, Tutorials, Examples / Re: choose(), mean(), median()
« on: December 04, 2008, 12:25:49 AM »
I don't get the whole median thing. From how I'm reading it, you're selecting the middle argument passed? You're suppose to sort before selecting the middle. And you didn't declare bounds on your array

Pages: « 1 2 3 4 5 6 7 »