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

Pages: 1-4041-

Dual-Core Programming?

Name: Anonymous 2006-12-12 2:05

Anyone know of a good language that can run with 2 processors? I've heard of stacking Python as a way to do it, but is there anything else? Is C# able to do such a thing?

Name: Anonymous 2006-12-12 2:19

Multi-threading isn't a language feature unless you are specifically using a parallel language like Fortran 90, C*, etc.  You probably want a library or compiler extension for a language you already know and use, for example pthreads in C/C++, the Thread class in Java, etc.  The best option also depends on what you are trying to do, for example OpenMP if you are doing the same operation over an entire array and you just want to exploit parallelism, or pthreads if you want to custom code the behavior of each thread.

PS. Your logic is retarded.  Dual Core is better.

Name: Anonymous 2006-12-12 2:21 (sage)

Name: Anonymous 2006-12-12 2:22

That's what I meant. Dual-core. I've been sick and delirious for a couple days now. Sorry.

Name: Anonymous 2006-12-12 6:08

Any functional programming language.

Name: Anonymous 2006-12-12 10:34

Here's an idea I had for Python: create a decorator for pure functions that implements a lookahead cache with the generator running in another thread.

Name: Anonymous 2006-12-12 10:35

>>6
Er, for pure generators.

Name: coffee 2006-12-12 18:09

Java

Name: Anonymous 2006-12-13 6:40

>>8
Fail

Name: Anonymous 2006-12-14 5:51

c# is win
Java is fail

both works though

Name: Anonymous 2006-12-14 5:55

c# is fail
Java is fail

fix'd

Name: Anonymous 2006-12-14 12:44

Name: Anonymous 2006-12-14 12:48

c# is fail, java is fail, python is fail, visual basic is fail, php is fail, perl is fail, delphi is fail, ruby is fail, lisp is fail

fix'd

Name: Anonymous 2006-12-14 13:24

delphi is win

Name: Anonymous 2006-12-14 13:33

>>13
haskell is win

Name: Anonymous 2006-12-14 14:00

Spirit
From the Boost library

Name: Anonymous 2006-12-14 14:07

>>13
c# is fail, java is fail, python is fail, visual basic is fail, php is fail, perl is fail, delphi is MASSIVE fail, ruby is fail, lisp is fail, haskell is fail

fix'd

Name: Anonymous 2006-12-14 14:25

>>17
fixed
fixed

Name: Anonymous 2006-12-14 14:51

>>18
fix'd
fix'd

fix'd

Name: Anonymous 2006-12-14 14:55

Haskell fucking rocks, everything else sucks.

Fixed.

Name: Anonymous 2006-12-14 15:58

>>20
examples? and I don't want another shitty fibonacci sequence, I don't need those.

Name: Anonymous 2006-12-14 17:28

Name: Anonymous 2006-12-14 18:04

>>21
You won't find anything useful past simple algorithms which are extraordinarily simple (and very arguably elegant) when written in Haskell, because it can be quite the hell for any serious application, which irremediably sways away from Haskell sweet spot.

Name: Anonymous 2006-12-14 18:40

>>21
Frag, a FPS written in Haskell.

http://haskell.org/haskellwiki/Frag

I'm afraid I cannot understand most of the code though, arrows are still outside my grasp (although I think I have understood monads somewhat, perhaps I should go hunt down the relevant papers.).

Name: Anonymous 2006-12-14 18:58

>>24
Damn man, you not only did not get trolled by my >>23, but also proved it false. Way to spoil the fun.

Name: Anonymous 2006-12-14 18:58

Haskell is a worthless toy of a language.

Name: Anonymous 2006-12-14 19:04

>>25
House, an operating system written in Haskell.

http://programatica.cs.pdx.edu/House/

Name: Anonymous 2006-12-16 11:59

>>27
Stupid geeks, stop posting examples and let Haskell fanboys be trolled!

Name: Anonymous 2006-12-16 14:19

>>28
Troll Haskell?  Impossible, Haskell is flawless.

Name: Anonymous 2006-12-16 14:23

>>27
>Haskell User's Operating System and Environment
HUOSE


...Huose?

Name: Anonymous 2006-12-16 15:14

>>30
It's how they pronounce house in Glasgow.

Name: Anonymous 2006-12-16 15:31

>>29
Troll doesn't need to base on fact; much better if it does, but it doesn't necessarily. You can focus on the arguable, such as Haskell's unnecessarily complicated elements, its lack of popularity, or its lack of a big, complete, all-purpose standard library.

Name: Anonymous 2006-12-16 18:11

>>32
tl;dr

I could rewrite all of that in a badass Haskell one-liner.

Name: Anonymous 2006-12-18 5:46

WRITE EVERYTHING IN ASM

Name: Anonymous 2006-12-18 12:18

>>34
Assembly just isn't the same. There are no CFLAGS to make the code faster.

Name: Anonymous 2006-12-18 12:22

The CFLAGS are in your mind

Name: Anonymous 2006-12-18 12:25

>>35
Most assemblers have optimization flags.

Name: Anonymous 2006-12-19 16:22

>>2
wat?

Programming languages typically dont handle multithreaded-ness inherantly because it does not make any sense to do so. Threads are an operating system feature, a bit like pipes, sockets and other concepts.

C++ handles threading fine, most of the applications I write at work are multithreaded, we use a class wrapped around the API that exposes a run function and some other useful functions. With that encapsulation you just spawn threads through the creation of thread objects and communicate with whatever IPC mechanism you wish (mutexes, semaphores, queues, whatever..)

Name: Anonymous 2006-12-19 18:04

>>38
Way to add nothing to this thread, it ended with >>2 you idiot.

Name: Anonymous 2006-12-20 8:06

>>35
ASFLAGS

Name: Anonymous 2006-12-20 9:46

Name: Anonymous 2006-12-20 10:44

>>38
Learn Erlang.

Name: Anonymous 2006-12-20 14:59 (sage)

fourchan.textboards.prog.threads[1165905157].posts[40].replace(/(.(.))(.)./,'$1$2$3');

Name: Anonymous 2006-12-20 17:45

>>43
lol

Name: Anonymous 2006-12-20 19:11

>>43

ha ha, clever

Name: Anonymous 2006-12-21 5:03

>>43
Win

Name: Anonymous 2006-12-21 5:56

>>45,46 have no idea what is going on, and are just copying >>44 to look as if they're in on the joke

Name: Anonymous 2006-12-21 7:14

>>47 has no idea that 45,46 knows exactly what is going on, but wanted to score some troll points.

Spoiler:
YOU FAILED!!!

Name: Anonymous 2006-12-21 7:25

>>48

NO U

Name: Anonymous 2006-12-21 7:51

    fourchan.textboards.prog.threads[1165905157].posts[48].replace(/.*/,'(.Y.)');

Name: Anonymous 2006-12-21 8:33

>>49

NO ME?!?!?!?!??!

Name: Anonymous 2006-12-21 11:48

>>51

NO HIM

Name: Anonymous 2006-12-21 18:42

>>52 NO WHO?

Name: Anonymous 2006-12-28 2:58

>>1..53
Forget all programming languages, they all suck.
Build your own computer with sticks and stones.

Name: Anonymous 2009-01-14 14:47

What happened to /prog/?

Name: Anonymous 2010-11-15 4:16

Name: Anonymous 2011-02-04 17:41

Name: Sgt.Kabu쀯쁓kiman샿䓃 2012-05-28 21:11

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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