ENIGMA Forums

General fluff => Announcements => Topic started by: Josh @ Dreamland on January 11, 2010, 12:43:54 am

Title: Missed one.
Post by: Josh @ Dreamland on January 11, 2010, 12:43:54 am
  template<typename _Value>
    const _Value __numeric_traits_integer<_Value>::__min;

Should have seen that coming, really.
Errors it's trying to redeclare that, because the next token is that evil '<'.
Basically, it should just access the instantiation for that type immediately in this case, since it's already declared and all. I'll have to add a check for that come ';', but it'll be fine...

It's 01:00 and I've class tomorrow at some point. Don't worry though, it's an easy enough fix. I'm finally done with those stupid type_trait headers. ^_^

Will edit with results after this file is cleared. (Gave it a quick lookover, seems to be the only error I'll find in it).

Peace.
Title: Re: Missed one.
Post by: Fede-lasse on January 11, 2010, 10:08:15 am
As long as it is drawing closer to completion, I'm happy. Sorry for being so obscure, but that's just what I am :3
Title: Re: Missed one.
Post by: Josh @ Dreamland on January 11, 2010, 12:32:57 pm
Update:
I've fixed that and have moved on. Fixed defaulting constants based on enums in templated types, as well. Created __typeof__, which I believe always returns an atomic type, so I can just define it as int or double. I will be looking into that now.

Fede--
Always closer. Just wish I had an estimate on number of lines left to make it through.
Title: Re: Missed one.
Post by: RetroX on January 11, 2010, 09:01:50 pm
By the way, we should see who has the oldest computer and run it on that and see how long it takes, and then take the person with the fastest computer and run it on that.  Just for an incredibly unbiased and awesome benchmark mostly for lol.
Title: Re: Missed one.
Post by: freezway on January 11, 2010, 09:06:53 pm
I have an old PIII with 512 MB ram, nvidia TNT gfx
 and an old mac, powerpc, 600MHz 384MB ram
Title: Re: Missed one.
Post by: RetroX on January 11, 2010, 09:19:16 pm
I have a Phenom II X4 3.4GHz with 4GB of RAM for the fastest (someone here will have an i7; just wait).
Title: Re: Missed one.
Post by: Rusky on January 12, 2010, 08:50:36 am
I know someone with an i7, anyway. :P
Title: Re: Missed one.
Post by: kkg on January 12, 2010, 11:53:24 am
We can use my dad's machine for fastest:

Core i7 920
12gb DDR3 1336
GTX295


uhm if you guys want i can probably assemble a PC out of spare parts. Think I got one of those old as P2 machines (the ones that had those duel fans on them LOL), a TnT vid card and something like 64 mb of ram. I'll have to go have a l00ksies

Keep up the good work Josh :3
Title: Re: Missed one.
Post by: MrJackSparrow2 on January 14, 2010, 01:50:00 am
Does Josh have two accounts, or do we have an imposter? Look at the names of the Josh's in this topic...
Title: Re: Missed one.
Post by: score_under on January 14, 2010, 01:49:19 pm
The "." account is his school account, as it's a well known fact that schools use keyloggers at every opportunity.

Gives the admins power trips, you see. The same kind of power trip my school admin got from systematically disabling the "new window" command on all copies of internet explorer in the school then setting up a program to end any process that owns a window with "firefox" in the title.
Title: Re: Missed one.
Post by: luiscubal on January 14, 2010, 04:42:50 pm
@score_under: Use Minefield then.
Title: Re: Missed one.
Post by: score_under on January 14, 2010, 05:03:27 pm
@score_under: Use Minefield then.
1. Blocks "Mozilla" too, 2. Both homepages have "mozilla" in the title.

3. I wrote a program in ASM to search all window titles for a certain set of strings and "censor" it before the software can find it - the software's timeout is set to about a second, so plenty of time.
Title: Re: Missed one.
Post by: RetroX on January 14, 2010, 05:45:37 pm
The same kind of power trip my school admin got from systematically disabling the "new window" command on all copies of internet explorer in the school then setting up a program to end any process that owns a window with "firefox" in the title.
What the fuck.
Title: Re: Missed one.
Post by: score_under on January 14, 2010, 05:50:13 pm
The same kind of power trip my school admin got from systematically disabling the "new window" command on all copies of internet explorer in the school then setting up a program to end any process that owns a window with "firefox" in the title.
What the fuck.
He's either really bad with computers or really good at trolling.
Title: Re: Missed one.
Post by: RetroX on January 14, 2010, 09:28:23 pm
The same kind of power trip my school admin got from systematically disabling the "new window" command on all copies of internet explorer in the school then setting up a program to end any process that owns a window with "firefox" in the title.
What the fuck.
He's either really bad with computers or really good at trolling.
No, I mean, the only person who would know enough about computers to do that and want to do that would be a microsoft employee

or an operafag
Title: Re: Missed one.
Post by: Rusky on January 14, 2010, 09:47:06 pm
Or a school sysadmin.
Title: Re: Missed one.
Post by: Josh @ Dreamland on January 15, 2010, 12:34:12 am
They're pretty sad. I've taken over all the new Macs in the lab, simply because they kept annoying me.
The morons that set them up had it geared so Safari errored every few seconds that it failed to run its prefetched, because they effectively blocked the entire operating system except. these. six. programs. When confronted, they refused to fix it on the grounds that they "don't see it as a problem."
So I finally got sick of it, and now I can authorize things as root. It's apparent I'm more familiar with it than any of them are, but honestly, that's not saying much, and I don't take chances anyway.

Put simply, yeah, that's me.
Title: Re: Missed one.
Post by: Josh @ Dreamland on January 15, 2010, 12:38:37 am
Also, update.
Some sort of segfault due to skipping an array item manifested in the form of the name of a particular object leaking over into the entirety of the code being parsed. Fixed it.

That leaves me at an odd line in numeric traits that seems to do nothing.
Code: [Select]
  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__max_digits10;

  template<typename _Value>
    const bool __numeric_traits_floating<_Value>::__is_signed;

  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__digits10;

  template<typename _Value>
    const int __numeric_traits_floating<_Value>::__max_exponent10;

Seems to be some sort of implicit instantiation. Easily ignored.
Title: Re: Missed one.
Post by: Josh @ Dreamland on January 15, 2010, 05:15:58 pm
In file included from bits/concept_check.h: Line 52, position 37: Unexpected symbol '.' in macro parameters
code snippet:
#define __glibcxx_function_requires(<<>>...)

Now why did I think ... was only for stdargs?
Title: Re: Missed one.
Post by: luiscubal on January 15, 2010, 05:27:46 pm
I wonder if Iceweasel works on Windows... It isn't Mozilla so it might work :)
Title: Re: Missed one.
Post by: serprex on January 16, 2010, 09:17:50 pm
Now why did I think ... was only for stdargs?
Because ellipsises are only for stdargs in Standard C++. Variadic macros are coming with variadic templates, which it seems you've also forgotten to go about
Title: Re: Missed one.
Post by: notachair on January 17, 2010, 01:20:18 am
I wonder if Iceweasel works on Windows... It isn't Mozilla so it might work :)

Uh... you do know that Iceweasel is just Firefox without the copyrighted branding?
Title: Re: Missed one.
Post by: luiscubal on January 17, 2010, 04:38:26 pm
@a2h precisely, so the school "mozilla killer" wouldn't detect it, but it would still classify as "Firefox".