[Issue 15464] Template parameter-dependent attributes

2015-12-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15464 --- Comment #8 from Andrei Alexandrescu --- Ping? --

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Robert burner Schadek via Digitalmars-d
On Monday, 28 December 2015 at 18:39:47 UTC, Ilya Yaroshenko wrote: Have you read the latest changes? http://forum.dlang.org/post/djgkkrdufycyjhpma...@forum.dlang.org I have. The problem with the doc is that is describes what it can be used for, but it does not describe what it is. It is

Re: Better docs for D (WIP)

2015-12-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 28 December 2015 at 23:01:05 UTC, Andrei Alexandrescu wrote: The signature proper is nice. The formatting of "&&" in the constraint is inconsistent, but I guess that's a matter with the formatting of the code. Yeah, that is a css bug I just forgot about getting in to everything

Re: Must I compile on the target architecture?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote: Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for

Links to the wiki for Phobos examples/tips and tricks?

2015-12-28 Thread bachmeier via Digitalmars-d
Is it acceptable to post examples/tips and tricks in the wiki, and then link to them in the official Phobos documentation? What I have in mind is adding to the documentation of a Phobos function See Also: The [wiki](link) for additional documentation. This would overcome two (valid IMO)

Re: Better watch out! D runs on watchOS!

2015-12-28 Thread Dan Olson via Digitalmars-d-announce
Joakim writes: > > I don't understand how the bitcode requirement works on your own > device: I thought that was for an Apple-submitted app that they then > compiled to binary themselves? Do you have to go through the same > process even for test apps, ie no sideloading? Or

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Martin Nowak via Digitalmars-d
On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: Voting has ended! Thanks to everyone who voted and reviewed. The final tally: Yes: 12 No: 0 Anything left to review/do on the PR? We're branching for 2.070 soon, would be nice if this can make it, but only if it's really

Stripping Data Symbols (Win64)

2015-12-28 Thread Benjamin Thaut via Digitalmars-d
My current work on the D compiler lead me to the following test case which I put through a unmodified version of dmd 2.069.2 import core.stdc.stdio; struct UnusedStruct { int i = 3; float f = 4.0f; }; class UnusedClass { int i = 2; float f = 5.0f; }; void

Re: How to config the GDC on linux target for ARM linux?

2015-12-28 Thread ZombineDev via Digitalmars-d-learn
On Monday, 28 December 2015 at 04:52:44 UTC, FrankLike wrote: Now I build a project for ARM linux on ubuntu 15.04 ,but build error. I download the 'wiringPi' from http://wiringPi.com,convert the *.h to *.d.then build the 'aa.so' file: #! /bin/sh dfiles="max31855.d max5322.d mcp23008.d

Re: GTKD drawing area remains white even SourceRgb is changed

2015-12-28 Thread Mike Wey via Digitalmars-d-learn
On 12/28/2015 12:29 AM, TheDGuy wrote: My code: http://dpaste.com/1X3E1HW i store colors in the accumulator-array and draw them via "cr.rectangle()". Because i have some problems with the code i set the SourceRgb-color to a constant value but if i execute the program, the window remains white.

[Issue 14804] Comparing two Nullables does not check if either is null

2015-12-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14804 --- Comment #3 from b2.t...@gmx.com --- (In reply to monkeyworks12 from comment #2) > but let's not close this one for opEquals. Without great convictionI've opened the PR, but let's the official maintainers take the decision ;)

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Sunday, 27 December 2015 at 21:13:07 UTC, Stefan Koch wrote: Hello again. please feel free to comment or ask questions here. Hi. what languages do you plan to support for input and output ?

Article on D for CVu or Overload

2015-12-28 Thread Russel Winder via Digitalmars-d
Is anyone up for writing an article or two on D for publication in the CVu or Overload journals as an act of D-efiance? There are to be a 1- day D workshop and a keynote session t the conference, it would be good to "leverage" this as part of the campaign to show that C++ is a 20th century

vibe.d benchmarks

2015-12-28 Thread Ola Fosheim Grøstad via Digitalmars-d
https://www.techempower.com/benchmarks/ The entries for vibe.d are either doing very poorly or fail to complete. Maybe someone should look into this?

Re: How to config the GDC on linux target for ARM linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
On Monday, 28 December 2015 at 13:17:04 UTC, FrankLike wrote: About the first error ("...module wiringPi is in file 'wiringPi.d' which cannot be read...") - are you sure that the dfiles are in "./wiringPi/WiringPi/"? The compiler reports that it can't find them there. You can try copying the

Re: Better watch out! D runs on watchOS!

2015-12-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-12-28 09:45, Dan Olson wrote: On implication of Apple requiring bitcode: if Apple is compiling the bitcode with their clang or llc, then it means using a modifed LLVM like I do to support thread-locals on watchOS, tvOS, or iOS is only good for side loading. Probably going to have to

Re: Must I compile on the target architecture?

2015-12-28 Thread Joakim via Digitalmars-d-learn
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote: Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for

Re: Lots of D code

2015-12-28 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 00:59:53 UTC, steven kladitis wrote: I have 843 programs written in D. 805 actually create an 32 bit exe in windows 10. I am running the latest D. Some just start to link and the linker disappears. Some just have issues I am not able figure out. I can attach

Re: Lots of D code

2015-12-28 Thread Ivan Kazmenko via Digitalmars-d-learn
On Monday, 28 December 2015 at 14:24:04 UTC, Basile B. wrote: On Wednesday, 23 December 2015 at 00:59:53 UTC, steven kladitis wrote: ... All of the programs are from RosettaCode.org. The script to compile them generates a log file and you will see a few that the linker just stops No idea

Re: Multiple selective imports on one line

2015-12-28 Thread Joakim via Digitalmars-d-learn
On Monday, 28 December 2015 at 14:16:36 UTC, Basile B. wrote: On Monday, 28 December 2015 at 14:09:30 UTC, Joakim wrote: I wish dfmt could do this for us, so that you develop with all the modules imported at the top, then run dfmt and it scopes all the imports and adds the selective import of

Re: How to config the GDC on linux target for ARM linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
I've gotten the answer: use the difference 'gcc' for c code. ---For x86_64: #! /bin/sh dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mcp23x0817.d mcp3002.d mcp3004.d mcp3422.d mcp4802.d pcf8574.d

Re: Three Cool Things about D

2015-12-28 Thread Rory McGuire via Digitalmars-d-announce
On 27 Dec 2015 6:25 PM, "Andrei Alexandrescu via Digitalmars-d-announce" < digitalmars-d-announce@puremagic.com> wrote: > > On 12/27/15 1:27 AM, Rory McGuire via Digitalmars-d-announce wrote: [snip] >> Vibe.d had a template engine called diet which is almost like Jade. It >> is also completed so

Re: So You Want To Write Your Own Language

2015-12-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-12-27 00:55, Walter Bright wrote: Many of the lowerings require semantic information that is not available from ASTs. Hence the "in theory" ;). It's hard to tell what would be possible to implement with AST macros without implementing the complete macro system and use it. Of course

Re: D Consortium as Book / App Publisher... ?

2015-12-28 Thread Wyatt via Digitalmars-d
On Sunday, 27 December 2015 at 14:44:37 UTC, Ola Fosheim Grøstad wrote: I think wannabe game programmers is a sizeable market. Programmers that dont have the capacity to learn modern C++ and would pay for a quality tutorial of how to build a commercial level game using OpenGL, OpenAL and a

Re: Is it possible to elegantly create a range over a binary heap?

2015-12-28 Thread Gary Willoughby via Digitalmars-d-learn
On Sunday, 27 December 2015 at 22:42:21 UTC, Ivan Kazmenko wrote: If you implement a struct with range primitives over it, you can use it as a range. See the second code example in std.container.binaryheap's docs at http://dlang.org/phobos/std_container_binaryheap.html#.BinaryHeap. Or do

Re: vibe.d benchmarks

2015-12-28 Thread Charles via Digitalmars-d
On Monday, 28 December 2015 at 12:24:17 UTC, Ola Fosheim Grøstad wrote: https://www.techempower.com/benchmarks/ The entries for vibe.d are either doing very poorly or fail to complete. Maybe someone should look into this? Sönke is already on it.

Re: Is it possible to elegantly create a range over a binary heap?

2015-12-28 Thread Ivan Kazmenko via Digitalmars-d-learn
On Monday, 28 December 2015 at 12:58:36 UTC, Gary Willoughby wrote: On Sunday, 27 December 2015 at 22:42:21 UTC, Ivan Kazmenko wrote: Or do you mean you want to print variables in order without modifying the array? Sounds like this would require at least N log N time and N additional memory

Re: Multiple selective imports on one line

2015-12-28 Thread Joakim via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 10:51:52 UTC, earthfront wrote: I'm using hackerpilot's excellent textadept plugin + DCD, Dfmt, and Dscanner. Upon saving files, it produces suggestions, much like warnings from the compiler. One suggestion is to use selective imports in local scopes. OK,

Re: Three Cool Things about D

2015-12-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-12-27 17:23, Andrei Alexandrescu wrote: That looks pretty cool! -- Andrei It's based on Haml which is pretty well known as well. -- /Jacob Carlborg

Re: How to use GDC to get .a file on Linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
On Sunday, 27 December 2015 at 17:19:26 UTC, Mike Parker wrote: On Sunday, 27 December 2015 at 15:19:21 UTC, FrankLike wrote: Hi, Now I need get the .a file on Linux,target system is ARM. If you use gcc ,you will use the 'ar' to get .a file, but how to do by GDC ? And how to get the

Re: How to config the GDC on linux target for ARM linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
About the first error ("...module wiringPi is in file 'wiringPi.d' which cannot be read...") - are you sure that the dfiles are in "./wiringPi/WiringPi/"? The compiler reports that it can't find them there. You can try copying the WiringPi dfiles in the same folder as "my.d". About the

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: Any idea what i am doing wrong? https://www.youtube.com/watch?v=j_VCa-5VeP8 You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom,

are MRV as an optimization well known ?

2015-12-28 Thread Basile B. via Digitalmars-d-learn
While working on a framework, I've found that Multiple Return Values (MRV) are clearly an optimization. I'de like to write a small D blog post about this but I don't know If it's clever enough or if it's a well know fact. My base D material is this: --- #!runnable-flags: -O -boundscheck=off

Re: are MRV as an optimization well known ?

2015-12-28 Thread Basile B. via Digitalmars-d-learn
I mean it's maybe "just" a special case of RVO, since tuples are processed as structs ?

[Issue 15481] GC profiler thinks reducing array.length triggers reallocation

2015-12-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15481 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com

Re: Multiple selective imports on one line

2015-12-28 Thread Basile B. via Digitalmars-d-learn
On Monday, 28 December 2015 at 14:16:36 UTC, Basile B. wrote: On Monday, 28 December 2015 at 14:09:30 UTC, Joakim wrote: I wish dfmt could do this for us, so that you develop with all the modules imported at the top, then run dfmt and it scopes all the imports and adds the selective import of

Re: Multiple selective imports on one line

2015-12-28 Thread Basile B. via Digitalmars-d-learn
On Monday, 28 December 2015 at 14:09:30 UTC, Joakim wrote: I wish dfmt could do this for us, so that you develop with all the modules imported at the top, then run dfmt and it scopes all the imports and adds the selective import of symbols. I've been thinking about implementing a tool to do

[Issue 15481] GC profiler thinks reducing array.length triggers reallocation

2015-12-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15481 --- Comment #2 from Valentin Milea --- Maybe the reallocation function is called and returns the same buffer. But why call it in the first place, if reducing array length is supposed to be _equivalent_ to slicing? --

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 28 December 2015 at 11:13:57 UTC, Martin Nowak wrote: On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: Voting has ended! Thanks to everyone who voted and reviewed. The final tally: Yes: 12 No: 0 Anything left to review/do on the PR? Very minor DDOC style hack

programmatically get -I and -L flags from dmd; dmd.conf should prepend instead of append?

2015-12-28 Thread Timothee Cour via Digitalmars-d
I'd like to have a command line flag for dmd (and ldc,gdc) that would be the analog to: llvm-config --ldflags --cflags ie, would print the corresponding flags used by dmd after following the internal logic (look for dmd.conf in a number of directories, look for DFLAGS environment variable etc).

Re: are MRV as an optimization well known ?

2015-12-28 Thread Basile B. via Digitalmars-d-learn
On Monday, 28 December 2015 at 12:40:09 UTC, Basile B. wrote: I mean it's maybe "just" a special case of RVO, since tuples are processed as structs ? Also in the second version the stack size is modified by 78 bytes. Not when using MRV.

vibe.d / GUI integration

2015-12-28 Thread Robert M. Münch via Digitalmars-d-learn
Hi, I have two questions regarding the following, IMO very cool, vibe feature: "Contrary to most other frameworks supporting asynchronous I/O, vibe.d fully integrates with the UI event loop, so that it can be used to power applications with a graphical user interface." 1. Am I right, that

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Jack Stouffer via Digitalmars-d
On Monday, 28 December 2015 at 11:13:57 UTC, Martin Nowak wrote: On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: Voting has ended! Thanks to everyone who voted and reviewed. The final tally: Yes: 12 No: 0 Anything left to review/do on the PR? We're branching for 2.070

Re: How to use GDC to get .a file on Linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
Answer is here: http://forum.dlang.org/thread/txvntyahlaewutzzw...@forum.dlang.org

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Jack Stouffer via Digitalmars-d
On Monday, 28 December 2015 at 15:52:09 UTC, Robert burner Schadek wrote: Please do not merge this with the current state of documentation. Could you elaborate what issues you have with the docs? All of the functions have Params and Returns sections and the examples show what each function

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread rumbu via Digitalmars-d-learn
On Sunday, 27 December 2015 at 23:24:55 UTC, TheDGuy wrote: On Sunday, 27 December 2015 at 22:51:27 UTC, Ali Çehreli wrote: On 12/27/2015 07:53 AM, TheDGuy wrote: Any idea what i am doing wrong? https://www.youtube.com/watch?v=j_VCa-5VeP8 YouTube says that the video has been removed by the

Re: GDC build wiringPi for 'Raspberry Pi',here is error info

2015-12-28 Thread FrankLike via Digitalmars-d-learn
Answer is here: http://forum.dlang.org/thread/txvntyahlaewutzzw...@forum.dlang.org

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output. It is a simple one-pass (okay 2 pass if you count the optimizer) trans-compilation. There is no middle-end. And very

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread Basile B. via Digitalmars-d-learn
On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: Any idea what i am doing wrong? https://www.youtube.com/watch?v=j_VCa-5VeP8 You could post the code also, personnaly

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Robert burner Schadek via Digitalmars-d
On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: The final tally: Yes: 12 No: 0 This is not true, my yes was conditional and the documentation is still weak. So it is Yes: 11 Yes: Conditional No: 0 Please do not merge this with the current state of documentation.

Re: Article on D for CVu or Overload

2015-12-28 Thread Jakob Jenkov via Digitalmars-d
On Monday, 28 December 2015 at 11:40:50 UTC, Russel Winder wrote: Is anyone up for writing an article or two on D for publication in the CVu or Overload journals as an act of D-efiance? There are to be a 1- day D workshop and a keynote session t the conference, it would be good to "leverage"

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Andrei Alexandrescu via Digitalmars-d
On 12/28/2015 09:57 AM, Jack Stouffer wrote: On Monday, 28 December 2015 at 11:13:57 UTC, Martin Nowak wrote: On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: Voting has ended! Thanks to everyone who voted and reviewed. The final tally: Yes: 12 No: 0 Anything left to

Re: How to config the GDC on linux target for ARM linux?

2015-12-28 Thread FrankLike via Digitalmars-d-learn
On Monday, 28 December 2015 at 15:23:19 UTC, FrankLike wrote: New Answer: I've gotten the answer: use the difference 'gcc' for c code. ---For x86_64: #! /bin/sh dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d mcp23017.d mcp23s08.d mcp23s17.d

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: Any idea what i am doing wrong?

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Robert burner Schadek via Digitalmars-d
On Monday, 28 December 2015 at 15:52:09 UTC, Robert burner Schadek wrote: fix Yes: 11 Yes: Conditional: 1 <<-- fix here No: 0 Please do not merge this with the current state of documentation.

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread TheDGuy via Digitalmars-d-learn
Get used to it :) Unfortunately, DMD is not emitting the best debug information. The program flow is correct, but the line info is not, that's why the execution step will not be triggered in the real location of the source code. The simplest example is this: import std.stdio; void foo(int

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Andrei Alexandrescu via Digitalmars-d
On 12/28/2015 04:43 PM, Robert burner Schadek wrote: On Monday, 28 December 2015 at 18:39:47 UTC, Ilya Yaroshenko wrote: Have you read the latest changes? http://forum.dlang.org/post/djgkkrdufycyjhpma...@forum.dlang.org I have. The problem with the doc is that is describes what it can be

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 28 December 2015 at 21:43:35 UTC, Robert burner Schadek wrote: On Monday, 28 December 2015 at 18:39:47 UTC, Ilya Yaroshenko wrote: Have you read the latest changes? http://forum.dlang.org/post/djgkkrdufycyjhpma...@forum.dlang.org I have. The problem with the doc is that is

Re: Better docs for D (WIP)

2015-12-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
One more note: I salute the initiative of another doc generator and read the motivation behind it. Yet I do think it's worth asking ourselves two questions: (a) is the new proposed system differentiated enough to justify its existence and motivate others to join in? (b) are the existent

Re: Better docs for D (WIP)

2015-12-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 12/28/15 3:15 PM, Adam D. Ruppe wrote: http://dpldocs.info/ Inspired by the php docs, I also have it able to search direct from a URL. Click this: http://dpldocs.info/findSkip The signature proper is nice. The formatting of "&&" in the constraint is inconsistent, but I guess that's a

Re: Better docs for D (WIP)

2015-12-28 Thread Rikki Cattermole via Digitalmars-d-announce
On 29/12/15 12:05 PM, Andrei Alexandrescu wrote: One more note: I salute the initiative of another doc generator and read the motivation behind it. Yet I do think it's worth asking ourselves two questions: (a) is the new proposed system differentiated enough to justify its existence and

Re: Is it possible to elegantly create a range over a binary heap?

2015-12-28 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 28 December 2015 at 14:05:42 UTC, Ivan Kazmenko wrote: 1. You can find maximum, then second maximum, then third maximum and so on - each in constant memory and linear time. So, if performance is somehow not an issue, there is a way to do it @nogc but in N^2 operations. That's

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 28 December 2015 at 15:52:09 UTC, Robert burner Schadek wrote: On Monday, 28 December 2015 at 07:11:00 UTC, Jack Stouffer wrote: The final tally: Yes: 12 No: 0 This is not true, my yes was conditional and the documentation is still weak. So it is Yes: 11 Yes: Conditional No: 0

Re: DLanguage IntelliJ plugin released

2015-12-28 Thread Kingsley via Digitalmars-d-announce
On Friday, 25 December 2015 at 17:43:06 UTC, Kingsley wrote: On Friday, 25 December 2015 at 16:55:32 UTC, Bogdan wrote: On Friday, 25 December 2015 at 15:28:23 UTC, Pradeep Gowda wrote: On Friday, 25 December 2015 at 15:04:42 UTC, eyveer wrote: On Friday, 25 December 2015 at 13:57:52 UTC,

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Monday, 28 December 2015 at 18:33:16 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: On

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: On

Re: Better watch out! D runs on watchOS!

2015-12-28 Thread Dan Olson via Digitalmars-d-announce
Jacob Carlborg writes: > > Would it be possible to bypass LLVM and do the thread local specific > parts in LDC? That is Plan B.2

Re: Article on D for CVu or Overload

2015-12-28 Thread Ali Çehreli via Digitalmars-d
On 12/28/2015 10:14 AM, Jakob Jenkov wrote: On Monday, 28 December 2015 at 11:40:50 UTC, Russel Winder wrote: Is anyone up for writing an article or two on D for publication in the CVu or Overload journals as an act of D-efiance? There are to be a 1- day D workshop and a keynote session t the

Better docs for D (WIP)

2015-12-28 Thread Adam D. Ruppe via Digitalmars-d-announce
Last week, I posted in the general forum my dream for better D docs. Today, about 4 days of work later, I'm about 1/4 of the way there. Still a long way to go, but I've already come so far. First, behold my old dpldocs.info site. Yes, it is still up and now it ties into my new docs! You can

Re: Better watch out! D runs on watchOS!

2015-12-28 Thread Dan Olson via Digitalmars-d-announce
Joakim writes: > > Thanks for the detailed answer; I'm sure this will now become the > definitive answer online. I've gone googling for technical info only > to sometimes be directed back to a post in these D forums. :) Me too! Its very funny when that happens. > Time to

Re: Variable below zero but if statement doesn't grab?

2015-12-28 Thread jkpl via Digitalmars-d-learn
On Monday, 28 December 2015 at 19:22:00 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:33:16 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote: On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: On

Re: Links to the wiki for Phobos examples/tips and tricks?

2015-12-28 Thread Rikki Cattermole via Digitalmars-d
On 29/12/15 3:23 PM, bachmeier wrote: Is it acceptable to post examples/tips and tricks in the wiki, and then link to them in the official Phobos documentation? What I have in mind is adding to the documentation of a Phobos function See Also: The [wiki](link) for additional documentation. This

Re: Better docs for D (WIP)

2015-12-28 Thread Andrei Alexandrescu via Digitalmars-d-announce
Rikki Cattermole wrote: > On 29/12/15 12:05 PM, Andrei Alexandrescu wrote: >> One more note: I salute the initiative of another doc generator and read >> the motivation behind it. Yet I do think it's worth asking ourselves two >> questions: >> >> (a) is the new proposed

Re: Implementing a Programming Language in D: Lexical Analysis

2015-12-28 Thread Ali Çehreli via Digitalmars-d-announce
On 12/28/2015 04:28 PM, Walter Bright wrote: > https://www.reddit.com/r/programming/comments/3ykko7/implementing_a_programming_language_in_d_lexical/ Although the author does not use many D idioms, I've just learned (re-learned?) anonymous enums from that code. I've realized that with a

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 00:50:49 UTC, Stefan Koch wrote: so could it be used to produce D output instead of C ? Could it be used to parse PHP as input ? That would probably require implementing a vm. fancyPars can certainly be used to create a php parser but a straightforward

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Monday, 28 December 2015 at 16:41:30 UTC, Stefan Koch wrote: On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output. It is a simple one-pass (okay 2 pass if you count the

Poodinis 6.0.0 released

2015-12-28 Thread Mike Bierlee via Digitalmars-d-announce
Poodinis 6.0.0 has been released! Poodinis is a dependency injection framework for the D programming language. It is inspired by the Spring Framework and Hypodermic IoC container for C++. Poodinis supports registering and resolving classes either by concrete type or interface. Automatic

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 28 December 2015 at 23:40:31 UTC, Nick B wrote: On Monday, 28 December 2015 at 16:41:30 UTC, Stefan Koch wrote: On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output.

Implementing a Programming Language in D: Lexical Analysis

2015-12-28 Thread Walter Bright via Digitalmars-d-announce
http://blog.felixangell.com/implementing-a-programming-language-in-d-part-1/ https://www.reddit.com/r/programming/comments/3ykko7/implementing_a_programming_language_in_d_lexical/ https://news.ycombinator.com/item?id=10802610 (Go through the front page, not this link, or your votes won't

Re: Voting For std.experimental.ndslice

2015-12-28 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 28 December 2015 at 22:39:45 UTC, Ilya Yaroshenko wrote: On Monday, 28 December 2015 at 21:43:35 UTC, Robert burner Schadek wrote: [...] Agreed 1. First paragraph was replaced by your variant. 2. Binary representation was moved to Slice type documentation. 3. Small "Quick Start"

Re: Implementing a Programming Language in D: Lexical Analysis

2015-12-28 Thread Ali Çehreli via Digitalmars-d-announce
On 12/28/2015 09:57 PM, Ali Çehreli wrote: > anonymous enums Wow! They are pretty weird: 1) The second form of the AnonymousEnumDeclaration spec is redundant, right? http://dlang.org/spec/enum.html#AnonymousEnumDeclaration enum : EnumBaseType { EnumMembers } enum { EnumMembers }