Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Dot product

Name: Anonymous 2011-08-02 14:18

Single precision floating point.
System V AMD64 ABI convention.


sses_dot:
    movaps xmm0, [rdi]
    mulps xmm0, [rsi]
    haddps xmm0, xmm0
    haddps xmm0, xmm0
    ret

Name: Anonymous 2011-08-04 0:21

>>40
A lot of his points aren't true, they're based upon ignorance or are using old information from before 1998 standardization, or from before C++0x/C++11.

Name: Anonymous 2011-08-04 1:02

>>41
Newer standard is even more ugly and complex. Original C already was ugly. Standard made it uglier. C++ set an unbelievable record of ulgines. Now C++0x jumped even higher on the scale of ugliness. It's like COBOL, which becomes only uglier with time.

Name: Anonymous 2011-08-04 4:51

>>40
I was born in Moscow, and live in Jerusalem.
JEW ALERT

Name: Anonymous 2011-08-04 5:27

>>43
Even jews hate C/C++. And jews love everything ugly.

Name: Anonymous 2011-08-04 5:37

>>41
The standard doesn't matter until compilers implement it.

Name: Anonymous 2011-08-04 8:33

>>45
Similar bullshit applies to C.

Name: Anonymous 2011-08-04 9:26

>>46
Everyone does C99 except Microsoft but who cares about them?

Name: Anonymous 2011-08-04 9:40

>>47
I find that a bit odd since Microsoft is like the only company that

a)Helped write the 0Auth RFC draft.
b)Made a reasonable effort to implement POSIX threads.

Name: Anonymous 2011-08-04 9:43

>>48
The latter is kind of important because now ANSI/ISO (?) has now drafted a series of proposals to make threads standards. I guess POSIXs "we are totally vague how the shit" wasn't cutting it -(.

Name: Anonymous 2011-08-04 9:44

* "we are totally vague about how the shit should work" *

Name: Anonymous 2011-08-04 9:51

>>49
If you look at the C1x threads proposal, it's a bit more simplified than POSIX threads, but it should be more widely available on non-POSIX platforms. It appears to provide procedural alternatives to the C++11/C++0x threading primitives.

Also, since when did Microsoft adopt POSIX threads or provide a POSIX threads layer for Windows? I think you're drinking the toilet water.

Name: Anonymous 2011-08-04 11:37

>>51
Also, since when did Microsoft adopt POSIX threads or provide a POSIX threads layer for Windows? I think you're drinking the toilet water.

Unless I'm missing it, you really can't implement POSIX threads. The best you can do is provide a reasonable interpetation of it. And as far as I know, Microhoth has been using a (subset?) of POSIX threads as far back as maybe Windows xp?

Name: Anonymous 2011-08-04 12:24

The only sane threading library is ooc.util.concurrent

Name: Anonymous 2011-08-04 15:38

>>53
Microhoth has been using a (subset?) of POSIX threads as far back as maybe Windows xp?
No, they have their own threads API which is commonly known as Winthreads. It's completely different from POSIX threads.

Does this look like pthread_create(3) to you?

http://msdn.microsoft.com/en-us/library/ms682453%28v=vs.85%29.aspx

Perhaps you're thinking of BSD sockets, which they more or less support through Winsock. They also have User-Mode Scheduled cooperative-threading worker threads for building very fast task schedulers.

Name: Anonymous 2011-08-04 15:42

>>53
He doesn't know about Concrt, TBB, FastFlow or heterogeneous parallel compute languages like OpenCL, DirectCompute, or C++AMP.

Name: Anonymous 2011-08-04 15:59

>>55
Go back to /g/, ``please''!!

Name: Anonymous 2011-08-04 17:07

>>54
http://technet.microsoft.com/en-us/library/cc771672.aspx
http://technet.microsoft.com/en-us/library/cc754234.aspx

I bet you didn't know Win32 is just one subsystem running on top of the Windows kernel, it's not the "native" API.

Name: Anonymous 2011-08-04 18:52

>>55
None of those were conceived by a sentient C compiler, also ooc.util.concurrent.gpgpu.

THREAD OVER

Besides everyone knows about those, stop trying to look smarter than you are, it makes you look like a fucking moron.

Name: Anonymous 2011-08-04 19:03

>>54
I thought pthread_create(3) was an implementation of POSIX threads.

Name: Anonymous 2011-08-04 21:07

>>58
you're a huge fag, kill yourself

Name: Anonymous 2011-08-04 21:46

>>57
I fucking asked you if Microsoft offered a POSIX threads layer and you implied "no" by going all out and saying that Microsoft uses POSIX threads internally, as if it were its native threads interface.

Well guess what? This UNIX subsystem for Windows provides a POSIX threads layer, and a UNIX System V layer, on top of the native OS facilities. The native OS API for threading still is NOT POSIX threads. It's Winthreads.

Microsoft does not use POSIX threads natively.

Furthermore, "Win32" has been a deprecated term since around 2003/2004. You now refer to it as simply Windows or "Win" for short. As in, the Windows API or "Win API."

http://msdn.microsoft.com/en-us/library/ee663300%28v=VS.85%29.aspx

Does it say "Win32" or "Win32 API" anywhere? No it does not. Personally, I don't use Windows as my primary OS, I use a free as freedom operating system. But I still have the decency and thoughtfulness to use the correct terminology, even for operating systems I somewhat despise.

>>58
also ooc.util.concurrent.gpgpu

C++AMP supports targeting GPU, FPGA, and other heterogenous computing devices as first class citizens in a unified programming model. For example, this is code that runs on the host CPU and partitions work on a buffer to be carried out on one or more GPU devices across one or more GPU wavefronts:

#include <stdlib.h>
#include <ppl.h>

int main(int argc, char** argv) {
    const size_t buffer_size = 32 * 1024 * 1024;
    int* buffer = malloc(buffer_size * sizeof(int));

    parallel_for(0, buffer_size, [&] (size_t i) restrict(gpu) {
       buffer[i] = (int)((i * 8) & 0x7FFF);
    });

    // ...

    free(buffer);
    return 0;
}


Note how I'm not using external source files for the GPU compute kernels. Notice how I don't have specify how to partition the work, or marshal data between the CPU and GPU(s)--it does it all for me automatically, although if I wish, I can use my own custom partitioner.

I'm looking at the occ source code and I don't see where this magical concurrency library of yours resides. So I can't determine the extent to which occ's gpgpu stuff goes, but I have a feeling it's probably just a wrapper around OpenCL host library APIs.

This looks like a community driven language with out much thought behind the library design, it's all just thrown together in an ad-hoc manner like every other community driven project. Why should I use this over an ISO/IEC standardized language and library extension with multiple vendor and FOSS community support?

>>59
It is. Did you follow the link? It's not pthread_create(3), it was CreateThread, you swine.

Name: Anonymous 2011-08-04 22:01

>>57
In my heated discourse, I forgot to mention that while the Windows client threading APIs are not exactly the same as ones used in the kernel, there's almost a one-to-one mapping between the Windows API calls and the kernel system calls.

For example, CreateThread <-> [code]RtlCreateThread with the exact same function signature. In effect, they are one and the same.

Name: Anonymous 2011-08-05 5:33

>>60
Wow, are you really buttwrenched over that?
I guess you can't handle getting owned very well.

>>61
It's not occ, it's ooc, and even if you managed to get that right you're looking at the wrong ooc.

Name: Anonymous 2011-08-05 5:52

>>63
I was looking at http://ooc-lang.org/

Name: Anonymous 2011-08-05 8:35

>>64
Not much to see.

Name: Anonymous 2011-08-05 11:58

ooc just seems to be crappier version of c++

Name: Anonymous 2011-08-05 15:45

>>66
unpossible

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List