Re: D2 port of Sociomantic CDGC available for early experiments

2014-10-24 Thread Kagamin via Digitalmars-d-announce
On Thursday, 23 October 2014 at 15:53:19 UTC, Sean Kelly wrote: We could experiment with separately linking the GC. It wouldn't be hard to do, though the link line might be a bit weird, since core, rt, and gc are all interdependent in terms of link dependencies. Can't it work like any other

Re: D2 port of Sociomantic CDGC available for early experiments

2014-10-24 Thread Sean Kelly via Digitalmars-d-announce
On Friday, 24 October 2014 at 06:50:05 UTC, Kagamin wrote: On Thursday, 23 October 2014 at 15:53:19 UTC, Sean Kelly wrote: We could experiment with separately linking the GC. It wouldn't be hard to do, though the link line might be a bit weird, since core, rt, and gc are all interdependent in

Atmosphere GM - Statistical package

2014-10-24 Thread Ilya Yaroshenko via Digitalmars-d-announce
Hello! link http://9il.github.io/atmosphere_gm You are welcome to suggest required algorithms! Best Regards, Ilya

Re: Atmosphere GM - Statistical package

2014-10-24 Thread Marco Leise via Digitalmars-d-announce
Am Fri, 24 Oct 2014 17:54:26 + schrieb Ilya Yaroshenko ilyayaroshe...@gmail.com: Hello! link http://9il.github.io/atmosphere_gm You are welcome to suggest required algorithms! Best Regards, Ilya Your English is a bit confusing :) What can I use this package for? Let's say I

Re: DIP66 - Multiple alias this

2014-10-24 Thread Andrei Alexandrescu via Digitalmars-d
On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP, and collected a few thoughts while doing that. Will get back on this before too long. -- Andrei

Re: GDC Pandaboard/QEMU Framebuffer

2014-10-24 Thread John A via Digitalmars-d
Next up, running the ./testgl3 on QEMU causes a seg fault. Ok, it's working: import derelict.opengl3.gl3; extern (C) void printf(const char*, ...); void main() { printf(Start opengl: \n); DerelictGL3.load(); printf(Start opengl: version %d\n, DerelictGL3.loadedVersion); } prints this

Re: Value Range Propigation Spec

2014-10-24 Thread bearophile via Digitalmars-d
deadalnix: There are possibilities to do more, but compatibility require that we put the line somewhere. The line is still moving forward. The current line seems to be to do VRP on expression and compile time know values. Is that right ? No, it's not right. VRP was recently improved to

Re: D in my trashbin

2014-10-24 Thread deadalnix via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is far beyond me how a project can exist for so many years and still not have a straightforward installation that works out of the box. Yes.. read the forums and

Re: debug = x overrides command line

2014-10-24 Thread Jacob Carlborg via Digitalmars-d
On 2014-10-23 20:40, Daniel Murphy wrote: What if you leave any other form of debug code enabled by accident? The answer is to use version control, and make a quick pass over changes before you commit. Perhaps something for a lint tool as well. -- /Jacob Carlborg

Re: D in my trashbin

2014-10-24 Thread Jack Applegame via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is far beyond me how a project can exist for so many years and still not have a straightforward installation that works out of the box. Yes.. read the forums and

Re: D in my trashbin

2014-10-24 Thread Kagamin via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. Maybe, you messed some semicolons or braces in the hello world source? Try to check that you copied it correctly.

Change Tab Sizes in Forum Posts

2014-10-24 Thread tcak via Digitalmars-d
Most of us print out codes in posts, especially D codes. I use tabs instead of spaces in my code editor, and I directly copy codes from there into a post. Problem is that when a line is too long, it becomes multiline mostly due to the very narrow width of pages (Forum takes half of my screen

Re: OT: Minecraft death by GC

2014-10-24 Thread Kagamin via Digitalmars-d
On Tuesday, 21 October 2014 at 09:07:04 UTC, ROOAR wrote: This issue sure does seem to crop up in GC world, wonder why. Because it's more commercially successful that way. That company with $2.5 billion can't find competent Java engineers lolz! Or they don't fix problems, which didn't

Re: OT: Minecraft death by GC

2014-10-24 Thread Szymon Gatner via Digitalmars-d
On Friday, 24 October 2014 at 07:42:16 UTC, Kagamin wrote: On Tuesday, 21 October 2014 at 09:07:04 UTC, ROOAR wrote: That company with $2.5 billion can't find competent Java engineers lolz! Or they don't fix problems, which didn't appear. That. Minecraft was never expected to be that big.

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Szymon Gatner via Digitalmars-d
On Friday, 24 October 2014 at 07:29:24 UTC, tcak wrote: if the CSS is to be updated for let's say 4 spaces for a tab, You surely meant 2 spaces ;)

Re: D in my trashbin

2014-10-24 Thread eles via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is far beyond me how a project can exist for so many years and still not have a straightforward installation that works out of the box. Yes.. read the forums and

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Kagamin via Digitalmars-d
Yes, the forum wastes so much horizontal space, the tab should be 2 spaces.

Re: Value Range Propigation Spec

2014-10-24 Thread Stefan Koch via Digitalmars-d
Hi, I am the guy who implemented the (currently incomplete) vrp for sdc. I see vrp as a tool to avoid _unnecessary_ casts. _Not_ as means to avoid _all_ casts. void main(in string[] args) { immutable size_t len = args.length % 10; ubyte x = len; ubyte[] a; foreach (immutable

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread John Colvin via Digitalmars-d
On Friday, 24 October 2014 at 07:29:24 UTC, tcak wrote: Most of us print out codes in posts, especially D codes. I use tabs instead of spaces in my code editor, and I directly copy codes from there into a post. Problem is that when a line is too long, it becomes multiline mostly due to the

Re: Value Range Propigation Spec

2014-10-24 Thread bearophile via Digitalmars-d
Stefan Koch: The problem with vrp for non-static immutable values is, that vrp becomes a runtime-thing and I would like to avoid that! Tracking the range of a Variable at runtime could cause significant overhead! Nope, the value range tracking is purely compile-time. 2. implementation is

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Dicebot via Digitalmars-d
Will start review round in ~2 days. I am very sorry for delay :(

Re: RFC: std.concepts

2014-10-24 Thread Dicebot via Digitalmars-d
It is important to leave possibility for compiler to verify that restricted types are used only in compliance with a concept. I am thinking about moving some basic primitives to druntime and designing it in a bit more light-weight way - for example, I don't like usage of Concept base class

Re: Value Range Propigation Spec

2014-10-24 Thread Stefan Koch via Digitalmars-d
you are right. I misread the code-snippt above. Of course this is staticly checkable!

Stackless resumable functions

2014-10-24 Thread Martin Nowak via Digitalmars-d
This is so much better than Fibers. http://youtu.be/KUhSjfSbINE What I like most about the proposal is that you can adapt await by specializing template functions, similar to how range based foreach works. It also isn't tied to a particular scheduling mechanism and of course consumes much

Re: D in my trashbin

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. Hmm, sorry for whatever went wrong. It would be nice if you let us know what went wrong. It is far beyond me how a project can exist for so many years and still not

Re: D in my trashbin

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Friday, 24 October 2014 at 02:44:48 UTC, Adam D. Ruppe wrote: I always just use the zip which works fine out of the box without even needing to be installed. We're missing an installation guide on a prominent place on the front page. Such things really scare away a lot of people.

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Saturday, 11 October 2014 at 13:34:29 UTC, Robert burner Schadek wrote: All that code is contained in 30 line template, That is by far the best working option anybody could come up with I even proposed an alternative that uses type tags instead. http://dpaste.dzfl.pl/95fb6a4e086d And I

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Sunday, 12 October 2014 at 12:06:44 UTC, Robert burner Schadek wrote: What's stopping an interface or class to implement a logging concept? Same as last time: Logger[], Logger without a LogLevel not real useful IMO, (new) no thread safety by default I don't understand your answer. Do you

Re: Blaming the D language

2014-10-24 Thread Jakob Ovrum via Digitalmars-d
On Wednesday, 22 October 2014 at 07:42:22 UTC, Jonathan M Davis via Digitalmars-d wrote: Well, the reality of the matter is that you can't truly clear it safely, though we could definitely get closer. The in operator gives pointer access to the internals, and the byKey and byValue may do the

Re: Voting: std.logger

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Friday, 8 August 2014 at 09:16:11 UTC, Robert burner Schadek wrote: could you elaborate please? Currently I use the version statements in two template functions. I'm not sure why one would brand this negatively as a leak into the library. For example we don't reinstatiate templates if they

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Friday, 24 October 2014 at 10:59:43 UTC, Martin Nowak wrote: And I showed that it did not work. Found it http://forum.dlang.org/post/hmzfcxlafwlgoovuw...@forum.dlang.org

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Marco Leise via Digitalmars-d
Am Fri, 24 Oct 2014 07:29:23 + schrieb tcak t...@gmail.com: Most of us print out codes in posts, especially D codes. I use tabs instead of spaces in my code editor, and I directly copy codes from there into a post. Problem is that when a line is too long, it becomes multiline mostly

Re: Blaming the D language

2014-10-24 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 24, 2014 11:03:11 Jakob Ovrum via Digitalmars-d wrote: On Wednesday, 22 October 2014 at 07:42:22 UTC, Jonathan M Davis via Digitalmars-d wrote: Well, the reality of the matter is that you can't truly clear it safely, though we could definitely get closer. The in

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Robert burner Schadek via Digitalmars-d
On Friday, 24 October 2014 at 11:01:40 UTC, Martin Nowak wrote: On Sunday, 12 October 2014 at 12:06:44 UTC, Robert burner Schadek wrote: What's stopping an interface or class to implement a logging concept? Same as last time: Logger[], Logger without a LogLevel not real useful IMO, (new) no

Re: std.experimental.logger formal review round 3

2014-10-24 Thread Robert burner Schadek via Digitalmars-d
On Friday, 24 October 2014 at 09:53:57 UTC, Dicebot wrote: Will start review round in ~2 days. I am very sorry for delay :( No problem the PR has been open since Aug. 2013, one or two weeks more or less don't really matter anymore ;)

Re: debug = x overrides command line

2014-10-24 Thread Steven Schveighoffer via Digitalmars-d
On 10/23/14 2:40 PM, Daniel Murphy wrote: Steven Schveighoffer wrote in message news:m2avtc$15e3$1...@digitalmars.com... I think there is a problem though. What if you leave your debug in by accident? Now your pure code isn't so pure, and you have no idea. What if you leave any other form

Re: D in my trashbin

2014-10-24 Thread Kagamin via Digitalmars-d
On Friday, 24 October 2014 at 10:42:48 UTC, Martin Nowak wrote: We're missing an installation guide on a prominent place on the front page. Such things really scare away a lot of people. All gcc, clang, ldc etc are installed in the same way: download zip, unpack, use. Not sure if it's

Re: debug = x overrides command line

2014-10-24 Thread Steven Schveighoffer via Digitalmars-d
On 10/23/14 3:31 PM, Walter Bright wrote: On 10/23/2014 11:40 AM, Daniel Murphy wrote: Steven Schveighoffer wrote in message news:m2avtc$15e3$1...@digitalmars.com... I think there is a problem though. What if you leave your debug in by accident? Now your pure code isn't so pure, and you have

Re: Value Range Propigation Spec

2014-10-24 Thread Timon Gehr via Digitalmars-d
On 10/22/2014 11:31 AM, Shammah Chancellor wrote: A couple of us working on SDC are trying to get ValueRange propigation implemented. I was wonder if someone could offer some insight as to how VRP works in DMD. If for example, trying to get the value range of a global, what is the expected

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 10:42:47 + Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 24 October 2014 at 02:44:48 UTC, Adam D. Ruppe wrote: I always just use the zip which works fine out of the box without even needing to be installed. We're missing an

Re: DIP66 - Multiple alias this

2014-10-24 Thread IgorStepanov via Digitalmars-d
On Friday, 24 October 2014 at 06:04:24 UTC, Andrei Alexandrescu wrote: On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP, and collected a few thoughts while doing that. Will get back on this before too long. -- Andrei I've seen it. Thanks!

Re: debug = x overrides command line

2014-10-24 Thread via Digitalmars-d
On Friday, 24 October 2014 at 12:45:21 UTC, Steven Schveighoffer wrote: On 10/23/14 3:31 PM, Walter Bright wrote: On 10/23/2014 11:40 AM, Daniel Murphy wrote: Steven Schveighoffer wrote in message news:m2avtc$15e3$1...@digitalmars.com... I think there is a problem though. What if you leave

Re: Value Range Propigation Spec

2014-10-24 Thread Timon Gehr via Digitalmars-d
On 10/22/2014 10:32 PM, Walter Bright wrote: The specification is straightforward - a narrowing conversion can be implicitly performed if it can be proved that it would not lose information. This is only straightforward to state because it is so ill-defined. The main aspect in need of

Re: debug = x overrides command line

2014-10-24 Thread Steven Schveighoffer via Digitalmars-d
On 10/24/14 9:08 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Friday, 24 October 2014 at 12:45:21 UTC, Steven Schveighoffer wrote: On 10/23/14 3:31 PM, Walter Bright wrote: On 10/23/2014 11:40 AM, Daniel Murphy wrote: Steven Schveighoffer wrote in message

Re: DIP66 - Multiple alias this

2014-10-24 Thread Meta via Digitalmars-d
On Friday, 24 October 2014 at 13:05:54 UTC, IgorStepanov wrote: On Friday, 24 October 2014 at 06:04:24 UTC, Andrei Alexandrescu wrote: On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP, and collected a few thoughts while doing that. Will get

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread tcak via Digitalmars-d
Now, before this entry gets hidden in old pages, how can we take next step? As far as I see, two problems are (at least current), 1. Tab Width 2. Width of messaging area I checked the width information of this Message textarea and Subject input. Thing is that they do not use CSS for width,

Re: D in my trashbin

2014-10-24 Thread Meta via Digitalmars-d
On Friday, 24 October 2014 at 13:04:48 UTC, ketmar via Digitalmars-d wrote: On Fri, 24 Oct 2014 10:42:47 + Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 24 October 2014 at 02:44:48 UTC, Adam D. Ruppe wrote: I always just use the zip which works fine out of

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 13:26:15 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: Let's try to help debug the problem rather than making presumptions about OPs technical knowledge. that's only if OP wants his problem to be solved. here it's clear that he doesn't want to solve the

Re: Stackless resumable functions

2014-10-24 Thread via Digitalmars-d
On Friday, 24 October 2014 at 10:33:40 UTC, Martin Nowak wrote: What I like most about the proposal is that you can adapt await by specializing template functions, similar to how range based foreach works. It also isn't tied to a particular scheduling mechanism and of course consumes much less

Re: D in my trashbin

2014-10-24 Thread Puming via Digitalmars-d
The only OS that I found problematic with the dmd zip is CentOS 5.8, all other systems I've tried: Centos 6.x, Ubuntu, Windows, MacOS, they all work perfectly. On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is

Re: D in my trashbin

2014-10-24 Thread Sean Kelly via Digitalmars-d
Yes on a sufficiently old version of Linux you will have to recompile DMD. I doubt this is the user's problem though, as people in this situation are generally pretty used to encountering this.

Re: debug = x overrides command line

2014-10-24 Thread Gary Willoughby via Digitalmars-d
On Friday, 24 October 2014 at 13:15:45 UTC, Steven Schveighoffer wrote: My proposal is to have the compiler reject such code unless one of the debugging switches is present on the command line. If you aren't debugging, don't compile code that is marked as only compile during debugging. I don't

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Brad Anderson via Digitalmars-d
On Friday, 24 October 2014 at 09:17:52 UTC, John Colvin wrote: I think the column limit for word wrapping should be increased to at least 80 The problem with that is that you'll get terrible line wrapping of any quoted parts after the first reply. Newsreaders and email clients wrap before 80

Re: Stackless resumable functions

2014-10-24 Thread Sean Kelly via Digitalmars-d
On Friday, 24 October 2014 at 10:33:40 UTC, Martin Nowak wrote: This is so much better than Fibers. http://youtu.be/KUhSjfSbINE What I like most about the proposal is that you can adapt await by specializing template functions, similar to how range based foreach works. It also isn't tied to a

Re: Stackless resumable functions

2014-10-24 Thread ROOAR via Digitalmars-d
I really liked this proposal for resumable lambda: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4244.pdf

Re: What is the status of 64-bit development on Windows?

2014-10-24 Thread ixid via Digitalmars-d
On Monday, 20 October 2014 at 21:05:33 UTC, Joakim wrote: On Monday, 20 October 2014 at 20:28:03 UTC, katuday wrote: I am confused. Microsoft C/C++ tool chain is required in order to use dmd? How? For 32-bit compilation, no, no additional download is necessary. For 64-bit, you need the

Re: Program logic bugs vs input/environmental errors

2014-10-24 Thread Ary Borenszweig via Digitalmars-d
On 9/27/14, 8:15 PM, Walter Bright wrote: This issue comes up over and over, in various guises. I feel like Yosemite Sam here: https://www.youtube.com/watch?v=hBhlQgvHmQ0 In that vein, Exceptions are for either being able to recover from input/environmental errors, or report them to the

Re: What is the status of 64-bit development on Windows?

2014-10-24 Thread via Digitalmars-d
On Friday, 24 October 2014 at 18:14:18 UTC, ixid wrote: On Monday, 20 October 2014 at 21:05:33 UTC, Joakim wrote: On Monday, 20 October 2014 at 20:28:03 UTC, katuday wrote: I am confused. Microsoft C/C++ tool chain is required in order to use dmd? How? For 32-bit compilation, no, no

Re: Program logic bugs vs input/environmental errors

2014-10-24 Thread H. S. Teoh via Digitalmars-d
On Fri, Oct 24, 2014 at 03:29:43PM -0300, Ary Borenszweig via Digitalmars-d wrote: On 9/27/14, 8:15 PM, Walter Bright wrote: This issue comes up over and over, in various guises. I feel like Yosemite Sam here: https://www.youtube.com/watch?v=hBhlQgvHmQ0 In that vein, Exceptions are

Re: Program logic bugs vs input/environmental errors

2014-10-24 Thread Walter Bright via Digitalmars-d
On 10/24/2014 11:29 AM, Ary Borenszweig wrote: On 9/27/14, 8:15 PM, Walter Bright wrote: Now, imagine I have an assert in my application. When the web server hits the assertion it shuts down and the user doesn't get a response. What I'd like to do is to trap that assertion, tell the user that

Re: D in my trashbin

2014-10-24 Thread John via Digitalmars-d
On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is far beyond me how a project can exist for so many years and still not have a straightforward installation that works out of the box. Yes.. read the forums and

Re: D in my trashbin

2014-10-24 Thread Xavier Bigand via Digitalmars-d
Le 24/10/2014 15:26, Meta a écrit : On Friday, 24 October 2014 at 13:04:48 UTC, ketmar via Digitalmars-d wrote: On Fri, 24 Oct 2014 10:42:47 + Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 24 October 2014 at 02:44:48 UTC, Adam D. Ruppe wrote: I always just

Re: D in my trashbin

2014-10-24 Thread Xavier Bigand via Digitalmars-d
Le 24/10/2014 15:45, ketmar via Digitalmars-d a écrit : On Fri, 24 Oct 2014 13:26:15 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: Let's try to help debug the problem rather than making presumptions about OPs technical knowledge. that's only if OP wants his problem to be

Re: Stackless resumable functions

2014-10-24 Thread Sean Kelly via Digitalmars-d
Alright, done. It's a pretty interesting proposal. They are effectively closures with coroutine-like semantics. It seems like the overhead for a complex system might actually be greater than with classic coroutines, as closure data allocations could be happening all over the place, but this is

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 21:31:45 +0200 Xavier Bigand via Digitalmars-d digitalmars-d@puremagic.com wrote: Writing programs isn't just as fun as launching a game, it's often frustrating,... Success isn't immediate. ah, launching a game can be so frustrating... imagine a game that AVs or just

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Marco Leise via Digitalmars-d
Am Fri, 24 Oct 2014 16:54:07 + schrieb Brad Anderson e...@gnuk.net: On Friday, 24 October 2014 at 09:17:52 UTC, John Colvin wrote: I think the column limit for word wrapping should be increased to at least 80 The problem with that is that you'll get terrible line wrapping of any

Re: DIP66 - Multiple alias this

2014-10-24 Thread John Colvin via Digitalmars-d
On Friday, 24 October 2014 at 13:17:28 UTC, Meta wrote: On Friday, 24 October 2014 at 13:05:54 UTC, IgorStepanov wrote: On Friday, 24 October 2014 at 06:04:24 UTC, Andrei Alexandrescu wrote: On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP,

Re: DIP66 - Multiple alias this

2014-10-24 Thread IgorStepanov via Digitalmars-d
On Friday, 24 October 2014 at 13:17:28 UTC, Meta wrote: On Friday, 24 October 2014 at 13:05:54 UTC, IgorStepanov wrote: On Friday, 24 October 2014 at 06:04:24 UTC, Andrei Alexandrescu wrote: On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP,

Re: Blaming the D language

2014-10-24 Thread Steven Schveighoffer via Digitalmars-d
On 10/22/14 1:17 AM, Domingo Alvarez Duarte wrote: Let's talk about libraries now, there is some silly things like associative array not having a clear/lenght=0 way to reset it, and people sugest create templates that does: foreach(string key; aa.keys) aa.remove(key); Annoying...

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 13:45:10 UTC, ketmar via Digitalmars-d wrote: On Fri, 24 Oct 2014 13:26:15 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: Let's try to help debug the problem rather than making presumptions about OPs technical knowledge. that's only if OP wants

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 22:46:58 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: Despite all rationale, priority should be in offering our assistance, regardless of how futile it may be (Futile, because in this case it's not likely he would have ever responded). It'd be

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:05:49 UTC, ketmar via Digitalmars-d wrote: that's why we have D.learn NG, where people tries not just answer to question, but explain the answer, and answer's hidden complexity if there is any, and so on. i rarely see answers with just a fixed code in D.learn,

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 23:31:35 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: I wouldn't argue with that. Every time I've gone onto the learn forum I've gotten very helpful answers. Though newcomers don't always seem to find their way to learn ng for whatever variety of

Re: D in my trashbin

2014-10-24 Thread Mike via Digitalmars-d
On Friday, 24 October 2014 at 23:31:36 UTC, Kyoji Klyden wrote: I wouldn't argue with that. Every time I've gone onto the learn forum I've gotten very helpful answers. Though newcomers don't always seem to find their way to learn ng for whatever variety of reasons. How does one submit a

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:44:23 UTC, ketmar via Digitalmars-d wrote: we already moved D.learn to the top of the forums list. i believe that there is more things in play. like seasoned programmers who feel uncomfortable to ask questions in D.learn: why, i'm not a newbie in programming,

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 23:59:08 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: I'm not sure what else we could call it though.. D.ask? .questions is good. Or maybe we should just tell everyone to get over themselves and ask their damn questions already xD i believe we

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Fri, 24 Oct 2014 23:54:29 + Mike via Digitalmars-d digitalmars-d@puremagic.com wrote: How does one submit a pull request to update the descriptions on the forum? The forum doesn't seem to be part of dlang.org. i think that we have to cast Cybershadow here. ;-) signature.asc

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:54:30 UTC, Mike wrote: How does one submit a pull request to update the descriptions on the forum? The forum doesn't seem to be part of dlang.org. Should I have posted this question on D.Learn? :) Nah just file it on the bug tracker, and someone will get

Re: D in my trashbin

2014-10-24 Thread ketmar via Digitalmars-d
On Sat, 25 Oct 2014 00:10:02 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: The new layout: digitalmars.d.questions --- Get over yourself and ask already. ...and we have cookies! signature.asc Description: PGP signature

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 00:18:40 UTC, ketmar via Digitalmars-d wrote: On Sat, 25 Oct 2014 00:10:02 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: The new layout: digitalmars.d.questions --- Get over yourself and ask already. ...and we

Re: D in my trashbin

2014-10-24 Thread Jesse Phillips via Digitalmars-d
On Friday, 24 October 2014 at 22:46:59 UTC, Kyoji Klyden wrote: Despite all rationale, priority should be in offering our assistance, regardless of how futile it may be (Futile, because in this case it's not likely he would have ever responded). It'd be beneficial to atleast somewhat dispel D's

Re: D in my trashbin

2014-10-24 Thread Martin Nowak via Digitalmars-d
On Friday, 24 October 2014 at 12:45:38 UTC, Kagamin wrote: On Friday, 24 October 2014 at 10:42:48 UTC, Martin Nowak wrote: We're missing an installation guide on a prominent place on the front page. Such things really scare away a lot of people. All gcc, clang, ldc etc are installed in the

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 00:49:58 UTC, Jesse Phillips wrote: On Friday, 24 October 2014 at 22:46:59 UTC, Kyoji Klyden wrote: Despite all rationale, priority should be in offering our assistance, regardless of how futile it may be (Futile, because in this case it's not likely he would

Re: Stackless resumable functions

2014-10-24 Thread via Digitalmars-d
On Friday, 24 October 2014 at 14:50:53 UTC, Ola Fosheim Grøstad wrote: On Friday, 24 October 2014 at 10:33:40 UTC, Martin Nowak wrote: What I like most about the proposal is that you can adapt await by specializing template functions, similar to how range based foreach works. It also isn't

Re: classInstanceSize and vtable

2014-10-24 Thread bearophile via Digitalmars-d-learn
Etienne Cimon: So what's the point of making a class or methods final? It forbids subclassing. And final methods are not virtual, so they can be inlined. Bye, bearophile

Re: classInstanceSize and vtable

2014-10-24 Thread Simen Kjaeraas via Digitalmars-d-learn
On Friday, 24 October 2014 at 00:21:52 UTC, Etienne Cimon wrote: On 2014-10-23 20:12, bearophile wrote: In D all class instances contain a pointer to the class and a monitor pointer. The table is used for run-time reflection, and for standard virtual methods like toString, etc. Bye,

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 03:42:29 UTC, safety0ff wrote: On Friday, 24 October 2014 at 02:51:20 UTC, tcak wrote: I don't want to blame dmd directly because as far as I see from the search I did with __lll_lock_wait_private, some C++ programs are having same problem with malloc operation

Re: Bug?

2014-10-24 Thread deed via Digitalmars-d-learn
On Thursday, 23 October 2014 at 21:42:46 UTC, anonymous wrote: On Thursday, 23 October 2014 at 21:17:25 UTC, deed wrote: Some testing can be found on http://dpaste.dzfl.pl/5f55f4152aa8 for both Windows and Linux. This just illustrates the sin function. I think the tests marked [1] are

Re: Why do some language-defined attributes have @ and some not?

2014-10-24 Thread Paolo Invernizzi via Digitalmars-d-learn
On Friday, 24 October 2014 at 00:37:26 UTC, Mike Parker wrote: There are people out there using D who do not participate in the newsgroups. Walter has told us before that he gets emails from companies using D in production. He has to deal with complaints about code breakage that we aren't

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread Kagamin via Digitalmars-d-learn
If it's deterministic, looks more like https://issues.dlang.org/show_bug.cgi?id=4890 (11981 is not deterministic)

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 08:47:55 UTC, Kagamin wrote: If it's deterministic, looks more like https://issues.dlang.org/show_bug.cgi?id=4890 (11981 is not deterministic) Yes, it is deterministic. Run it as many times as you want, and it does the same thing. I ran it now again, and still

Re: Patterns for functions in template parameters

2014-10-24 Thread Kagamin via Digitalmars-d-learn
maybe template Foo(T a, T: T[U], U)

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread Kagamin via Digitalmars-d-learn
Do you see recursive call to malloc in the stack trace?

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 08:55:17 UTC, Kagamin wrote: Do you see recursive call to malloc in the stack trace? I further simplified the example: import std.stdio; import core.thread; class ThreadTest{ public this(){ new core.thread.Thread( threadRun ).start();

Re: Parsing a date string into a std.datetime.datetime

2014-10-24 Thread Colin via Digitalmars-d-learn
On Thursday, 23 October 2014 at 21:17:23 UTC, Jonathan M Davis wrote: On Thursday, 23 October 2014 at 11:13:26 UTC, Colin wrote: Hi, I'm looking for an easy way to parse a dates into a datetime object. Most of my dates will be of the form: mmm dd, HH:MM AM|PM So like: May 30, 2014

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 09:12:57 UTC, tcak wrote: On Friday, 24 October 2014 at 08:55:17 UTC, Kagamin wrote: Do you see recursive call to malloc in the stack trace? I further simplified the example: import std.stdio; import core.thread; class ThreadTest{ public this(){

Re: Why do some language-defined attributes have @ and some not?

2014-10-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, October 24, 2014 08:19:48 Paolo Invernizzi via Digitalmars-d-learn wrote: On Friday, 24 October 2014 at 00:37:26 UTC, Mike Parker wrote: There are people out there using D who do not participate in the newsgroups. Walter has told us before that he gets emails from companies

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread Kagamin via Digitalmars-d-learn
Looks like your IDE filters too much. Can you configure it to filter less and show address locations?

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 10:46:57 UTC, tcak wrote: On Friday, 24 October 2014 at 10:29:10 UTC, Kagamin wrote: Looks like your IDE filters too much. Can you configure it to filter less and show address locations? This is what I have found: Main Thread http://i.imgur.com/6ElZ3Fm.png

Re: new(malloc) locks everything in multithreading

2014-10-24 Thread tcak via Digitalmars-d-learn
On Friday, 24 October 2014 at 10:29:10 UTC, Kagamin wrote: Looks like your IDE filters too much. Can you configure it to filter less and show address locations? This is what I have found: Main Thread http://i.imgur.com/6ElZ3Fm.png Second Thread (TestThread) http://i.imgur.com/w4y5gYB.png

  1   2   >