Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20853 > unrolled thread
| Started by | Thorsten Kiefer <me@home.org> |
|---|---|
| First post | 2013-01-01 17:09 +0100 |
| Last post | 2013-01-03 13:24 -0800 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
n-dimensional raytracer Thorsten Kiefer <me@home.org> - 2013-01-01 17:09 +0100
Re: n-dimensional raytracer Lew <lewbloch@gmail.com> - 2013-01-01 10:21 -0800
Re: n-dimensional raytracer Joerg Meier <joergmmeier@arcor.de> - 2013-01-01 23:07 +0100
Re: n-dimensional raytracer Lew <lewbloch@gmail.com> - 2013-01-01 14:17 -0800
Re: n-dimensional raytracer Thorsten Kiefer <me@home.org> - 2013-01-02 11:04 +0100
Re: n-dimensional raytracer Lew <lewbloch@gmail.com> - 2013-01-02 11:21 -0800
Re: n-dimensional raytracer Arne Vajhøj <arne@vajhoej.dk> - 2013-01-02 19:34 -0500
Re: n-dimensional raytracer bob smith <bob@coolfone.comze.com> - 2013-01-03 09:13 -0800
Re: n-dimensional raytracer Lew <lewbloch@gmail.com> - 2013-01-03 13:24 -0800
| From | Thorsten Kiefer <me@home.org> |
|---|---|
| Date | 2013-01-01 17:09 +0100 |
| Subject | n-dimensional raytracer |
| Message-ID | <50e30a52$0$2087$6e1ede2f@read.cnntp.org> |
Hi, this is an example program : https://github.com/toki78/RayMultiDim.git https://github.com/toki78/CPURootBeer.git Needs at least an 8-core cpu. Best Regards Thorsten
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-01 10:21 -0800 |
| Message-ID | <c7ab92da-32ef-4bbf-89b3-31bce8fd67c4@googlegroups.com> |
| In reply to | #20853 |
Thorsten Kiefer wrote: > this is an example program : For maximum clarity, Usenet posts should have all relevant information in the body of the post proper. > https://github.com/******/RayMultiDim.git > https://github.com/******/CPURootBeer.git > > Needs at least an 8-core cpu [sic]. Well, I'm sure you are very proud. What is this, is it even in Java, and why should we care? I am rather interested in how you determined that this program (it is a program, right?) needs an eight-core CPU. Care to share? But don't share here if the program isn't written in Java. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2013-01-01 23:07 +0100 |
| Message-ID | <12edqiibarsdd$.1wx7fqc20iwz9.dlg@40tude.net> |
| In reply to | #20854 |
On Tue, 1 Jan 2013 10:21:40 -0800 (PST), Lew wrote: > Thorsten Kiefer wrote: >> this is an example program : > For maximum clarity, Usenet posts should have all relevant information in > the body of the post proper. >> https://github.com/******/RayMultiDim.git >> https://github.com/******/CPURootBeer.git >> Needs at least an 8-core cpu [sic]. > Well, I'm sure you are very proud. > What is this, is it even in Java, and why should we care? > I am rather interested in how you determined that this program > (it is a program, right?) needs an eight-core CPU. > Care to share? > But don't share here if the program isn't written in Java. It's Java, albeit pretty horrible Java - Exceptions are quietly swallowed, everything is public, no comments, and the parts of the program I looked at look like one giant race condition, where bugs are treated with the good old "sleep and retry in a moment" method. I could also find no indication that this program would need a special kind of CPU, other than it spawning 16 ThreadS. My best guess is that this is a port of a C program by someone who doesn't understand Java very well yet, and probably never programmed for a living. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-01 14:17 -0800 |
| Message-ID | <ef7c63af-5405-4617-9614-3c597819f3b2@googlegroups.com> |
| In reply to | #20859 |
Joerg Meier wrote: > Lew wrote: >> Thorsten Kiefer wrote: >>> this is an example program : >> For maximum clarity, Usenet posts should have all relevant information in >> the body of the post proper. >>> https://github.com/******/RayMultiDim.git >>> https://github.com/******/CPURootBeer.git > >>> Needs at least an 8-core cpu [sic]. > >> Well, I'm sure you are very proud. > >> What is this, is it even in Java, and why should we care? > >> I am rather interested in how you determined that this program >> (it is a program, right?) needs an eight-core CPU. > >> Care to share? > >> But don't share here if the program isn't written in Java. > > It's Java, albeit pretty horrible Java - Exceptions are quietly swallowed, Good news. Then it's on topic. > everything is public, no comments, and the parts of the program I looked at > look like one giant race condition, where bugs are treated with the good > old "sleep and retry in a moment" method. > > I could also find no indication that this program would need a special kind > of CPU, other than it spawning 16 ThreadS. My best guess is that this is a > port of a C program by someone who doesn't understand Java very well yet, > and probably never programmed for a living. So let's punt back to the OP: What would you like from us with regard to your post? Are you looking for comments? Advice? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Thorsten Kiefer <me@home.org> |
|---|---|
| Date | 2013-01-02 11:04 +0100 |
| Message-ID | <50e4060e$0$2088$6e1ede2f@read.cnntp.org> |
| In reply to | #20860 |
Am 01.01.2013 23:17, schrieb Lew: > Joerg Meier wrote: >> Lew wrote: >>> Thorsten Kiefer wrote: >>>> this is an example program : >>> For maximum clarity, Usenet posts should have all relevant information in >>> the body of the post proper. >>>> https://github.com/******/RayMultiDim.git >>>> https://github.com/******/CPURootBeer.git >> >>>> Needs at least an 8-core cpu [sic]. >> >>> Well, I'm sure you are very proud. >> >>> What is this, is it even in Java, and why should we care? >> >>> I am rather interested in how you determined that this program >>> (it is a program, right?) needs an eight-core CPU. >> >>> Care to share? >> >>> But don't share here if the program isn't written in Java. >> >> It's Java, albeit pretty horrible Java - Exceptions are quietly swallowed, > > Good news. Then it's on topic. > >> everything is public, no comments, and the parts of the program I looked at >> look like one giant race condition, where bugs are treated with the good >> old "sleep and retry in a moment" method. >> >> I could also find no indication that this program would need a special kind >> of CPU, other than it spawning 16 ThreadS. My best guess is that this is a >> port of a C program by someone who doesn't understand Java very well yet, >> and probably never programmed for a living. > > So let's punt back to the OP: What would you like from us with regard to > your post? > > Are you looking for comments? Advice? > Yes, I would like some comments :) The reason, why I said it needs an 8-core, is such that it renders in realtime. Regards Thorsten
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-02 11:21 -0800 |
| Message-ID | <05f909d2-9462-4c92-aadb-92b4c6a2643c@googlegroups.com> |
| In reply to | #20866 |
Thorsten Kiefer wrote: > schrieb Lew: >> Joerg Meier wrote: >>> Lew wrote: >>>> Thorsten Kiefer wrote: >>>>> this is an example program : > >>>> For maximum clarity, Usenet posts should have all relevant information in >>>> the body of the post proper. > >>>>> https://github.com/******/RayMultiDim.git >>>>> https://github.com/******/CPURootBeer.git > >>>>> Needs at least an 8-core cpu [sic]. > [snip] >>>> I am rather interested in how you determined that this program > >>> (it is a program, right?) needs an eight-core CPU. > > [snip] > >>> It's Java, albeit pretty horrible Java - Exceptions are quietly swallowed, > >> Good news. Then it's on topic. > >>> everything is public, no comments, and the parts of the program I looked at >>> look like one giant race condition, where bugs are treated with the good >>> old "sleep and retry in a moment" method. > >>> I could also find no indication that this program would need a special kind >>> of CPU, other than it spawning 16 ThreadS. My best guess is that this is a >>> port of a C program by someone who doesn't understand Java very well yet, >>> and probably never programmed for a living. > >> So let's punt back to the OP: What would you like from us with regard to >> your post? >> Are you looking for comments? Advice? > > Yes, I would like some comments :) Be careful what you wish for. > The reason, why I said it needs an 8-core, is such that it renders in > realtime. How did you relate that to number of cores? Your code needs an awful lot of work. You've got source that does nothing, Swing GUIs started off the EDT, non-conventional variable names and indentation, and the issues Joerg mentioned. Check out the Java online tutorials at oracle.com and snoop around there for the Java coding conventions. If you make a request to the newsgroup, you have to actually state what the request is. Thank you for responding to our questions. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-01-02 19:34 -0500 |
| Message-ID | <50e4d211$0$281$14726298@news.sunsite.dk> |
| In reply to | #20866 |
On 1/2/2013 5:04 AM, Thorsten Kiefer wrote: > Am 01.01.2013 23:17, schrieb Lew: >> Joerg Meier wrote: >>> Lew wrote: >>>> Thorsten Kiefer wrote: >>>>> Needs at least an 8-core cpu [sic]. >>>> I am rather interested in how you determined that this program >>>> (it is a program, right?) needs an eight-core CPU. > The reason, why I said it needs an 8-core, is such that it renders in > realtime. So it will render in realtime with 8 core no matter the speed of those core or what ISA they are? How do you achieve that in Java? Test on number of cores? Arne
[toc] | [prev] | [next] | [standalone]
| From | bob smith <bob@coolfone.comze.com> |
|---|---|
| Date | 2013-01-03 09:13 -0800 |
| Message-ID | <c73141f3-74ac-4bb3-b212-a3cea821095b@googlegroups.com> |
| In reply to | #20853 |
On Tuesday, January 1, 2013 10:09:53 AM UTC-6, Thorsten Kiefer wrote: > Hi, > > this is an example program : > > > > https://github.com/toki78/RayMultiDim.git > > https://github.com/toki78/CPURootBeer.git > > > > Needs at least an 8-core cpu. > > > > Best Regards > > Thorsten If it is n-dimensional, what values of n make sense other than 3?
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-03 13:24 -0800 |
| Message-ID | <d0badde9-556e-41e4-a45c-2433592402f9@googlegroups.com> |
| In reply to | #20924 |
Stefan Ram wrote: > bob smith writes: >> If it is n-dimensional, what values of n make sense other than 3? > > »We demonstrate our method on scenes with a 3 to 5 > dimensional space« > > hachisuka08multidimensional.pdf We should google for this, eh? -- Lew
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web