Rename sloppy "Install .exe"
The "Install .exe" on the main page looks sloppy to me. My brain wants to read it as "Install.exe" and wonders why there's a space before the dot. What the author actually meant is probably "Installation executable". That's "The Button" on the main D page, so I suggest we use a better title. How about "Download for Windows"? https://i.imgur.com/T5jdh7J.png
Re: newCTFE Status August 2017
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote: Hi Guys, At the end of July newCTFE became capable of executing the bf-ctfe[1] code and pass the tests. At 5 times the speed. While using 40% the memory. (It should be noted that the code generated by bf-ctfe is optimized to put as little pressure on ctfe as possible and tries to avoid the pathological paths which is why the speed improvement is not as high as some other code I showed before) [...] What about October 2017? I miss your frequent updates on newCTFE.
Re: newCTFE Status July 2017
On Saturday, 15 July 2017 at 17:43:04 UTC, Stefan Koch wrote: On Saturday, 15 July 2017 at 11:31:30 UTC, Tourist wrote: On Saturday, 15 July 2017 at 09:02:02 UTC, Stefan Koch wrote: On Saturday, 15 July 2017 at 07:50:28 UTC, Dmitry wrote: ... It would indeed be nice to have a GitHub issue (or similar) with progress checkboxes of what works, what's in progress, and what is yet to be done. here is the current newCTFE test. /UplinkCoder/dmd/blob/newCTFE_on_master/test/compilable/ctfeTest.d Eveything in there is supported by newCTFE . Modulo regressions. Nice, but it's not as clear, and doesn't specify what's left to be done.
Re: newCTFE Status July 2017
On Saturday, 15 July 2017 at 09:02:02 UTC, Stefan Koch wrote: On Saturday, 15 July 2017 at 07:50:28 UTC, Dmitry wrote: ... All I have are the CTFE status threads, where one can see what I consider a working feature set. What is planed is simple to state: "Re-implement the full functionality of the current ctfe-interpreter in the new IR-based system" It is hard for me to say in advance which features will be working, or indeed regress next. Since the interactions between features form a complex system which by definition is very hard to predict. ... It would indeed be nice to have a GitHub issue (or similar) with progress checkboxes of what works, what's in progress, and what is yet to be done.
Re: C++17 cannot beat D surely
On Saturday, 3 June 2017 at 19:12:46 UTC, Steven Schveighoffer wrote: On Saturday, 3 June 2017 at 17:32:41 UTC, Andrei Alexandrescu wrote: On 06/03/2017 01:03 PM, Russel Winder via Digitalmars-d wrote: Björn Fahller has done compile time sort in C++17 here http://playfulpr ogramming.blogspot.co.uk/2017/06/constexpr-quicksort-in-c17.html Surely D can do better? There is nothing to do really. Just use standard library sort. void main() { import std.algorithm, std.stdio; enum a = [ 3, 1, 2, 4, 0 ]; static auto b = sort(a); writeln(b); } I'd say this deserves a blog post but it would be too short. -Steve Title would be longer: Don't bring a knife to a gun fight especially if it is a knife made of a spoon, a toothbrush, duct tape and a shoelace
Re: [DIP1005] Unused imports in with(import) declarations: leave alone of flag as errors?
On Saturday, 24 December 2016 at 20:32:58 UTC, Andrei Alexandrescu wrote: Consider: with (import std.stdio) int fun(int x/*, File f*/) { // f.writeln("In: ", x); return x * x; } Such situations occur during refactorings and code evolution. The import is no longer used. Should the compiler flag that as an error, or leave it be? Andrei I'd use a warning, as with unused variables: the code is in an OK state when in the middle of a work (such as temporarily commenting a block), but less OK for a release. Also, Visual Studio highlights unused includes for C#, which is nice.
Don't truncate forum titles, use multiple lines instead
Please implement the suggestion. Thanks. http://imgur.com/X7fJLpF
Re: ddoc latex/formulas?
On Friday, 16 September 2016 at 19:57:38 UTC, Adam D. Ruppe wrote: On Friday, 16 September 2016 at 17:25:10 UTC, bachmeier wrote: You have to be able to build your documentation using DMD. eh, speak for yourself. Even Phobos is moving away from actually using dmd's doc generator! Bitter much? When you started Walter opined progress will soon stall and you will have an incomplete tool with no users to maintain. That is what happened. I appreciate your contributions to D and your overall decency as a human being. It makes it all the more surprising when you lose it all to stridently promote your tool and demean ddoc and ddox.
Re: Call to Action: making Phobos @safe
On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote: On 6/25/2016 3:44 PM, Walter Bright wrote: 4. Add @safe to the unittest A unittest that is deliberately unsafe should be annotated with @system. Meaning that any un-annotated unittest needs corrective action one way or the other. So why not declare @safe module-wise, and only add @system annotations where needed?
Re: Idea: swap with multiple arguments
On Monday, 23 May 2016 at 20:27:43 UTC, Steven Schveighoffer wrote: On 5/23/16 4:01 PM, Andrei Alexandrescu wrote: So swap(a, b) swaps the contents of a and b. This could be easily generalized to multiple arguments such that swap(a1, a2, ..., an) arranges things such that a1 gets an, a2 gets a1, a3 gets a2, etc. I do know applications for three arguments. Thoughts? -- Andrei One thing that screams out to me: this should be called rotate, not swap. -Steve Unless it swaps randomly :)
Re: The most enjoyable programming language I've ever used
Cool! On Sunday, 6 March 2016 at 14:19:21 UTC, Michalis wrote: Even though Java is still my favorite... For completeness... Do you have experience with C#?
Re: Just because it's a slow Thursday on this forum
On Monday, 8 February 2016 at 13:37:19 UTC, Andrei Alexandrescu wrote: On 2/7/16 7:11 PM, John Colvin wrote: alias dump = dumpTo!stdout; alias errDump = dumpTo!stderr; I'm hoping for something with a simpler syntax, a la dump!(stdout, "x") where stdout is optional. -- Andrei dump and fdump, just like printf and fprintf?
Re: I hate new DUB config format
On Monday, 30 November 2015 at 15:12:13 UTC, Sönke Ludwig wrote: The number of posts in this thread has multiple reasons, I'd argue that it's questionable to draw conclusions from that. Don't fool yourself. You made a mistake. That's fine. Own and fix it. Trying to make it look good is only making everything worse. Any idea in this group will have a few enthusiasts, but here you have the majority of the community complaining and the three leaders Walter, Andrei, Martin tell you clear as rain you are wrong. What and why are you arguing? Also, you need to contrast this to the amount of posts that complained about JSON, or those that would have happened for a different format choice. So let's add more. How does that logic work? Do you have an answer to the comment that the file format is dead?
Re: Beta D 2.069.0-b1
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at https://issues.dlang.org -Martin The "libcurl is now loaded dynamically" link is broken.
Re: Go, D, and the GC
On Saturday, 3 October 2015 at 07:49:35 UTC, Iain Buclaw wrote: On 2 Oct 2015 1:32 pm, "Tourist via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: On Friday, 2 October 2015 at 06:53:56 UTC, Iain Buclaw wrote: On 1 Oct 2015 11:35 am, "Tourist via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: [...] good GC. And they keep working on it, e.g. https://github.com/golang/proposal/blob/master/design/12800-sweep-free-alloc.md [...] https://github.com/golang/go/blob/master/LICENSE [...] Wouldn't it largely benefit D? I guess that I'm not the first one to think about it. Thoughts? Why do you think Go's GC might be better than D's? Is it because we lack the PR when changes/innovations are done to the GC in druntime? Do you *know* about anything new that has changed or improved in D's GC over the last two years? I'd be interested to hear about this. I know that it has the reputation of being of the simplest kind. Haven't looked at the code actually (and I wouldn't understand much even if I did). So I doubt you've looked at Go's GC code either. In which case it is a matter of PR which led to your suggestion. That's basically true, but isn't it a good approximation of the real state of affairs? My comment about the D GC being of the simple kind was something I've read here on the forums, not on e.g. Reddit or the Go forums, so it's probably approximately true (why would you falsely bash yourself?). And Google, being a huge company, can invest a lot in Go, which includes the GC, and the fact that there are articles about its improvements here and there suggests that they do invest a lot.
Re: Go, D, and the GC
On Friday, 2 October 2015 at 06:53:56 UTC, Iain Buclaw wrote: On 1 Oct 2015 11:35 am, "Tourist via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: [...] good GC. And they keep working on it, e.g. https://github.com/golang/proposal/blob/master/design/12800-sweep-free-alloc.md [...] https://github.com/golang/go/blob/master/LICENSE [...] Wouldn't it largely benefit D? I guess that I'm not the first one to think about it. Thoughts? Why do you think Go's GC might be better than D's? Is it because we lack the PR when changes/innovations are done to the GC in druntime? Do you *know* about anything new that has changed or improved in D's GC over the last two years? I'd be interested to hear about this. I know that it has the reputation of being of the simplest kind. Haven't looked at the code actually (and I wouldn't understand much even if I did).
Go, D, and the GC
Hi Guys, I know that Go invested many time and resources in an implementation of a good GC. And they keep working on it, e.g. https://github.com/golang/proposal/blob/master/design/12800-sweep-free-alloc.md I also see that the implementation is licensed as BSD, as far as I see: https://github.com/golang/go/blob/master/LICENSE Question: is it possible to make a D compiler/runtime that uses Go's GC? Wouldn't it largely benefit D? I guess that I'm not the first one to think about it. Thoughts?
Re: Pathing in the D ecosystem is generally broken (at least on windows)
On Sunday, 27 September 2015 at 06:34:29 UTC, Walter Bright wrote: On 9/26/2015 10:20 AM, Brad Anderson wrote: Just a little aside tip, Windows search these days is actually really excellent for settings like this (and programs). Windows Key + "env" + Enter is enough to get you to the dialog. Sorry, but the env dialog box is a sad joke, at least on Windows 7. 1. You cannot select any of the text in the dialog. 2. You cannot increase the size of the dialog. 3. Longer values end in "...". 4. You cannot edit so-called "System" environment variables. 5. You can scroll the list up or down, but not sideways! That all conspires to ensure that you CANNOT SEE what the longer values even are! It's pathetic. Back to the command line for me. http://www.rapidee.com/
Stroustrup is disappointed with D :(
"D disappointed me so much when it went the Java way". https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#to-do-unclassified-proto-rules It's something about virtual calls, but I didn't understand what he means. What does he mean?
Re: Moving forward with work on the D language and foundation
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. Facebook has impacted my career and life very positively, and I am grateful to have been a part of it for this long. The time has come for me, however, to fully focus on pushing D forward. As sorry I am for leaving a good and secure career behind, I am excited many times over about the great challenges and opportunities going forward. Next step with the D Language Foundation is a formal talk with the foundation's prospective attorney tomorrow. I hope to get the foundation in motion as soon as possible, though I'm told there are numerous steps to complete. I will keep this forum posted about progress. I'm also glad to announce that the D Language Foundation already has a donor - I have decided to contribute my books' royalties to it. I encourage others to respond in kind. Thanks, Andrei Hi Andrei, I don't know you in person, but you are my role model. You have made a choice which is not simple, but I'm sure it is the right choice, and I wish you to succeed with D, and with everything else you're after.
Re: forum.dlang.org, version 2 (BETA)
On Thursday, 4 June 2015 at 19:42:09 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 17:57:26 UTC, Mr. Anonymous wrote: * No threaded view? There are 4 view modes: http://beta.forum.dlang.org/help#view-modes I liked this: http://i.imgur.com/M1nLVkr.png Now it can only be changed from settings, right?
Re: forum.dlang.org, version 2 (BETA)
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive and mobile-friendly - keyboard navigation in all views - automatically saved post drafts - get notified of new posts and replies with subscriptions - full text search - by persistent request, a new view mode (vertical-split) - post to mailing lists - even faster, believe it or not. This update is the sum of 256 commits over 34 days of development. Re:, Re: everywhere. http://i.imgur.com/tzRpnqR.png
Re: forum.dlang.org, version 2 (BETA)
On Thursday, 4 June 2015 at 20:08:04 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 20:06:10 UTC, Tourist wrote: On Thursday, 4 June 2015 at 19:42:09 UTC, Vladimir Panteleev wrote: On Thursday, 4 June 2015 at 17:57:26 UTC, Mr. Anonymous wrote: * No threaded view? There are 4 view modes: http://beta.forum.dlang.org/help#view-modes I liked this: http://i.imgur.com/M1nLVkr.png Now it can only be changed from settings, right? Yes. How often do you change view modes? It's OK as is, I was just used to it being there.
Re: dfmt 0.1.0
On Friday, 20 February 2015 at 05:53:32 UTC, Brian Schott wrote: On Friday, 20 February 2015 at 05:23:45 UTC, Joakim wrote: On Friday, 20 February 2015 at 02:21:01 UTC, Brian Schott wrote: dfmt is a D source code formatting tool. https://github.com/Hackerpilot/dfmt/ https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.0 Thanks, you should list some of the formatting changes it makes in the README. It doesn't do formatting changes. It wipes out the formatting during lexing and builds it up from scratch. The only thing that gets preserved is that it will look at line numbers on comments and try to keep them in roughly the same place. (For example, // comments that are on the end of a line instead of on the next line) Several examples in the README would indeed be nice.
GCs are complicated beasts: .NET Core, 35000 lines
Source code: https://raw.githubusercontent.com/dotnet/coreclr/master/src/gc/gc.cpp Origin: http://www.reddit.com/r/programming/comments/2unrll/net_core_is_on_github/coa2uot
Re: Mike Acton at CppCon (prominent game-dev lecture to non-game-dev's)
On Thursday, 2 October 2014 at 09:57:55 UTC, Manu via Digitalmars-d wrote: On 2 October 2014 19:48, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 02/10/14 08:10, Manu via Digitalmars-d wrote: (is it just me, or is it getting really hard to keep up with this forum these days!?) Yeah, I need to read every day to keep up. I think it can vary quite a lot. There are a couple of topics that are quite hot, i.e. interfacing with C++, GC/RC/memory management and others. In the recent weeks there have been several new threads with topics in these areas. Hence there's a lot of posts to keep up with. Yeah, seriously! The trouble is, they're all topics I *really* care about, except I've been super busy the last weeks! The conversation is totally slipping past with nothing I can do about it _ I'd like to read some tl;dr-s as well. e.g. I've read about the proposal of Sean Kelly, but unfortunately, I cannot afford the time to search for it in the forums through all those messages.
Re: issues.dlang.org is down
On Saturday, 27 September 2014 at 18:08:25 UTC, H. S. Teoh via Digitalmars-d wrote: Noticed that this morning, and Ilya noticed that too. Just a quick notice in case whoever the maintainer is, isn't aware of it yet (though he's probably already on it). Here's the error message: Software error: Can't connect to the database. Error: Access denied for user 'bugs'@'localhost' (using password: YES) Is your database installed and up and running? Do you have the correct username and password selected in localconfig? For help, please send mail to the webmaster (webmas...@puremagic.com), giving this error message and the time and date of the error. T Fixed ^_^
Re: What's blocking DDMD?
On Friday, 26 September 2014 at 03:55:38 UTC, Daniel Murphy wrote: Tourist wrote in message news:ekvdxwosqarmsnkhk...@forum.dlang.org... Of the failing platforms: OSX32: https://github.com/braddr/d-tester/pull/35 (OSX32 is crazy) ... So, this is fixed now, right? Yep. https://auto-tester.puremagic.com/?projectid=10 Just windows left now. Cool. Is there an open ticket for Windows?
Re: What's blocking DDMD?
Of the failing platforms: OSX32: https://github.com/braddr/d-tester/pull/35 (OSX32 is crazy) ... So, this is fixed now, right?
Re: Library Typedefs are fundamentally broken
On Sunday, 21 September 2014 at 20:41:22 UTC, ketmar via Digitalmars-d wrote: On Sun, 21 Sep 2014 11:09:28 -0700 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: alias Int1 = Typedef!(int, a.Int1); alias Int2 = Typedef!(int, b.Int2); ah, now that's cool. module system? wut? screw it, we have time-proven manual prefixing! Use __MODULE__. -- Andrei you still can't grok concept of ugly == unusable. thank you, i'd better fsck this miserably attempt on type security, and many other practical programmers too. we trying to explain you this and each time you answers so what? no, it's not. even to people who tried to use this disgusting solution and found it unacceptable and broken. alias Int1 = Typedef!(int, __MODULE__~.Int1); don't make me laugh. this is not just ugly, this is MEGAUGLY. then we can make some kind of magic template to hide this uglyness, yes. the uglyness which shouldn't be there in the first place. each time when such ugly workaround proposed we can see the feature as completely broken. people trying to tell you that it is broken for single developer (too much to type for nothing). that it is broken for group developement (people will forget to mix all the uglyness for necessary result). that it is just broken. please, we aren't bunch of kids who just happen to dislike typing extra chars. our objections backed by trying to use the feature in practice. Why don't you capitalize? Looks like you're a reasonable person, and this makes an outsider think that your IQ is lower than the average. IMO.
Anonymous GitHub user for casual D contributions
On Saturday, 30 August 2014 at 10:57:51 UTC, ketmar via Digitalmars-d wrote: Hello. there are some c-style array declarations both in druntime and in phobos. i made two patches that fixes 'em: https://issues.dlang.org/show_bug.cgi?id=13401 https://issues.dlang.org/show_bug.cgi?id=13402 Don't want to register on GitHub? Just use those: Username: d-random-contributor Password: d-random-contributor-password
What's blocking DDMD?
Just curious. I remember that there was some kind of a roadmap, but I cannot find it now.
Re: [OT] Uploading DConf videos
On Thursday, 17 July 2014 at 18:54:18 UTC, Andrei Alexandrescu wrote: I'm not an expert in videos but as I mentioned I've studied a few options last year before deciding to use archive.org as our reference upload site. I got curious just now, so I just uploaded two screenshots: http://i.imgur.com/x1bsTNf.jpg with archive.org http://i.imgur.com/CEFCgAi.jpg with youtube.com Indeed the archive.org resolutions looks visibly better; my understanding is archive.org is streaming the very mp4 content I uploaded to it. Could anyone give more detail on what processing youtube does? Thanks, Andrei My opinion: good quality is nice for fans, but if your goal is to target a large audience, go with the mainstream and post a link to YouTube, which can be played everywhere: mobile, tablet, you name it. After all, it's not the Ironman movie, understanding what is being said and being able to read the slides is good enough, and streaming speed is more important than quality. I mean, what the high quality is good for if streaming is laggy and the video is not watchable?
Re: [OT] Uploading DConf videos
On Saturday, 19 July 2014 at 18:52:34 UTC, Nick Sabalausky wrote: On 7/19/2014 7:51 AM, Tourist wrote: I mean, what the high quality is good for if streaming is laggy and the video is not watchable? There's always actual downloading. Yeah, but I talk about casual audience here. Would you download a random 1GB video about SOMERANDOM programming language only to see what it's about for a couple of minutes?
Re: Naming of new lazy versions of existing Phobos functions
On Thursday, 17 July 2014 at 22:59:27 UTC, Brad Anderson wrote: Walter's prototype[1] for removing allocations from a phobos function (std.path.setExtension) got hung up on the naming of the function. It couldn't keep the same name because it differed only by return type. Walter doesn't like explicitly naming them as lazy because existing lazy functions like most of std.algorithm don't have names that state they are lazy. On the other hand, setExt is controversial because it's an arbitrary abbreviation done just to avoid the naming conflict. Not every function we'd like to see adopt the same approach would be amenable to a simple abbreviation to dodge the naming issue. I think it's probably a good time to come up with a naming scheme for these lazy versions of existing functions so things are consistent throughout Phobos. David Nadlinger offered a few ideas in the thread: setExtensionLazy, extensionSetter, or withExtension. I find the with prefix particularly attractive. It implies the lazy behavior, is short, and reads well when chained with other calls. Hypothetical example I gave in the Pull Request comments: auto contents = FILE.withStrip() .withLowercase() .withExtension(.txt) .readText(); At the risk of bikeshedding, I thought it would be useful to solicit the wider forum audience for ideas and opinions. Thoughts? 1. https://github.com/D-Programming-Language/phobos/pull/2149 Are you planning to deprecate the non-lazy functions at some (maybe very distant) point? If yes, I agree that it's a good opportunity for a cleanup, and there's no point to add prefixes/suffixes.
Re: Smile, you're on Wired
On Monday, 7 July 2014 at 16:06:45 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2a20h5/wired_magazine_discovers_d/ https://hn.algolia.com/#!/story/forever/0/the%20next%20big%20programming%20language https://www.facebook.com/dlang.org/posts/880588921954790 https://twitter.com/D_Programming/status/486179309363941376 Andrei Does the story resemble reality? What's Enki?
Re: Offtopic: AMA (Was: Interview at Lang.NEXT)
On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote: On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ Andrei This is offtopic, but why are people obsessed with writing English acronyms? I always have to lookup the meaning and then I'm polluting my head with acronyms. Is there any difference in time/convenience between writing Interviewee here. Ask me anything Between Interviewee. AMA? :-( AMA is kinda reddit thing. http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/
Re: dmd 2.065.0
On Monday, 24 February 2014 at 08:45:31 UTC, Andrew Edwards wrote: Windows: http://ftp.digitalmars.com/dmd-2.065.0.exe http://ftp.digitalmars.com/dmd.2.065.0.windows.zip The .zip file for Windows isn't listed on the download page. http://dlang.org/download.html
Broken link on dlang.org
There's a new link on dlang.org under Library Reference: Preview new Layout. This link leads to http://dlang.org/library/index.html, which doesn't exist. Also, the forum lacks that link. The forum also lacks the link for the tutorial: http://qznc.github.io/d-tut/
Re: Question: Artwork Design
On Thursday, 13 February 2014 at 17:23:36 UTC, tcak wrote: On Thursday, 13 February 2014 at 11:58:30 UTC, tcak wrote: On Thursday, 13 February 2014 at 11:46:14 UTC, Chris wrote: On Wednesday, 12 February 2014 at 18:46:06 UTC, Walter Bright wrote: On 2/12/2014 5:52 AM, Chris wrote: Do we (still) need any artwork (e.g. DConf)? And if so, what? I can try to design logos, wallpapers etc. Need a t-shirt design. Which colors? Black and / or white? Any other color? I am planning to do a design with red (or maroon) over white. Less colour, cheap T-shirt ;). Hello. Well, I have prepared 10 different designs, and also put 4 of them on T-shirts to be seen. Wiki requires registration etc. So, I have uploaded them to Neffie Publink. They can be found and download from following link. http://publink.neffie.com/subject/GnzYk3RAbbCNkWRPdGyGmeE1ceaFPc5xJ1m5l1LZr6vcQtbchtayo75Iawm1AG0t All of them are my designs and vector based. So, they can be updated easily. If anyone can upload them to Wiki, that will be really great. I really do not have time at the moment. As an imgur album: http://imgur.com/a/BRP8i
Re: early alpha of D REPL
On Tuesday, 11 February 2014 at 04:46:41 UTC, Martin Nowak wrote: Barely running but already fun and a little useful. Example: D import std.algorithm, std.array, std.file; = std D auto name(T)(T t) { | return t.name; | } = name D dirEntries(., SpanMode.depth).map!name.join(, ) = ./drepl_sandbox D https://github.com/MartinNowak/drepl http://drepl.dawg.eu/ http://i.imgur.com/LNYMNYw.png
Re: Bug tracker counters broken
On Monday, 30 December 2013 at 07:23:23 UTC, Tourist wrote: http://dlang.org/bugstats.php E.g. regressions frame: http://dlang.org/fetch-issue-cnt.php?y_axis_field=bug_severityquery_format=report-tableproduct=Dbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENEDbug_severity=regressionformat=tableaction=wrapctype=csv file_get_contents() errors with: Unable to find the wrapper https - did you forget to enable it when you configured PHP? Should be probably just changed to http. Regards. Still broken. Just remove the 's' from 'https', can't be that hard.
Re: Bug tracker counters broken
On Friday, 10 January 2014 at 17:30:11 UTC, Brad Anderson wrote: On Friday, 10 January 2014 at 17:02:37 UTC, Tourist wrote: On Monday, 30 December 2013 at 07:23:23 UTC, Tourist wrote: http://dlang.org/bugstats.php E.g. regressions frame: http://dlang.org/fetch-issue-cnt.php?y_axis_field=bug_severityquery_format=report-tableproduct=Dbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENEDbug_severity=regressionformat=tableaction=wrapctype=csv file_get_contents() errors with: Unable to find the wrapper https - did you forget to enable it when you configured PHP? Should be probably just changed to http. Regards. Still broken. Just remove the 's' from 'https', can't be that hard. If you are interested and have a GitHub account you can hit the Edit This Page button at the top of the page and make the change yourself. It'll build the pull request and everything. If you'd rather not, I can do it. I don't think it's on GitHub. Does Ddoc translate to PHP? It's a server side issue.
Bug tracker counters broken
http://dlang.org/bugstats.php E.g. regressions frame: http://dlang.org/fetch-issue-cnt.php?y_axis_field=bug_severityquery_format=report-tableproduct=Dbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENEDbug_severity=regressionformat=tableaction=wrapctype=csv file_get_contents() errors with: Unable to find the wrapper https - did you forget to enable it when you configured PHP? Should be probably just changed to http. Regards.
Re: GtkD List?
On Sunday, 22 December 2013 at 10:40:12 UTC, Russel Winder wrote: On Sun, 2013-12-22 at 10:33 +, John Colvin wrote: On Sunday, 22 December 2013 at 10:21:31 UTC, Russel Winder wrote: Is there a specialist GtkD mailing list? http://forum.gtkd.org/groups/GtkD/ But that's a forum not a mailing list. (I will avoid saying forums are evil because I know some people like them, they just do not fit into my workflow.) See footer: This forum is powered by VibeNews and can also be accessed using a news reader pointed to nntp://forum.gtkd.org/.
Re: D vs Go in real life
On Thursday, 5 December 2013 at 14:44:41 UTC, Andrei Alexandrescu wrote: On 12/4/13 10:57 PM, Martin Nowak wrote: On Tuesday, 3 December 2013 at 20:53:28 UTC, Andrei Alexandrescu wrote: Also does everybody like the graphics at the top of http://dconf.org/2014/index.html? Frankly, it's awful. I agree!! Andrei I'm not a designer, but I think whatever alternative is better. My try: http://imgur.com/a/hCIPm Font: Sansus Webissimo
Re: D vs Go in real life
On Friday, 6 December 2013 at 11:45:36 UTC, Tourist wrote: On Thursday, 5 December 2013 at 14:44:41 UTC, Andrei Alexandrescu wrote: On 12/4/13 10:57 PM, Martin Nowak wrote: On Tuesday, 3 December 2013 at 20:53:28 UTC, Andrei Alexandrescu wrote: Also does everybody like the graphics at the top of http://dconf.org/2014/index.html? Frankly, it's awful. I agree!! Andrei I'm not a designer, but I think whatever alternative is better. My try: http://imgur.com/a/hCIPm Font: Sansus Webissimo Oops, 2014 of course :) http://imgur.com/a/EkIPw
Re: D vs Go in real life
On Friday, 6 December 2013 at 20:35:10 UTC, Andrei Alexandrescu wrote: On 12/6/13 3:45 AM, Tourist wrote: On Thursday, 5 December 2013 at 14:44:41 UTC, Andrei Alexandrescu wrote: On 12/4/13 10:57 PM, Martin Nowak wrote: On Tuesday, 3 December 2013 at 20:53:28 UTC, Andrei Alexandrescu wrote: Also does everybody like the graphics at the top of http://dconf.org/2014/index.html? Frankly, it's awful. I agree!! Andrei I'm not a designer, but I think whatever alternative is better. My try: http://imgur.com/a/hCIPm Font: Sansus Webissimo s/2013/2014/ Andrei lol, I saw you've pulled the 2013 one. http://forum.dlang.org/post/wtsohypsvefsabegi...@forum.dlang.org
Re: Disassembly Tool
On Thursday, 14 November 2013 at 09:53:42 UTC, Namespace wrote: On Thursday, 14 November 2013 at 09:48:38 UTC, Namespace wrote: Since the disassembly on Dpaste doesn't work for me anymore, I'm looking for an alternative. Is there one? And I don't want obj2asm, I'm not willing to pay 15$. Forget to say: I'm on Windows. OllyDbg, highly recommended.
Re: DMD 2.064 changelog typo?
On Tuesday, 29 October 2013 at 09:43:23 UTC, Andrea Fontana wrote: I was reading 2.064 changelog on website. Check this: template Tuple(T...) { alias Tuple = T; } template isIntOrFloat(T) { static if (is(T == int) || is(T == float)) enum isIntOrFloat = true; else enum isIntOrFloat = true; } I guess the else branch should be = false rather than = true; Why the changelog for 2.064 is even available on dlang.org?
Re: std.allocator ready for some abuse
On Sunday, 27 October 2013 at 10:45:31 UTC, Andrei Alexandrescu wrote: On 10/26/13 8:00 AM, Andrei Alexandrescu wrote: 3. Mallocator could also implement these on Posix: http://man7.org/linux/man-pages/man3/posix_memalign.3.html. However, Windows requires a specific call for deallocating aligned memory. To accommodate both portably, we leave Mallocator as is and create AlignedMallocator that uses the _aligned_* family on Windows and the respective functions on Posix. On Windows, allocate() requests would pass a default of platformSize (i.e. 16 I suspect) to _aligned_malloc. Just implemented AlignedMallocator and pushed. http://erdani.com/d/phobos-prerelease/std_allocator.html#.AlignedMallocator Untested on Windows. Andrei In the following line: -- On Posix, forwards to realloc. On Windows, calls _aligned_realloc(b.ptr, newSize, platformAlignment). -- Link is incorrect (http//, colon is missing).
Re: std.allocator ready for some abuse
On Sunday, 27 October 2013 at 10:52:06 UTC, Tourist wrote: On Sunday, 27 October 2013 at 10:45:31 UTC, Andrei Alexandrescu wrote: On 10/26/13 8:00 AM, Andrei Alexandrescu wrote: 3. Mallocator could also implement these on Posix: http://man7.org/linux/man-pages/man3/posix_memalign.3.html. However, Windows requires a specific call for deallocating aligned memory. To accommodate both portably, we leave Mallocator as is and create AlignedMallocator that uses the _aligned_* family on Windows and the respective functions on Posix. On Windows, allocate() requests would pass a default of platformSize (i.e. 16 I suspect) to _aligned_malloc. Just implemented AlignedMallocator and pushed. http://erdani.com/d/phobos-prerelease/std_allocator.html#.AlignedMallocator Untested on Windows. Andrei In the following line: -- On Posix, forwards to realloc. On Windows, calls _aligned_realloc(b.ptr, newSize, platformAlignment). -- Link is incorrect (http//, colon is missing). That's how Firefox interprets it. In source code it's: http://http//msdn.microsoft.com/en-US/library/y69db7sx(v=vs.80).aspx
Re: std.allocator ready for some abuse
On Saturday, 26 October 2013 at 16:10:46 UTC, Dmitry Olshansky wrote: If it's possible, I'd rather see the converse -- that code that assumes the GC will just work with other allocation strategies, so one can use the builtins without worrying. Only if you are switching to from one GC kind to another. There is no way out of automatic memory management. Waiting for ARC :)
Re: code.dlang.org now supports categories and search
On Friday, 18 October 2013 at 10:23:20 UTC, Sönke Ludwig wrote: Am 17.10.2013 20:25, schrieb Tourist: On Thursday, 17 October 2013 at 18:22:02 UTC, Sönke Ludwig wrote: Am 16.10.2013 21:01, schrieb Sönke Ludwig: The DUB package registry [1] has finally gained support for the text and category based search of packages. There is also a category for D standard library candidate modules, as has been suggested recently. If you already have any registered packages, please log in and add the proper categories to each of them (My packages - click on package name). Should there be no exact category match, and that specific category is likely to have multiple entries in the future, please make a corresponding pull request against the category file [2] on GitHub. It's still all a little rough around the edges. Any bugs can be reported on the issue tracker [3] or discussed in the forum [4]. [1]: http://code.dlang.org [2]: https://github.com/rejectedsoftware/dub-registry/blob/master/categories.json [3]: https://github.com/rejectedsoftware/dub-registry/issues [4]: http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/ Now also with JavaScript support for switching categories and alphabetic sorting. The website is a bit jumpy for me in Firefox upon navigation. As if it loads without the CSS for a moment, and then restores. I could barely reproduce it, but it looks like the cache headers that the server sent caused the CSS to be re-requested for every page load. Should be fixed now. Yep, the issue is gone. Good job!
Re: Pragmatic D Tutorial
On Sunday, 13 October 2013 at 08:23:16 UTC, Tourist wrote: On Saturday, 12 October 2013 at 23:34:11 UTC, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to reddit. Too early for more publicity, I think. Now every chapter has some text. Feel free to publicize it. A small issue: http://qznc.github.io/d-tut/meta.html The width of the code in String Mixins overflows under the menu. Also, I liked the previous design more, with some orange. Same here: http://qznc.github.io/d-tut/optimization.html
Re: Start of dmd 2.064 beta program
On Wednesday, 16 October 2013 at 20:28:42 UTC, Jacob Carlborg wrote: On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone in terms of repeating the previous style for this releases notes. Originally Walter thought it was enough to just list the bugzilla issues. -- /Jacob Carlborg http://forum.dlang.org/thread/ko84eb$1kfo$1...@digitalmars.com
Re: Eloquently sums up my feelings about the disadvantages of dynamic typing
On Wednesday, 16 October 2013 at 20:43:30 UTC, H. S. Teoh wrote: On Wed, Oct 16, 2013 at 09:26:13PM +0200, Jacob Carlborg wrote: On 2013-10-16 21:23, simendsjo wrote: Yes, sorry. I was thinking about a new __trait and running a loop. Is this when we should be dreaming of the all-powerful AST macros again? Yes, AST macros will solve everything :) [...] Including world hunger and world peace. :P T I would change the world, but God won't release the source code :)
Re: Funny coverage of the recent reddit/hackernews chatter
On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well: http://www.google.com/trends/explore?q=d+language#q=d%20languagecmpt=q
Re: Funny coverage of the recent reddit/hackernews chatter
On Tuesday, 15 October 2013 at 21:17:15 UTC, Andrei Alexandrescu wrote: On 10/15/13 2:08 PM, qznc wrote: On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well: http://www.google.com/trends/explore?q=d+language#q=d%20languagecmpt=q A steady stream of news which hits Reddit and Hacker News front pages every few days certainly helps. We had the Facebook announcement and my tutorial. Who is responsible for tomorrow? ;) Thanks again for the tutorial. People love it and the timing couldn't be better! Andrei Can't wait for the blog post on Facebook Engineering. Any hints? :)
Re: Pragmatic D Tutorial on reddit and hackernews
On Monday, 14 October 2013 at 20:49:22 UTC, Andrei Alexandrescu wrote: On 10/14/13 9:23 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/1ofm56/pragmatic_d_tutorial/ https://news.ycombinator.com/item?id=6548111 Discuss! Andrei One interesting request on reddit: Any chance there's a PDF version of this available for reading on the go? Andrei A quick conversion: http://ge.tt/api/1/files/4g2VLzu/0/blob?download
Re: Book recommendation
On Monday, 14 October 2013 at 21:12:57 UTC, alex wrote: So Tango replaced Phobos, just to be replaced by Phobos later? Tango was an unofficial replacement :) What are/were the fundamental differences? Why two libraries? This admittedly kind of confused me :-D Phobos sucked, so people made Tango. Now Phobos is not as bad anymore.
Re: Pragmatic D Tutorial
On Saturday, 12 October 2013 at 23:34:11 UTC, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to reddit. Too early for more publicity, I think. Now every chapter has some text. Feel free to publicize it. A small issue: http://qznc.github.io/d-tut/meta.html The width of the code in String Mixins overflows under the menu. Also, I liked the previous design more, with some orange.
Re: Facebook is using D in production starting today
On Friday, 11 October 2013 at 21:24:01 UTC, Adam D. Ruppe wrote: Wow, the reddit thing is going absolutely nuts. I wish reddit's format was more readable, it is so hard to find new stuff among the mess of a tree layout :( Agree. You might want to try a userscript I forked, which: 1. Highlights unread comments. 2. Allows to navigate through unread comments with Ctrl + Up / Ctrl + Down. http://userscripts.org/scripts/show/179121
Re: Start of dmd 2.064 beta program
On Saturday, 12 October 2013 at 22:16:13 UTC, Walter Bright wrote: http://ftp.digitalmars.com/dmd2beta.zip Current list of regressions: http://d.puremagic.com/issues/buglist.cgi?query_format=advancedbug_severity=regressionbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENED This isn't a release candidate, in particular the documentation needs work, but we need to shake the tree for any undetected regressions. Further beta announcements go in the dmd-beta mailing list. Note that this release contains: 29 enhancements 307 dmd bugs fixed 14 druntime bugs fixed 73 phobos bugs fixed Great! I'm wondering whether there will be the nifty changelog like it was for 2.063? Andrej? :D
Re: Facebook is using D in production starting today
On Saturday, 12 October 2013 at 22:36:25 UTC, Kapps wrote: On Friday, 11 October 2013 at 21:24:01 UTC, Adam D. Ruppe wrote: Wow, the reddit thing is going absolutely nuts. I wish reddit's format was more readable, it is so hard to find new stuff among the mess of a tree layout :( Reddit Enhancement Suite makes things much nicer, and having a Reddit Gold subscription allows new posts to be highlighted which RES can then navigate by. Too bloated for my taste.
Re: The no gc crowd
On Wednesday, 9 October 2013 at 14:11:46 UTC, Dicebot wrote: On Wednesday, 9 October 2013 at 13:57:03 UTC, Sean Kelly wrote: They aren't opt-out for really any reasonable project though, because code is reused and those people may want at least the standard attributes to be set. Personally, the array of attributes that can be applied to a D function is one of my biggest pet peeves with the language. It gains me nothing personally, and adds a lot of extra thought to the process of writing a function. This is exactly what I was speaking about. It would have been much more easy if stuff was `pure @safe immutable nothrow` by default and one added `dirty @system mutable throw` on per-need basis after getting compiler error. But that is too late to change and this attribute inference may be only reasonable option. Maybe it's worth to introduce pure: @safe: immutable: nothrow: on top of every module as the new recommended design pattern. Will it work? Then it may go through a deprecation phase, e.g. omitting it on top of the module becomes a warning, then an error, then it becomes the default.
Re: The no gc crowd
On Tuesday, 8 October 2013 at 15:53:47 UTC, Adam D. Ruppe wrote: 2) have a flag where you can make gc allocations throw an assert error at runtime for debugging critical sections Why handle it at runtime and not at compile time?
Re: The no gc crowd
On Tuesday, 8 October 2013 at 16:18:50 UTC, Adam D. Ruppe wrote: On Tuesday, 8 October 2013 at 16:02:05 UTC, Tourist wrote: On Tuesday, 8 October 2013 at 15:53:47 UTC, Adam D. Ruppe wrote: 2) have a flag where you can make gc allocations throw an assert error at runtime for debugging critical sections Why handle it at runtime and not at compile time? One is I can implement a runtime check pretty easily so it'd just be the first step because it would go quickly. The other reason though would be D doesn't really have an attributed section. You can't do: void foo() { // stuff @nogc { // your performance sensitive loop code } } But on the function level, that could be done at compile time if implemented. IMO it would be much more effective if it would be handled at compile time, both saving the dev's time and guaranteeing that there are no unwanted assert(0)'s lurking around in untested corners.
Re: The no gc crowd
On Tuesday, 8 October 2013 at 15:43:46 UTC, ponce wrote: At least on Internet forums, there seems to be an entire category of people dismissing D immediately because it has a GC. http://www.reddit.com/r/programming/comments/1nxs2i/the_state_of_rust_08/ccne46t http://www.reddit.com/r/programming/comments/1nxs2i/the_state_of_rust_08/ccnddqd http://www.reddit.com/r/programming/comments/1nsxaa/when_performance_matters_comparing_c_and_go/cclqbqw The subject inevitably comes in every reddit thread like it was some kind of show-stopper. Now I know first-hand how much work avoiding a GC can give (http://blog.gamesfrommars.fr/2011/01/25/optimizing-crajsh-part-2-2/). Yet with D the situation is different and I feel that criticism is way overblown: - first of all, few people will have problems with GC in D at all - then minimizing allocations can usually solve most of the problems - if it's still a problem, the GC can be completely disabled, relevant language features avoided, and there will be no GC pause - this work of avoiding allocations would happen anyway in a C++ codebase - I happen to have a job with some hardcore optimized C++ codebase and couldn't care less that a GC would run provided there is a way to minimize GC usage (and there is) Whatever rational rebutal we have it's never heard. The long answer is that it's not a real problem. But it seems people want a short answer. It's also an annoying fight to have since so much of it is based on zero data. Is there a plan to have a standard counter-attack to that kind of overblown problems? It could be just a solid blog post or a @nogc feature. I thought about an alternative approach: Instead of using a (yet another) annotation, how about introducing a flag similar to -cov, which would output lines in which the GC is used. This information can be used by an IDE to highlight those lines. Then you could quickly navigate through your performance-critical loop and make sure it's clean of GC.
Re: Pragmatic D Tutorial
On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I expect most people to know this stuff. I do not consider D to be a language for beginners anyways. It is aiming for pragmatic not comprehensive advice. For example, I mostly ignore LDC and GDC except for the optimization chapter. Since I am working on Linux exclusively and I like the command line, I cannot teach to Windows users. Sorry. This is still very incomplete and my our newborn family member requires quite some attention. So expect this to develop with glacial speed. ;) Nevertheless, I want to put this version 0.1 out to get some feedback. What do you think about the topic selection? What topics are missing? Serious errors so far? http://beza1e1.tuxen.de/d-tut-0.1/index.html Wreck it! :) I like it that you quote people from the forum with real situations, and even provide links of the discussion.
Re: Pragmatic D Tutorial
On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu wrote: OP: any chance to adjust that page? Then we'll announce to reddit. I don't think it's ready. If you want to promote a tutorial, I think that (at least for now) it should be the book of Ali Çehreli. Also I thought that maybe it's worth to turn his book into an interactive tutorial. The book have snippets of code (and exercises), and we have this script that executes D using dpaste. I think integrating both and adding some interactivity (and then maybe put it on tutorial.dlang.org or similar) could be a good combination.
Re: C++ - D converter mentioned in AMA
On Thursday, 3 October 2013 at 11:29:38 UTC, Szymon Gatner wrote: On Thursday, 3 October 2013 at 11:23:25 UTC, Dicebot wrote: On Thursday, 3 October 2013 at 11:08:29 UTC, Szymon Gatner wrote: Thanks, I actually have VisualD installed but didn't know about that functionality tho looking at the docs it is pretty limited especially when it comes to templates :( Sorry to hear about Daniel's tool. Maybe some day... Expecting such tool to just work is very unrealistic. C++ is very complex language and some behavior just can't be mapped to D directly. For example, one issue with current DMD source translation is that in C++ you can split class implementation among different translation units. Not in D. Of course, libclang helps a lot with such tools (you don't need to write full C++ front-end on your own anymore!) but the complexity of translation is very high and you need to manually recheck it anyway so this does not seem like a feasible _generic_ tool, only something that can be adopted for specific projects. I fully realize that and actually I was really surprised that such a tool is in production considering amount of code in DMD. OTOH if it can work for DMD then in theory it should be possible to (to some degree) reuse it on other codebase *if* it conforms to certain coding rules/standard right? An official reply from Daniel ;) https://github.com/D-Programming-Language/dmd/pull/1980#issuecomment-19539800
Re: Can we please kill the hyphenator already?
On Wednesday, 2 October 2013 at 17:30:08 UTC, Dicebot wrote: Actually, now that this topic has risen up again, I tend to agree with it. Such comment system is very difficult to control to provide good user experience. Its anarchic nature may fit well chaotic design of PHP (lack of one to be precise :P) but D really requires more systematic explanations. I don't agree - I often find comments in the PHP documentation helpful, both for clarifying things and for useful snippets. As for moderation, disqus has a voting system, and displays most voted comments on top by default, which is IMO good enough.
Re: Can we please kill the hyphenator already?
On Wednesday, 2 October 2013 at 18:21:45 UTC, Wyatt wrote: You could say snippets go in comments, but in the first place people WILL misuse and abuse them for other things. What are you going to do? Delete the questions? Tell them to go to D.learn? Heaven forbid you ANSWER it! That just encourages them. And what if it goes off-topic? Is there ever a right time to discuss array semantics in the std.string.chomp docs? Doesn't matter; it'll happen. I haven't seen questions in PHP's comments. Anyhow, those will probably be just downvoted. But even presuming we keep this a utopian column of code spew... well, take a stroll through stackoverflow. You know what you find? A lot of commenters who don't have much clue on the quality of their snippets. Alas, Thanks, this worked and up the vote goes, regardless of whether or not it's incredibly fragile. It's a blind leading the blind scenario. (http://i.stack.imgur.com/ssRUr.gif) The comments, of course, provide no guarantees, and are fully community driven. Disqus is the worst idea of all because Disqus is external infrastructure under someone else's control. When -- not if -- Disqus dies (goes belly-up, or gets acquired, or otherwise fails critically at existence), what do you suppose happens to the people who used it everywhere? Sure, they have an XML export format. I couldn't find their DTD posted anywhere, so have fun making heads or tails of it. Presuming you have the time for exporting. If you don't, well... you're boned, good game, peace out? Not acceptable. Not even remotely. Also, a Javascript monstrosity. I don't have strong feelings about Disqus, but it does it's job. Anyhow, my point was about comments in general, not specifically about Disqus. Also, voting does not preclude the need for moderation. IMO voting is a kind of (community driven) moderation.
Re: Improved Phobos dox
On Monday, 16 September 2013 at 18:14:23 UTC, Andrei Alexandrescu wrote: On 9/16/13 11:08 AM, Vladimir Panteleev wrote: On Monday, 16 September 2013 at 17:59:11 UTC, Andrei Alexandrescu wrote: What's a good small circular central bullet for HTML? middot; Done, looks nice. http://erdani.com/d/phobos/std_array.html Anyhow enough with this - it's just a patch until ddox. Somebody please pull the blessed thing :o). Andrei My 2 cents: links without the underline look quite counter-intuitive. Not that I care that much, I'd rather see ddox up and running by default.
Re: [Font] Getting font folder on all platforms
On Thursday, 5 September 2013 at 19:48:07 UTC, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally C:\Windows\Fonts but a direct access seems brutal, it's certainly expected to retrieve this path by using some register keys? Is someone know how it works for linux and/or macOS X? I need to be able to retrieve fastest as possible the right file from the font and family name. Windows: call SHGetKnownFolderPath with FOLDERID_Fonts as rfid. http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188%28v=vs.85%29.aspx
Re: Stable D version?
On Tuesday, 23 April 2013 at 01:06:49 UTC, eles wrote: On Monday, 22 April 2013 at 23:35:56 UTC, Flamaros wrote: The problem is not that D is usable or not as it is. The problem is that, until officially handled to the user, it won't be taken too serious by the industry. In other words, you won't find jobs as a D programmer. C++ will improve more with the pending modules and other features that do not even have to wait 2014 for that (a TR will do the job). But the point here is not about C++. The problem with D is that it's never finished. Everybody waits for the next version. Everytime I spoke to my boss about D, the answer was like: hmmm... we'll discuss about it when it's ready. D1 was killed by a under-developed phobos and by the the conflict tango-phobos, at least in part. What really killed D1 was the announcement of D2. And I have the feeling that after D2 is rolled out, people will start working on D3. That's the wrong approach. If it is usable as it is, then shift the main effort on tools for it and on promoting it. Then, let it in the market, get feedback from compiler implementors and commercial users and formalize that as a proposal for the next D standard. Then, after public scrutinize the proposed changes for 6 months or 1 tear, implement them. Only recently the focus was placed on implementing those shared libraries. Really, who'd have been expected to use D in commercial, large applications, without that support? Why did people wait for so long? Keep running circles around Optlink and other specific tools just for the sake of them? I agree they *were* valuable, but they *were*. Focus on the ldc or gcc/gdc implementation, for example. Use that as the official compiler. Do not split effort. There are a lot of standard tools that will facilitate adoption, yet the effort is misplaced. Put the current language version on the market, along with a document summarizing proposals for the future standard and get feedback from users that will start using it for real applications, on large scale. No need, for now, to make Phobos the best of the best. The curse of Tango vanished. Ship it as it is, incomplete but cleaned, then some libraries will be written and they will find almost naturally place in the standard library, just as the C++ standard integrates parts from Boost, integrated STL etc. Pursuing perfection will miss the good. I couldn't have said it better!
Stable D version?
Hi guys, I've been following the forums for a while. I'm interested in looking into D, but I understand that currently it changes often, and is not very reliable. I've also read that there's a new release model planned, where a stable version of the language is released every year or two. Is that so? When would it take place? What's holding you from releasing a version now and declaring it stable for e.g. a year?