Image of D code on Norwegian IT news site

2016-08-31 Thread simendsjo via Digitalmars-d
An article about how outsourcing reduces the need for Norwegian developers. No links to D other than the image on top though. I wonder what they searched for to find this image. http://www.digi.no/artikler/rader-norske-it-folk-til-a-droppe-programmering/279380

Re: Rant after trying Rust a bit

2015-07-23 Thread simendsjo via Digitalmars-d
On Thursday, 23 July 2015 at 16:22:30 UTC, QAston wrote: (... snip ...) That's what I think simendsjo meant about "ugliness". Someone else wrote about the "ugliness", not me.

Re: Experience upgrading template code from 2.065 to 2.067

2015-07-23 Thread simendsjo via Digitalmars-d
On Thursday, 23 July 2015 at 13:20:32 UTC, Nicholas Wilson wrote: On Wednesday, 22 July 2015 at 15:50:13 UTC, simendsjo wrote: // 1 template Tmlp(T) {} // 2 template Tmpl(alias T) {} I'm assuming thats a typo Yes. I just wrote the code in the post without trying to compile

Re: Rant after trying Rust a bit

2015-07-22 Thread simendsjo via Digitalmars-d
On Wednesday, 22 July 2015 at 20:59:11 UTC, Adam D. Ruppe wrote: On Wednesday, 22 July 2015 at 20:43:04 UTC, simendsjo wrote: When "everything" is an expressions, you can write things like auto a = if(e) c else d; In D you have to write type a = invalid_value; if(e) a = c; else

Re: Rant after trying Rust a bit

2015-07-22 Thread simendsjo via Digitalmars-d
On Wednesday, 22 July 2015 at 19:54:05 UTC, Dicebot wrote: Traits system is awesome and pure win. Agreed. Pattern matching is not > that game changing but helps often enough to feel important. The fact that you can use pattern matching many places makes it very much a win. if Some(Inne

Re: Rant after trying Rust a bit

2015-07-22 Thread simendsjo via Digitalmars-d
On Wednesday, 22 July 2015 at 19:52:34 UTC, Alex Parrill wrote: On Wednesday, 22 July 2015 at 18:47:33 UTC, simendsjo wrote: Traits -- ... You can make a `conformsToSomeInterface!T` template, and use `static assert`. D ranges, and the upcoming std.allocator, already use this sort of 'int

Re: Rant after trying Rust a bit

2015-07-22 Thread simendsjo via Digitalmars-d
On Wednesday, 22 July 2015 at 19:41:16 UTC, Jack Stouffer wrote: On Wednesday, 22 July 2015 at 18:47:33 UTC, simendsjo wrote: I've been using D on and off since 2007, and the lack of manpower shows in every aspect of the language, design and ecosystem. Rust has a pretty nice ecosystem and tools

Rant after trying Rust a bit

2015-07-22 Thread simendsjo via Digitalmars-d
Long rant ahead - a bit dipsy.. TL;DR: Rust has momentum, manpower and tooling. Tooling matters. Safe defaults. Ergonomics like expressions and deconstructing rocks. I'm reluctantly confessing that I've had a small affair with Rust recently. While I think D is a really good language, there

Experience upgrading template code from 2.065 to 2.067

2015-07-22 Thread simendsjo via Digitalmars-d
I updated a small template-heavy experimental library mostly for compile-time introspection I write some time ago. The last time I updated the code was probably using 2.065, but might also have been as old as 2.063. The code doesn't use much of the standard library, mostly parts of std.traits

Re: So what exactly is coming with extended C++ support?

2014-09-30 Thread simendsjo via Digitalmars-d
On 09/30/2014 05:32 PM, po wrote: > On Tuesday, 30 September 2014 at 14:19:51 UTC, Araq wrote: >>> It doesn't mention anything about moving C++ into C#. >>> Even with IL2CPP, C# has fundamental design trade offs that make it >>> slower than C++(GC is just one of them), so it wouldn't make much >>>

Re: Library Typedefs are fundamentally broken

2014-09-23 Thread simendsjo via Digitalmars-d
On 09/23/2014 08:05 PM, ketmar via Digitalmars-d wrote: > On Tue, 23 Sep 2014 16:15:19 + > "Adam D. Ruppe via Digitalmars-d" wrote: > >> struct HMENU { void* _; alias _ this; } >> >> Don't even have to import a Phobos module for it! > remember my "uuugly" on Typedef! and __MODULE__? well, i w

Re: RFC: std.json sucessor

2014-08-25 Thread simendsjo via Digitalmars-d
On 08/25/2014 09:35 PM, Walter Bright wrote: > On 8/23/2014 6:32 PM, Brad Roberts via Digitalmars-d wrote: >>> I'm not convinced that using an adapter algorithm won't be just as fast. >> Consider your own talks on optimizing the existing dmd lexer. In >> those talks >> you've talked about the evil

Re: BitC, Rust, dog food and more

2014-08-21 Thread simendsjo via Digitalmars-d
On 08/21/2014 09:39 AM, eles wrote: > On Sunday, 25 March 2012 at 17:31:45 UTC, bearophile wrote: > >>> I think that one of the most important things to underscore is that >>> we would have never found these things so early unless we had written >>> the Rust compiler in Rust itself. It forces us t

Re: Counting D contributors

2014-08-18 Thread simendsjo via Digitalmars-d
On 08/18/2014 11:58 PM, Ali Çehreli wrote: > On 08/18/2014 01:16 PM, Jonathan M Davis wrote: > >> for whatever reason, Kenji isn't listed, and he's obviously a >> big contributor. > > Kenji cannot be captured by tools written by mortals. :p > > Ali > LOL! We need a Kenji Hara facts page like t

Re: Google definitely biased…

2014-08-13 Thread simendsjo via Digitalmars-d
On 08/13/2014 09:12 AM, Paulo Pinto wrote: > On Wednesday, 13 August 2014 at 04:08:25 UTC, Ola Fosheim Gr wrote: >> On Tuesday, 12 August 2014 at 11:09:37 UTC, Paulo Pinto wrote: >>> >>> I can think of very few successful programming languages in the >>> market without corporate backing. >> >> Got

Re: assume, assert, enforce, @safe

2014-07-31 Thread simendsjo via Digitalmars-d
On 07/31/2014 12:01 AM, Walter Bright wrote: (...) > 2. The compiler can make use of assert expressions to improve > optimization, even in -release mode. (...) Does this mean that assertions used for optimization will be left in -release? There's plenty of times where I've had an old incorrect ass

Re: Proposal for design of 'scope' (Was: Re: Opportunities for D)

2014-07-14 Thread simendsjo via Digitalmars-d
On 07/15/2014 08:42 AM, Jacob Carlborg wrote: > On 14/07/14 18:16, H. S. Teoh via Digitalmars-d wrote: > >> Mine is here: >> >> http://wiki.dlang.org/User:Quickfur/DIP_scope > > From the DIP: > > "The 'scope' keyword has been around for years, yet it is barely > implemented and it's unclear

Re: This week's pull stats

2014-07-14 Thread simendsjo via Digitalmars-d
On 07/14/2014 08:55 AM, Walter Bright wrote: > On 7/13/2014 10:32 PM, Brad Roberts via Digitalmars-d wrote: >> I'm playing with the idea of a once a week sort of status email. > > Seems like a fun idea! > > >> Pull creators this week: >> >> +--+---++--+ >> | usern

Re: Older versions of dmd

2014-07-11 Thread simendsjo via Digitalmars-d
On 07/11/2014 08:45 PM, H. S. Teoh via Digitalmars-d wrote: > On Fri, Jul 11, 2014 at 05:51:05PM +, Justin Whear via Digitalmars-d > wrote: >> On Fri, 11 Jul 2014 17:44:28 +, Frustrated wrote: >> >>> So why isn't there a link to previous versions of dmd? I have a >>> regression I need to t

Re: Using D

2014-07-11 Thread simendsjo via Digitalmars-d
On 07/11/2014 06:28 PM, Russel Winder via Digitalmars-d wrote: > On Fri, 2014-07-11 at 17:43 +0200, simendsjo via Digitalmars-d wrote: > […] >> A little anecdote.. I once got a 20% speed increase in Python by >> "moving" a variable instantiation outside a tight loop.

Re: Using D

2014-07-11 Thread simendsjo via Digitalmars-d
On 07/11/2014 05:43 PM, simendsjo wrote: > On 07/11/2014 05:30 PM, Chris wrote: > (...) >> Believe me, D's supposed sluggishness as regards GC is >> not so important for most applications. I dare say 90% of all >> applications are fine with the current GC. > (...) > (...) Oh, and a little GC.disa

Re: Using D

2014-07-11 Thread simendsjo via Digitalmars-d
On 07/11/2014 05:30 PM, Chris wrote: (...) > Believe me, D's supposed sluggishness as regards GC is > not so important for most applications. I dare say 90% of all > applications are fine with the current GC. (...) I agree with this. The bottlenecks i my applications are MySQL and Microsoft Office

Re: shorter alternative of constructor with parameter

2014-06-23 Thread simendsjo via Digitalmars-d
On 06/22/2014 09:58 PM, Kapps wrote: > On Sunday, 22 June 2014 at 11:50:31 UTC, Shammah Chancellor wrote: >> I can't support this proposal. Adds more syntax to a language that >> is already becoming cramped. I also don't see the purpose of having >> simple constructors like this? Are you going

Re: A Perspective on D from game industry

2014-06-15 Thread simendsjo via Digitalmars-d
On 06/15/2014 11:16 PM, Abdulhaq wrote: > On Sunday, 15 June 2014 at 20:10:34 UTC, Walter Bright wrote: >> On 6/15/2014 9:20 AM, Xinok wrote: >>> Given that he lives in Italy, it's safe to assume that English is not >>> his first >>> language. But rather than consider what he has to say or dispute

Re: foreach

2014-06-12 Thread simendsjo via Digitalmars-d
On 06/12/2014 05:46 PM, monarch_dodra wrote: > On Thursday, 12 June 2014 at 15:09:51 UTC, simendsjo wrote: >> >> _ is an often used identifier for "i don't care" in many languages. The >> following works: >> foreach(_; 0..n) > > One issue is that "_" is still an actual identifier, with normal na

Re: foreach

2014-06-12 Thread simendsjo via Digitalmars-d
On 06/12/2014 05:00 PM, Manu via Digitalmars-d wrote: > I often find myself wanting to write this: > foreach(; 0..n) {} > In the case that I just want to do something n times and I don't > actually care about the loop counter, but this doesn't compile. > > You can do this: > for(;;) {} > > If

Re: D Users Survey: Primary OS?

2014-05-30 Thread simendsjo via Digitalmars-d
On 05/30/2014 10:52 AM, Philippe Sigaud via Digitalmars-d wrote: > Linux 64bits here also. > > In fact, contrary to the OP belief, it's mainly a Linux crowd here. > People using Windows regularly complain about it, saying we don't see > the way some tools are missing or not working as well on Wind

Re: D Users Survey: Primary OS?

2014-05-30 Thread simendsjo via Digitalmars-d
On 05/29/2014 05:53 PM, Tom Browder via Digitalmars-d wrote: > Has anyone done a survey of the primary OS of D users? > > I (a D newbie) use Debian Linux (64-bit), but I get the feeling that > many (if not most) users are on some version of Windows. > > Thanks. > > Best regards, > > -Tom > Ar

Re: Dev. Collaboration

2014-05-26 Thread simendsjo via Digitalmars-d
On 05/27/2014 02:12 AM, chuck wrote: > Would anyone be interested in a collaboration forum? I am thinking of > starting one on Proboards to aid in development/collaboration between > developers on D and libraries/bindings. Reading through the posts, I > have seen that several people have created sm

Vibe.d featured on HN frontpage - upvote to give some exposure

2014-05-26 Thread simendsjo via Digitalmars-d
https://hn.algolia.com/#!/story/forever/0/Asynchronous%20I%2FO%20that%20doesn%E2%80%99t%20get%20in%20your%20way%2C%20written%20in%20D

Re: Learn D in x minutes

2014-05-14 Thread simendsjo via Digitalmars-d
On 05/14/2014 10:11 AM, Martin Nowak wrote: > On Wednesday, 14 May 2014 at 07:36:57 UTC, Joseph Rushton Wakeling wrote: >> On Wednesday, 14 May 2014 at 07:04:24 UTC, w0rp wrote: >>> I'm unsure about the "learn x in y minutes" tutorials, but I did >>> however think this was very neat. http://tryhask

Re: Report generator for D

2014-05-05 Thread simendsjo via Digitalmars-d
On 05/06/2014 08:08 AM, Rikki Cattermole wrote: > On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote: >> Please, help... >> >> I want to use D (Vibe.d) to create a web client to access the database >> of medical institutions. Tell me, please, what about the reports >> (report generator)? I need