Where is contribution most needed to the D community?

2014-01-08 Thread Kira Backes
Dear D users, after a long time evaluating all options I think I finally committed to D and vibe.d! Since I’ll have a lot of memory usage and I want to do an MMORPG I always was scared off by GC-enabled languages, but after thoroughly evaluating what this language (and vibe.d) gives me in te

Re: Uninstall deletes user created folders too

2014-01-08 Thread Brad Anderson
On Thursday, 9 January 2014 at 06:50:56 UTC, John J wrote: The Uninstall on Windows is deleting user created folders too! :( I thought it's a good idea to uninstall the previous version of D before I install the latest one, but when I did that, it deleted the C:\D folder, including the sub-fo

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Walter Bright
On 1/8/2014 10:11 PM, Manu wrote: On 9 January 2014 13:08, Walter Bright mailto:newshou...@digitalmars.com>> wrote: On 1/8/2014 12:23 PM, Benjamin Thaut wrote: Additionaly programming with a GC often leads to a lot more allocations, I believe that this is incorrect. Using GC l

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Paulo Pinto
On Thursday, 9 January 2014 at 06:11:58 UTC, Manu wrote: On 9 January 2014 13:08, Walter Bright wrote: On 1/8/2014 12:23 PM, Benjamin Thaut wrote: Additionaly programming with a GC often leads to a lot more allocations, I believe that this is incorrect. Using GC leads to fewer allocati

Uninstall deletes user created folders too

2014-01-08 Thread John J
The Uninstall on Windows is deleting user created folders too! :( I thought it's a good idea to uninstall the previous version of D before I install the latest one, but when I did that, it deleted the C:\D folder, including the sub-folders and files I created under that "D" folder! :( This i

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Paulo Pinto
On Wednesday, 8 January 2014 at 23:59:59 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 8 January 2014 at 23:43:43 UTC, NoUseForAName wrote: Looks pretty boring/conventional to me. If you know many programming languages you immediately recognize "let" as a common keyword for assignment. Yes, b

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Paulo Pinto
On Thursday, 9 January 2014 at 00:52:04 UTC, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 11:59:58PM +, digitalmars-d-boun...@puremagic.com wrote: On Wednesday, 8 January 2014 at 23:43:43 UTC, NoUseForAName wrote: [...] >(I am not part of that majority, though). I mean C gave us >classics lik

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Manu
On 9 January 2014 13:08, Walter Bright wrote: > On 1/8/2014 12:23 PM, Benjamin Thaut wrote: > >> Additionaly programming with a GC often leads to a lot more allocations, >> > > I believe that this is incorrect. Using GC leads to fewer allocations, > because you do not have to make extra copies ju

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Brad Anderson
On Thursday, 9 January 2014 at 01:06:03 UTC, Ola Fosheim Grøstad wrote: On Thursday, 9 January 2014 at 00:52:04 UTC, H. S. Teoh wrote: The absolute worst offender from the C days was creat(). That's unfair, that's unix, not C! http://linux.die.net/man/3/explain_creat_or_die But that just me

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Mike
On Wednesday, 8 January 2014 at 15:05:56 UTC, Johannes Pfau wrote: I think there are three steps to make TypeInfo completely optional * -fno-typeinfo as a global switch instructing the compiler that it _never_ has typeinfo and should never output typeinfo. In this case all files must be c

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Walter Bright
On 1/8/2014 12:23 PM, Benjamin Thaut wrote: Additionaly programming with a GC often leads to a lot more allocations, I believe that this is incorrect. Using GC leads to fewer allocations, because you do not have to make extra copies just so it's clear who owns the allocations. For example, i

Re: Windows DMD installer/VisualD still not detecting paths correctly

2014-01-08 Thread Manu
On 5 January 2014 21:23, Rainer Schuetze wrote: > > What seems to happen is that the default executable paths do not contain > \Common7\IDE, but this is needed by the linker to find the > mspdb*.dll. PATH is modified to that respect in sc.ini, but it is patched > by the D installer to the latest

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 17:55:20 -0800, Mike Parker wrote: On 1/9/2014 3:42 AM, Adam Wilson wrote: the standard library. In principle, I don't really have a problem with that, however as someone pointed out, you don't really expect to be able to use std.socket without a NIC, so saying that it sho

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Ola Fosheim Grøstad
On Thursday, 9 January 2014 at 01:26:27 UTC, H. S. Teoh wrote: That's why I said "from the C days", not "in C". :) Remember that C was created... um, creat-ed... in order to write Unix. Yes, but you have to take into consideration that there are over twice as many anagrams for "creat" than fo

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 18:17:11 -0800, Ola Fosheim Grøstad wrote: On Thursday, 9 January 2014 at 01:56:59 UTC, Mike Parker wrote: Is this going to provide a 3D renderer as well? I thought we were just talking about 2D. My point was that 2D is better suited for caching and reusing rasters f

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Thursday, 9 January 2014 at 01:56:59 UTC, Mike Parker wrote: Is this going to provide a 3D renderer as well? I thought we were just talking about 2D. My point was that 2D is better suited for caching and reusing rasters from previous frames than 3D. So it benefit from not being fully immed

Re: Graphics Library for D

2014-01-08 Thread Mike Parker
On 1/8/2014 11:05 PM, "Ola Fosheim Grøstad" " wrote: I wouldn't expect any implementation, generic or otherwise, to assume mostly static geometry. You could bet that a simple graphics API in Phobos would be used for games by some and for generating pie charts by others. It's still possible to

Re: Graphics Library for D

2014-01-08 Thread Mike Parker
On 1/9/2014 3:42 AM, Adam Wilson wrote: the standard library. In principle, I don't really have a problem with that, however as someone pointed out, you don't really expect to be able to use std.socket without a NIC, so saying that it shouldn't be in just because not all machines have graphics o

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Thursday, 9 January 2014 at 00:20:00 UTC, Ola Fosheim Grøstad wrote: Basically you partition edges into sub-pixel polygons and sort them. Then you calculate visibility and coverage before shading. (note: this is not how REYES work for 3D, but I think it could be adapted with good results fo

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Thu, Jan 09, 2014 at 01:06:01AM +, digitalmars-d-boun...@puremagic.com wrote: > On Thursday, 9 January 2014 at 00:52:04 UTC, H. S. Teoh wrote: > >The absolute worst offender from the C days was creat(). > > That's unfair, that's unix, not C! > > http://linux.die.net/man/3/explain_creat_or

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Ola Fosheim Grøstad
On Thursday, 9 January 2014 at 00:52:04 UTC, H. S. Teoh wrote: The absolute worst offender from the C days was creat(). That's unfair, that's unix, not C! http://linux.die.net/man/3/explain_creat_or_die

Re: Compile time executable calling?

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 11:55:38PM +, Tofu Ninja wrote: [...] > I didn't just mean keeping it in sync with the source files, but in > sync with every instance of the external exe call that might happen, > and since I would want to use it like how ctfe is used that > basically means any time I h

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 11:59:58PM +, digitalmars-d-boun...@puremagic.com wrote: > On Wednesday, 8 January 2014 at 23:43:43 UTC, NoUseForAName wrote: [...] > >(I am not part of that majority, though). I mean C gave us > >classics like "atoi".. still reminds me of "ahoi" every time I > >read it

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Atila Neves
No, this expierence is not only based of this. I observed multiple discussions on the newsgroup, where turning off the GC would speed up the program by factor 3. The most recent one was The GC doesn't even show up in the profiler for this/my use case. The one optimisation I did to avoid alloca

Re: Microsoft working on new systems language

2014-01-08 Thread Szymon Gatner
On Thursday, 9 January 2014 at 00:20:36 UTC, QAston wrote: C(++) is designed to be simple [snip] Good one! ;)

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Atila Neves
Thanks. Not many votes though given all the downvotes. The comments manage to be even worse than on my first blog post. For some reason they all assume I don't know C++ even though I know it way better than D, not to mention that they nearly all miss the point altogether. Sigh. On Wednesday,

Re: Microsoft working on new systems language

2014-01-08 Thread QAston
On Wednesday, 8 January 2014 at 22:55:24 UTC, bioinfornatics wrote: They are any conclusion about this ? they are 10 page and most part talk about D gc… It is concluded that C(and optionally C++ - depending on the speaker) is inherently faster than anything else because C(++) is a "portable

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 23:56:19 UTC, finalpatch wrote: we can produce something even more impressive than AGG. Since it's a pure software renderer, the scope of the project will be a lot more manageable than GPU based solutions. You could try the REYES algorithm, it should give more a

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 15:45:45 -0800, Ola Fosheim Grøstad wrote: On Wednesday, 8 January 2014 at 23:11:34 UTC, finalpatch wrote: The fork on SourceForge, although considered maintained, it contains only a few small changes. Right now the revision number of that repo is only about 90, and th

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 15:56:18 -0800, finalpatch wrote: On Wednesday, 8 January 2014 at 23:29:59 UTC, Adam Wilson wrote: Even with a full port of 2.4 to D it would still fall under the BSD 3-Clause license which is not Boost compliant IIRC. So it will never end up in Phobos. If I am missing s

Re: Compile time executable calling?

2014-01-08 Thread Tofu Ninja
On Wednesday, 8 January 2014 at 23:17:48 UTC, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 10:29:03PM +, Tofu Ninja wrote: On Wednesday, 8 January 2014 at 22:01:56 UTC, Brian Schott wrote: >Just make your makefile run the script, pipe its output to a >file, >and do a string import of the gene

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 23:43:43 UTC, NoUseForAName wrote: Looks pretty boring/conventional to me. If you know many programming languages you immediately recognize "let" as a common keyword for assignment. Yes, but I cannot think of a single one of them that I would like to use! ;-)

Re: Graphics Library for D

2014-01-08 Thread finalpatch
On Wednesday, 8 January 2014 at 23:29:59 UTC, Adam Wilson wrote: Even with a full port of 2.4 to D it would still fall under the BSD 3-Clause license which is not Boost compliant IIRC. So it will never end up in Phobos. If I am missing something let me know, because a Phobos Software Renderer i

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread Manu
On 9 January 2014 04:26, deadalnix wrote: > Mandatory bikeshedding : the name is ungooglable. I do think that > this is a problem. > Make some suggestions? I'm not really stressed, although this name is a brand that resonates with the GH/RB enthusiast community since back in the GH1/2 days. Peop

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 23:11:34 UTC, finalpatch wrote: The fork on SourceForge, although considered maintained, it contains only a few small changes. Right now the revision number of that repo is only about 90, and there isn't much happening in the repo over the years. I think if we pi

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread NoUseForAName
On Wednesday, 8 January 2014 at 23:27:39 UTC, Ola Fosheim Grøstad wrote: let mut x = 4. Whyyy would anyone want to create such a syntax? I really want to like Rust, but I... just... Looks pretty boring/conventional to me. If you know many programming languages you immediately recognize "let"

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 15:11:33 -0800, finalpatch wrote: On Wednesday, 8 January 2014 at 18:49:58 UTC, Adam Wilson wrote: I think if you're willing to use version 2.4 then you get a much more permissive license, no? That's how I read http://www.antigrain.com/license/index.html anyway... Ri

Re: Microsoft working on new systems language

2014-01-08 Thread Dwhatever
On Wednesday, 8 January 2014 at 22:55:24 UTC, bioinfornatics wrote: On Saturday, 28 December 2013 at 11:13:55 UTC, Barry L. wrote: Hello everyone, first post... Just saw this: http://joeduffyblog.com/2013/12/27/csharp-for-systems-programming/ D (and Rust) get a mention with this quote: "Th

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 23:08:43 UTC, NoUseForAName wrote: That is why Rust creates so much more excitement among C/C++ programmers. You get high-level code, memory safety AND no pause times. let mut x = 4. Whyyy would anyone want to create such a syntax? I really want to like Rust,

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread Manu
On 9 January 2014 01:41, Jacob Carlborg wrote: > On 2014-01-07 05:43, Manu wrote: > >> Well I'm home from the christmas/new year thing, figured I should kick >> this off. >> Nothing to see yet, I'm just drafting some bits out, and knocking >> together a working shell. It'll be more interesting wh

Re: Declaration syntax

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 09:18:16PM +, Boyd wrote: > On Wednesday, 8 January 2014 at 20:12:03 UTC, H. S. Teoh wrote: [...] > >>I do wish that programmers would be more open to such ideas. There > >>is too much pointless bickering about miniscule syntactic changes, > >>yet no one seems to be int

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread Manu
On 9 January 2014 01:15, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > On 07/01/14 05:43, Manu wrote: > >> Well I'm home from the christmas/new year thing, figured I should kick >> this off. >> Nothing to see yet, I'm just drafting some bits out, and knocking >> together a >> wo

Re: Compile time executable calling?

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 10:29:03PM +, Tofu Ninja wrote: > On Wednesday, 8 January 2014 at 22:01:56 UTC, Brian Schott wrote: > >Just make your makefile run the script, pipe its output to a file, > >and do a string import of the generated file. > > The kind of stuff I want to use it for would ma

Re: Graphics Library for D

2014-01-08 Thread finalpatch
On Wednesday, 8 January 2014 at 18:49:58 UTC, Adam Wilson wrote: I think if you're willing to use version 2.4 then you get a much more permissive license, no? That's how I read http://www.antigrain.com/license/index.html anyway... Right, it will just force us to become responsible for maint

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread NoUseForAName
On Wednesday, 8 January 2014 at 19:17:08 UTC, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 11:35:19AM +, Atila Neves wrote: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ Manual memory

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 11:23:50PM +0100, Benjamin Thaut wrote: > Am 08.01.2014 21:57, schrieb H. S. Teoh: [...] > >I find the lack of strong metaprogramming capabilities in Java (never > >tried C# before) a show-stopper for me. You have to resort to either > >lots of duplicated code, or adding too

Re: Microsoft working on new systems language

2014-01-08 Thread bioinfornatics
On Saturday, 28 December 2013 at 11:13:55 UTC, Barry L. wrote: Hello everyone, first post... Just saw this: http://joeduffyblog.com/2013/12/27/csharp-for-systems-programming/ D (and Rust) get a mention with this quote: "There are other candidates early in their lives, too, most notably Rus

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 11:43:26PM +0100, Joseph Rushton Wakeling wrote: > On 08/01/14 23:23, Benjamin Thaut wrote: > >No, this expierence is not only based of this. I observed multiple > >discussions on the newsgroup, where turning off the GC would speed up > >the program by factor 3. > > In my e

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Joseph Rushton Wakeling
On 08/01/14 23:23, Benjamin Thaut wrote: No, this expierence is not only based of this. I observed multiple discussions on the newsgroup, where turning off the GC would speed up the program by factor 3. In my experience it seems to depend very much on the particular problem being solved and th

Re: Compile time executable calling?

2014-01-08 Thread Tofu Ninja
On Wednesday, 8 January 2014 at 22:01:56 UTC, Brian Schott wrote: Just make your makefile run the script, pipe its output to a file, and do a string import of the generated file. The kind of stuff I want to use it for would make that tactic tedious and error prone. I would use it like how ctfe

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Benjamin Thaut
Am 08.01.2014 21:57, schrieb H. S. Teoh: On Wed, Jan 08, 2014 at 09:23:48PM +0100, Benjamin Thaut wrote: Well, your experience was based on writing a 3D game engine. :) I didn't claim that GCs are best for that scenario. How many of us write 3D game engines for a living? No, this expierence is

Re: Compile time executable calling?

2014-01-08 Thread Brian Schott
Just make your makefile run the script, pipe its output to a file, and do a string import of the generated file.

Re: Compile time executable calling?

2014-01-08 Thread Tofu Ninja
On Wednesday, 8 January 2014 at 20:34:20 UTC, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 06:56:26PM +, Tofu Ninja wrote: On Wednesday, 8 January 2014 at 18:50:04 UTC, Orvid King wrote: >On Wednesday, 8 January 2014 at 18:46:37 UTC, Tofu Ninja >wrote: >>I made a post about it a few months ba

Re: Declaration syntax

2014-01-08 Thread Boyd
On Wednesday, 8 January 2014 at 20:12:03 UTC, H. S. Teoh wrote: I'm not suggesting getting rid of all plain text, but I'm definitely for replacing most of the text we need to define structural information. Furthermore, a custom binary implementation wouldn't be a problem as long as there is a w

Re: Declaration syntax

2014-01-08 Thread Tobias Pankrath
x : Int = 4 h = sqrt(x * x) Is 'h' a function or is it 2? Should h change if I change x? if you showed the line h = sqrt(x*x) to 100 people, either programmers or people familiar with algebra, how many do you think would say that 'h' is a variable and how many do you think would say 'h'

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
And well the c++ guys are right when pointing to html5 canvas. It is close enough to postscript and well worth having a look at for those who don't know it. It is semi-immediate mode, in the sense that it allows implementations to retain a log of draw commands. http://www.w3.org/TR/2dcontext/

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 09:23:48PM +0100, Benjamin Thaut wrote: > Am 08.01.2014 20:15, schrieb H. S. Teoh: > >Manual memory management is a LOT of effort, and to be quite honest, > >unless you're writing an AAA 3D game engine, you don't *need* that > >last 5% performance improvement that manual mem

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 19:51:31 UTC, Adam Wilson wrote: Small meeting size probably also has to be with when and where the meeting was. Beyond that, all I can say is that not being part of standard is freeing in certain respects. Namely the Yes, and also that they are less likely to i

Re: Compile time executable calling?

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 06:56:26PM +, Tofu Ninja wrote: > On Wednesday, 8 January 2014 at 18:50:04 UTC, Orvid King wrote: > >On Wednesday, 8 January 2014 at 18:46:37 UTC, Tofu Ninja wrote: > >>I made a post about it a few months back and it seemed like > >>there were some people who would want

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Paulo Pinto
Am 08.01.2014 20:15, schrieb H. S. Teoh: On Wed, Jan 08, 2014 at 11:35:19AM +, Atila Neves wrote: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ [snip] Thanks very much for shari

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Benjamin Thaut
Am 08.01.2014 20:15, schrieb H. S. Teoh: Manual memory management is a LOT of effort, and to be quite honest, unless you're writing an AAA 3D game engine, you don't *need* that last 5% performance improvement that manual memory management *might* gives you. That is, if you get it right. Which mos

Re: Declaration syntax

2014-01-08 Thread dajones
"deed" wrote in message news:lludycbhnhjzyypow...@forum.dlang.org... >> Why have a function declaration take a different form than an expression? >> >> h = sqrt(x*x+y*y) >> s = sin(theta) >> >> There's thousands of years of math behind that, we are taught that form >> before we ever get near pro

Re: Declaration syntax

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 05:19:59PM +, Boyd wrote: > On Wednesday, 8 January 2014 at 16:31:06 UTC, H. S. Teoh wrote: > >On Wed, Jan 08, 2014 at 08:47:21AM +, Boyd wrote: > >[...] > >>I've been experimenting with language design a bit and I found that > >>a much bigger issue with coding, is t

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 11:26:58 -0800, Ola Fosheim Grøstad wrote: On Wednesday, 8 January 2014 at 19:18:03 UTC, Adam Wilson wrote: That's the one. Ah, I like the way they are open to all options. http://isocpp.org/files/papers/N3825.pdf I think they are very far away from creating a standar

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Andrei Alexandrescu
On 1/8/14 11:15 AM, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 11:35:19AM +, Atila Neves wrote: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ [snip] You may want to paste all that

Re: Declaration syntax

2014-01-08 Thread deed
Why have a function declaration take a different form than an expression? h = sqrt(x*x+y*y) s = sin(theta) There's thousands of years of math behind that, we are taught that form before we ever get near programming a computer. result = do_somthing_with(parameters) Your example seems to sh

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Andrei Alexandrescu
On 1/8/14 3:35 AM, Atila Neves wrote: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ http://www.reddit.com/r/programming/comments/1uqabe/adding_java_and_c_to_the_mqtt_benchmarks_or_how_i

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 19:18:03 UTC, Adam Wilson wrote: That's the one. Ah, I like the way they are open to all options. http://isocpp.org/files/papers/N3825.pdf I think they are very far away from creating a standard though. With only 3 attendees I think it probably just is some

Re: Declaration syntax

2014-01-08 Thread dajones
"Tobias Pankrath" wrote in message news:ointgouwuqyhuoowh...@forum.dlang.org... > On Wednesday, 8 January 2014 at 14:13:16 UTC, dajones wrote: >> >> "deed" wrote in message >> news:unsbvdjdsxtsqgfde...@forum.dlang.org... >>> Modifications: >>> >>> 1. Swap type and name. Like Go, but return type

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 10:58:37 -0800, Ola Fosheim Grøstad wrote: On Wednesday, 8 January 2014 at 18:44:33 UTC, Adam Wilson wrote: C++, are in the process of adding it. I lurk on the ISO C++ Forums and the graphics work-group is the most attended and discussed future proposal in the entire s

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 11:35:19AM +, Atila Neves wrote: > http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ I have to say, this is also my experience with C++ after I learnt D. Writing C+

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Dwhatever
My question is what do all these TypeInfo and ModuleInfo have to do with operating systems? Assuming that TypeInfo and ModuleInfo has really nothing to do with the OS, I see no problem with it. Sure it is nice to be able to remove it for certain embedded system where size is critical but for ma

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Paulo Pinto
Am 08.01.2014 19:31, schrieb Atila Neves: I don't know if I have enough rep for it, I'd appreciate it if someone who does posts it there. On Wednesday, 8 January 2014 at 18:24:00 UTC, bearophile wrote: Atila Neves: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt

Re: Compile time executable calling?

2014-01-08 Thread Tofu Ninja
On Wednesday, 8 January 2014 at 18:50:04 UTC, Orvid King wrote: On Wednesday, 8 January 2014 at 18:46:37 UTC, Tofu Ninja wrote: I made a post about it a few months back and it seemed like there were some people who would want this, but nothing ever came of it. The idea is basically being able

Re: Graphics Library for D

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 18:44:33 UTC, Adam Wilson wrote: C++, are in the process of adding it. I lurk on the ISO C++ Forums and the graphics work-group is the most attended and discussed future proposal in the entire standard right now. People want this. This group? https://groups.go

Re: Graphics Library for D

2014-01-08 Thread David Gileadi
On 1/8/14, 11:48 AM, Adam Wilson wrote: On Wed, 08 Jan 2014 10:39:08 -0800, David Gileadi wrote: On 1/8/14, 11:28 AM, Adam Wilson wrote: I've been looking at AGG, and to me the biggest problem is the license. It would it difficult to use in commercial scenarios that D itself is perfectly safe

Re: Compile time executable calling?

2014-01-08 Thread Orvid King
On Wednesday, 8 January 2014 at 18:46:37 UTC, Tofu Ninja wrote: I made a post about it a few months back and it seemed like there were some people who would want this, but nothing ever came of it. The idea is basically being able to call and capture the output of a program at compile time, si

Compile time executable calling?

2014-01-08 Thread Tofu Ninja
I made a post about it a few months back and it seemed like there were some people who would want this, but nothing ever came of it. The idea is basically being able to call and capture the output of a program at compile time, similar to a string import. Has anyone thought about this since?

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 10:39:08 -0800, David Gileadi wrote: On 1/8/14, 11:28 AM, Adam Wilson wrote: I've been looking at AGG, and to me the biggest problem is the license. It would it difficult to use in commercial scenarios that D itself is perfectly safe in. As useful as the GPL is, I don't t

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 05:09:52 -0800, Mike Parker wrote: On 1/8/2014 9:26 PM, "Ola Fosheim Grøstad" " wrote: On Wednesday, 8 January 2014 at 11:34:53 UTC, Mike Parker wrote: Rendering to a memory buffer to generate png images is a legitimate use case. If Phobos has a graphics API, I would expe

Re: Graphics Library for D

2014-01-08 Thread David Gileadi
On 1/8/14, 11:28 AM, Adam Wilson wrote: I've been looking at AGG, and to me the biggest problem is the license. It would it difficult to use in commercial scenarios that D itself is perfectly safe in. As useful as the GPL is, I don't think it belongs in a library project. I think if you're will

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread Atila Neves
I don't know if I have enough rep for it, I'd appreciate it if someone who does posts it there. On Wednesday, 8 January 2014 at 18:24:00 UTC, bearophile wrote: Atila Neves: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worry

Re: Graphics Library for D

2014-01-08 Thread Adam Wilson
On Wed, 08 Jan 2014 02:57:45 -0800, Boyd wrote: I could definitely use something like this. I'm currently working on a GUI library, and I still could use a decent graphics back-end. I suspect Aurora could function in this capacity. I would love to contribute, though my experience with grap

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread deadalnix
Mandatory bikeshedding : the name is ungooglable. I do think that this is a problem. Also, can you give a brief overview of the architecture you have in mind, and what are the things that can be worked on in the current state of affairs ?

Re: Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

2014-01-08 Thread bearophile
Atila Neves: http://atilanevesoncode.wordpress.com/2014/01/08/adding-java-and-c-to-the-mqtt-benchmarks-or-how-i-learned-to-stop-worrying-and-love-the-garbage-collector/ Going to Reddit? Bye, bearophile

Re: A strongly pure PRNG

2014-01-08 Thread monarch_dodra
On Wednesday, 8 January 2014 at 01:13:12 UTC, deadalnix wrote: On Tuesday, 7 January 2014 at 12:37:39 UTC, qznc wrote: On Tuesday, 7 January 2014 at 12:32:23 UTC, Kagamin wrote: I believe, bearophile was interested in this - a strongly pure immutable Xorshift32(1) PRNG: http://dpaste.dzfl.pl/5

Re: Declaration syntax

2014-01-08 Thread Boyd
On Wednesday, 8 January 2014 at 16:31:06 UTC, H. S. Teoh wrote: On Wed, Jan 08, 2014 at 08:47:21AM +, Boyd wrote: [...] I've been experimenting with language design a bit and I found that a much bigger issue with coding, is that we still use files and plain text. An IDE where code is repres

Re: Declaration syntax

2014-01-08 Thread Ola Fosheim Grøstad
On Wednesday, 8 January 2014 at 00:23:34 UTC, deed wrote: 1. Swap type and name. Like Go, but return type between function name and parameter list. I find the Go swap to be less clear like "functionname(x,y,z int)", but the swap with ":" is ok. However, then you might as well create a se

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Adam D. Ruppe
On Wednesday, 8 January 2014 at 16:22:55 UTC, Johannes Pfau wrote: Are all the aApplay methods deprecated then? See https://github.com/D-Programming-Language/druntime/blob/master/src/rt/aApply.d Oh, oops, you are right, my link command was pulling that in. Here's the correct thing: test.d:(.

Re: Declaration syntax

2014-01-08 Thread H. S. Teoh
On Wed, Jan 08, 2014 at 08:47:21AM +, Boyd wrote: [...] > I've been experimenting with language design a bit and I found that > a much bigger issue with coding, is that we still use files and > plain text. An IDE where code is represented in a simple tree and > saved in a database, for example,

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Johannes Pfau
Am Wed, 08 Jan 2014 15:59:25 + schrieb "Adam D. Ruppe" : > On Wednesday, 8 January 2014 at 15:21:21 UTC, Johannes Pfau wrote: > > But IIRC druntime does some UTF normalization or something on > > strings or was that only for foreach over strings? > > No, all it does is if you ask for foreach

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Adam D. Ruppe
On Wednesday, 8 January 2014 at 15:21:21 UTC, Johannes Pfau wrote: But IIRC druntime does some UTF normalization or something on strings or was that only for foreach over strings? No, all it does is if you ask for foreach(dchar c; string){}, it will decode the multi-byte sequences. This does n

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Adam D. Ruppe
On Wednesday, 8 January 2014 at 15:05:56 UTC, Johannes Pfau wrote: IIRC Andrei wants _d_newclass to be independent of ClassInfo anyway (by making it a template). me too Runtime variadic arguments need typeinfo IIRC. We'd have to ban calling those functions with -fno-typeinfo or if any of the

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread Jacob Carlborg
On 2014-01-08 16:15, Joseph Rushton Wakeling wrote: Not having looked at the code yet -- is this meant as a Windows-only project (for now at least) or cross-platform from the start? Most likely Windows only. It's coded for cross-platform but I suspect it hasn't been tested on any other platfo

Re: GuitarHero/RockBand fans... side project anyone?

2014-01-08 Thread Jacob Carlborg
On 2014-01-07 05:43, Manu wrote: Well I'm home from the christmas/new year thing, figured I should kick this off. Nothing to see yet, I'm just drafting some bits out, and knocking together a working shell. It'll be more interesting when I get something on screen and all that ;) But there is now a

Code generation DMD

2014-01-08 Thread MGW
Question. What code generates DMD D 2.064.2. This i366, i486, pentium, MMX, i686 or something else?

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Johannes Pfau
Am Wed, 08 Jan 2014 13:31:07 + schrieb "Adam D. Ruppe" : > On Wednesday, 8 January 2014 at 07:57:29 UTC, Jacob Carlborg > wrote: > > Even if the struct isn't used or void-initialized? > > Yeah. The compiler can not know that a struct isn't used/void initialized. With separate compilation Typ

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Johannes Pfau
Am Tue, 7 Jan 2014 22:08:54 -0800 schrieb "H. S. Teoh" : > > >Even the switch...case statement seems to be, at least partially, > > >implemented in the runtime > > > > Yea, for strings. My thing did a stupid loop for string cases :P > > Isn't that what the druntime string switch function does to

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Johannes Pfau
Am Wed, 8 Jan 2014 12:13:33 + schrieb Iain Buclaw : > On 8 January 2014 11:13, Mike wrote: > > Can't the compiler just emit whatever the runtime provides for the > > TypeInfo stuff, right or wrong? So, if the runtime does not > > provide a TypeInfo_x implementation, it doesn't emit one. If

Re: Hitchikers Guide to Porting Phobos / D Runtime to other architectures

2014-01-08 Thread Joseph Rushton Wakeling
On 07/01/14 03:50, Andrei Alexandrescu wrote: On 1/6/14 4:22 AM, Mike wrote: On Monday, 6 January 2014 at 11:47:57 UTC, Dwhatever wrote: I'm trying to do the same, trying to compile OS free code but I haven't so far been successful because D requires the runtime and then also Phobos. Compared t

  1   2   >