Question about Erlang and similar languages
#11
Besides, applications like emulators need languages to be as fast as possible above being easy to program. Most languages, including C and variants, include libraries and functionality to parallelize processes and create multithreads, as most OS provides semaphore systems to help controlling them... the great problem with pipelined systems like PS2 being it makes it hard to parallelize the flow, not than the option is missing in the used language.

It is almost intuitive the perception that a human oriented language tend to generate complex (and slow) code. Although no modern language goes that far, one example may help paint a caricature of this issue: To add two variables or a combination of constants/variables/raw numbers, COBOL made it a "complex" function... like using intermediate storages and temp variables, sometimes calling an external procedure to do it... ADD VAR1 TO VAR2 GIVING VAR1... becomes a stupidly complex assembler code chunk.

Was tragicomic to look into a COBOL generated assembler (an intermediate step in its compilation).
Imagination is where we are truly real
Reply

Sponsored links

#12
"Though all concurrency is explicit in Erlang, processes communicate using message passing instead of shared variables, which removes the need for locks."

^ Which is what Jake (air) coded for PCSX2's threading system. In C++ Tongue2
Reply
#13
(04-09-2011, 02:34 AM)rama Wrote: "Though all concurrency is explicit in Erlang, processes communicate using message passing instead of shared variables, which removes the need for locks."

^ Which is what Jake (air) coded for PCSX2's threading system. In C++ Tongue2

Really? That's awesome! Did Jake ever make any blog posts (or other posts) on how he created PCSX2's threading system? I'm interested to see what and how he did it.
[Image: purkinje-cropped_zpsf4383d9a.jpg]
Reply
#14
This is the only blog i can find on the threading system, http://forums.pcsx2.net/Thread-blog-Thre...ronization
[Image: ref-sig-anim.gif]

Reply




Users browsing this thread: 1 Guest(s)