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, congratul

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

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 p

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 never

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 ? "a

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 consisten

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 canno

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 b

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 a

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 mar

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: 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". Indee

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 and

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, t

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 o

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 d=S

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 w

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 about dependencies, an expla

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 ... Ther

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 http://csharp.net-informations.com/communications/csharp-socke

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 apps.

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 backgro

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: 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, but

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 https:/

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 certain

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 si

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 co

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 to

Re: Which D IDE do you use?(survey)

2015-04-08 Thread Kapps via Digitalmars-d
Mono-D primarily, occasionally Sublime Text. Before that it was my own VS plugin, and hopefully at some point in the future it'll be my own IDE. Existing ones always annoy me in some way.

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 what's

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 ni

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 prett

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 t

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 l

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 edito

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 with

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]'

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. A

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 before

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 experi

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 cal

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 appr

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: 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 appr

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 http://dlang.org/

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, wh

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 t

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 a

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 i

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 act

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 the

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: 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 so

Re: DMC download on main site contains wrong link.exe?

2014-11-14 Thread Kapps via Digitalmars-d
On Friday, 14 November 2014 at 08:50:07 UTC, Meta wrote: I was just trying to compile DMD from source when I got a linker error: OPTLINK : warning 9: Unkown Option : LA I got this version of OPTLINK from the DMC zip hosted here: http://downloads.dlang.org/other/dm857c.zip. It says it's versi

Re: What IDE/EDITOR do you use for D?

2014-11-08 Thread Kapps via Digitalmars-d
Mono-D. Things like call tooltips and being able to view documentation inline are too good to pass up. Sometimes Sublime if what I need to do is more text editing than programming, such as some types of refactoring.

Re: function pointer bug?

2014-10-28 Thread Kapps via Digitalmars-d
On Monday, 27 October 2014 at 22:17:25 UTC, bitwise wrote: This error seems like it may be related some how: enum index = __traits(getVirtualIndex, TestClass.instanceMethod); enum p = TestClass.classinfo.vtbl[index]; The above code will produce this error: Error: typeid(main.TestClass).vtbl

Re: function pointer bug?

2014-10-28 Thread Kapps via Digitalmars-d
On Tuesday, 28 October 2014 at 02:34:14 UTC, ketmar via Digitalmars-d wrote: On Tue, 28 Oct 2014 01:36:01 + bitwise via Digitalmars-d wrote: I have actually found a work around as well, which was to wrap the actual retrieval of the function address in a lambda, and pass the lambda by temp

Re: OT: Minecraft death by GC

2014-10-21 Thread Kapps via Digitalmars-d
"Maybe the biggest and the ugliest problem is the memory allocation. Currently the game allocates (and throws away immediately) 50 MB/sec when standing still and up to 200 MB/sec when moving. That is just crazy." Wonder how much better that would be if Java had proper value types. The idea of

Re: Help with reflection?

2014-10-10 Thread Kapps via Digitalmars-d
On Friday, 10 October 2014 at 17:00:01 UTC, bitwise wrote: Hey, I am trying to put together a basic reflection system, but I've run into a problem. I'm not sure if this is a bug or not. I am trying to store method information about a class. So basically, I am using Traits to go through all mem

Re: Read-only property without @property

2014-09-26 Thread Kapps via Digitalmars-d
On Friday, 26 September 2014 at 22:58:53 UTC, Cliff wrote: This is a clever syntax, but I can't say I particularly care for it since it aliases two names for the same location which differ only in their visibility, and this feels... wrong to me somehow. In C# this is a sufficiently common pra

Re: Mono corrupted D files

2014-09-06 Thread Kapps via Digitalmars-d
On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep

Re: Bounty increased to $445 for dmd issue

2014-08-08 Thread Kapps via Digitalmars-d
On Friday, 8 August 2014 at 20:20:08 UTC, Orvid King wrote: On 8/8/2014 3:14 PM, Andrei Alexandrescu wrote: https://www.bountysource.com/issues/1325901-64-bit-c-abi-not-followed-for-passing-structs-and-complex-numbers-as-function-parameters Andrei Any idea when they changed to a delay-loaded

Re: Guide for dmd development @ Win64?

2014-08-04 Thread Kapps via Digitalmars-d
On Tuesday, 5 August 2014 at 03:17:11 UTC, Kapps wrote: On Tuesday, 5 August 2014 at 02:43:13 UTC, Dicebot wrote: On Monday, 4 August 2014 at 22:48:51 UTC, Orvid King wrote: Yep, you'll need to update VCDIR at the top of updateAll.sh to point into the 2013 Visual Studio directory rather

Re: Guide for dmd development @ Win64?

2014-08-04 Thread Kapps via Digitalmars-d
On Tuesday, 5 August 2014 at 02:43:13 UTC, Dicebot wrote: On Monday, 4 August 2014 at 22:48:51 UTC, Orvid King wrote: Yep, you'll need to update VCDIR at the top of updateAll.sh to point into the 2013 Visual Studio directory rather than the 2010 directory. (I believe it should be 12.0) I had

Re: checkedint call removal

2014-08-02 Thread Kapps via Digitalmars-d
On Saturday, 2 August 2014 at 19:10:51 UTC, Walter Bright wrote: On 8/2/2014 4:12 AM, Artur Skawina via Digitalmars-d wrote: _`assume` is extremely dangerous_. Redefining `assert` to include `assume` would result in D's `assert` being banned from the whole code base, if 'D' even would be consi

Re: Encouraging memory efficiency

2014-07-17 Thread Kapps via Digitalmars-d
On Thursday, 17 July 2014 at 16:28:00 UTC, Tero wrote: Just watched Don's DConf 2014 talk where he said D has to be ruthless about memory inefficiency. Here's one thing that I think could help avoid unnecessary garbage: built-in syntax for this: import core.stdc.stdlib : alloca; ubyte[] buffer

Re: Continuous integration testing with travis and drone

2014-07-15 Thread Kapps via Digitalmars-d
On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev wrote: May I improve forum to support markdown? The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup client

Re: Review: std.logger

2014-07-11 Thread Kapps via Digitalmars-d
The API seems nice and simple while providing enough flexibility, and I think it would work quite well for my purposes. Some comments: API: Not clear what the difference between globalLogLevel and a log level on each individual logger is. Does the global one only affect the global logger? What ha

Re: @nogc

2014-07-10 Thread Kapps via Digitalmars-d
On Friday, 11 July 2014 at 04:00:05 UTC, Chris Cain wrote: On Friday, 11 July 2014 at 03:45:17 UTC, Walter Bright wrote: I've thought of allowing "throw new ...", and yours would be in addition to that, in @nogc functions, but was waiting to see how this would play out a bit first. Errors I a

Re: @nogc

2014-07-10 Thread Kapps via Digitalmars-d
On Friday, 11 July 2014 at 02:32:00 UTC, Manu via Digitalmars-d wrote: So, we allow assert() in nothrow functions, the argument is that assert is non-recoverable, so it's distinct from user exceptions. I have this in my 'nothrow @nogc' function: assert(false, "Message " ~ details); It compl

Re: Opportunities for D

2014-07-09 Thread Kapps via Digitalmars-d
On Wednesday, 9 July 2014 at 22:55:19 UTC, Walter Bright wrote: On 7/9/2014 1:58 PM, Sean Kelly wrote: we're pretty close in D once my Scheduler pull request is accepted. I couldn't find it. Can you please add the link to the PR to: https://issues.dlang.org/show_bug.cgi?id=13086 ? https://

Re: Module level variable shadowing

2014-06-28 Thread Kapps via Digitalmars-d
On Saturday, 28 June 2014 at 05:13:16 UTC, H. S. Teoh via Digitalmars-d wrote: Actually, this particular use case is very bad. It's just inviting typos, for example, if you mistyped "int a" as "int s", then you get: struct Foo { int a; this(int s) {

Re: std.math performance (SSE vs. real)

2014-06-28 Thread Kapps via Digitalmars-d
On Saturday, 28 June 2014 at 05:16:29 UTC, Walter Bright wrote: That's a common perception of people who do not use the floating point unit for numerical work, and whose main concern is speed instead of accuracy. > I find it's extremely rare to have precision problems even with float under

Re: typeid of an object whose static type is an interface returns the interface

2014-06-28 Thread Kapps via Digitalmars-d
On Friday, 27 June 2014 at 21:23:52 UTC, Mark Isaacson wrote: If I have a variable whose static type is an interface and I call typeid on it, I get the interface back, not the dynamic type. This seems like confusing behavior. Is this the intended result? I recognize that one needs some amount o

Re: Module level variable shadowing

2014-06-27 Thread Kapps via Digitalmars-d
On Friday, 27 June 2014 at 08:24:16 UTC, dennis luehring wrote: Am 27.06.2014 10:20, schrieb dennis luehring: I think we hit the sweet spot at restricting shadowing detection to local scopes. sweet does not mean - use a better name or .x to avoid manualy hard to detect problems - its like di

Re: shorter alternative of constructor with parameter

2014-06-22 Thread Kapps via Digitalmars-d
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 to add (n choose k) simple constructors to a

Re: shorter alternative of constructor with parameter

2014-06-21 Thread Kapps via Digitalmars-d
On Saturday, 21 June 2014 at 17:17:57 UTC, Suliman wrote: Dart and few others modern languages support short declaration constructor with parameter: class Person { String name; Person(String name) { this.name = name; } } // Shorter alternative class Person { String name; // par

Re: DIP64: Attribute Cleanup

2014-06-21 Thread Kapps via Digitalmars-d
On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones do not. I've created a DIP to address these issues. I a

Re: A Perspective on D from game industry

2014-06-18 Thread Kapps via Digitalmars-d
On Thursday, 19 June 2014 at 05:35:06 UTC, Nick Sabalausky wrote: That's why I inadvertently learned to love printf debugging. I get to see the whole "chart" at one. Granted, it's in a bit of a "The Matrix"-style "only comprehensible if you know what you're looking at" kind of way. Actual GUI g

Re: Adding the ?. null verification

2014-06-18 Thread Kapps via Digitalmars-d
On Wednesday, 18 June 2014 at 15:42:04 UTC, Etienne wrote: I find myself often repeating this boilerplate: if (obj.member !is null) { if (obj.member.nested !is null) { if (obj.member.nested.val !is null) { writeln(obj.member

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Kapps via Digitalmars-d
On Tuesday, 17 June 2014 at 18:15:24 UTC, Walter Bright wrote: On 6/17/2014 4:36 AM, Manu via Digitalmars-d wrote: On 17 June 2014 18:18, Walter Bright via Digitalmars-d wrote: On 6/16/2014 10:02 PM, Manu via Digitalmars-d wrote: I can't imagine exceptions would appear in hot code very often

Re: Not initialized out argument error

2014-06-17 Thread Kapps via Digitalmars-d
C# forces you to set a default value for out parameters, and I personally find it annoying. The very nature of out parameters is often that you use it in a situation where there *may* be a result. Again using a C# example, 'bool Dictionary.TryGetValue(key, out foo)'. I don't care what the valu

Re: A Perspective on D from game industry

2014-06-17 Thread Kapps via Digitalmars-d
On Tuesday, 17 June 2014 at 10:25:39 UTC, dennis luehring wrote: Am 17.06.2014 11:30, schrieb Walter Bright: And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees only normal D code. the text e

Re: Is D production-ready?

2014-06-16 Thread Kapps via Digitalmars-d
On Monday, 16 June 2014 at 22:01:40 UTC, Idan Arye wrote: D is still unstable. Any time now non-null-by-default can get in and break tons of libraries and user code. That's not going to happen.

Re: UFCS & overloaded property getters/setters

2014-06-13 Thread Kapps via Digitalmars-d
Odd, I thought you weren't able to override only a single overload of a property? I might be imagining things, but I recall at least previously that you had to override all getters/setters if you wanted to override any for a property. Personally I think D made a significant mistake in the way

Re: AutoTester file limit

2014-06-12 Thread Kapps via Digitalmars-d
On Thursday, 12 June 2014 at 10:04:35 UTC, Robert Schadek via Digitalmars-d wrote: Currently I have problems with my Logger PR. It magically fails from time to time. Whenever it fails std.socket fails with: "Open file hard limit too low" As far as I can see that is why my tests fail as well. I

Re: extern(Windows) behavior on non-Windows systems

2014-06-11 Thread Kapps via Digitalmars-d
On Wednesday, 11 June 2014 at 22:20:27 UTC, Walter Bright wrote: I've got an enhancement request to have it behave like extern(C): https://issues.dlang.org/show_bug.cgi?id=12894 Thoughts? Anyone use extern(Windows) on non-Windows systems? Isn't this the whole point of extern(System)? I d

Re: Getting an access violation before main starts

2014-06-10 Thread Kapps via Digitalmars-d
The digitalmars.D.learn newsgroup is a more appropriate place for this, but as for your issue, one thing to keep in mind is that static constructors are run before main: import std.stdio; static this() { writeln("Foo"); } void main() { writeln("main"); } $ rdmd test.d Foo mai

  1   2   3   >