Re: SecureD moving to GitLab

2018-06-08 Thread Kapps via Digitalmars-d-announce
On Tuesday, 5 June 2018 at 06:55:42 UTC, Joakim wrote: On Tuesday, 5 June 2018 at 06:45:48 UTC, Adam Wilson wrote: Hello Fellow D'ers, As some of you know I work for Microsoft. And as a result of the recent acquisition of GitHub by Microsoft, I have decided, out of an abundance of caution,

Re: GitHub could be acquired by Microsoft

2018-06-08 Thread Kapps via Digitalmars-d-announce
On Friday, 8 June 2018 at 22:06:29 UTC, Walter Bright wrote: On 6/8/2018 3:02 PM, Brad Roberts wrote: Essentially (if not actually) everything on github is available through their api's.  No need for scraping or other heroics to gather it. That's good to know! The situation I was concerned

Re: Diamond MVC / Template Engine - v2.1.0 Released

2017-10-28 Thread Kapps via Digitalmars-d-announce
This looks very cool. I already ended up doing my more recent project in C# partially due to wanting ASP.NET MVC and Entity Framework, but this would have been a really nice replacement to ASP.NET MVC.

Re: gdc is in

2017-06-21 Thread Kapps via Digitalmars-d
On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: the gcc tree: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Congratulations to Iain and the gdc team. :) I found out because it's on the front page of HN right now, where commenters are asking questions about D. Awesome,

Re: Interpolated strings

2017-04-21 Thread Kapps via Digitalmars-d
On Thursday, 20 April 2017 at 18:28:30 UTC, Atila Neves wrote: On Monday, 17 April 2017 at 19:38:33 UTC, Kapps wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: [...] C# got this feature recently. I didn't expect it to be a significant difference, but I do find it a

Re: Interpolated strings

2017-04-17 Thread Kapps via Digitalmars-d
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: Hi all I've been wanting to have support for interpolated strings in D for some time now that will allow you to write e.g.: auto a = 7; writeln( $"{a} times 3 is {a*3}" ); Code speaks louder that words so I've made a PR that

Re: Catching Errors

2017-01-19 Thread Kapps via Digitalmars-d
On Friday, 20 January 2017 at 01:24:18 UTC, Jon Degenhardt wrote: On Thursday, 19 January 2017 at 14:29:46 UTC, Jack Stouffer wrote: [...] I think this is an area of D I haven't explored yet. Is there a place in the docs that describe the difference between errors and exceptions? As to the

Re: Getters/setters generator

2016-12-13 Thread Kapps via Digitalmars-d-announce
On Sunday, 11 December 2016 at 06:55:22 UTC, Mike Parker wrote: On Sunday, 11 December 2016 at 03:15:55 UTC, Mike Bierlee wrote: I was under the impression that you could only access methods as if they were fields using the @property attribute. After carefully reading the documentation I

Re: an extremely naive question regarding synchronized...

2016-11-15 Thread Kapps via Digitalmars-d-learn
On Monday, 14 November 2016 at 17:43:37 UTC, WhatMeWorry wrote: I was reading this fasciniating article: https://davesdprogramming.wordpress.com/2013/05/06/low-lock-singletons/ And to quote a section of it: - static MySingleton get() {

Re: Why doesn't std.variant.visit automatically call the provided delegates?

2016-11-05 Thread Kapps via Digitalmars-d
On Saturday, 5 November 2016 at 10:09:55 UTC, Adam D. Ruppe wrote: On Saturday, 5 November 2016 at 08:27:49 UTC, Nemanja Boric wrote: // This - does nothing variant.visit!((string s) => { enforce(false); x = 2; }, It calls the function... which returns a delegate, which you

Re: newbie problem with nothrow

2016-10-31 Thread Kapps via Digitalmars-d-learn
On Monday, 31 October 2016 at 17:04:28 UTC, Temtaime wrote: On Monday, 31 October 2016 at 16:55:51 UTC, WhatMeWorry wrote: Is there a way to turn off nothrow or work around it? Because to me it looks like nothrow prevents me from doing anything useful. extern(C) void onKeyEvent(GLFWwindow*

Re: Classes and templates

2016-10-31 Thread Kapps via Digitalmars-d
On Monday, 31 October 2016 at 20:25:18 UTC, Hefferman wrote: for (uint k = 1; k < n; k++) { if (a[k-1] > a[k]) { T tmp = a[k]; a[k] = a[k+1]; a[k+1] = tmp; sorted = false;

Re: Tuple enhancement

2016-10-16 Thread Kapps via Digitalmars-d
On Sunday, 16 October 2016 at 18:51:06 UTC, Sebastiaan Koppe wrote: On Sunday, 16 October 2016 at 13:58:51 UTC, Andrei Alexandrescu wrote: I was thinking it would be handy if tuples had a way to access a field by name at runtime. E.g.: Tuple!(int, "a", double, "b") t; string x = condition ?

Re: How to debug (potential) GC bugs?

2016-09-27 Thread Kapps via Digitalmars-d-learn
On Sunday, 25 September 2016 at 16:23:11 UTC, Matthias Klumpp wrote: Hello! I am working together with others on the D-based appstream-generator[1] project, which is generating software metadata for "software centers" and other package-manager functionality on Linux distributions, and is used

Re: Proper way to work around `Invalid memory operation`?

2016-09-27 Thread Kapps via Digitalmars-d-learn
On Sunday, 25 September 2016 at 16:07:12 UTC, Matthias Klumpp wrote: Hello! I have a class similar to this one: ``` class Dummy { private: string tmpDir; public: this (string fname) { tmpDir = buildPath ("/tmp", fname.baseName); std.file.mkdirRecurse (tmpDir);

Re: Let's move to github.com/dlang !

2016-04-14 Thread Kapps via Digitalmars-d
On Thursday, 14 April 2016 at 21:59:33 UTC, Vladimir Panteleev wrote: Daniel Lang, the previous owner of the GitHub dlang username, has graciously donated us the namespace: http://forum.dlang.org/post/fmarvvsgthihozcil...@forum.dlang.org For the sake of shorter URLs, less typing, and

Re: I want this so badly, please implement

2016-04-12 Thread Kapps via Digitalmars-d
On Tuesday, 12 April 2016 at 08:37:40 UTC, Kagamin wrote: On Thursday, 7 April 2016 at 20:36:28 UTC, Adam D. Ruppe wrote: So a web server dies with a RangeError because of some POST data. What was the user submission that killed it? POST data isn't ordinarily logged, so I have no idea and

Re: Simple performance question from a newcomer

2016-02-21 Thread Kapps via Digitalmars-d-learn
On Monday, 22 February 2016 at 07:10:23 UTC, Kapps wrote: If you do want to test the differences between the range approach and the loop approach, something like: auto sumtest4(Range)(Range range) @safe pure { return range.reduce!((a, b) => a + b); } is a more fair comparison. I get

Re: Simple performance question from a newcomer

2016-02-21 Thread Kapps via Digitalmars-d-learn
If you do want to test the differences between the range approach and the loop approach, something like: auto sumtest4(Range)(Range range) @safe pure { return range.reduce!((a, b) => a + b); } is a more fair comparison. I get results within 15% of sumtest2 with this using dmd. I think

Re: Vulkan bindings

2016-02-17 Thread Kapps via Digitalmars-d
On Thursday, 18 February 2016 at 03:38:42 UTC, Kapps wrote: This is what I did with OpenGL for my own bindings. It had some nice benefits like having the documentation be (mostly) accessible. Unfortunately, turns out the spec contains a lot of typos, including wrong arguments / function

Re: Vulkan bindings

2016-02-17 Thread Kapps via Digitalmars-d
On Thursday, 18 February 2016 at 03:27:55 UTC, Alex Parrill wrote: On Tuesday, 16 February 2016 at 19:01:58 UTC, Satoshi wrote: Hello Vulkan API 1.0 is here and I just wrapped it into D. https://github.com/Rikarin/VulkanizeD Have fun! Please consider making it a Dub package! (IMO It would

Re: Is this nogc? dmd and gdc disagree

2016-02-13 Thread Kapps via Digitalmars-d-learn
On Saturday, 13 February 2016 at 00:41:35 UTC, tsbockman wrote: On Friday, 12 February 2016 at 23:46:09 UTC, Kapps wrote: You'll encounter this pretty often in Phobos I think. I really don't think @nogc is ready, and tend to avoid it in my code. Exceptions are a big reason for it, and lots of

Re: Is this nogc? dmd and gdc disagree

2016-02-12 Thread Kapps via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:41:16 UTC, rcorre wrote: On Thursday, 11 February 2016 at 04:20:13 UTC, tsbockman wrote: On Thursday, 11 February 2016 at 03:09:51 UTC, rcorre wrote: I recently tried compiling enumap with GDC, and found that it disagrees with DMD on whether a function is

Re: DlangIDE update

2016-01-25 Thread Kapps via Digitalmars-d-announce
On Monday, 25 January 2016 at 20:00:57 UTC, Basile B. wrote: On Tuesday, 8 December 2015 at 15:58:43 UTC, Vadim Lopatin wrote: - integration of DML GUI builder (Delphi like) Can you explain me how do you think it can be done while there is even no official object streaming for D ? Just one

Re: nogc Array

2016-01-25 Thread Kapps via Digitalmars-d-learn
On Tuesday, 26 January 2016 at 04:31:07 UTC, Igor wrote: On Tuesday, 26 January 2016 at 03:06:40 UTC, maik klein wrote: On Tuesday, 26 January 2016 at 03:03:40 UTC, Igor wrote: Is there a GC-less array that we can use out of the box or do I have to create my own?

Re: [dlang.org] new forum design - preview

2016-01-15 Thread Kapps via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 The bold fonts, such as unread threads are way too wide, I find it distracting and hard to read. I'm not sold on red links everywhere. It goes

Re: Voldemort Type Construction Error

2016-01-15 Thread Kapps via Digitalmars-d-learn
On Friday, 15 January 2016 at 20:04:47 UTC, Nordlöw wrote: On Friday, 15 January 2016 at 16:51:24 UTC, Anon wrote: On Friday, 15 January 2016 at 14:04:50 UTC, Nordlöw wrote: What have I missed? In line 126, `static struct Result()` is a template. Either drop the parens there, or change the

Re: What are you planning for 2016?

2016-01-05 Thread Kapps via Digitalmars-d
I have a couple of libraries I was intending to make that were waiting for either language changes or other technologies that should be doable in 2016. I was thinking of trying to make a GUI library that's similar to Xamarin Forms, but with D and using something other than Xaml for the UI

Re: question about the implementation of Variant

2016-01-04 Thread Kapps via Digitalmars-d-learn
On Monday, 4 January 2016 at 09:13:25 UTC, Jonathan M Davis wrote: On Monday, January 04, 2016 07:30:50 aki via Digitalmars-d-learn wrote: But wait, how does GC detect there still be a live reference to the object Foo? Because store is just a fix sized array of bytes. ubyte[size] store; GC

Re: Proposal: Database Engine for D

2016-01-01 Thread Kapps via Digitalmars-d
On Friday, 1 January 2016 at 10:26:14 UTC, Russel Winder wrote: On Fri, 2016-01-01 at 10:00 +, Kapps via Digitalmars-d wrote: On Thursday, 31 December 2015 at 17:14:55 UTC, Piotrek wrote: > >   struct Person >   { >    string name; >    string surname; >    ubyte age; &g

Re: Proposal: Database Engine for D

2016-01-01 Thread Kapps via Digitalmars-d
On Thursday, 31 December 2015 at 17:14:55 UTC, Piotrek wrote: struct Person { string name; string surname; ubyte age; Address address; } DataBase db = new DataBase("file.db"); auto coll = db.collection!Person("NSA.Registry"); auto visitationList = coll.filter!(p => p.name

Re: https everywhere update - dlang.org gets an "A" now!

2015-12-07 Thread Kapps via Digitalmars-d-announce
On Monday, 7 December 2015 at 14:38:39 UTC, Steven Schveighoffer wrote: On 12/6/15 11:32 AM, Marc Schütz wrote: On Sunday, 6 December 2015 at 14:17:18 UTC, Steven Schveighoffer wrote: On 12/6/15 3:29 AM, Adil Baig via Digitalmars-d-announce wrote: +1 Same error. This part may help : This

Re: https everywhere update - dlang.org gets an "A" now!

2015-12-06 Thread Kapps via Digitalmars-d-announce
On Sunday, 6 December 2015 at 08:29:07 UTC, Adil Baig wrote: +1 Same error. This part may help : This server could not prove that it is *www.dlang.org *; its security certificate is from*dlang.org * You will need a wild-card certificate (cheaper) or a

Re: https everywhere!

2015-11-30 Thread Kapps via Digitalmars-d-announce
On Saturday, 28 November 2015 at 04:17:19 UTC, Martin Nowak wrote: On Tuesday, 24 November 2015 at 08:48:58 UTC, Vladimir Panteleev wrote: Sorry, I'm not going to pay for my own SSL certificate :) You'll either have to share, or wait until Let's Encrypt goes live and I get around to setting it

Re: assert(0)

2015-11-07 Thread Kapps via Digitalmars-d
On Saturday, 7 November 2015 at 20:48:24 UTC, Fyodor Ustinov wrote: "assert" not guaranteed caught by "scope(exit)/scope(failure)/finally" Where I can read about this in documentation? WBR, Fyodor. Right. Errors indicate that something went fundamentally wrong in your program

Re: assert(0)

2015-11-07 Thread Kapps via Digitalmars-d
On Sunday, 8 November 2015 at 02:51:33 UTC, rsw0x wrote: On Saturday, 7 November 2015 at 22:26:53 UTC, David Nadlinger wrote: On Saturday, 7 November 2015 at 21:00:58 UTC, Fyodor Ustinov wrote: We do not have way to in "scope(failure)" or "scope(exit)" detect - it's "assert" or "throw".

Re: Fastest JSON parser in the world is a D project

2015-10-21 Thread Kapps via Digitalmars-d-announce
On Wednesday, 21 October 2015 at 04:17:19 UTC, Laeeth Isharc wrote: Seems like you now get 2.1 gigbytes/sec sequential read from a cheap consumer SSD today... Not many consumer drives give more than 500-600 MB/s (SATA3 limit) yet. There are only a couple that I know of that reach 2000

Re: Synchronized classes have no public members

2015-10-13 Thread Kapps via Digitalmars-d
On Tuesday, 13 October 2015 at 06:58:28 UTC, Andrei Alexandrescu wrote: https://github.com/D-Programming-Language/dmd/pull/5188 implements a rule defined in TDPL: synchronized classes shall have no public members. The motivation behind this limitation is that member accesses in synchronized

Re: Synchronized classes have no public members

2015-10-13 Thread Kapps via Digitalmars-d
On Tuesday, 13 October 2015 at 18:28:23 UTC, Marco Leise wrote: Guys, sorry to break into your wishful thinking, but synchronized(mutex) {} already works as you want it to since as long as I can think. Yes, it takes a parameter, yes it calls lock/unlock on the mutex. :) Though really,

Re: Go, D, and the GC

2015-10-07 Thread Kapps via Digitalmars-d
On Wednesday, 7 October 2015 at 14:50:52 UTC, Jonathan M Davis wrote: On Wednesday, 7 October 2015 at 14:13:38 UTC, Meta wrote: On Wednesday, 7 October 2015 at 09:59:05 UTC, Timon Gehr wrote: struct S{ @disable this(); @disable enum init=0; } void main(){ S s; // error auto

Re: What keeps you from using gtkd or dlangui

2015-10-05 Thread Kapps via Digitalmars-d
GTK is horrid on OSX, and I've had performance issues with it. I was interested in dlangui, it has promise, but I don't really want to rely on a library designed by one person that reinvents everything. It's guaranteed that that one person will want to move on at some point, and I don't want

Re: http://wiki.dlang.org/Building_DMD improvements

2015-10-03 Thread Kapps via Digitalmars-d
On Saturday, 3 October 2015 at 12:41:36 UTC, Marco Leise wrote: Am Sat, 03 Oct 2015 10:38:51 + schrieb Atila Neves : Better yet would be to have a process so simple that it doesn't require a wiki. Atila You mean Posix: make && make install ? Sure, but what

Re: Improving assert-printing in DMD

2015-10-01 Thread Kapps via Digitalmars-d
On Tuesday, 29 September 2015 at 21:26:00 UTC, John Colvin wrote: Not necessarily. It could just be a defensive assert for something that should already have been verified/cleaned/caught earlier. auto pass = getPassword(); pass.clean(); assert(pass == pass.toLower()); //and on we go ...

Re: D Lang Socket Programming Example

2015-09-25 Thread Kapps via Digitalmars-d
On Saturday, 26 September 2015 at 00:15:39 UTC, bitwise wrote: On Friday, 25 September 2015 at 07:42:25 UTC, vyarthrot wrote: On Friday, 6 September 2013 at 20:47:54 UTC, Savsak wrote: [...] Try this simple socket programming

Re: D ranked as #25 by IEEE spectrum

2015-09-24 Thread Kapps via Digitalmars-d
On Wednesday, 23 September 2015 at 22:20:35 UTC, Meta wrote: On Wednesday, 23 September 2015 at 19:28:00 UTC, Ola Fosheim Grøstad wrote: http://spectrum.ieee.org/static/interactive-the-top-programming-languages-2015 They list D as useful for web development and embedded, but not desktop

Re: Speeding up text file parser (BLAST tabular format)

2015-09-14 Thread Kapps via Digitalmars-d-learn
On Monday, 14 September 2015 at 18:31:38 UTC, H. S. Teoh wrote: I decided to give the code a spin with `gdc -O3 -pg`. Turns out that the hotspot is in std.array.split, contrary to expectations. :-) Here are the first few lines of the gprof output: [...] Perhaps using the new rangified

Re: Beta D 2.068.1-b2

2015-09-04 Thread Kapps via Digitalmars-d-announce
On Friday, 4 September 2015 at 11:44:44 UTC, BBasile wrote: What's so different with C# 'new' that not to call 'super' in a D overriden method ? (even if C# has itself 'base' instead of 'super') C# --- public class BaseC { public int x; public void Invoke() { } } public class

Re: (De)Serializing interfaces

2015-08-22 Thread Kapps via Digitalmars-d-learn
On Saturday, 22 August 2015 at 19:14:16 UTC, nims wrote: I think interfaces are very powerful and I heavily use them. The only problem I have with them is that serializing/deserializing them to XML or JSON doesn't seem to work. So far I got to try Orange and painlessjson. Using Orange all I

Re: D for Game Development

2015-07-31 Thread Kapps via Digitalmars-d
On Thursday, 30 July 2015 at 21:27:09 UTC, deadalnix wrote: On Thursday, 30 July 2015 at 15:10:59 UTC, Brandon Ragland wrote: It's a dog because Java is a dog. But that's not because of the GC. It's not really that bad either, I can open up Minecraft at any time and have it sit in the

Re: How disruptive is the GC?

2015-07-29 Thread Kapps via Digitalmars-d-learn
On Wednesday, 29 July 2015 at 17:09:52 UTC, Namespace wrote: On Wednesday, 29 July 2015 at 09:25:50 UTC, Snape wrote: I'm in the early stages of building a little game with OpenGL (in D) and I just want to know the facts about the GC before I decide to either use it or work around it. Lots of

Re: with(auto x = ...)

2015-07-26 Thread Kapps via Digitalmars-d
On Friday, 24 July 2015 at 15:01:29 UTC, Adam D. Ruppe wrote: On Friday, 24 July 2015 at 14:48:30 UTC, Marc Schütz wrote: But I fail to see the relation to named parameters? You can make your parameters into a struct or tuple and fill them in with normal assignment. The with(auto) thing will

Re: how to avoid cycle detected?

2015-07-02 Thread Kapps via Digitalmars-d-learn
On Wednesday, 1 July 2015 at 09:09:53 UTC, aki wrote: Following code causes run-time error. How can I use static this() without causing error? It's difficult to avoid this situation because actual code is more complex. file main.d: void main() { } file a.d: import b; class A { static

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Kapps via Digitalmars-d
On Thursday, 25 June 2015 at 19:58:14 UTC, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher adaption rate. Off-topic,

Re: std.path.setExt

2015-06-23 Thread Kapps via Digitalmars-d
On Tuesday, 23 June 2015 at 23:13:11 UTC, Mike wrote: `setExtensionLazy` Mike I really don't like the Lazy suffix. Ignoring the issue of making things somewhat uglier solely for the purpose of ambiguity, it also leads to confusion regarding whether you should be invoking foo or fooLazy. Is

Re: What have you done with UDAs?

2015-06-22 Thread Kapps via Digitalmars-d
On Monday, 22 June 2015 at 19:09:40 UTC, weaselcat wrote: I never seem to use them for anything, has anyone else done anything interesting with them? Like several others, I use them for generating command line interfaces to set variables / invoke methods using reflection. For example

Re: Constructor inheritance? Why not?

2015-06-08 Thread Kapps via Digitalmars-d
On Monday, 8 June 2015 at 02:39:22 UTC, Tofu Ninja wrote: Is there any reason why constructors are not inherited? All other methods are inherited, why not constructors? It should be relatively easy to do this with a mixin in theory. Or even a CtorArgsTuple, allowing something like (not

Re: forum.dlang.org, version 2 (BETA)

2015-06-08 Thread Kapps via Digitalmars-d-announce
On Friday, 5 June 2015 at 20:54:50 UTC, Vladimir Panteleev wrote: The reply count number is now a secret link to the thread. Awesome. :) This combined with the other beta changes, and I think the new beta forum is a very nice improvement over the current one, even though the 0 reply link

Re: forum.dlang.org, version 2 (BETA)

2015-06-05 Thread Kapps via Digitalmars-d-announce
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

Re: Negation of attributes (DIP 79)

2015-06-02 Thread Kapps via Digitalmars-d
This in theory reduce some kind of bugs, when one forget to mark method as virtual. It doesn't reduce bugs, it introduces noticeable bugs and slightly lowers performance. All at the benefit of not having to write' virtual'. /pedantic As for the actual DIP, I don't like final(false). It's

Re: Making `object.opEquals' replaceable

2015-05-07 Thread Kapps via Digitalmars-d
On Thursday, 7 May 2015 at 14:37:14 UTC, Manfred Nowak wrote: According to the specs http://dlang.org/operatoroverloading.html#equals `object.opEquals' denies to call the `opEquals'-function tailored for the class of two objects `a' an `b' if for those objects `a is b' holds. Although this

Re: SDC needs you

2015-04-16 Thread Kapps via Digitalmars-d
On Thursday, 16 April 2015 at 04:05:19 UTC, Andrei Alexandrescu wrote: Forgive my being skeptical but my repeated appeals to contributions - most of them important, urgent, and of high impact - sometimes labeled with [WORK] in this forum, have been answered by the same very small kernel of

Re: Pitching an investment bank on using D for their bond analytics

2015-04-15 Thread Kapps via Digitalmars-d
On Tuesday, 14 April 2015 at 12:08:54 UTC, D Denizen since a year wrote: A friend has been invited to be a consultant for an investment bank that would like to build a set of analytics for fixed income products. The team is currently quite small - about 5 C++ developers - and the idea is to

Re: I came up with a new logo for the D language

2015-04-12 Thread Kapps via Digitalmars-d
On Sunday, 12 April 2015 at 22:02:01 UTC, Barry Smith wrote: It's simple, but clean. Somewhat similar to the old one. Hope you like it. http://s2.postimg.org/m6qcfemhl/dlang.png Email me at barry.of.sm...@gmail.com if you want the SVG version. IIRC Andrei and/or Walter were quite opposed

Re: What's the current status of GC in phobos?

2015-04-05 Thread Kapps via Digitalmars-d
On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote: On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote: Hi! Today I met one guy on the internet, he said that he will use D only if standard library will not require Garbage Collector (in case of total GC disabling). So

Re: More Libraries - sub-forum request

2015-04-04 Thread Kapps via Digitalmars-d
On Saturday, 4 April 2015 at 16:43:45 UTC, ParticlePeter wrote: Hi, there is this nice new link to More libraries link, but there is no place to discuss usage, exchange experiences or ask questions regarding these libraries ( unless I am missing something ). A sub-forum here would be very

Re: unittests are really part of the build, not a special run

2015-04-02 Thread Kapps via Digitalmars-d
On Thursday, 2 April 2015 at 06:33:50 UTC, Jacob Carlborg wrote: On 2015-04-01 21:18, Kapps wrote: The only issue I have with the way unittests are done right now, is the incredibly annoying requirement of having a main function and that main gets called. It makes generic tooling and CI

Re: unittests are really part of the build, not a special run

2015-04-01 Thread Kapps via Digitalmars-d
On Wednesday, 1 April 2015 at 18:04:31 UTC, Ary Borenszweig wrote: On Monday, 30 March 2015 at 22:20:08 UTC, Andrei Alexandrescu wrote: This is a tooling issue. I think D's built-in unittest blocks are a mistake. Yes, they are simple and for simple functions and algorithms they work pretty

Re: unittests are really part of the build, not a special run

2015-03-30 Thread Kapps via Digitalmars-d
Would this change result in just not running main and changing the default unittest runner output, but still run static constructors (which then allows you to specify a custom unittest runner)? If so, I think it's a nice change. I've always found it quite odd that running unittests still runs

Re: Named unittests

2015-03-30 Thread Kapps via Digitalmars-d
On Monday, 30 March 2015 at 21:52:35 UTC, Andrei Alexandrescu wrote: I'd like to make a DIP for named unittests. Who can help me with that? Andrei I agree that using library-defined annotations would be a better approach than language changes. Currently things like tested use the form

Re: std.reflection prototype

2015-03-29 Thread Kapps via Digitalmars-d
On Monday, 30 March 2015 at 05:06:14 UTC, bitwise wrote: This definitely should be a library solution. In terms of what Andre was suggesting, I think my implementation is 90% of the way there, so if the will was there to add something like std.reflection to phobos, it wouldn't be much of a

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Kapps via Digitalmars-d-announce
On Monday, 23 March 2015 at 16:05:55 UTC, Szymon Gatner wrote: i am typing from my phone so hard to find but i did post it on forums some time ago Posting about something on the forums won't get it fixed, make a bug report if you're encountering a bug.

Re: DIP75 - Release Process

2015-03-12 Thread Kapps via Digitalmars-d
On Thursday, 12 March 2015 at 07:44:01 UTC, Jacob Carlborg wrote: On 2015-03-11 17:27, Anon wrote: Ignoring that for a moment, where does it stop? Do we include an editor? [sarcasm] Why not? Every D developer needs to edit their code! Let's go ahead and call Eclipse+DDT the standard D

Re: Standard GUI framework inspired by Qt

2015-03-05 Thread Kapps via Digitalmars-d
On Thursday, 5 March 2015 at 11:20:28 UTC, Rikki Cattermole wrote: On 5/03/2015 8:58 p.m., ketmar wrote: On Thu, 05 Mar 2015 08:40:36 +0100, Jacob Carlborg wrote: Everyone is constantly forgetting about OS X :(. i'm not forget about it, i'm simply ignoring it, along with windows. strictly

Re: What is going on here?

2015-03-04 Thread Kapps via Digitalmars-d
On Thursday, 5 March 2015 at 01:13:53 UTC, weaselcat wrote: Would be nice if votes on bugzilla mattered, like putting highly voted opened bugs on the front page of dlang.org. They sort of matter. Some people would choose to fix bugs based off of votes. The tricky part is that the issues

Re: Shouldn't std.conv.emplace be @nogc?

2015-03-02 Thread Kapps via Digitalmars-d-learn
On Monday, 2 March 2015 at 12:37:33 UTC, drug wrote: I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources. Soon: https://github.com/D-Programming-Language/phobos/pull/2999

Re: DlangUI

2015-02-24 Thread Kapps via Digitalmars-d-announce
On Thursday, 29 January 2015 at 15:29:15 UTC, Vadim Lopatin wrote: On Thursday, 29 January 2015 at 14:13:22 UTC, John Colvin wrote: On Wednesday, 28 January 2015 at 14:21:36 UTC, Vadim Lopatin wrote: On Wednesday, 28 January 2015 at 13:37:34 UTC, John Colvin wrote: On Wednesday, 28 January

Re: DlangUI

2015-02-24 Thread Kapps via Digitalmars-d-announce
On Tuesday, 24 February 2015 at 16:46:12 UTC, Kapps wrote: On Thursday, 29 January 2015 at 15:29:15 UTC, Vadim Lopatin wrote: On Thursday, 29 January 2015 at 14:13:22 UTC, John Colvin wrote: On Wednesday, 28 January 2015 at 14:21:36 UTC, Vadim Lopatin wrote: An example of what I see (with

Re: Should we remove int[$] before 2.067?

2015-01-30 Thread Kapps via Digitalmars-d
On Friday, 30 January 2015 at 19:07:53 UTC, Andrei Alexandrescu wrote: The interesting thing is because of the tight overloading rules, s will only match statically-sized arrays. So it's okay to simply expose it as std.array.s without fear it might clash with other uses of the s symbol.

Re: Should we remove int[$] before 2.067?

2015-01-30 Thread Kapps via Digitalmars-d
On Saturday, 31 January 2015 at 05:21:08 UTC, an wrote: On Saturday, 31 January 2015 at 05:07:35 UTC, Kapps wrote: With a library method of [1, 2, 3].s, or syntax of [1, 2, 3]s, would this proposed $ syntax really provide any benefit? Since you could already use 'auto a = [1, 2, 3]' for size

Re: Window creation, for phobos?

2015-01-29 Thread Kapps via Digitalmars-d
On Thursday, 29 January 2015 at 14:45:19 UTC, Adam D. Ruppe wrote: Is writeln even platform agnostic? I've used targets where it doesn't do anything including Microsoft Windows with the gui subsystem. Sure it does, it's just that by default the stdio handles are closed. You can still run

Re: [website redesign] PR for the one with the big red menu bar

2015-01-28 Thread Kapps via Digitalmars-d
On Wednesday, 28 January 2015 at 15:54:31 UTC, anonymous wrote: On Tuesday, 27 January 2015 at 20:02:12 UTC, anonymous wrote: PR: https://github.com/D-Programming-Language/dlang.org/pull/869 - For details see here. Live version: http://ag0aep6g-dlang.rhcloud.com - If you've visited this

Re: std.experimental.logger formal review round 3

2015-01-23 Thread Kapps via Digitalmars-d
On Friday, 23 January 2015 at 20:24:54 UTC, Andrei Alexandrescu wrote: I propose we pull this in today and make it available for 2.067 as std.experimental.logger. We've been through a number of iterations with this and the best way to move forward is to accumulate a bit of real-world

Re: forcing @nogc on class destructors

2015-01-20 Thread Kapps via Digitalmars-d
On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via Digitalmars-d wrote: let's see how this proposal will be rejected. will there be some sane reasons, or only the good old song about broken code? make your bets! Lots of functions can theoretically allocate, but don't in the way you call

Re: Please help me with improving dlang.org

2015-01-18 Thread Kapps via Digitalmars-d
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all think? Is it an improvement over what we have now? I'd

Re: Please help me with improving dlang.org

2015-01-17 Thread Kapps via Digitalmars-d
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all think? Is it an improvement over what we have now? I'd

Re: Please help me with improving dlang.org

2015-01-17 Thread Kapps via Digitalmars-d
On Sunday, 18 January 2015 at 04:32:02 UTC, Kapps wrote: On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all

Re: Nicer anchors

2014-12-29 Thread Kapps via Digitalmars-d
On Tuesday, 30 December 2014 at 05:30:26 UTC, Andrei Alexandrescu wrote: On 12/29/14 4:19 PM, Andrei Alexandrescu wrote: Please destroy https://github.com/D-Programming-Language/dlang.org/pull/734 -- Andrei Improved anchors are up on the site. Please try'em out! -- Andrei

Re: removal of dead functions and methods

2014-12-24 Thread Kapps via Digitalmars-d
On Wednesday, 24 December 2014 at 14:08:25 UTC, Dicebot wrote: On Wednesday, 24 December 2014 at 14:04:56 UTC, ketmar via Digitalmars-d wrote: Hello. i was never thinking about it, but recently i found parts of source code in my compiled D binary. they comes from code generation functions,

Re: cross post hn: (Rust) _ _ without GC

2014-12-22 Thread Kapps via Digitalmars-d
On Monday, 22 December 2014 at 22:02:46 UTC, ketmar via Digitalmars-d wrote: oh, how much usefullness there would be if D core suspended all other activities and maked GC on par with industrial strength GCs! i'm trying to tell you that i LOVE GC. and i can't share the (growing?) attitute

Re: What's missing to make D2 feature complete?

2014-12-21 Thread Kapps via Digitalmars-d
- Tuple support would be nice (more minor for me) - Proper @nogc support (Exceptions in particular make @nogc unusable in its current state, I've stopped bothering with it) - Final - virtual support (fairly important) - Fixing importing / visibility (ie, 314 and other issues) Besides the

Re: stdio.lines doesn't have popFront, but works with foreach

2014-12-11 Thread Kapps via Digitalmars-d-learn
On Thursday, 11 December 2014 at 20:11:21 UTC, Andrew Klaassen wrote: The docs for stdio.lines say that it's a struct. stdio.lines works with foreach. The docs for foreach say: Iteration over struct and class objects can be done with ranges. For foreach, this means the following properties

Re: std.stdint seems to be an outcast?

2014-12-08 Thread Kapps via Digitalmars-d
On Monday, 8 December 2014 at 17:21:00 UTC, Gary Willoughby wrote: There is a module called std.stdint located here: http://dlang.org/phobos/std_stdint.html but it doesn't appear in the documentation index here: http://dlang.org/phobos/index.html Not only that but when looking at the source

Re: Check type is a struct at compile time?

2014-12-05 Thread Kapps via Digitalmars-d-learn
On Friday, 5 December 2014 at 20:38:31 UTC, Gary Willoughby wrote: How can i check that a type is a struct at compile time? I know i can test for a class like this: static if(is(T == class)) { ... } But how to do the same thing for a struct? Same thing but with struct: is(T == struct)

Re: dsource.org moved

2014-12-03 Thread Kapps via Digitalmars-d-announce
On Wednesday, 3 December 2014 at 23:26:42 UTC, Vladimir Panteleev wrote: This will not help: clawling != indexing, and robots.txt only stops crawling. robots.txt will not prevent a site from appearing in Google search results, and it will not help in lowering a site's search popularity. All

Re: Phobos - breaking existing code

2014-11-29 Thread Kapps via Digitalmars-d
On Friday, 28 November 2014 at 23:33:54 UTC, Walter Bright wrote: Just for fun, I've decided to try and get MicroEmacs in D added to the dub registry. The last time it compiled was 2 years ago. I wound up with at least a dozen references to Phobos names that have disappeared. No corrective

Re: [dub] Size of executable

2014-11-28 Thread Kapps via Digitalmars-d-learn
On Thursday, 27 November 2014 at 09:33:49 UTC, Chris wrote: [Maybe this has been asked before.] I usually use dub to create and build projects. I built one of the projects with dub and then by hand with dmd[1] passing all the files etc. Turned out that the executable built with dub was 1.4

Re: Overload using nogc

2014-11-23 Thread Kapps via Digitalmars-d
On Friday, 21 November 2014 at 03:36:30 UTC, Jonathan Marler wrote: Has the idea of function overloading via nogc been explored? void func() @nogc { // logic that does not use GC } void func() { // logic that uses GC } void main(string[] args) // @nogc { // if main is @nogc, then

Re: Overload using nogc

2014-11-23 Thread Kapps via Digitalmars-d
On Sunday, 23 November 2014 at 08:57:15 UTC, Kapps wrote: Instead consider passing in an allocator. Then it's explicit, more flexible, and more different. More apparent rather. Auto correct messed it up then hit send trying to touch the word to select it. -_-

Re: undefined reference to class template

2014-11-23 Thread Kapps via Digitalmars-d-learn
On Friday, 14 November 2014 at 23:29:34 UTC, Satoshi wrote: Hi, Im using GDC 4.9.0 compiler. I have template classes like public class LinkedList(T) {...} and when I try compile it together, everything works fine. But when I compile every source file to separate object file and link it

Re: Comparing Parallelization in HPC with D, Chapel, and Go

2014-11-21 Thread Kapps via Digitalmars-d
On Friday, 21 November 2014 at 21:53:00 UTC, bearophile wrote: anon: https://www.academia.edu/3982638/A_Study_of_Successive_Over-relaxation_SOR_Method_Parallelization_Over_Modern_HPC_Languages Thank you for the link, it's very uncommon to see papers that use D. But where's the D/Go/Chapel

  1   2   >