Pages: [1] 2 3 ... 6
  Print  
Author Topic: Happy New Year  (Read 9065 times)
Offline (Male) Josh @ Dreamland
Posted on: January 01, 2010, 02:55:36 AM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2953

View Profile Email
And a happy new decade along with that.

I just finished getting cpp_type_traits.h to parse correctly. That's an accomplishment. Along with that, however, is a regular type_traits.h, which I will be attacking next.

I don't want to give a release date after what happened last time, but I realize now that release dates are the only reason releases happen, so I guess I'm going to have to set one before the end of the month. I don't want to name the date I'm fancying now, some may be able to guess, but the rest of you can just not get your hopes up until I see what the rest of STL brings.

Anyway, a happy new year (and decade) to everyone, and quick recovery to some of my drunker friends.

...I can't stay awake much longer.
I thought this was working a minute ago, but evidently it was just something similar.

Code: [Select]
  template<bool, typename>
    struct __enable_if
    { };

  template<typename _Tp>
    struct __enable_if<true, _Tp>
    { _Tp __type; };

Honestly, it'd help to have a list of all template hacks up front. No, not just a reference on templates. A list of these goddamn hacks.

Anyway, good night.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Post made January 01, 2010, 07:34:43 AM was deleted at the author's request.
Offline (Unknown gender) freezway
Reply #2 Posted on: January 01, 2010, 11:04:28 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
"so I guess I'm going to have to set one before the end of the month." <- do you mean R4 will be released or u'll set a release date?
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Female) IsmAvatar
Reply #3 Posted on: January 02, 2010, 03:03:25 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
add $year $year 1
beq $year 2012 END_OF_THE_WORLD
jump NEW_YEARS_DAY
Logged
Post made January 02, 2010, 05:46:54 AM was deleted at the author's request.
Offline (Male) kkg
Reply #5 Posted on: January 02, 2010, 08:29:45 AM

Member
Location: Australia
Joined: Nov 2009
Posts: 84
MSN Messenger - kamikazigames@gmail.com
View Profile Email
Also for all the newbies, I >>assume<< that when he means R4 is released it's just the ENIGMA parser itself, not 100% complete with all GM functions.

But that also means that once that's released, the gm functions will very quickly be filled in ;p

Thanks Josh you update k1ng, and Happy New Years everyone :D:D
Logged
PC: Core i7-2600 @ 3.8ghz | 4x 4gb G.Skill RipjawZ DDR3-2000 | GTX580 | Win7 x64
Time is the greatest teacher, however it kills every single one of its pupils.
Offline (Male) Josh @ Dreamland
Reply #6 Posted on: January 02, 2010, 10:10:39 AM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2953

View Profile Email
kkg--
Correct. The parser will need some testing by the general userbase. I have a file of general GML to run it on, but there are so many new scenarios... It'll be best just to have a bunch of users bombard it with test code while some other C coders and I do more functions.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) freezway
Reply #7 Posted on: January 02, 2010, 01:41:27 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
If it works on Linux i'll test the hell out of it.
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Female) serprex
Reply #8 Posted on: January 02, 2010, 04:44:16 PM
Smooth ER
Developer
Joined: Apr 2008
Posts: 106

View Profile WWW
R4 isn't just a new parser. It'll also be when Josh decides to finally merge in my R3 branch's ENIGMAsystem which is a branch of his updated R3 ENIGMAsystem
Logged
Offline (Unknown gender) score_under
Reply #9 Posted on: January 02, 2010, 06:10:20 PM

Member
Joined: Aug 2008
Posts: 308

View Profile
add $year $year 1
beq $year 2012 END_OF_THE_WORLD
jump NEW_YEARS_DAY
What horrible dialect of ASM is that, that starts variables with $ and mixes "B" and "JMP" ("JUMP"?) notations?
Logged
Offline (Female) IsmAvatar
Reply #10 Posted on: January 03, 2010, 02:06:33 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
It's loosely MIPS. I actually copy pasted it from a friend. If I were to make it more accurate, I would have used "addi" instead of "add" and "j" instead of "jump"
Logged
Offline (Unknown gender) luiscubal
Reply #11 Posted on: January 03, 2010, 04:48:53 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Ism's code:

Increments year
Branches on equal if year is 2012
then jumps to new years day

In C:
Code: [Select]
++year;
if(year==2012) goto END_OF_THE_WORLD;
goto NEW_YEARS_DAY;

All register names(such as $t0, $s0, $0, etc. start with a $) in MIPS 32.
Logged
Offline (Female) serprex
Reply #12 Posted on: January 03, 2010, 04:56:24 PM
Smooth ER
Developer
Joined: Apr 2008
Posts: 106

View Profile WWW
gnu99, single statement: goto*(++year==2012?&&END_OF_THE_WORLD:&&NEW_YEARS_DAY);
« Last Edit: January 03, 2010, 04:59:26 PM by serprex » Logged
Offline (Unknown gender) score_under
Reply #13 Posted on: January 04, 2010, 02:27:55 PM

Member
Joined: Aug 2008
Posts: 308

View Profile
It's loosely MIPS. I actually copy pasted it from a friend. If I were to make it more accurate, I would have used "addi" instead of "add" and "j" instead of "jump"
In that case... let me rewrite it in X86 ASM, slightly more relevant :p

Code: [Select]
inc dword[year]
cmp dword[year],2012
jz END_OF_THE_WORLD
jmp NEW_YEARS_DAY

Though really, a JMP after a JZ is only excusable if you're reusing that code somewhere else or if NEW_YEARS_DAY in fact contains this code and is the start of a loop.
Logged
Offline (Male) Rusky
Reply #14 Posted on: January 05, 2010, 01:23:42 PM

Resident Troll
Joined: Feb 2008
Posts: 961
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
it's in another segment
Logged
Pages: [1] 2 3 ... 6
  Print