Gratz JC

Forum for off topic and general discussion.

Re: Gratz JC

Postby Procne » Mon May 04, 2015 4:28 pm

Dallane wrote:
Claeyt wrote:Hopefully you can take care of the kid while deving the game and your wife can go earn some money in the actual workforce. Just stick the kid in a crib/playpen in the corner and teach him to code Java.


why java?


That's because java is good for sissies and little children, obviously.
Image
Procne
 
Posts: 3696
Joined: Mon Sep 03, 2012 11:34 pm

Re: Gratz JC

Postby Dallane » Mon May 04, 2015 4:29 pm

lmfao
Please click this link for a better salem forum experience

TotalyMeow wrote: Claeyt's perspective of Salem and what it's about is very different from the devs and in many cases is completely the opposite of what we believe.
User avatar
Dallane
Moderator
 
Posts: 15195
Joined: Wed Aug 01, 2012 2:00 pm

Re: Gratz JC

Postby Kandarim » Mon May 04, 2015 8:54 pm

oh, and the likes of people that call MATLAB a programming language. Don't forget those.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Gratz JC

Postby Potjeh » Tue May 05, 2015 5:57 pm

Assembly or get out.
Potjeh
 
Posts: 2485
Joined: Wed Aug 01, 2012 12:26 pm

Re: Gratz JC

Postby Dallane » Tue May 05, 2015 6:41 pm

Potjeh wrote:Assembly or get out.


Image
Please click this link for a better salem forum experience

TotalyMeow wrote: Claeyt's perspective of Salem and what it's about is very different from the devs and in many cases is completely the opposite of what we believe.
User avatar
Dallane
Moderator
 
Posts: 15195
Joined: Wed Aug 01, 2012 2:00 pm

Re: Gratz JC

Postby trungdle » Tue May 05, 2015 6:49 pm

Potjeh wrote:Assembly or get out.

Seriously, I know assembly is good but ones don't really use them alone anymore in nowaday big and complex programs. Why not C++? Same thing, better uses.
You thought I quit.
User avatar
trungdle
 
Posts: 1687
Joined: Sat Jul 12, 2014 7:20 pm
Location: Humble, Texas

Re: Gratz JC

Postby Trenial » Tue May 05, 2015 6:52 pm

Btw guys,

GRATZ JC!!! :roll:
jwhitehorn wrote:It's too bad you're so politically connected
you would have made a great brave

TENT WIDTH
Image

This area, is my area. No squatting allowed.
User avatar
Trenial
 
Posts: 1068
Joined: Fri Nov 23, 2012 6:42 pm
Location: Trail of Tears

Re: Gratz JC

Postby loftar » Tue May 05, 2015 7:06 pm

Kandarim wrote:oh, and the likes of people that call MATLAB a programming language. Don't forget those.

To be fair, anyone who has written anything large in Matlab should be given a medal for his labors and sufferings. Similar to *****. ^^

trungdle wrote:Seriously, I know assembly is good but ones don't really use them alone anymore in nowaday big and complex programs. Why not C++? Same thing, better uses.

Directly from the server code:

Code: Select all
#if defined __x86_64__
#define _SPATCHFUN(_rtype, _name, _args...)                             \
    _rtype _name (_args);                                               \
    extern char _pfun_ ## _name ## _bits;                               \
    asm(".pushsection .genfuns,\"awx\",@progbits;"                      \
        ".type " # _name ", @function;"                                 \
        ".type _pfun_" # _name "_bits, @function;"                      \
        "_pfun_" # _name "_bits:"                                       \
        "movq $0xfedcba9876543210, %r11;"                               \
        "call 0f;"                                                      \
        # _name ":"                                                     \
        "movq $0xfedcba9876543210, %r11;"                               \
        "jmpq *%r11;"                                                   \
        "0: sub $0xb8, %rsp;"                                           \
        "mov %rax, (%rsp);"                                             \
        "mov %rdi, 0x08(%rsp);"                                         \
        "mov %rsi, 0x10(%rsp);"                                         \
        "mov %rdx, 0x18(%rsp);"                                         \
        "mov %rcx, 0x20(%rsp);"                                         \
        "mov %r8,  0x28(%rsp);"                                         \
        "mov %r9,  0x30(%rsp);"                                         \
        "movaps %xmm0, 0x38(%rsp);"                                     \
        "movaps %xmm1, 0x48(%rsp);"                                     \
        "movaps %xmm2, 0x58(%rsp);"                                     \
        "movaps %xmm3, 0x68(%rsp);"                                     \
        "movaps %xmm4, 0x78(%rsp);"                                     \
        "movaps %xmm5, 0x88(%rsp);"                                     \
        "movaps %xmm6, 0x98(%rsp);"                                     \
        "movaps %xmm7, 0xa8(%rsp);"                                     \
        "mov 0xb8(%rsp), %rdi;"                                         \
        "sub $(" # _name " - _pfun_" # _name "_bits), %rdi;"            \
        "callq *%r11;"                                                  \
        "mov (%rsp), %rax;"                                             \
        "mov 0x08(%rsp), %rdi;"                                         \
        "mov 0x10(%rsp), %rsi;"                                         \
        "mov 0x18(%rsp), %rdx;"                                         \
        "mov 0x20(%rsp), %rcx;"                                         \
        "mov 0x28(%rsp), %r8;"                                          \
        "mov 0x30(%rsp), %r9;"                                          \
        "movaps 0x38(%rsp), %xmm0;"                                     \
        "movaps 0x48(%rsp), %xmm1;"                                     \
        "movaps 0x58(%rsp), %xmm2;"                                     \
        "movaps 0x68(%rsp), %xmm3;"                                     \
        "movaps 0x78(%rsp), %xmm4;"                                     \
        "movaps 0x88(%rsp), %xmm5;"                                     \
        "movaps 0x98(%rsp), %xmm6;"                                     \
        "movaps 0xa8(%rsp), %xmm7;"                                     \
        "add $0xb8, %rsp;"                                              \
        "ret;"                                                          \
        ".popsection;"                                                  \
        );
#define _PATCHFUN(_rtype, _name, _args...)              \
    _SPATCHFUN(_rtype, _name, _args);                   \
    asm(".globl " # _name ";");
#elif defined __i386__
#define _SPATCHFUN(_rtype, _name, _args...)                             \
    _rtype _name (_args);                                               \
    extern char _pfun_ ## _name ## _bits;                               \
    asm(".pushsection .genfuns,\"awx\",@progbits;"                      \
        ".type " # _name ", @function;"                                 \
        ".type _pfun_" # _name "_bits, @object;"                        \
        # _name ":"                                                     \
        "_pfun_" # _name "_bits:"                                       \
        "jmp 0;"                                                        \
        ".popsection;"                                                  \
        );
#define _PATCHFUN(_rtype, _name, _args...)              \
    _SPATCHFUN(_rtype, _name, _args);                   \
    asm(".globl " # _name ";");
#else
#error "no function-patching implemented on this architecture"
#endif

I'd like to see you do the same in C or C++.
User avatar
loftar
 
Posts: 1021
Joined: Sun Jul 08, 2012 7:32 am
Location: In your character database, shuffling bits

Re: Gratz JC

Postby trungdle » Tue May 05, 2015 7:10 pm

I know that it's the most efficient language out there, but see, you still use it as an embed code, not a stand alone one.
You thought I quit.
User avatar
trungdle
 
Posts: 1687
Joined: Sat Jul 12, 2014 7:20 pm
Location: Humble, Texas

Re: Gratz JC

Postby Procne » Tue May 05, 2015 7:15 pm

But he still uses it
Image
Procne
 
Posts: 3696
Joined: Mon Sep 03, 2012 11:34 pm

PreviousNext

Return to City upon a Hill

Who is online

Users browsing this forum: No registered users and 3 guests