Re: C#7 features

2016-05-09 Thread Simen Kjaeraas via Digitalmars-d-announce
On Monday, 9 May 2016 at 00:44:09 UTC, Peter Häggman wrote: Their tuples seem to be a complete DIY: https://msdn.microsoft.com/en-us/library/system.tuple(v=vs.110).aspx I wouldn't be surpised to see in the implementation an array of variant or something like that, explaining why it's limited

Re: Units of Measurement Library: units-d

2016-04-04 Thread Simen Kjaeraas via Digitalmars-d-announce
On Saturday, 2 April 2016 at 01:19:45 UTC, Meta wrote: What is needed is Lisp's gensym construct. That's basically what I said, no? :p One problem of lisp's gensym (if we were to use it in D) is that it's simply a monotonically increasing number with a global prefix. It's perfect for the

Re: Units of Measurement Library: units-d

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 1 April 2016 at 21:46:35 UTC, ag0aep6g wrote: On 01.04.2016 22:59, Simen Kjaeraas wrote: The usual way to fix it would be to include __FILE__ and __LINE__ in the template arguments: Right, no mixin this way. I wouldn't call this "truly nice", though. It depen

Re: Units of Measurement Library: units-d

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 1 April 2016 at 19:03:03 UTC, ag0aep6g wrote: I dislike that the type depends only on the given name. This effectively means that the names are in a global namespace. [snip] I can't think of a truly nice way to accomplish this, though. As far as I see, it needs a mixin of some kind.

Re: [Blog post] Why and when you should use SoA

2016-03-26 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 25 March 2016 at 01:07:16 UTC, maik klein wrote: Link to the blog post: https://maikklein.github.io/post/soa-d/ Link to the reddit discussion: https://www.reddit.com/r/programming/comments/4buivf/why_and_when_you_should_use_soa/ Neat. I've actually thought about writing exactly

Re: Facebook is using D in production starting today

2013-10-11 Thread Simen Kjaeraas
On 2013-10-11, 11:14, Manu wrote: [image: Big Thumbs Up] I'm Simen Kjærås, and I approve of this message. So... when'll all Facebook PHP code be replaced with D? :p -- Simen

Re: D/Objective-C, extern (Objective-C)

2013-06-23 Thread Simen Kjaeraas
On 2013-06-23, 23:02, bearophile wrote: Jacob Carlborg: http://michelf.ca/projects/d-objc/syntax/ Instead of: extern (Objective-C) Is it better to use a naming more D-idiomatic? extern (Objective_C) There's already some precedence in extern (C++). -- Simen

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-30 Thread Simen Kjaeraas
On 2013-05-30, 17:16, Andrei Alexandrescu wrote: For the full story, mosey to the redesigned changelog: http://dlang.org/changelog.html Kudos to Andrej for this. *This* is how a great changelog looks. -- Simen

Re: DConf 2013 Day 1 Talk 2: Copy and Move Semantics in D by Ali Cehreli

2013-05-16 Thread Simen Kjaeraas
On Thu, 16 May 2013 01:40:51 +0200, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 5/16/13, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: I wasn't around back then. :) You must be very young, quite a prodigy, really ;) I'm still learning the alphabet, I'm only at D

Re: DConf 2013 Day 1 Talk 3: Distributed Caching Compiler for D by Robert Schadek

2013-05-13 Thread Simen Kjaeraas
On 2013-05-13, 21:09, Nick Sabalausky wrote: On Mon, 13 May 2013 10:01:03 -0700 Bill Baxter wbax...@gmail.com wrote: Is there a way to find all the reddit links to these (not a frequent reddit user, but I'm curious to look over the discussions each vid gets when I have the chance). Added

Re: DConf 2013 Day 1 Talk 2: Copy and Move Semantics in D by Ali Cehreli

2013-05-12 Thread Simen Kjaeraas
On 2013-05-12, 02:22, Andrei Alexandrescu wrote: On 5/11/13 7:39 PM, Nick Sabalausky wrote: Furthermore, my whole point was nothing more than to merely suggest that *maybe* the delay should simply be somewhat less, *not* a demand or expectation, and *not* even a suggestion that they should all

Re: Visual D 0.3.36 released - support for Alex Bothe's semantic analysis, LDC and profiling

2013-05-11 Thread Simen Kjaeraas
On 2013-05-11, 12:39, Rainer Schuetze wrote: Hi, a new version of Visual D is long overdue, so finally it is released. In addition to the usual fixes of bugs and regressions, the major highlights of this version are - DParser by Alexander Bothe (https://github.com/aBothe/D_Parser, also

Re: DConf 2013 Opening Keynote by Walter Bright: video and slides available

2013-05-10 Thread Simen Kjaeraas
On Fri, 10 May 2013 15:00:44 +0200, Jeff Nowakowski j...@dilacero.org wrote: On 05/08/2013 05:41 PM, Andrei Alexandrescu wrote: VOTE UP!!! http://www.reddit.com/r/programming/comments/1dyinq/dconf_2013_opening_keynote_by_walter_bright/ I have to laugh at the reddit id: 1dying :)

Re: Crystal

2013-03-20 Thread Simen Kjaeraas
On 2013-02-17, 10:52, Russel Winder wrote: Why is this thread on the announce mailing list instead of the discussion list? Because it's more an announcement, and less a discussion about D? -- Simen

Re: DPaste ain't going anywhere

2013-01-14 Thread Simen Kjaeraas
On 2013-34-14 10:01, nazriel s...@dzfl.pl wrote: Hello! I would love to say that it was just 1 April joke that Dpaste is going down but I can't. Things got complicated. I couldn't afford extending domain because I began to run low on money. Thanks to Vladimir Panteleev aka CyberShadow,

Re: Announcement: preapproved tag added to bugzilla

2013-01-08 Thread Simen Kjaeraas
On 2013-30-09 04:01, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Some reasons to reject: outright insane request. RESOLVED: OUTRIGHT INSANE REQUEST Yup, I likes that. -- Simen

Re: User Defined Attributes

2012-11-07 Thread Simen Kjaeraas
On 2012-39-06 20:11, Jacob Carlborg d...@me.com wrote: On 2012-11-06 19:24, David Nadlinger wrote: You are right, UDAs must definitely leverage D's module system for encapsulation/disambiguation. Use of string literals (which are intrinsically »global«) as annotations needs to be explicitly

Re: Alex Rønne Petersen joins phobos and druntime

2012-10-15 Thread Simen Kjaeraas
On 2012-10-15, 20:33, Andrei Alexandrescu wrote: Hello all, Please join me in congratulating Alex Rønne Petersen for joining the phobos and druntime committers on github. Alex has been a very active contributor to D, particularly druntime. We hope his prolific participation to continue

Re: Article: Dispelling Common D Myths

2012-10-10 Thread Simen Kjaeraas
On 2012-10-10 08:10, Nick Sabalausky wrote: Some stuff I thought needed to be said and shared: http://semitwist.com/articles/article/view/dispelling-common-d-myths Now on Reddit: http://www.reddit.com/r/programming/comments/118y4m/dispelling_common_d_myths/ -- Simen

Re: Article: Dispelling Common D Myths

2012-10-10 Thread Simen Kjaeraas
On 2012-10-10, 14:28, Adam D. Ruppe wrote: Another thing I'm (slowly) working toward for the dead D projects thing is opening my dpldocs.info to third party submissions. It actually already kinda works: http://dpldocs.info/search/index but isn't fully done yet. I read that as diplodocus.

Re: Slides from LASER 2012

2012-09-21 Thread Simen Kjaeraas
On Fri, 21 Sep 2012 05:58:21 +0200, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 9/20/12 10:06 AM, Simen Kjaeraas wrote: Cool. And now the inevitable: Will there be video? No video was taken. Andrei *sadface* -- Simen

Re: Slides from LASER 2012

2012-09-20 Thread Simen Kjaeraas
On Thu, 20 Sep 2012 14:57:45 +0200, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I've had the honor of rubbing shoulders for a week at http://laser.inf.ethz.ch/2012/ with Roberto Ierusalimschy, Ivar Jacobson, Erik Meijer, Bertrand Meyer, Martin Odersky, Simon Peyton-Jones,

Re: Antti-Ville Tuuainen Passes GSoC Final Evaluation

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 08:27:09 +0200, Jacob Carlborg d...@me.com wrote: On 2012-08-23 16:38, Alex Rønne Petersen wrote: Yes, but parallelization of the mark phase is fairly trivial, and something we should probably look into. The GC will probably always be STW unless we get compiler support

Re: Walter charms the audience at Sioux

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 13:52:04 +0200, F i L witte2...@gmail.com wrote: Peter Alexander wrote: There's no such thing as a perfect language. Note the asterisks. What I'm used to, *this* means bold. *Perfect* thus means absolutely perfect. Perfect*, on the other hand, would mean either 'more

Re: Dmitry Olshansky Passes GSoC Final Evaluation

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 17:50:37 +0200, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Hi everybody, I'm happy to announce that Dmitry has passed GSoC's final evaluation. Going forward he and I will focus on integrating his work within Phobos. This should have technically occurred

Re: Antti-Ville Tuuainen Passes GSoC Final Evaluation

2012-08-21 Thread Simen Kjaeraas
On Tue, 21 Aug 2012 15:15:48 +0200, dsimcha dsim...@yahoo.com wrote: Congratulations, Antti-Ville! This project creates a better implementation of precise GC heap scanning than anything that's been created so far for D. The goal is to eventually integrate it into standard D

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 22:18:37 +0200, Walter Bright newshou...@digitalmars.com wrote: On 8/19/2012 5:08 AM, bearophile wrote: With a different type system the compiler makes sure at compile-time that x is not empty (this means the compiler makes sure in no code paths x is used before

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 05:52:01 +0200, Walter Bright newshou...@digitalmars.com wrote: On 8/18/2012 8:31 PM, Adam D. Ruppe wrote: enum BOOL { TRUE, FALSE, FILE_NOT_FOUND } I used to work with digital electronics. There, boolean logic actually had 4 states: True False

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 14:08:17 +0200, bearophile bearophileh...@lycos.com wrote: Walter Bright: Oh come on. That's called a user defined type. This D code compiles and it throws an Enforcement failed Exception at runtime: import std.typecons: Nullable; void main() { Nullable!int x;

Re: First working Win64 program!

2012-08-14 Thread Simen Kjaeraas
On Tue, 14 Aug 2012 11:44:43 +0200, Bernard Helyer b.hel...@gmail.com wrote: On Tuesday, 14 August 2012 at 08:28:45 UTC, Walter Bright wrote: On 8/13/2012 4:05 PM, Nick Sabalausky wrote: Well, not *exactly* the same boat. I always, perhaps mistakenly, assumed the OMF issue would

Re: First working Win64 program!

2012-08-12 Thread Simen Kjaeraas
On Sat, 11 Aug 2012 10:16:37 +0200, Walter Bright newshou...@digitalmars.com wrote: No, it ain't much, some of it is jury rigged, and there's a heluva lot more work to do. But we've got liftoff! - import core.stdc.stdio; extern (C) int main() {

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-05-25 Thread Simen Kjaeraas
A. No. Q. Does top-posting make sense? On Thu, 24 May 2012 18:13:59 +0200, Paul D. Anderson paul.d.removethis.ander...@comcast.andthis.net wrote: Here it is! http://astoriaseminar.com/index.html On Thursday, 17 May 2012 at 21:38:32 UTC, Paul D. Anderson wrote: On Wednesday, 22 February

Re: OT: Congratulations Walter!

2011-02-24 Thread Simen kjaeraas
On Thu, 24 Feb 2011 19:45:57 +0100, Walter Bright newshou...@digitalmars.com wrote: JMRyan wrote: Congratulations are due to Walter. His alma mater (Cal Tech) won its first basketball conference game in 26 years. Their 46-35 victory over Occidental broke a 310 SCIAC losing streak. They

Re: Utah Valley University teaches D (using TDPL)

2010-11-15 Thread Simen kjaeraas
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: [Good Stuff™] Awesome! -- Simen

Re: TDPL in Russian

2010-11-10 Thread Simen kjaeraas
Stanislav Blinov bli...@loniir.ru wrote: P.S. Guys, let's be polite, please! Yes, the news are great, but let's not cause eyestrain to non-Russian speaking people. Но Россия это весело! (But russian is fun!) -- Simen

Re: TDPL in Russian

2010-11-09 Thread Simen kjaeraas
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Отлично! Now if only I knew russian, and didn't already have the english version... -- Simen

Re: QtD is resumed

2010-10-12 Thread Simen kjaeraas
Max Samukha spam...@d-coding.com wrote: As there is interest in the project, we have decided to proceed. Stay tuned. Yay! Good luck, and hope Walter and co will give your bug reports some higher priority. I think that is the right thing to do now. -- Simen

Re: dcollections 1.0 and 2.0a beta released

2010-05-24 Thread Simen kjaeraas
Steven Schveighoffer schvei...@yahoo.com wrote: On the flip side, if containers did not implement interfaces, having to do this: class WrappedSet!(alias Impl, V) : Set!V { private Impl!V impl; int functionToSatisfySet() { return impl.functionToSatisfySet(); } ... } seems to me

Re: dcollections 1.0 and 2.0a beta released

2010-05-22 Thread Simen kjaeraas
BCS n...@anon.com wrote: Cool. Now how do I write code so that it will always iterate the collection with the bigger O() lookup time (O(n) before O(log2(n)) before O(log16(n)) before O(1))? :D Add a function. auto foo( R1, R2 )( R1 r1, R2 r2 ) if ( R1.complexity( 10_000 )

Re: dmd 1.061 and 2.046 release

2010-05-17 Thread Simen kjaeraas
Robert Jacques sandf...@jhu.edu wrote: On Mon, 17 May 2010 21:03:02 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: Walter Bright Wrote: Steven Schveighoffer wrote: The end result is, sometimes I can't find a link I clicked on before, because I'm no longer on the exact right page

Re: dmd 1.059 and 2.044 release

2010-05-02 Thread Simen kjaeraas
Walter Bright newshou...@digitalmars.com wrote: Highlights are the improved gdb support, better error messages, better json support, unittest changes, and a number of nuisance compiler bugs fixed. http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.059.zip

Re: Visual D released

2010-04-24 Thread Simen kjaeraas
Rainer Schuetze r.sagita...@gmx.de wrote: Hello, I'd like to announce the initial release of Visual D, a Visual Studio package providing both project management and language services for integration of the D programming language into Visual Studio. [snip] Enjoy, Rainer Thank you. I

Re: dmd 1.057 and 2.041 release

2010-03-08 Thread Simen kjaeraas
Walter Bright newshou...@digitalmars.com wrote: Lots of meat and potatoes here, and a cookie! (spelling checker for error messages) http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.057.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.056 and 2.040 release

2010-01-30 Thread Simen kjaeraas
Walter Bright newshou...@digitalmars.com wrote: http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! D2

Re: SciD: the humble beginning

2009-12-15 Thread Simen kjaeraas
Bill Baxter wbax...@gmail.com wrote: Biggest problem with OpenGL is that the quality is crap for 2D stuff, and quality really matters when you're trying to do something like draw 2000 little markers on a plot and each is only 5 pixels wide. Best you can do right now with GL without a lot of

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sat, 05 Dec 2009 05:05:13 +0100, Walter Bright newshou...@digitalmars.com wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sun, 06 Dec 2009 03:35:42 +0100, Walter Bright newshou...@digitalmars.com wrote: Simen kjaeraas wrote: I get a compile error: std\conv.d(2506): Error: undefined identifier module traits.staticIndexOf Line 2506 in std.conv should be changed from if (std.traits.staticIndexOf!(Unqual

Re: Juni

2009-06-03 Thread Simen Kjaeraas
On Wed, 03 Jun 2009 02:35:03 +0200, Tim Matthews tim.matthe...@gmail.com wrote: Knud Soerensen wrote: Hej John Undskyld, forsinkelsen med denne mail. Normalt er jeg optaget mandag aften. Derudover har jeg noget den 6 og 14 juni. Håber, vi kan find en dag at mødes. VH. Knud Ps.) Jeg kan

Re: Partial specialisation: howto?

2009-05-16 Thread Simen Kjaeraas
div0 wrote: Hi Everybody, Greetings. While I am not able to help with your problem, I would like to point you to digitalmars.D.learn, which is for questions about how the language works. digitalmars.D.announce is for announcements. -- Simen

Re: Split digitalmars.D newsgroup into .D and .D2 newsgroups?

2009-05-11 Thread Simen Kjaeraas
Walter Bright wrote: Is this a good idea? Yes. Although, D.current and D.next or something along those lines, seems to me better than D1 and D2 (there is reason to believe there will be a D3 in the future). -- Simen

Re: RangeExtra 10^-20

2009-04-25 Thread Simen Kjaeraas
dsimcha wrote: RangeExtra version 10^-20 is officially out. It consists of a small and hopefully growing number of ranges that didn't make it into the new Phobos that I've gotten working reasonably well and I feel eventually belong in Phobos. Docs / What's there:

Re: dmd 2.029 release

2009-04-24 Thread Simen Kjaeraas
grauzone wrote: void streamOut(T, R)(T object, R range) { foreach(x; a) range.put(x); range.put(b); range.put(c); } So, um... what is a b c and T object? In my opinion, this is a confusing example. I believe it was meant to be: void streamOut(T, R)(T object, R range) {

Re: dmd 2.029 release

2009-04-23 Thread Simen Kjaeraas
Don wrote: I'd like to see version(debug) {} put around Object.toString(). It's a deathtrap feature that's got no business being used other than for debugging. That actually sounds like a good idea. Like you say, is has no use outside of debugging, but while debugging, it's quite useful.

Re: dmd 2.029 release

2009-04-20 Thread Simen Kjaeraas
On Mon, 20 Apr 2009 09:09:09 +0200, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip Butbutbut... I've just

Re: DMD 1.038 and 2.022 releases

2008-12-17 Thread Simen Kjaeraas
On Wed, 17 Dec 2008 00:39:00 +0100, Robert Jacques sandf...@jhu.edu wrote: On Tue, 16 Dec 2008 12:28:43 -0800, Simen Kjaeraas simen.kja...@gmail.com wrote: So this does not seem pure to you? int myPureFunction(int x) { return x; } Short answer: That's a function

Re: DMD 1.038 and 2.022 releases

2008-12-16 Thread Simen Kjaeraas
On Tue, 16 Dec 2008 18:58:47 +0100, Robert Jacques sandf...@jhu.edu wrote: On Mon, 15 Dec 2008 17:48:21 -0500, mastrost titi.mas...@free.fr wrote: In this example, myPureFunction looks like a pure function, does it? No it doesn't So this does not seem pure to you? int

Re: Adding Unicode operators to D

2008-10-26 Thread Simen Kjaeraas
On Mon, 27 Oct 2008 00:41:26 +0100, Bill Baxter [EMAIL PROTECTED] wrote: Same thing goes for downs' in-fix operators. I think his syntax is /infix/ which means that his ops always have the same precedence as division. I'm guessing this Python Cookbook recipe is very similar to Downs' technique.

Re: Adding Unicode operators to D

2008-10-24 Thread Simen Kjaeraas
On Fri, 24 Oct 2008 18:28:51 +0200, Bruno Medeiros [EMAIL PROTECTED] wrote: Andrei Alexandrescu wrote: Please vote up before the haters take it down, and discuss: http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/ Andrei I'm unsure