OSX Installer

2012-10-31 Thread Joshua Niehus
I'm trying to write up a tutorial for D+vibed and have stumbled on a pretty basic issue. The DMD installer for OSX fails out of the box on Lion and Mountain Lion because Apple got rid of their developer command line tools stuff: http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-gui

Re: OSX Installer

2012-11-01 Thread Joshua Niehus
On Thursday, 1 November 2012 at 07:30:58 UTC, Jacob Carlborg wrote: It's not just the installer that depends on having Xcode installed, D depends on it. DMD uses GCC as the linker. I see, thanks Jacob. I'll stick with the Xcode->cmd line tools instructions then and sprinkle in a little more d

Re: DConf 2013 on kickstarter.com: we made it!

2012-11-20 Thread Joshua Niehus
On Tuesday, 20 November 2012 at 20:23:56 UTC, Iain Buclaw wrote: I got tired of the suspense, so I pledged the remainder $550 to push you over the finish line. http://www.kickstarter.com/projects/2083649206/the-d-programming-language-conference-2013-0 Lets hold a big congrats to Andrei and Wa

Re: Talk proposal (kinda): D Programming in D (Or: Writing idiomatic D code)

2012-11-21 Thread Joshua Niehus
On Wednesday, 21 November 2012 at 18:42:55 UTC, Leandro Motta Barros wrote: Well, this is actually a "talk proposal for someone else". I'd be the audience, not the speaker. TITLE: D Programming in D (Or: Writing idiomatic D code) +1 I'd like to add, maybe put some focus on "Range" oriented c

Re: Deprecated Library Functions / Methods

2012-12-02 Thread Joshua Niehus
On Sunday, 2 December 2012 at 23:56:29 UTC, Jonathan M Davis wrote: [... snip ...] I don't like leaving clutter in code, and in this case, I think that it's safe and reasonable to clean up that clutter. - Jonathan M Davis +1

Re: Experimental Phobos modules?

2012-12-05 Thread Joshua Niehus
On Wednesday, 5 December 2012 at 21:05:30 UTC, Jonathan M Davis wrote: But I think that that's completely inappropriate for putting into Phobos. I'd love to try out the new stuff if its convient enough... I dont want to go jumping around github, pick up the "staging" material, put it into my c

Re: Invalid trainling code unit

2012-12-14 Thread Joshua Niehus
On Saturday, 15 December 2012 at 06:07:10 UTC, rumbu wrote: I'm trying to understand how strings are working in D. I got the following error when declaring a simple string variable: "Invalid trailing code unit": wstring needle = `Être sans la verité`; Considering that the line obove is copied

Java > Scala -> new thread: GUI for D

2011-12-02 Thread Joshua Niehus
>On 12/1/11 2:59 AM, Walter Bright wrote: >> On 12/1/2011 2:42 AM, Gour wrote: >> I'd like to help with GUI bindings if D community would come more close >> together here with some people ready to lead the herd... > > Why not you lead the effort? I just went to the Qt DevDays 2011 and it looks

Re: D for the web?

2012-01-23 Thread Joshua Niehus
On Monday, 23 January 2012 at 16:43:06 UTC, F i L wrote: There are better languages for large client-side web apps like Coffeescript... "CoffeeScript is a little language that compiles into JavaScript"

Re: [your code here]

2012-01-28 Thread Joshua Niehus
import std.stdio, std.stream, std.string, std.range, std.algorithm; void main() { int countPalindromes; auto infile = new BufferedFile("ukacd17.txt"); foreach (char[] line; infile) { if (line.walkLength(2) > 1) { line.toLowerInPlace; if (equal(line, retro(li

Re: [your code here]

2012-01-28 Thread Joshua Niehus
I ran this code on Mac OSX Lion using the "/usr/share/dict/words" file and got 235834 words out of 235886. I think something is wrong. found the problem: PEBKAC (problem exists between keyboard and chair) sorry:)

[your code here]

2012-02-17 Thread Joshua Niehus
Not as fancy as the other submits, but it might be worthy of the front page: import std.stdio, std.traits; void main(string[] args) { auto foo(T)(T n) { return delegate(T i) { static if (isSomeString!(T)) auto m = mixin("n ~ i"); else

Re: [your code here]

2012-02-18 Thread Joshua Niehus
On Saturday, 18 February 2012 at 08:18:32 UTC, Denis Shelomovskij wrote: Some remarks: 0. `string[] args` isn't needed; 1. `delegate` is not needed; 2. `isSomeString!(T)` can be replaced by `isSomeString!T`; 3. `static if` can be replaced by `auto m = mixin(isSomeString!T ? "n ~ i" : "n + i");`;

Re: Three Unlikely Successful Features of D

2012-03-20 Thread Joshua Niehus
On Tuesday, 20 March 2012 at 19:02:16 UTC, Andrei Alexandrescu wrote: What are your faves? I have a few in mind, but wouldn't want to influence answers. Thanks, Andrei 1) inferred types (auto) 2) slices 3) whole > sum(mixin, opDispatch, static if)

Re: Mac OS installer

2013-01-07 Thread Joshua Niehus
On Tuesday, 8 January 2013 at 04:00:25 UTC, Elias Zamaria wrote: Can anyone help me with this? Do you have Xcode installed? If so, do you have "Command Line Tools" installed? Otherwise, you'll need to install Xcode (free from app store), then: Open Xcode -> Preferences -> Downloads -> Componen

Re: D rawkz! -- custom writefln formats

2013-01-16 Thread Joshua Niehus
On Wednesday, 16 January 2013 at 19:49:55 UTC, Philippe Sigaud wrote: What about creating a new page on the Wiki (D Rawks) and putting small articles in them? That way, we can all do it without having a website and newcomers can be shown its content. http://wiki.dlang.org/D_Rocks

Re: D for scientific computing

2013-01-23 Thread Joshua Niehus
On Wednesday, 23 January 2013 at 22:39:04 UTC, Alan wrote: to know if D can compete with C or Fortran for numerical work. https://github.com/kyllingstad/scid You dont need to compete, you can take established "good and fast" FORTRAN/C code and use it within your own D program.

Re: D for scientific computing

2013-01-23 Thread Joshua Niehus
On Thursday, 24 January 2013 at 00:29:15 UTC, Joshua Niehus wrote: You dont need to compete, you can take established "good and fast" FORTRAN/C code and use it within your own D program. I forgot to add: If you doing new stuff then D can be as fast as anything eles, provided the al

Re: What happened to the alias this = identifier syntax in 2.062?

2013-02-22 Thread Joshua Niehus
On Friday, 22 February 2013 at 21:23:04 UTC, Timon Gehr wrote: [snip].. or the alias this syntax should be deprecated in favour of a specially named member function. pseudonym foo;

Re: What happened to the alias this = identifier syntax in 2.062?

2013-02-22 Thread Joshua Niehus
On Friday, 22 February 2013 at 23:20:55 UTC, Timon Gehr wrote: auto opPseudonym() { ... } alias opPseudonym=foo; Isn't that creating multiple functions for the same thing? struct Fraction { long numerator; long denominator; double value() const @property { return ca

Re: What happened to the alias this = identifier syntax in 2.062?

2013-02-22 Thread Joshua Niehus
didn't fully formulate that thought: above examples vs. the following struct Fraction { long numerator; long denominator; double value() const @property { return cast(double)numerator / denominator; } auto opPseudonym() { /* points to value() ? */ } alias op

Re: DIP27 available for destruction

2013-02-26 Thread Joshua Niehus
On Tuesday, 26 February 2013 at 18:27:13 UTC, Andrej Mitrovic wrote: Where's the link? I don't see it listed: http://wiki.dlang.org/DIPs just added: http://wiki.dlang.org/DIP27 "Transitional measure to mitigate breakage" // Transitional behavior. static assert(is(typeof(&foo) == void functio

Re: T-shirt design

2013-03-06 Thread Joshua Niehus
On Wednesday, 6 March 2013 at 20:58:35 UTC, Andrei Alexandrescu wrote: Hi everyone, Time to design the DConf 2013 T-shirts! Please reply to this with any ideas you may have. I have some ideas, but I'm sure they're not the best one. Destroy! Thanks, Andrei Here is my design: https://d

Re: T-shirt design

2013-03-18 Thread Joshua Niehus
ill be wearing the losers TShirt: https://www.dropbox.com/s/vr5cmklgjpiomgk/dconfTShirt.png

Re: T-shirt design

2013-03-18 Thread Joshua Niehus
On Tuesday, 19 March 2013 at 05:02:36 UTC, deadalnix wrote: I like it as well. Did you printed it already ? not yet, i was mocking up the design (after some feedback*) on a custom t-shirt website. I'll probably order it next week or so; wear it around for humor's sake. * can't believe peopl

Re: OSX users out there? Serious bug (I think)

2013-03-31 Thread Joshua Niehus
On Sunday, 31 March 2013 at 20:02:40 UTC, monarch_dodra wrote: This is a two part post. First, I wanted to pol how many users out there were developing under OSX? The threads seem to indicated users under windows or Linux, but I've never heard of anybody under OSX. So who has or is developing

Re: Vote for std.process

2013-04-12 Thread Joshua Niehus
yes

Re: Reducing the inter-dependencies (in Phobos and at large)

2013-04-24 Thread Joshua Niehus
On Wednesday, 24 April 2013 at 12:03:52 UTC, Dmitry Olshansky wrote: E.g. std.regex would import std.concept.random to get isUniformRNG and rely on duck typing thusly described to use it correctly. Thoughts? Other ideas? how would this be different then limited imports such as: import std.ran

Re: clear() and UFCS

2012-05-25 Thread Joshua Niehus
I take it back, dispose is no good. That should be the name of the deterministic destructor in the object. Now I don't have a good name. Finalize isn't right, and neither is dispose... -Steve disembowel?

Re: The definitive guide to Trolls (was Move VisualD to github).

2013-09-09 Thread Joshua Niehus
<-- sycophant (wishes he was an Ent)

Re: dub: should we make it the de jure package manager for D?

2013-09-10 Thread Joshua Niehus
On Tuesday, 10 September 2013 at 20:48:58 UTC, Andrei Alexandrescu wrote: We're considering making dub the official package manager for D. What do you all think? This would be awesome. +1

Re: Improved Phobos dox

2013-09-15 Thread Joshua Niehus
On Sunday, 15 September 2013 at 18:38:54 UTC, Sönke Ludwig wrote: Just as a reminder, this is the current version: http://vibed.org/temp/d-programming-language.org/phobos/std/array.html This is way better +1

Re: Anyone used LLVM-D with Dub?

2013-10-01 Thread Joshua Niehus
On Wednesday, 2 October 2013 at 02:22:42 UTC, Alan wrote: Hello! I'm working on a project and I was going to use LLVM ... [...snip..] I want to know if anyone here has any experience witht his by any chance? The source of the problem? Is it a bug? Thanks for any suggestions. Sorry, I haven't

Re: Low-Lock Singletons In D

2013-05-05 Thread Joshua Niehus
On Monday, 6 May 2013 at 02:35:33 UTC, dsimcha wrote: Article: http://davesdprogramming.wordpress.com/2013/05/06/low-lock-singletons/ Reddit: http://www.reddit.com/r/programming/comments/1droaa/lowlock_singletons_in_d_the_singleton_pattern/ Excellent talk at the conf, solid blog: +1 and 1

Re: Vote for std.uni

2013-05-20 Thread Joshua Niehus
On Monday, 20 May 2013 at 06:18:15 UTC, Jesse Phillips wrote: Sunday April 26 PST will be the last day of voting. 2014? vote: yes

Re: D's limited template specialization abilities compared to C++

2013-05-25 Thread Joshua Niehus
On Saturday, 25 May 2013 at 16:27:59 UTC, deadalnix wrote: Hi, I obviously don't know D that much, but I assume I do. [..snip..] +1

Re: Path as an object in std.path

2013-06-05 Thread Joshua Niehus
On Wednesday, 5 June 2013 at 06:27:46 UTC, Dylan Knutson wrote: "which exposes a much more palatable interface to path string manipulation". [...snip...] I'd like some feedback on what others think about this; personally, I prefer the current implementation and found it easy to use for the mu

Re: The stately := operator feature proposal

2013-06-05 Thread Joshua Niehus
On Thursday, 30 May 2013 at 13:13:02 UTC, MrzlganeE wrote: I hate you all, and with this, I exit the D community ooo, a sensitive troll... There was a time when D didn't have the sugary lambda syntax: "=>" I think that turned out nicely. (maybe someone already mentioned this in the thread, did

Re: Building druntime on MAC OS X

2013-11-21 Thread Joshua Niehus
On Thursday, 21 November 2013 at 13:56:07 UTC, Jacob Carlborg wrote: BTW, if you're able to figure out how to build the Mac OS X installer on Linux Walter would appreciate it. I failed to do that. this might help: https://github.com/hogliux/bomutils

Re: No household is perfect

2013-12-03 Thread Joshua Niehus
On Tuesday, 3 December 2013 at 22:28:26 UTC, H. S. Teoh wrote: [snip] Then you can write: Set a, b, c; auto d = mixin(SetExpr!"a ∪ (b ∩ c)"); // The above line gets turned into: // auto d = a.union(b.intersection(c)); // at compile-

Re: Lambda syntax for methods and functions

2013-12-10 Thread Joshua Niehus
On Saturday, 7 December 2013 at 17:29:43 UTC, bearophile wrote: Even Ada2012 has a similar syntax. I think it's worth having in D. The ER: https://d.puremagic.com/issues/show_bug.cgi?id=7176 Bye, bearophile similar to dart, my 2nd favorite lang :) https://www.dartlang.org/articles/idiomatic-

Re: OT: Your accomplishments in 2013 and plans for 2014

2013-12-11 Thread Joshua Niehus
On Wednesday, 11 December 2013 at 19:45:25 UTC, Andrej Mitrovic wrote: As for my future plans, I'm hoping to land myself a nice programming-related job next year. I hear facebook and sociomantic are hiring ;)

Re: [OT] DConf - How to survive without a car?

2014-05-09 Thread Joshua Niehus via Digitalmars-d
I live in the area and will be driving by Aloft on my way to FB. I can fit 3 other people (sliver Rav4). Ill just pull up with a clever D theme sign on my car and pick up any stragglers if needed.

Re: [OT] DConf - How to survive without a car?

2014-05-14 Thread Joshua Niehus via Digitalmars-d
On Wednesday, 14 May 2014 at 21:31:08 UTC, Jeremy Powers via Digitalmars-d wrote: Excellent. I need a lift if possible? Of so please tell me when I should be in the aloft lobby? This seems to still be an open question - what time to gather? I'll be there between 8am and 8:15am and will ha

To deadalnix

2014-05-23 Thread Joshua Niehus via Digitalmars-d
watching your talk was like witnessing Fermats last theorem being proven... the scheduler solution was brilliant and the semantic analysis of a mixin statement that resulted in a comprehensible error message blew my mind. Here is a belated applause that should have happened during those sli

Re: Performance of std.json

2014-06-01 Thread Joshua Niehus via Digitalmars-d
On Monday, 2 June 2014 at 00:18:19 UTC, David Soria Parra wrote: Would it make sense to start thinking about using ujson4c as an external library, or maybe come up with a better implementation. I know Orvid has something and might add some analysis as to why std.json is slow. Any ideas or point