Re: Phobos colour module?

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 09:19:46 UTC, John Colvin wrote: What's wrong with old-fashioned `Fast` postfixes on entry points where a faster but less precise method is available? Or template arguments like std.algorithm.SortStrategy? If this is for phobos it should follow a common model.

Re: DMD's lexer available on code.dlang.org

2015-01-06 Thread Vadim Lopatin via Digitalmars-d-announce
On Sunday, 4 January 2015 at 13:09:42 UTC, Rikki Cattermole wrote: On 5/01/2015 2:07 a.m., Daniel Murphy wrote: I've created a dub package for the D version of DMD's lexer, generated automatically from the C++ source. github: https://github.com/yebblies/ddmd dub:

Re: Questions about TDPL book

2015-01-06 Thread Joakim via Digitalmars-d
On Tuesday, 6 January 2015 at 03:20:27 UTC, weaselcat wrote: Is it still worth buying TDPL since it's almost 5 years old? I realize classics like KR C are near timeless, but D has seen a lot of changes. Has the ebook version been updated at all(i.e, with the errata?) How is the physical

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Tuesday, 6 January 2015 at 09:11:10 UTC, bearophile wrote: Dominikus Dittes Scherkl: Yeah. I wish it would be possilbe to do something like: alias @smooth = @save pure nothrow @nogc; and then use this instead. You most probably want something more principled instead, as the algebra of

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 09:11:10 UTC, bearophile wrote: You most probably want something more principled instead, as the algebra of effects of Koka language (http://rise4fun.com/Koka/tutorial/guide ) or something even better. Thanks for sharing the link. I had not heard of Koka before.

Behavioural types

2015-01-06 Thread via Digitalmars-d
Since D is experimenting with behavioural typing, it might be nice to get an overview of the state of the art. Which is what survey papers are for: http://www.behavioural-types.eu/publications/WG1-State-of-the-Art.pdf http://www.behavioural-types.eu/publications/WG2-State-of-the-Art.pdf

Re: Phobos colour module?

2015-01-06 Thread via Digitalmars-d
On Monday, 5 January 2015 at 23:39:17 UTC, Manu via Digitalmars-d wrote: I'm finding myself at a constant struggle between speed and maximizing-precision. I feel like a lib should maximise precision, but the trouble then is that it's not actually useful to me... If you create a pixel

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Monday, 5 January 2015 at 22:04:58 UTC, Steven Schveighoffer wrote: Making some way to bundle attributes, or be able to negate currently one-way attributes would go a long way IMO. Yeah. I wish it would be possilbe to do something like: alias @smooth = @save pure nothrow @nogc; and then

Re: Phobos colour module?

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 08:52:06 UTC, Ola Fosheim Grøstad wrote: - with negative values you can then have a unique representation of a single colour in CIE (the theoretical base for RGB that was developed in the 1930s). Actually, what I refer to here is a model of how humans perceive

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread bearophile via Digitalmars-d
Dominikus Dittes Scherkl: Yeah. I wish it would be possilbe to do something like: alias @smooth = @save pure nothrow @nogc; and then use this instead. You most probably want something more principled instead, as the algebra of effects of Koka language

Re: @api: One attribute to rule them All

2015-01-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 January 2015 at 09:12:43 UTC, John Colvin wrote: On Monday, 5 January 2015 at 21:15:00 UTC, Zach the Mystic wrote: Hello everybody. My name is Zach, and I have a suggestion for the improvement of D. I've been looking at the following stalled pull request for a while now:

Re: @api: One attribute to rule them All

2015-01-06 Thread John Colvin via Digitalmars-d
On Monday, 5 January 2015 at 21:15:00 UTC, Zach the Mystic wrote: Hello everybody. My name is Zach, and I have a suggestion for the improvement of D. I've been looking at the following stalled pull request for a while now: https://github.com/D-Programming-Language/dmd/pull/1877 ...in which

Re: Phobos colour module?

2015-01-06 Thread John Colvin via Digitalmars-d
On Monday, 5 January 2015 at 23:39:17 UTC, Manu via Digitalmars-d wrote: On 6 January 2015 at 04:11, via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 5 January 2015 at 16:08:27 UTC, Adam D. Ruppe wrote: Yeah, in my misc repo, there used to be stand along image.d and

Re: DlangUI project update

2015-01-06 Thread Vadim Lopatin via Digitalmars-d-announce
On Saturday, 27 December 2014 at 06:32:17 UTC, Suliman wrote: Vadim, could you add in file path in browsing window ability to click on any needed segment of path and move to it level. I mean system like does in Windows 7 in when you can move to D:\code\foo\bar\baz, and after click on foo move

Re: @api: One attribute to rule them All

2015-01-06 Thread ketmar via Digitalmars-d
On Mon, 05 Jan 2015 21:14:58 + Zach the Mystic via Digitalmars-d digitalmars-d@puremagic.com wrote: Hello everybody. My name is Zach, and I have a suggestion for the improvement of D. I've been looking at the following stalled pull request for a while now:

Re: decodeReverse

2015-01-06 Thread Jakob Ovrum via Digitalmars-d
On Tuesday, 6 January 2015 at 06:43:13 UTC, HaraldZealot wrote: For my particular project (it binds with something like finite state machine) I will write some counterpart of decode function from std.utf. Future function will decode string backward, return dchar and change index passed by

Re: decodeReverse

2015-01-06 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, January 06, 2015 08:09:57 Jakob Ovrum via Digitalmars-d wrote: On Tuesday, 6 January 2015 at 06:43:13 UTC, HaraldZealot wrote: For my particular project (it binds with something like finite state machine) I will write some counterpart of decode function from std.utf. Future

Re: For the lulz: ddmd vs libdparse lexer timings

2015-01-06 Thread Daniel Murphy via Digitalmars-d
Brian Schott wrote in message news:bhmpbqutpimjxtbcs...@forum.dlang.org... Now with more copy-paste inlining! http://i.imgur.com/D5IAlvl.png I'm glad I could get this kind of speed up, but not happy with how ugly the changes were. Nice! How far would @forceinline go to getting the same

Re: An idea for commercial support for D

2015-01-06 Thread uri via Digitalmars-d
Hi, Your business model is flawed for a number of reasons. Firstly, companies make money from their own products, not paying staff to figure out which bug fixes/features to cherry pick for the tool chain. Secondly, no one makes money by locking out others when they themselves can be locked

Re: @api: One attribute to rule them All

2015-01-06 Thread Joseph Rushton Wakeling via Digitalmars-d
On Tuesday, 6 January 2015 at 03:29:39 UTC, Zach the Mystic wrote: A more likely scenario is that your library starts small enough not to need the @api attribute, then at some point it gets really, really huge. Then in one fell swoop you decide to @api: your whole file so that the public

Broken dlang traits page

2015-01-06 Thread Rikki Cattermole via Digitalmars-d
Just in case nobody knows about this. But the language docs for traits is broken. http://dlang.org/traits.html

Re: Any chance of a linux dtoh?

2015-01-06 Thread ketmar via Digitalmars-d-learn
On Tue, 06 Jan 2015 14:08:30 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I realize Walter has far better things to work on, but value of having a translation tool is considerable, since it opens up easy access to an enormous range of libraries. It is

Re: Any chance of a linux dtoh?

2015-01-06 Thread Dicebot via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 14:22:54 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 06 Jan 2015 14:08:30 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I realize Walter has far better things to work on, but value of having a translation tool is

Re: @api: One attribute to rule them All

2015-01-06 Thread Atila Neves via Digitalmars-d
tldr: I like what you're thinking, please can we have this. +1 Atila

Re: Phobos colour module?

2015-01-06 Thread Manu via Digitalmars-d
On 6 January 2015 at 19:31, via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 January 2015 at 09:19:46 UTC, John Colvin wrote: What's wrong with old-fashioned `Fast` postfixes on entry points where a faster but less precise method is available? Or template arguments like

Re: Any chance of a linux dtoh?

2015-01-06 Thread Dicebot via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 14:14:28 UTC, Laeeth Isharc wrote: On Tuesday, 6 January 2015 at 14:11:19 UTC, Dicebot wrote: dstep is your only realistic chance currently. htod is completely unmaintained, even on Windows. Please report any issues found with it in relevant issue tracker. I got

Re: decodeReverse

2015-01-06 Thread HaraldZealot via Digitalmars-d
I'm pretty sure that you basically have to do what strideBack does before you can decode a code point, so all decodeBack would do would be to do exactly what back already does for strings, which is to use strideBack followed by decode. - Jonathan M Davis I have to read more attentively

Re: An idea for commercial support for D

2015-01-06 Thread Joakim via Digitalmars-d
On Tuesday, 6 January 2015 at 12:05:34 UTC, uri wrote: Your business model is flawed for a number of reasons. Firstly, companies make money from their own products, not paying staff to figure out which bug fixes/features to cherry pick for the tool chain. Before you make such claims, you

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread Steven Schveighoffer via Digitalmars-d
On 1/6/15 1:48 AM, Walter Bright wrote: On 1/5/2015 2:04 PM, Steven Schveighoffer wrote: To give you an example of why that sucks, imagine that your accessor for member_x is nothrow, but your setter is not. This means you either make an exception, or you just split up obvious file-mates into

Re: I'll be presenting at NWCPP on Jan 21 at Microsoft

2015-01-06 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 5 January 2015 at 21:07:04 UTC, Walter Bright wrote: On 1/5/2015 5:31 AM, Laeeth Isharc wrote: Will audio be available afterwards? NWCPP usually will post the video afterwards. At a slight tangent, has anything more recent been written on the C++ interface? I understand it is

D bindings and high level wrapper for systemd journal

2015-01-06 Thread Laeeth Isharc via Digitalmars-d-announce
D Language bindings and high level wrapper for the systemd journal logging service (journalctl) https://github.com/Laeeth/d_sysdlog alpha status rather than grep /var/log/messages, systemd interface makes it easy to filter by field and period of interest. metadata is stored along with

Re: An idea for commercial support for D

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 13:34:59 UTC, Joakim wrote: Maybe a handful of FOSS zealots would leave, but the resulting commercially supported D would be so much better, they'd be swamped by the new people coming on board. :) If there is a market for a commercial version of D then I think

Re: Questions about TDPL book

2015-01-06 Thread Steven Schveighoffer via Digitalmars-d
On 1/5/15 10:20 PM, weaselcat wrote: Is it still worth buying TDPL since it's almost 5 years old? I realize classics like KR C are near timeless, but D has seen a lot of changes. I would still recommend buying. TDPL purposely was very scant on phobos because it was constantly changing. The

Any chance of a linux dtoh?

2015-01-06 Thread Laeeth Isharc via Digitalmars-d-learn
I realize Walter has far better things to work on, but value of having a translation tool is considerable, since it opens up easy access to an enormous range of libraries. It is not much work to do the translation oneself, but in the world as it is small frictions cumulatively have large

Re: Any chance of a linux dtoh?

2015-01-06 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 14:11:19 UTC, Dicebot wrote: dstep is your only realistic chance currently. htod is completely unmaintained, even on Windows. Please report any issues found with it in relevant issue tracker. I got it the wrong way around - yes, I meant htod. I have reported the

Re: Any chance of a linux dtoh?

2015-01-06 Thread Dicebot via Digitalmars-d-learn
dstep is your only realistic chance currently. htod is completely unmaintained, even on Windows. Please report any issues found with it in relevant issue tracker.

Re: DMD's lexer available on code.dlang.org

2015-01-06 Thread Dicebot via Digitalmars-d-announce
It will be really cool when same package will be reused by DMD itself :P

Re: DMD's lexer available on code.dlang.org

2015-01-06 Thread Joakim via Digitalmars-d-announce
On Tuesday, 6 January 2015 at 14:38:21 UTC, Dicebot wrote: It will be really cool when same package will be reused by DMD itself :P I believe ddmd has passed all tests on most platforms for a long time now, so there is nothing stopping those building from source from using ddmd now. :)

Re: @api: One attribute to rule them All

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 12:07:21 UTC, Joseph Rushton Wakeling wrote: As a library writer, I don't think you can responsibly expect users to bear the burden of fixing undocumented breaking change. I agree, maybe just replace module with library. Also make module mandatory. It takes no

Re: For the lulz: ddmd vs libdparse lexer timings

2015-01-06 Thread David Nadlinger via Digitalmars-d
On Monday, 5 January 2015 at 17:44:31 UTC, Daniel Murphy wrote: I think I've got a handle on this, sort of. I've moved the declaration of __va_argsave into the glue layer, and added intrinsic detection for va_start/va_end/va_arg (the two-arg form). I've implemented them in the backend for

Re: Improving ddoc

2015-01-06 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 6 January 2015 at 15:00:06 UTC, Dicebot wrote: Wait what? It isn't formatted as hX as far as I can see. How exactly this is supposed to work? That makes a DDOC_SECTION. The default macro is DDOC_SECTION_H = $(B $0)$(BR) DDOC_SECTION = $0$(BR)$(BR) But if these macros were

Re: Phobos colour module?

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 14:28:52 UTC, Manu via Digitalmars-d wrote: I think an important facet of 'fast' image processing is in the loop that processes batches of pixels, rather than in the api that processes a single pixel. I've gone with accurate; that's the strategy throughout phobos.

Re: Improving ddoc

2015-01-06 Thread Dicebot via Digitalmars-d
On Thursday, 1 January 2015 at 21:52:59 UTC, Walter Bright wrote: On 1/1/2015 7:09 AM, Dicebot wrote: headers 3. === headers: Wait what? It isn't formatted as hX as far as I can see. How exactly this is supposed to work?

Re: Improving ddoc

2015-01-06 Thread via Digitalmars-d
On Tuesday, 6 January 2015 at 15:13:00 UTC, Adam D. Ruppe wrote: But if these macros were better, it could be a headerhx$0/hx/header where the x is the right level. The header element belongs in a sectioning element and the first heading in each section should be h1: sectionh1.../h1

Re: http://wiki.dlang.org/DIP25

2015-01-06 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 6 January 2015 at 06:48:34 UTC, Walter Bright wrote: One of the most important reasons why unittests are so successful is that you can just plop the code that tests a function right next to it. So easy to find the code, so easy to maintain when you change the target of the test.

Re: Kill as soon as possible the special case handling of tuples in foreach

2015-01-06 Thread deadalnix via Digitalmars-d
Tuple unpacking is necessary for things like bypair. Why not unpack consistently ?

Re: An idea for commercial support for D

2015-01-06 Thread Zach the Mystic via Digitalmars-d
On Sunday, 4 January 2015 at 08:31:23 UTC, Joakim wrote: This is an idea I've been kicking around for a while, and given the need for commercial support for D, would perhaps work well here. The notion is that individual developers could work on patches to fix bugs or add features to

Re: import std.random fails

2015-01-06 Thread ixid via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 18:37:25 UTC, Rene Zwanenburg wrote: On Monday, 5 January 2015 at 15:59:17 UTC, ixid wrote: On Friday, 31 August 2012 at 22:52:13 UTC, Jonathan M Davis wrote: On Saturday, September 01, 2012 00:40:25 deed wrote: import std.random void main() {} --- results

Re: Phobos colour module?

2015-01-06 Thread H. S. Teoh via Digitalmars-d
On Tue, Jan 06, 2015 at 10:44:38AM -0800, Walter Bright via Digitalmars-d wrote: On 1/6/2015 10:07 AM, H. S. Teoh via Digitalmars-d wrote: Implementing union painting in CTFE would singlehandedly solve (almost?) all of std.math CTFE issues, AFAICT. I thought it did allow painting of the form

Re: decodeReverse

2015-01-06 Thread HaraldZealot via Digitalmars-d
On Tuesday, 6 January 2015 at 16:58:24 UTC, Andrei Alexandrescu wrote: On 1/5/15 10:43 PM, HaraldZealot wrote: For my particular project (it binds with something like finite state machine) I will write some counterpart of decode function from std.utf. Future function will decode string

Re: Phobos colour module?

2015-01-06 Thread H. S. Teoh via Digitalmars-d
On Tue, Jan 06, 2015 at 06:28:03PM +, via Digitalmars-d wrote: On Tuesday, 6 January 2015 at 18:09:19 UTC, H. S. Teoh via Digitalmars-d wrote: It's the non-integral exponents that require the currently-non-CTFE-able code, right? http://en.wikipedia.org/wiki/Gamma_correction Right,

Re: Phobos colour module?

2015-01-06 Thread Walter Bright via Digitalmars-d
On 1/6/2015 10:07 AM, H. S. Teoh via Digitalmars-d wrote: Implementing union painting in CTFE would singlehandedly solve (almost?) all of std.math CTFE issues, AFAICT. I thought it did allow painting of the form *(cast(T*)t).

Re: For the lulz: ddmd vs libdparse lexer timings

2015-01-06 Thread Brian Schott via Digitalmars-d
On Tuesday, 6 January 2015 at 12:39:27 UTC, Daniel Murphy wrote: Nice! How far would @forceinline go to getting the same results without the ugly? @forceinline would solve all of it. I don't expect you to do this, but what features would ddmd's lexer need before you could entirely replace

Re: An idea for commercial support for D

2015-01-06 Thread anonymous via Digitalmars-d
On Tuesday, 6 January 2015 at 06:14:37 UTC, Joakim wrote: On Monday, 5 January 2015 at 22:51:25 UTC, Joseph Rushton Wakeling via Digitalmars-d wrote: [...] Most commercial adopters are going to consider it very important to have a support option that says, If you have a serious blocker, you

Re: DMD's lexer available on code.dlang.org

2015-01-06 Thread Walter Bright via Digitalmars-d-announce
On 1/6/2015 1:37 AM, Vadim Lopatin wrote: I have a bit similar project - lexer for D written in D. Written just based on Lexical documentation page. https://github.com/buggins/ddc Trying make it fast and to do as few memory allocations as possible. Should also make it available on

We need a DConf 2015 logo

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d
The DConf 2015 dates have been confirmed and the site will be soon up - see preview at http://erdani.com/d/bvbvuntf/. Please contribute with a DConf logo image. Also any design updates for the site would be welcome, Thanks! Andrei

Re: We need a DConf 2015 logo

2015-01-06 Thread Steven Schveighoffer via Digitalmars-d
On 1/6/15 2:27 PM, Andrei Alexandrescu wrote: The DConf 2015 dates have been confirmed and the site will be soon up - see preview at http://erdani.com/d/bvbvuntf/. Please contribute with a DConf logo image. Also any design updates for the site would be welcome, Thanks! I plan to submit my

Re: Kill as soon as possible the special case handling of tuples in foreach

2015-01-06 Thread bearophile via Digitalmars-d
deadalnix: Tuple unpacking is necessary for things like bypair. Why not unpack consistently ? I'm all for unpacking consistently, but to reach consistency you first have to break something, the iteration on arrays or the iteration on ranges of tuples. The first is documented and it's

Re: Questions about TDPL book

2015-01-06 Thread weaselcat via Digitalmars-d
On Tuesday, 6 January 2015 at 09:51:13 UTC, Joakim wrote: I don't know if the ebook is updated, but the physical quality of the softcover print book is not good. Mine fell apart about halfway through reading it, it's in 3-4 chunks now. I wish there had been a pdf version available at the

Re: import std.random fails

2015-01-06 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 20:26:25 UTC, ixid wrote: Dmd latest non-beta, with the latest VisualD. Debug build. Debug build and no additional or non default settings. Hmm.. Did you verify that the D installation directory was completely empty after uninstalling? Does VisualD have some

Re: DConf 2015?

2015-01-06 Thread Chuck Allison via Digitalmars-d
Just so you all know, DConf 2015 is scheduled when Utah is it's most beautiful. Not too hot, everything green, perfect for hiking, whatever. If you have never been to Southern Utah before, you might want to consider scheduling some time to see the National Parks and other like places before or

Re: An idea for commercial support for D

2015-01-06 Thread anonymous via Digitalmars-d
On Tuesday, 6 January 2015 at 19:46:51 UTC, Joakim wrote: On Tuesday, 6 January 2015 at 19:06:27 UTC, anonymous wrote: [...] I don't know of any commercial support model where you only pay for the fixes you need at any given moment and the fixes that others paid for are provided to you for

DConf 2015 Call for Submissions is now open

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d-announce
Hello, Exciting times! DConf 2015 will take place May 27-29 2015 at Utah Valley University in Orem, UT. The call for submissions is now open at http://dconf.org. Please mind the submission deadline: February 27, 2015. We are hoping to build a strong program with the help of D established

Re: DConf 2015 Call for Submissions is now open

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/6/15 3:24 PM, Andrei Alexandrescu wrote: [snip] http://www.reddit.com/r/programming/comments/2rkg7i/call_for_submissions_the_d_programming_language/ https://twitter.com/D_Programming/status/552607568195883009 Andrei

Re: Copy only frame pointer between objects of nested struct

2015-01-06 Thread Artur Skawina via Digitalmars-d-learn
On 01/06/15 23:14, Peter Alexander via Digitalmars-d-learn wrote: auto foo(T)(T a) { T b; // Error: cannot access frame pointer of main.X b.data[] = 1; return b; } void main() { struct X { this(int) {} int[4096] data; } foo(X()); } Note

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread weaselcat via Digitalmars-d
On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei Is it intentional for all of the stdc pages to be empty?

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Brad Anderson via Digitalmars-d
On Wednesday, 7 January 2015 at 00:06:28 UTC, Danny wrote: http://dlang.org/library/core/math/ldexp.html Compute n * 2⊃ Huh? Weird. It's `Compute n * 2$(SUP exp)` in the source[1]. SUP is a locally defined macro. Maybe ddox doesn't like local macros? 1.

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Danny via Digitalmars-d
http://dlang.org/library/core/math/ldexp.html Compute n * 2⊃ Huh?

Re: Phobos colour module?

2015-01-06 Thread via Digitalmars-d
For inspiration: http://golang.org/pkg/image/color/

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Brian Schott via Digitalmars-d
On Tuesday, 6 January 2015 at 23:44:30 UTC, weaselcat wrote: Is it intentional for all of the stdc pages to be empty? I think it's intentional that they don't duplicate the documentation for those headers, but we probably should add links to pages that document the C headers.

Re: DConf 2015 Call for Submissions is now open

2015-01-06 Thread Adam D. Ruppe via Digitalmars-d-announce
Reddit downvotes seem to be the most arbitrary things on the Internet. I don't understand them at all.

Re: Phobos colour module?

2015-01-06 Thread Manu via Digitalmars-d
On 7 January 2015 at 09:22, via Digitalmars-d digitalmars-d@puremagic.com wrote: For inspiration: http://golang.org/pkg/image/color/ Umm, is there something about this that you like? This looks... really terrible.

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Robert burner Schadek via Digitalmars-d
std.string looks fine only the indexOfNeither and lastIndexOfNeither are missing

Re: DConf 2015?

2015-01-06 Thread Chuck Allison via Digitalmars-d
No tie required, Adam (you'd be the only one :-). Chuck On Tuesday, 30 December 2014 at 03:47:17 UTC, Adam D. Ruppe wrote: On Tuesday, 30 December 2014 at 03:38:08 UTC, Walter Bright wrote: It'll be at Utah Valley University: OOh, I might not be the only person there wearing a tie this

Re: Error: function declaration without return type.

2015-01-06 Thread Suliman via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 21:19:38 UTC, bearophile wrote: Suliman: void foo() { writeln(test); writeln(mystring); } foo(); } I guess you have to remove that line. Bye, bearophile Why? I can't call function in instance of class?

Re: == operator

2015-01-06 Thread Jonathan Marler via Digitalmars-d
I've create a PR for a templated opEquals here (https://github.com/D-Programming-Language/druntime/pull/1087). Currently it will not build without some changes in phobos, PR here (https://github.com/D-Programming-Language/phobos/pull/2848). Using the new templated opEquals it fixed the

Re: An idea for commercial support for D

2015-01-06 Thread uri via Digitalmars-d
On Tuesday, 6 January 2015 at 13:34:59 UTC, Joakim wrote: Before you make such claims, you should probably think about them a little bit first. Please tell me one company that does not buy outside commercial software which they then use to build their own products. Some companies will want

What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Stijn via Digitalmars-d-learn
After writing a bootloader and getting it to jump to a Hello World kernel written in assembly, I want to give it a go with a kernel written in D. I'm using GDC because I didn't have much luck with making DMD skip the D runtime and standard libs. Starting with this code: void main() { }

Re: What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Adam D. Ruppe via Digitalmars-d-learn
I showed how to do it in my book using dmd. Here's the code: http://arsdnet.net/dcode/book/chapter_11/01/ Explanation is in chapter 11 here: https://www.packtpub.com/application-development/d-cookbook In the appendix, I also did ARM with gdc: http://arsdnet.net/dcode/book/appendix_a/01/ The

Ready to make page-per-item ddocs the default?

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d
Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei

Re: How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

2015-01-06 Thread Martin Drašar via Digitalmars-d-learn
Dne 6.1.2015 v 18:15 FrankLike via Digitalmars-d-learn napsal(a): How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows? If you build a exe ,such as which can get Data from DataBase,when you modify the exe's extension to 'txt', and you

Re: std.experimental.logger formal review round 3

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d
On 1/6/15 8:51 AM, Robert burner Schadek wrote: recent updates: * Martins CT log function disabling (thanks Martin) * new thread local indirection Logger between free standing log functions and program global Logger * more documentation * some @trusted have been remove (thanks Dicebot) * local

Copy only frame pointer between objects of nested struct

2015-01-06 Thread Peter Alexander via Digitalmars-d-learn
Consider: auto foo(T)(T a) { T b; // Error: cannot access frame pointer of main.X b.data[] = 1; return b; } void main() { struct X { this(int) {} int[4096] data; } foo(X()); } Note the error is because you

Re: An idea for commercial support for D

2015-01-06 Thread Joakim via Digitalmars-d
On Tuesday, 6 January 2015 at 19:06:27 UTC, anonymous wrote: On Tuesday, 6 January 2015 at 06:14:37 UTC, Joakim wrote: On Monday, 5 January 2015 at 22:51:25 UTC, Joseph Rushton Wakeling via Digitalmars-d wrote: [...] Most commercial adopters are going to consider it very important to have a

Re: DConf 2015?

2015-01-06 Thread CraigDillabaugh via Digitalmars-d
On Tuesday, 6 January 2015 at 21:05:57 UTC, Chuck Allison wrote: Just so you all know, DConf 2015 is scheduled when Utah is it's most beautiful. Not too hot, everything green, perfect for hiking, whatever. If you have never been to Southern Utah before, you might want to consider scheduling

Re: Error: function declaration without return type.

2015-01-06 Thread bearophile via Digitalmars-d-learn
Suliman: void foo() { writeln(test); writeln(mystring); } foo(); } I guess you have to remove that line. Bye, bearophile

Error: function declaration without return type.

2015-01-06 Thread Suliman via Digitalmars-d-learn
class Test { string mystring; this(string mystring) { this.mystring = mystring; } void foo() { writeln(test); writeln(mystring); } foo(); } source\app.d(303): Error: function declaration

Re: Error: function declaration without return type.

2015-01-06 Thread Martin Drašar via Digitalmars-d-learn
Dne 6.1.2015 v 22:25 Suliman via Digitalmars-d-learn napsal(a): On Tuesday, 6 January 2015 at 21:19:38 UTC, bearophile wrote: Suliman: void foo() { writeln(test); writeln(mystring); } foo(); } I guess you have to remove that line. Bye, bearophile Why? I

Re: @api: One attribute to rule them All

2015-01-06 Thread Elie Morisse via Digitalmars-d
On Tuesday, 6 January 2015 at 12:07:21 UTC, Joseph Rushton Wakeling wrote: I think you have missed the point I was making. If you have final-by-default for classes, and you accidentally forget to tag a public method as 'virtual', then you can fix that without breaking any downstream user's

Re: What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Stijn via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 22:41:06 UTC, Adam D. Ruppe wrote: I showed how to do it in my book using dmd. Here's the code: http://arsdnet.net/dcode/book/chapter_11/01/ I've just bought the book, I'll dive right into it :) Thanks!

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Walter Bright via Digitalmars-d
On 1/6/2015 2:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. The table: http://dlang.org/phobos/std_math.html#.cos got lost: http://dlang.org/library/std/math/cos.html Also, the 2$(SUP 64).

Re: For the lulz: ddmd vs libdparse lexer timings

2015-01-06 Thread David Nadlinger via Digitalmars-d
On Tuesday, 6 January 2015 at 15:42:22 UTC, Daniel Murphy wrote: Yes, but __va_argsave is declared in the frontend, which is unnecessary. It was easy enough to make the glue layer reserve the right number of bytes for varargs functions. I agree. Walter said that he didn't manage to implement

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d
On 1/6/15 4:42 PM, Brad Anderson wrote: On Wednesday, 7 January 2015 at 00:06:28 UTC, Danny wrote: http://dlang.org/library/core/math/ldexp.html Compute n * 2⊃ Huh? Weird. It's `Compute n * 2$(SUP exp)` in the source[1]. SUP is a locally defined macro. Maybe ddox doesn't like local macros?

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Andrei Alexandrescu via Digitalmars-d
On 1/6/15 4:26 PM, Robert burner Schadek wrote: std.string looks fine only the indexOfNeither and lastIndexOfNeither are missing Could you please fix -- thanks! -- Andrei

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Steven Schveighoffer via Digitalmars-d
On 1/6/15 5:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. std.algorithm has many of the descriptions showing samples. Also, I know the table at the top is to make things easier for standard ddoc,

Re: We need a DConf 2015 logo

2015-01-06 Thread Walter Bright via Digitalmars-d
On 1/6/2015 11:37 AM, Steven Schveighoffer wrote: I plan to submit my talk on 2/27 at 23:59:59.991 PST. I hope that's ok. We'd prefer it was before 2/27 at 23:59:59.989 PST

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Walter Bright via Digitalmars-d
On 1/6/2015 2:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. In: http://dlang.org/library/std/algorithm/make_index.html if you click on the 'forward' link, it takes you to something quite

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Paul O'Neil via Digitalmars-d
On 01/06/2015 05:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei On that page itself, the descriptions for at least std.regex and std.uni include the headers (e.g Intro, Overview) from

Re: An idea for commercial support for D

2015-01-06 Thread Joseph Rushton Wakeling via Digitalmars-d
On 06/01/15 23:32, uri via Digitalmars-d wrote: The dmd backend is not under an OSS license, why haven't they left? I suspect there are not very many of the type of people you're talking about in the D community. It's possible that you're right but I don't see it happening. The backend

Re: Ready to make page-per-item ddocs the default?

2015-01-06 Thread Walter Bright via Digitalmars-d
On 1/6/2015 2:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Looks nice! And will provide motivation to fix a lot of the under-documented functions.

  1   2   >