Re: Who pays for all this?

2014-10-22 Thread rst256 via Digitalmars-d
On Tuesday, 7 October 2014 at 01:11:42 UTC, Shammah Chancellor wrote: On 2014-10-06 22:28:52 +, Andrei Alexandrescu said: On 10/6/14, 12:59 PM, Shammah Chancellor wrote: I'm willing to put in the work if Walter is on board also. I don't want to do all that work to end up being a DPL Found

Re: GDC & Pandaboard/QEMU & Framebuffer

2014-10-22 Thread John A via Digitalmars-d
On Thursday, 23 October 2014 at 04:12:45 UTC, John A wrote: What am I missing? To answer my own question, I put the source file in the wrong spot: BAD: $(ARM-GDC) $(INCDIR) -L$(LIBDIR) -lopengl3 -lutil -ldl testgl3.d -o testgl3 Good: $(ARM-GDC) $(INCDIR) testgl3.d -L$(LIBDIR) -lopengl3 -l

Re: GDC & Pandaboard/QEMU & Framebuffer

2014-10-22 Thread John A via Digitalmars-d
On Wednesday, 22 October 2014 at 07:49:24 UTC, Johannes Pfau wrote: You also have to link against DerelictGL3 and maybe DerelictUtil: -lDerelictGL3 -lDerelictUtil Sorry for the confusion. When I compile DerelictGL3 and DerelictUtil, I create archives libopengl3.a and libutil.a in a local 'lib

Re: debug = x overrides command line

2014-10-22 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 22, 2014 14:10:02 Walter Bright via Digitalmars-d wrote: On 10/22/2014 1:28 PM, Jonathan M Davis wrote: > I can understand that, but it does seem a bit risky in this > case. The > suggestion of creating a warning for it seems like a good > one, since it > allows you to deb

Re: Algorithms, term rewriting and compile time reflection

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 23:09:17 UTC, Ola Fosheim Grøstad wrote: I think it is related to so-called dependent types? http://en.wikipedia.org/wiki/Dependent_type And: http://en.wikipedia.org/wiki/Refinement_(computing)#Refinement_types And perhaps: http://en.wikipedia.org/wiki/Liskov

Re: Algorithms, term rewriting and compile time reflection

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 21:34:51 UTC, Peter Alexander wrote: Term rewriting is very interesting, and I believe some work has been done for this in Haskell. I don't believe anything has been done with this propositions and inference approach you describe. I would always assume it has

Re: Algorithms, term rewriting and compile time reflection

2014-10-22 Thread Peter Alexander via Digitalmars-d
On Wednesday, 22 October 2014 at 11:10:35 UTC, Ola Fosheim Grøstad wrote: [snip] These kinds of optimizations are very difficult to achieve in a low level backend, but you really need them in order to do generic programming properly. A simple start would be to not provide term rewriting as a

Re: debug = x overrides command line

2014-10-22 Thread Walter Bright via Digitalmars-d
On 10/22/2014 1:28 PM, Jonathan M Davis wrote: I can understand that, but it does seem a bit risky in this case. The suggestion of creating a warning for it seems like a good one, since it allows you to debug like that but needles you to not leave it that way. I don't want deliberately written

Re: Program logic bugs vs input/environmental errors

2014-10-22 Thread rst256 via Digitalmars-d
https://en.wikipedia.org/wiki/Code_smell Do you read this? Yes phobos.stdio very smell code. Disagree? 107 КБ of source code olny for call few functions from stdio. Are you sure that this code are full correctly? "silly rabbit, y should be positive" - may be becose his used class like this? the

Re: Library request thread

2014-10-22 Thread ponce via Digitalmars-d
On Wednesday, 22 October 2014 at 15:11:39 UTC, Adam D. Ruppe wrote: On Wednesday, 22 October 2014 at 08:13:20 UTC, ponce wrote: 1. A windowing library to replace some of SDL usage. My simpledisplay.d is aimed to do some of this. https://github.com/adamdruppe/arsd It also depends on my color.d

Re: Library request thread

2014-10-22 Thread ponce via Digitalmars-d
On Wednesday, 22 October 2014 at 19:49:48 UTC, Jacob Carlborg wrote: On 2014-10-22 10:13, ponce wrote: 2. A binary serialization library that support versions of data schemes. Would allow to load previous versions of data when the scheme has changed and fields have been added/removed. Sound

Re: Value Range Propigation Spec

2014-10-22 Thread Walter Bright via Digitalmars-d
On 10/22/2014 2:31 AM, Shammah Chancellor wrote: A couple of us working on SDC are trying to get ValueRange propigation implemented. I was wonder if someone could offer some insight as to how VRP works in DMD. If for example, trying to get the value range of a global, what is the expected beh

Re: debug = x overrides command line

2014-10-22 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 22 October 2014 at 20:15:57 UTC, Walter Bright wrote: On 10/22/2014 1:04 PM, Jonathan M Davis wrote: Yeah, being able to just enable the debug blocks from within the code like that seems questionable to me and has nothing to do with debug blocks disabling pure functions. It just m

Re: debug = x overrides command line

2014-10-22 Thread Walter Bright via Digitalmars-d
On 10/22/2014 1:04 PM, Jonathan M Davis wrote: Yeah, being able to just enable the debug blocks from within the code like that seems questionable to me and has nothing to do with debug blocks disabling pure functions. It just makes for a nastier side effect when debug blocks are enabled within th

Re: debug = x overrides command line

2014-10-22 Thread Walter Bright via Digitalmars-d
On 10/22/2014 12:44 PM, "Ola Fosheim Grøstad" " wrote: On Wednesday, 22 October 2014 at 19:24:54 UTC, Walter Bright wrote: On 10/22/2014 4:30 AM, "Ola Fosheim Grøstad" " wrote: On a related note, how do you provide multiple execution paths based on cpuid without making the code dirty? https:/

Re: debug = x overrides command line

2014-10-22 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 21, 2014 22:33:02 Steven Schveighoffer via Digitalmars-d wrote: On 10/21/14 3:24 PM, Walter Bright wrote: > On 10/21/2014 12:15 PM, Gary Willoughby wrote: >> On Tuesday, 21 October 2014 at 17:25:37 UTC, Steven >> Schveighoffer >> >> wrote: >>> Yep, you can just turn off pur

Re: Library request thread

2014-10-22 Thread Jacob Carlborg via Digitalmars-d
On 2014-10-22 10:13, ponce wrote: 2. A binary serialization library that support versions of data schemes. Would allow to load previous versions of data when the scheme has changed and fields have been added/removed. Sounds like Protocol Buffers [1], D implementations: [2] [3]. [1] http://cod

Re: debug = x overrides command line

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 19:24:54 UTC, Walter Bright wrote: On 10/22/2014 4:30 AM, "Ola Fosheim Grøstad" " wrote: On a related note, how do you provide multiple execution paths based on cpuid without making the code dirty? https://github.com/D-Programming-Language/druntime/blob/master

Re: debug = x overrides command line

2014-10-22 Thread Walter Bright via Digitalmars-d
On 10/22/2014 4:30 AM, "Ola Fosheim Grøstad" " wrote: On a related note, how do you provide multiple execution paths based on cpuid without making the code dirty? https://github.com/D-Programming-Language/druntime/blob/master/src/rt/arrayfloat.d

Re: What's the difference between https://github.com/D-Programming-Deimos/glfw and https://github.com/DerelictOrg/DerelictGLFW3

2014-10-22 Thread Edn via Digitalmars-d
On Wednesday, 22 October 2014 at 01:45:07 UTC, Mike Parker wrote: On 10/22/2014 2:37 AM, Edn wrote: Anyways, would deimos/glfw/glfw3.d be needed if I have import glfw.glfw3; in my main.d ? You should be importing deimos.glfw.glfw3, I believe. But the answer is yes. Import statements tell the

Re: debug = x overrides command line

2014-10-22 Thread ketmar via Digitalmars-d
On Wed, 22 Oct 2014 17:04:41 + Gary Willoughby via Digitalmars-d wrote: > On Wednesday, 22 October 2014 at 13:58:44 UTC, Steven > Schveighoffer wrote: > > I am surprised. So you can actually enable all debug code > > permanently. > > > > I think debug=... statement should be made illegal. >

Re: debug = x overrides command line

2014-10-22 Thread Gary Willoughby via Digitalmars-d
On Wednesday, 22 October 2014 at 13:58:44 UTC, Steven Schveighoffer wrote: I am surprised. So you can actually enable all debug code permanently. I think debug=... statement should be made illegal. -Steve I'd agree with that to be honest. It seems odd to allow this in code. I can understand

Re: Library request thread

2014-10-22 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 22 October 2014 at 08:13:20 UTC, ponce wrote: 1. A windowing library to replace some of SDL usage. My simpledisplay.d is aimed to do some of this. https://github.com/adamdruppe/arsd It also depends on my color.d, but none of the other files. It also doesn't depend on Phobos, whi

Re: Program logic bugs vs input/environmental errors

2014-10-22 Thread w0rp via Digitalmars-d
On Saturday, 18 October 2014 at 17:40:43 UTC, Walter Bright wrote: On 10/18/2014 8:21 AM, Jacob Carlborg wrote: On 2014-10-18 07:09, Walter Bright wrote: Which means they'll be program bugs, not environmental errors. Yes, but just because I made a mistake in using a function (hitting an ass

Re: Program logic bugs vs input/environmental errors

2014-10-22 Thread eles via Digitalmars-d
On Wednesday, 22 October 2014 at 15:05:58 UTC, w0rp wrote: On Saturday, 18 October 2014 at 17:40:43 UTC, Walter Bright wrote: On 10/18/2014 8:21 AM, Jacob Carlborg wrote: On 2014-10-18 07:09, Walter Bright wrote: never happen," which is like a car turning into King Kong and It depends on t

Re: debug = x overrides command line

2014-10-22 Thread Steven Schveighoffer via Digitalmars-d
On 10/22/14 7:23 AM, Marco Leise wrote: Am Tue, 21 Oct 2014 22:33:02 -0400 schrieb Steven Schveighoffer : On 10/21/14 3:24 PM, Walter Bright wrote: On 10/21/2014 12:15 PM, Gary Willoughby wrote: On Tuesday, 21 October 2014 at 17:25:37 UTC, Steven Schveighoffer wrote: Yep, you can just turn o

Re: Blaming the D language

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 12:17:32 UTC, Dejan Lekic wrote: It is easy to write ugly code in D without string mixins. Just take a look at the (ab)use of UFCS... I am not a fan of UFCS either… I think it is nice to be able to extend aggregates with new member functions, UFCS isn't require

Re: Blaming the D language

2014-10-22 Thread Dejan Lekic via Digitalmars-d
On Wednesday, 22 October 2014 at 08:14:24 UTC, Ola Fosheim Grøstad wrote: 2. Easy to write ugly code: It suffers from the same issues as macros. It is easy to write ugly code in D without string mixins. Just take a look at the (ab)use of UFCS...

Re: debug = x overrides command line

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 11:13:35 UTC, Marco Leise wrote: You might be surprised that -debug doesn't enable anything special. It is just a shortcut for setting the debug level to 1 (a shortcut for -debug=1). Likewise debug statements are a shortcut for debug(1) {…}. This is also analogous

Re: debug = x overrides command line

2014-10-22 Thread Marco Leise via Digitalmars-d
Am Tue, 21 Oct 2014 22:33:02 -0400 schrieb Steven Schveighoffer : > On 10/21/14 3:24 PM, Walter Bright wrote: > > On 10/21/2014 12:15 PM, Gary Willoughby wrote: > >> On Tuesday, 21 October 2014 at 17:25:37 UTC, Steven Schveighoffer > >> wrote: > >>> Yep, you can just turn off purity when it gets i

Algorithms, term rewriting and compile time reflection

2014-10-22 Thread via Digitalmars-d
Generic programming without high level analytical capabilities are problematic since you cannot optimize everything on a low level. For instance, some algorithms run better if the input is sorted, and although you can cover one property with typing (e.g. sorted range) the combinatorial explos

Re: Library request thread

2014-10-22 Thread Rikki Cattermole via Digitalmars-d
On 22/10/2014 10:07 p.m., ponce wrote: On Wednesday, 22 October 2014 at 08:25:25 UTC, Rikki Cattermole wrote: On 22/10/2014 9:13 p.m., ponce wrote: I feel like we need a NG thread for D users to come and ask for new libraries/bindings. Express your needs! Here are mines. 1. A windowing librar

Re: What's the difference between https://github.com/D-Programming-Deimos/glfw and https://github.com/DerelictOrg/DerelictGLFW3

2014-10-22 Thread Edn via Digitalmars-d
On Wednesday, 22 October 2014 at 01:45:07 UTC, Mike Parker wrote: On 10/22/2014 2:37 AM, Edn wrote: Anyways, would deimos/glfw/glfw3.d be needed if I have import glfw.glfw3; in my main.d ? You should be importing deimos.glfw.glfw3, I believe. But the answer is yes. Import statements tell the

Re: Value Range Propigation Spec

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 09:27:09 UTC, Shammah Chancellor wrote: A couple of us working on SDC are trying to get ValueRange propigation implemented. Nice! Maybe you should also consider establishing error in floating point calculations by extending to interval arithmetic? http://en.w

Value Range Propigation Spec

2014-10-22 Thread Shammah Chancellor via Digitalmars-d
A couple of us working on SDC are trying to get ValueRange propigation implemented. I was wonder if someone could offer some insight as to how VRP works in DMD. If for example, trying to get the value range of a global, what is the expected behavior? It seems as though VRP is a language fe

Re: Library request thread

2014-10-22 Thread ponce via Digitalmars-d
On Wednesday, 22 October 2014 at 08:25:25 UTC, Rikki Cattermole wrote: On 22/10/2014 9:13 p.m., ponce wrote: I feel like we need a NG thread for D users to come and ask for new libraries/bindings. Express your needs! Here are mines. 1. A windowing library to replace some of SDL usage. Some p

Re: Blaming the D language

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 08:27:53 UTC, bearophile wrote: Ola Fosheim Grøstad: 2. Easy to write ugly code: It suffers from the same issues as macros. Do you mean C macros? I think this is not true. Not C macros, because they are free form and happen before parsing. On the other ha

Re: Library request thread

2014-10-22 Thread Rikki Cattermole via Digitalmars-d
On 22/10/2014 9:13 p.m., ponce wrote: I feel like we need a NG thread for D users to come and ask for new libraries/bindings. Express your needs! Here are mines. 1. A windowing library to replace some of SDL usage. Some programs like audio plugins are usually done without any dependent dynamic

Re: Blaming the D language

2014-10-22 Thread bearophile via Digitalmars-d
Ola Fosheim Grøstad: 2. Easy to write ugly code: It suffers from the same issues as macros. Do you mean C macros? I think this is not true. 3. Language integration: It is desirable to have an application level language that can integrate well with a low level language when calling out to s

Library request thread

2014-10-22 Thread ponce via Digitalmars-d
I feel like we need a NG thread for D users to come and ask for new libraries/bindings. Express your needs! Here are mines. 1. A windowing library to replace some of SDL usage. Some programs like audio plugins are usually done without any dependent dynamic library. It could also make one less

Re: Blaming the D language

2014-10-22 Thread via Digitalmars-d
On Wednesday, 22 October 2014 at 07:46:18 UTC, bearophile wrote: Ola Fosheim Grøstad: I also want to see string mixins removed from phobos. It is a very ugly feature. What are your problems with those strings? 1. Source level analysis: Hard to write programs that transform source. 2. Easy

Re: GDC & Pandaboard/QEMU & Framebuffer

2014-10-22 Thread Johannes Pfau via Digitalmars-d
Am Wed, 22 Oct 2014 06:26:56 + schrieb "John A" : > > Next step for me, is to create a small opengl test app: > > - does it cross-compile (on Ubunutu)? > > - does it run in QEMU? > > - does it run on a Pandaboard? > > Here's the result: > DerelictGL3 and DerelictUtil cross-compiles ok with no

Re: Blaming the D language

2014-10-22 Thread bearophile via Digitalmars-d
Ola Fosheim Grøstad: I think the overrated C++ standard library has influenced phobos too much. I agree. I also want to see string mixins removed from phobos. It is a very ugly feature. What are your problems with those strings? Bye, bearophile

Re: Blaming the D language

2014-10-22 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 22, 2014 06:59:02 Jakob Ovrum via Digitalmars-d wrote: > On Wednesday, 22 October 2014 at 06:42:06 UTC, Ali Çehreli wrote: > > On 10/21/2014 11:06 PM, thedeemon wrote: > >> A[B] freshCleanAA; > >> aa = freshCleanAA; > >> > >> (where A[B] denotes the type of aa) > >> Th

Re: Program logic bugs vs input/environmental errors

2014-10-22 Thread eles via Digitalmars-d
On Tuesday, 21 October 2014 at 03:25:55 UTC, rst256 wrote: On Monday, 20 October 2014 at 20:36:58 UTC, eles wrote: On Saturday, 18 October 2014 at 17:40:43 UTC, Walter Bright wrote: On 10/18/2014 8:21 AM, Jacob Carlborg wrote: On 2014-10-18 07:09, Walter Bright wrote: Its linking time. No

Re: Blaming the D language

2014-10-22 Thread Jakob Ovrum via Digitalmars-d
On Wednesday, 22 October 2014 at 06:42:06 UTC, Ali Çehreli wrote: On 10/21/2014 11:06 PM, thedeemon wrote: A[B] freshCleanAA; aa = freshCleanAA; (where A[B] denotes the type of aa) That's it! Alternative: A[B] aa; aa = aa.init; Ali `aa.init` is just `null`, which illustra