Re: D Milestones

2017-07-12 Thread rikki cattermole via Digitalmars-d
On 12/07/2017 3:14 PM, Martin Tschierschke wrote: Please post events (even without date) you think are important. First release of your IDE/Plugin or whatever made you more comfortable using D. Since when is the IRC channel in use? Since like 2003 when it was registered on Freenode.

Re: Why is phobos so wack?

2017-07-09 Thread rikki cattermole via Digitalmars-d
import std.array; import std.stdio; void main() { string[] strs = ["abc", "def"]; writeln(strs.join(" ")); } Works fine?

Re: Master thesis

2017-07-01 Thread rikki cattermole via Digitalmars-d
Not too helpful but a few points that may interest you: - All dynamic arrays are slices. T[] array = ptr[0 .. length]; - Compute values at CTFE, compare, contrast against e.g. unittests for extra verification

Re: Go 1.9

2017-06-24 Thread rikki cattermole via Digitalmars-d
On 24/06/2017 1:11 PM, Wulfklaue wrote: snip And sorry for the strong language but this is the truth! The fact that i as a newcomer needs to point this out is just ridiculous. Its easy to see why Nim and Crystal out fund D on bountysource. It's fine. You're not attacking anyone and not swear

Re: Go 1.9

2017-06-24 Thread rikki cattermole via Digitalmars-d
On 24/06/2017 11:17 AM, Wulfklaue wrote: snip Frankly, i think the best way to go about moving D to popularity, is simply money. More fully time programmers but that requires money. I do not understand why D does not have a BountySource account ( salt.bountysource.com ). What on earth are

Re: Analysis of D GC

2017-06-20 Thread rikki cattermole via Digitalmars-d
On 20/06/2017 12:41 PM, Jacob Carlborg wrote: On 2017-06-20 06:37, ketmar wrote: it is higly depends of undocumented windows internals, and not portable between windows versions. more-or-less working implementations of `fork()` were existed at least since NT3 era, but nobody considered 'em as

Re: Replacing Make for the DMD build

2017-06-19 Thread rikki cattermole via Digitalmars-d
On 16/06/2017 7:30 AM, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it being allowed to replace the Make system? If the answer is no, then

Re: Advertise D's great compatibilty with JavaScript

2017-06-18 Thread rikki cattermole via Digitalmars-d
On 19/06/2017 2:57 AM, Laeeth Isharc wrote: On Sunday, 18 June 2017 at 23:11:25 UTC, rikki cattermole wrote: On 18/06/2017 5:29 PM, Meta wrote: We should be careful not to make *too* close a comparison. While Javascript is a necessary evil for web applications and some people do like it, I get

Re: Advertise D's great compatibilty with JavaScript

2017-06-18 Thread rikki cattermole via Digitalmars-d
On 18/06/2017 5:29 PM, Meta wrote: We should be careful not to make *too* close a comparison. While Javascript is a necessary evil for web applications and some people do like it, I get the feeling that it's becoming less and less liked. It's not quite a fractal of bad design like PHP, but it h

Re: Abusive posts

2017-06-18 Thread rikki cattermole via Digitalmars-d
Ironically I am quite happy that they are happening more often lately (not that we shouldn't deal with them, we should). It means that we are getting a lot more new people who don't know our culture just yet.

Re: Official D Contributors

2017-06-17 Thread rikki cattermole via Digitalmars-d
The D foundation already compensates on a case by case basis. It isn't much (not enough money to hire 10-20 devs full time), but it happens behind closed doors. Where it should be.

Re: atomic operations compared to c++

2017-06-14 Thread rikki cattermole via Digitalmars-d
On 14/06/2017 1:48 PM, Russel Winder via Digitalmars-d wrote: On Wed, 2017-06-14 at 13:27 +0100, rikki cattermole via Digitalmars-d wrote: […] Yes. A N.G. post will be forgotten about quickly, but an issue in the bug tracker can send you updates as things progress. OK. Feel free to sign me

Re: atomic operations compared to c++

2017-06-14 Thread rikki cattermole via Digitalmars-d
On 14/06/2017 1:15 PM, Russel Winder via Digitalmars-d wrote: snip I don't know if D compiler is aware of the fences and won't move out/in instructions from guarded areas. Thanks: gzp Please create an issue here: issues.dlang.org for druntime atomic support. Clearly the requirements that we

Re: atomic operations compared to c++

2017-06-14 Thread rikki cattermole via Digitalmars-d
On 14/06/2017 11:40 AM, gzp wrote: After digging into it the source for me it seems as D is lacking a "standardized" atomic library. It has some basic concepts, but far behind the c++ standards. I don't know if there are any RFC-s in this topic but it requires a lot of work. Just to mention som

Re: Isn't it about time for D3?

2017-06-14 Thread rikki cattermole via Digitalmars-d
On 14/06/2017 8:28 AM, Wulfklaue wrote: On Tuesday, 13 June 2017 at 20:51:37 UTC, ketmar wrote: Patrick Schluter wrote: the main reason for D3 is not language changes, but workarounding "don't break user code" thingy. it is completely impossible to experiment freely or introduce breaking chang

Re: D, DStep, and Deimos

2017-06-13 Thread rikki cattermole via Digitalmars-d
On 13/06/2017 12:22 PM, Russel Winder via Digitalmars-d wrote: Having now got some bits of libdvbv5 usable from D with aid of DStep – which let's be honest did 90.357% (roughly) of the work – thoughts turn to maintenance and distribution. So a few questions/comments: 1. Is Deimos "alive and well

Re: DMD is now part of the doc pages on dlang.org

2017-06-07 Thread rikki cattermole via Digitalmars-d
On 07/06/2017 12:30 PM, Wulfklaue wrote: On Wednesday, 7 June 2017 at 00:17:30 UTC, Walter Bright wrote: On 6/6/2017 3:13 PM, Seb wrote: Hi all, I have excellent news on the front of DMD becoming a library. DMD on dlang.org Since today DMD's documentation is browseable onlin

Re: C++17 cannot beat D surely

2017-06-04 Thread rikki cattermole via Digitalmars-d
On 04/06/2017 11:27 AM, Vittorio Romeo wrote: On Sunday, 4 June 2017 at 10:21:16 UTC, rikki cattermole wrote: On 04/06/2017 11:06 AM, Vittorio Romeo wrote: Could someone clarify why the generated assembly for void main() @nogc { import std.algorithm; enum a = [3, 1, 2, 0]; // inferre

Re: C++17 cannot beat D surely

2017-06-04 Thread rikki cattermole via Digitalmars-d
On 04/06/2017 11:06 AM, Vittorio Romeo wrote: Could someone clarify why the generated assembly for void main() @nogc { import std.algorithm; enum a = [3, 1, 2, 0]; // inferred to be int[] enum b = sort(a); static assert(b[0] == 0); } is 1380 lines with ldc 1.3.0 (-O3 -releas

Re: Bad array indexing is considered deadly

2017-06-01 Thread rikki cattermole via Digitalmars-d
I'm just sitting here waiting for shared libraries to be properly implemented cross platform. Then I can start thinking about a proper web server written in D. Until then, we are not really suited to become a generic web server and should only exist in the context of multiple instances (and res

Re: Could DRuntime be implemented as a shared library?

2017-05-31 Thread rikki cattermole via Digitalmars-d
On 31/05/2017 4:57 PM, solidstate1991 wrote: Offloading at least the GC could enable the implementation of a per-application GC easier, as well as making development of shared libraries under Windows much easier, might even enable the offloading of Phobos into its own DLL. Won't work, TypeInf

Re: D Language Front-End Proposed For GCC 8, 800k Lines of Code

2017-05-28 Thread rikki cattermole via Digitalmars-d
On 28/05/2017 8:23 PM, Nordlöw wrote: Does this, perchance, deserve a post in "Announce"? :) http://www.phoronix.com/scan.php?page=news_item&px=D-Frontend-For-GCC Let's wait until a decision is made, then it will be all nice and official should it go in :)

Re: Warning, ABI breakage from 2.074 to 2.075

2017-05-25 Thread rikki cattermole via Digitalmars-d
On 25/05/2017 4:02 PM, Jason King via Digitalmars-d wrote: That’s a fairly important requirement if it’s supposed to be a systems programming language, less so for application focused stuff. I would hope it’s at least an eventual goal even if it’s not quite the case today. You would be fighti

Re: My two cents on what D needs to be more successful...

2017-05-23 Thread rikki cattermole via Digitalmars-d
On 24/05/2017 7:10 AM, evilrat wrote: On Wednesday, 24 May 2017 at 04:14:39 UTC, rikki cattermole wrote: On 24/05/2017 5:04 AM, Adam D. Ruppe wrote: On Tuesday, 23 May 2017 at 21:21:45 UTC, Guillaume Piolat wrote: http://code.dlang.org/packages/arsd So actually, the dub thing for mine is ht

Re: My two cents on what D needs to be more successful...

2017-05-23 Thread rikki cattermole via Digitalmars-d
On 24/05/2017 5:04 AM, Adam D. Ruppe wrote: On Tuesday, 23 May 2017 at 21:21:45 UTC, Guillaume Piolat wrote: http://code.dlang.org/packages/arsd So actually, the dub thing for mine is http://code.dlang.org/packages/arsd-official/~master the other was a third party thing that is now obsolete

Re: Any video editing folks n da house?

2017-05-23 Thread rikki cattermole via Digitalmars-d
On 23/05/2017 9:23 PM, Andrei Alexandrescu wrote: Would be great to have a video intro of D featuring a mix of testimonies from a few folks, fragments from the existing DConf materials, etc. Some of that cool ukulele upbeat music, too. Anyone would enjoy taking up such a project? -- Andrei If y

Re: Weak Eco System?

2017-05-22 Thread rikki cattermole via Digitalmars-d
I am sorry for your experience here. I am unaware of any contributions from him in the past. He appears to be pretty new here. We generally try not to respond to such posts telling people to quit it until it really is well past this point. It is expected that you ignore them. Once you start ban

Re: My two cents on what D needs to be more successful...

2017-05-21 Thread rikki cattermole via Digitalmars-d
On 21/05/2017 7:51 AM, Ecstatic Coder wrote: Exactly what I was talking about :D Thanks for your efforts !!! I'll download and test them right away. Keep in mind that they are not on code.dlang.org for a reason, they are not ready for general use. So take a developers mindset if you use them

Re: My two cents on what D needs to be more successful...

2017-05-20 Thread rikki cattermole via Digitalmars-d
This is the work I am related to or created myself. - std.ui.windowing[0] - std.ui.gui - std.graphics.image[1] - std.graphics.color[2] - std.events[0] - std.events.loop[0] - std.audio - std.sockets[0] Any assistance to improving my work including[3] would be appreciated as I am slow. [0] http

Re: [4Walter&Andrei] D is 40 times slower. We need a new language feature!

2017-05-19 Thread rikki cattermole via Digitalmars-d
On 20/05/2017 4:24 AM, 9il wrote: snip Looks like Rust macro system can do something similar. Just to confirm, in Rust is it calling a function to assign the value? E.g. ```D void opIndexAssign(T v, size_t j, size_t i); ``` Because if the compiler is seeing a function call, it probably won't

Re: DIP 1008 Preliminary Review Round 1

2017-05-19 Thread rikki cattermole via Digitalmars-d
On 19/05/2017 4:45 PM, Mike Parker wrote: DIP 1008 is titled "Exceptions and @nogc". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM ET on June 2 (3:59 AM GMT J

Re: Low hanging fruit: dub git integration

2017-05-16 Thread rikki cattermole via Digitalmars-d
On 16/05/2017 7:10 PM, Andre Pany wrote: Hi, While integrating the git protocol into dub is complex, there is a much much easier solution. Github and bitbucket provides access to the source code, including releases, branches and commits as archive files using the http protocol. Without countin

Re: Code generation and parsing

2017-05-15 Thread rikki cattermole via Digitalmars-d
On 15/05/2017 4:43 PM, solidstate1991 wrote: Recently I have a big problem with creating windows for my game engine (PixelPerfectEngine, see it in dub), so I thought I create a tool that would help me create windows for various other tools of the engine (primarily for the map editor) or for games

Re: D is really cool

2017-05-13 Thread rikki cattermole via Digitalmars-d
On 13/05/2017 12:05 PM, bachmeier wrote: On Saturday, 13 May 2017 at 06:47:54 UTC, nkm1 wrote: Atilla's library... but, as someone on Reddit said, at the moment that is rather "unergonomic". I'm sure that will get better over time, though. At least I don't see why not. Most of what is needed is

Re: DConf 2017 Hackathon report

2017-05-12 Thread rikki cattermole via Digitalmars-d
On 12/05/2017 12:45 PM, Jacob Carlborg wrote: On 2017-05-12 13:29, rikki cattermole wrote: May as well, it is a separate artifact from the build process. I get: Invalid variable: dmd_PACKAGE_DIR And I'm not sure about the syntax. Is that supposed to be two dashes? And I should add an argume

Re: DConf 2017 Hackathon report

2017-05-12 Thread rikki cattermole via Digitalmars-d
On 12/05/2017 12:27 PM, Jacob Carlborg wrote: On 2017-05-12 10:59, rikki cattermole wrote: Another way: preBuildCommands: dub run ddmd:idgen - $ddmd_PACKAGE_DIR With idgen taking in the location to the root. Most importantly it is not platform specific ;) Hmm, so idgen should be a subpackag

Re: Array!

2017-05-12 Thread rikki cattermole via Digitalmars-d
On 12/05/2017 12:10 PM, Flaze07 wrote: hey guys why it isn't allowed to have Array!Array!int.. not that it matters because I can emulate it through Array!int Just how templates work: Array!(Array!int) is valid.

Re: DConf 2017 Hackathon report

2017-05-12 Thread rikki cattermole via Digitalmars-d
On 12/05/2017 9:51 AM, Jacob Carlborg wrote: On 2017-05-09 06:35, Ali Çehreli wrote: Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating "Programming in D" to 2.074.0 (the HTML is

Re: "I made a game using Rust"

2017-05-10 Thread rikki cattermole via Digitalmars-d
On 10/05/2017 7:20 PM, zetashift wrote: On Wednesday, 10 May 2017 at 12:52:34 UTC, JN wrote: I wonder, would it be possible for D in the current state to achieve the same? I imagine iOS isn't possible yet and Android is just getting there? Reading this thread while going through the online D b

Re: Static foreach pull request

2017-05-08 Thread rikki cattermole via Digitalmars-d
On 09/05/2017 7:10 AM, Jack Stouffer wrote: On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: ... I'm going to save you some time and tell you that Andrei and Walter are going to require a DIP for this. http://forum.dlang.org/thread/oenjmm$lds$1...@digitalmars.com

Re: dubs: Getting into the Node scripts market

2017-05-03 Thread rikki cattermole via Digitalmars-d
On 03/05/2017 1:13 PM, Sönke Ludwig wrote: Am 03.05.2017 um 12:54 schrieb Andre Pany: Hi, it would be great if we can position D as replacement of Node scripts. With the --single argument of Dub we have almost everything we need in this scenario. But one thing is very odd. If you want to execu

Re: std.dlang?

2017-04-27 Thread rikki cattermole via Digitalmars-d
On 27/04/2017 3:29 PM, Jonathan Marler wrote: snip 2. how has the front end not been integrated into the standard library? - It can't be compiled alone on some targets - You can't reuse it in the same process Ignoring the obvious that it isn't structured right for as a library. It has a lon

Re: DIP 1007 Preliminary Review Round 1

2017-04-25 Thread rikki cattermole via Digitalmars-d
On 25/04/2017 12:29 PM, Jacob Carlborg wrote: On 2017-04-24 17:03, Mike Parker wrote: DIP 1007 is titled "'future symbol' Compiler Concept". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1007.md All review-related feedback on and discussion of the DIP should occur in this thread. Due to DC

Re: DIP 1007 Preliminary Review Round 1

2017-04-24 Thread rikki cattermole via Digitalmars-d
On 24/04/2017 4:03 PM, Mike Parker wrote: DIP 1007 is titled "'future symbol' Compiler Concept". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1007.md All review-related feedback on and discussion of the DIP should occur in this thread. Due to DConf taking place during the review period, th

Re: Move construction from !is(T == typeof(this))

2017-04-23 Thread rikki cattermole via Digitalmars-d
There is[0] but idk how close it is to std:move and the likes. [0] http://dlang.org/phobos/std_algorithm_mutation.html#.move

Re: [OT] PC sales down

2017-04-19 Thread rikki cattermole via Digitalmars-d
On 20/04/2017 5:09 AM, Joakim wrote: I don't know why you get so worked up about this. Yes, the new entrant won't have features the old computers had. I was using virtual desktops on UNIX workstations regularly decades ago, but Microsoft didn't add that to the OS till Windows 10 a couple years

Re: Thoughts from newcommer

2017-04-18 Thread rikki cattermole via Digitalmars-d
On 18/04/2017 1:22 PM, Andrei Alexandrescu wrote: On 04/17/2017 10:57 PM, prdan wrote: I've written multi-threaded regex-redux benchmark for D language and made some tests. This is my first program written in D, I didn't know much about D a week ago. Here are the results for other languages: h

Re: Non-x86 targets for DMD

2017-04-14 Thread rikki cattermole via Digitalmars-d
On 14/04/2017 2:22 PM, solidstate1991 wrote: Since the backend is no longer restrained by Symantec licenses, there's no reason why there should be only be x86 and amd64 CPU support even if GDC and LDC already have their own implementations. Here is my suggestion, try and document the backend. Y

Re: What are we going to do about mobile?

2017-04-13 Thread rikki cattermole via Digitalmars-d
On 13/04/2017 10:30 AM, Iain Buclaw via Digitalmars-d wrote: On 13 April 2017 at 10:12, Russel Winder via Digitalmars-d wrote: On Wed, 2017-04-12 at 10:59 +0100, rikki cattermole via Digitalmars-d wrote: […] Considering it was created in 2014, I think we're safe implementing exter

Optlink License

2017-04-12 Thread rikki cattermole via Digitalmars-d
So an interesting bit came up on IRC. What is the license for Optlink? Old forum post[0] by Walter says same as dmd-be. Was Optlink relicensed as well or are we unable to distribute Windows installs still? [0] http://forum.dlang.org/post/khbmkn$298s$1...@digitalmars.com

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread rikki cattermole via Digitalmars-d
On 12/04/2017 12:48 PM, Nicholas Wilson wrote: On Wednesday, 12 April 2017 at 11:32:37 UTC, rikki cattermole wrote: On 12/04/2017 12:25 PM, Mike Parker wrote: DIP 1006 is titled "Providing more selective control over contracts". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1006.md All re

Re: DIP 1006 - Preliminary Review Round 1

2017-04-12 Thread rikki cattermole via Digitalmars-d
On 12/04/2017 12:25 PM, Mike Parker wrote: DIP 1006 is titled "Providing more selective control over contracts". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1006.md All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM

Re: What are we going to do about mobile?

2017-04-12 Thread rikki cattermole via Digitalmars-d
On 12/04/2017 10:54 AM, Russel Winder via Digitalmars-d wrote: On Wed, 2017-04-12 at 10:43 +0100, rikki cattermole via Digitalmars-d wrote: […] JNI itself isn't hard to work with, its mapping classes for D easily to it which is hard. Especially when inheritance comes into play. JNI

Re: What are we going to do about mobile?

2017-04-12 Thread rikki cattermole via Digitalmars-d
On 12/04/2017 10:37 AM, Joakim wrote: On Friday, 7 April 2017 at 09:40:26 UTC, rikki cattermole wrote: On 07/04/2017 10:34 AM, Joakim wrote: On Thursday, 6 April 2017 at 05:32:41 UTC, rikki cattermole wrote: IMO there is two things that need to be done to get D for mobile: 1: ldc needs to nat

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-11 Thread rikki cattermole via Digitalmars-d
On 11/04/2017 3:33 PM, Matthias Klumpp wrote: On Tuesday, 11 April 2017 at 14:26:37 UTC, rikki cattermole wrote: [...] The problem with /usr/include/d is that is where .di files would be located not .d. This would also match up with the c/c++ usage of it. When I asked about this a while back,

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-11 Thread rikki cattermole via Digitalmars-d
On 11/04/2017 3:21 PM, Matthias Klumpp wrote: On Tuesday, 11 April 2017 at 14:04:44 UTC, rikki cattermole wrote: [...] /usr/share/source/D/package-name-version Add a search path like that to Dub and create source only library packages and that is pretty much all the distribution we need for lib

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-11 Thread rikki cattermole via Digitalmars-d
On 11/04/2017 3:01 PM, Jacob Carlborg wrote: On 2017-04-11 14:56, Jonathan M Davis via Digitalmars-d wrote: That's basically what's required with D. It is not ABI compatible across releases, and while ABI compatibility might be nice, it really isn't reasonable with D - especially with how attri

Re: {OT} Youtube video small tutorial to work with newCTFE's IR

2017-04-11 Thread rikki cattermole via Digitalmars-d
On 11/04/2017 2:56 PM, Stefan Koch wrote: Hi Guys, I have uploaded a video showing howto implement pow in newCTFE's IR. I hope that this is of interest to some of you :) Cheers, Stefan https://www.youtube.com/watch?v=y805iQ3ogC4&feature=youtu.be

Re: CTFE Status 2

2017-04-08 Thread rikki cattermole via Digitalmars-d
On 08/04/2017 10:14 AM, Stefan Koch wrote: On Saturday, 8 April 2017 at 08:50:27 UTC, crimaniak wrote: Hi! Is it hard to implement some way to access symbol from UDA constructor of symbol? ``` class uda { this() { // Iterate by Foo members foreach (member; __traits(all

Re: What are we going to do about mobile?

2017-04-07 Thread rikki cattermole via Digitalmars-d
On 07/04/2017 10:34 AM, Joakim wrote: On Thursday, 6 April 2017 at 05:32:41 UTC, rikki cattermole wrote: IMO there is two things that need to be done to get D for mobile: 1: ldc needs to natively target and distribute binaries for Android (MIPS, ARM, at least). I'm not sure what you mean by "

Re: What are we going to do about mobile?

2017-04-05 Thread rikki cattermole via Digitalmars-d
IMO there is two things that need to be done to get D for mobile: 1: ldc needs to natively target and distribute binaries for Android (MIPS, ARM, at least). 2: extern(JNI) seriously, its a pain to work with Java over JNI otherwise. It would be worse then not having extern(Obj-C).

Re: Proposal: Exceptions and @nogc

2017-04-01 Thread rikki cattermole via Digitalmars-d
On 02/04/2017 6:16 AM, Walter Bright wrote: Problem === Exceptions are assumed to be GC collected by the EH design, in that no attempt is made to control copies or lifetimes. This dependency is not a performance issue, as exceptions are presumed to be slow. The issue is it impairs use of @n

Re: Exceptions in @nogc code

2017-04-01 Thread rikki cattermole via Digitalmars-d
On 01/04/2017 2:34 PM, Andrei Alexandrescu wrote: Walter and I discussed the following promising setup: Use "throw new scope Exception" from @nogc code. That will cause the exception to be allocated in a special stack-like region. If the catching code uses "catch (scope Exception obj)", then a

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread rikki cattermole via Digitalmars-d
On 29/03/2017 1:16 PM, deadalnix wrote: On Wednesday, 29 March 2017 at 11:22:59 UTC, rikki cattermole wrote: Which is basically what you said. It isn't. version needs to be parsed and thus, grammatically valid. Hmm, well that is another thing that could be disabled to shave some time off th

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread rikki cattermole via Digitalmars-d
On 29/03/2017 12:16 PM, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing brace is found. Obviously, this means that no error will be found in unittests blocks. That can

Re: std.experimental repo

2017-03-25 Thread rikki cattermole via Digitalmars-d
On 25/03/2017 3:20 PM, Seb wrote: On Saturday, 25 March 2017 at 10:28:36 UTC, XavierAP wrote: On Saturday, 25 March 2017 at 09:42:07 UTC, Daniel N wrote: As a ndslice user, I long dreaded this day: 2.074.0: "std.experimental.ndslice has been removed" Are you aware that ndslice is available a

Re: Learning programming with D - optimizing the entry point / the environment?

2017-03-23 Thread rikki cattermole via Digitalmars-d
On 24/03/2017 1:36 AM, Martin Tschierschke wrote: Very important I think would be to add some graphics, especially to get the interests of kids, For example arsd.simpledisplay.d with its nice learning example Pong. There is a reason why I want windowing in Phobos and you have figured out part

Re: More exception classes into Phobos?

2017-03-23 Thread rikki cattermole via Digitalmars-d
On 24/03/2017 1:11 AM, Георгий wrote: On Thursday, 23 March 2017 at 09:31:23 UTC, Георгий wrote: NotImplementedException : Exception UserInputException : Exception IOException : Exception I am not sure already, NotImplementedException should be in Phobos. Something like this may be a part of

Re: More exception classes into Phobos?

2017-03-23 Thread rikki cattermole via Digitalmars-d
On 24/03/2017 12:29 AM, Ola Fosheim Grøstad wrote: On Thursday, 23 March 2017 at 11:15:45 UTC, Георгий wrote: On Thursday, 23 March 2017 at 11:09:33 UTC, Jonathan M Davis wrote: If something isn't implemented, it's a bug. assert(0) is a great way to indicate that something isn't implemented ye

Re: More exception classes into Phobos?

2017-03-23 Thread rikki cattermole via Digitalmars-d
On 24/03/2017 12:09 AM, Jonathan M Davis via Digitalmars-d wrote: On Thursday, March 23, 2017 23:26:38 rikki cattermole via Digitalmars-d wrote: On 23/03/2017 11:20 PM, Георгий wrote: On Thursday, 23 March 2017 at 09:48:54 UTC, Jonathan M Davis wrote: On Thursday, March 23, 2017 09:31:23

Re: More exception classes into Phobos?

2017-03-23 Thread rikki cattermole via Digitalmars-d
On 23/03/2017 11:20 PM, Георгий wrote: On Thursday, 23 March 2017 at 09:48:54 UTC, Jonathan M Davis wrote: On Thursday, March 23, 2017 09:31:23 Георгий via Digitalmars-d wrote: If a function exists but has no implementation yet, it should use assert(0). I didn't know that. That will throw a

Re: More exception classes into Phobos?

2017-03-23 Thread rikki cattermole via Digitalmars-d
Does anybody know if we've solved @nogc exceptions? (I haven't needed them). If we haven't we should hold off on this.

Re: Rename 'D' to 'D++'

2017-03-10 Thread rikki cattermole via Digitalmars-d
On 11/03/2017 4:16 AM, Traktor TOni wrote: On Friday, 10 March 2017 at 15:10:34 UTC, Chris wrote: Why, then, is Rust called "Rust"? "C++" was chosen to signal that it's an improvement of C. "D++" would mean an improvement of D. If D is improved C++, then we would have to call it "C". This t

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-02 Thread rikki cattermole via Digitalmars-d
On 03/03/2017 4:06 PM, Adam D. Ruppe wrote: On Friday, 3 March 2017 at 02:59:57 UTC, rikki cattermole wrote: If we end up full on templated TypeInfo that would be lovely. TypeInfo_Class clasz = TypeInfo_ClassT!Foo; class TypeInfo_ClassT(T) if(is(T == class)) { version(FullReflection) {

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-02 Thread rikki cattermole via Digitalmars-d
On 03/03/2017 8:32 AM, Andrei Alexandrescu wrote: Worth a look: https://github.com/dlang/druntime/pull/1781. This moves comparison code away from tedious runtime-introspected routines to nice templates. -- Andrei If we end up full on templated TypeInfo that would be lovely. TypeInfo_Class clas

Re: Why don't you advertise more your language on Quora etc ?

2017-03-02 Thread rikki cattermole via Digitalmars-d
On 03/03/2017 12:10 AM, Martin Tschierschke wrote: On Wednesday, 1 March 2017 at 18:34:22 UTC, bachmeier wrote: On Wednesday, 1 March 2017 at 17:09:51 UTC, Jared Jeffries wrote: I think it should instead be advertised as the perfect language to learn programming and web development, because th

Re: dpldocs: xlinking and Documented destructors and postblits

2017-02-28 Thread rikki cattermole via Digitalmars-d
On 01/03/2017 7:19 PM, lobo wrote: On Wednesday, 1 March 2017 at 05:18:59 UTC, Adam D. Ruppe wrote: I stumbled across std.typecons.Unique in my doc website today and realized there was a postblit in the source, but I didn't display the documentation comment. [...] Is it possible to use your t

Re: code.dlang.org major outage

2017-02-23 Thread rikki cattermole via Digitalmars-d
On 24/02/2017 11:55 AM, Sönke Ludwig wrote: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear what the root cause is. I will instead set up a re

Re: Threads not garbage collected ?

2017-02-21 Thread rikki cattermole via Digitalmars-d
On 22/02/2017 6:28 PM, Alex wrote: import core.thread; class A { Thread mThread; bool mStopped; this() { mThread = new Thread(&run); mThread.start(); } void run() { while (!mStopped) { //do stuff } } ~this(

Re: D future ...

2017-02-19 Thread rikki cattermole via Digitalmars-d
On 20/02/2017 1:25 AM, timmyjose wrote: On Tuesday, 20 December 2016 at 15:42:16 UTC, bachmeier wrote: On Tuesday, 20 December 2016 at 15:17:56 UTC, Benjiro wrote: I do not recall seeing on the C++ and other forums this constant attitude from fix it yourselves or put it in the libraries or ...

Re: Aerospike wrapper/driver for vibe.d ?

2017-02-09 Thread rikki cattermole via Digitalmars-d
On 09/02/2017 9:03 PM, Rico Decho wrote: I've finally stopped working on Aerospike's wrapper. My company has finally decided to use another database (probably CouchBase). Anyway, I had noticed an obvious lack of interest of Aerospike's company for the D language. It's not even worth any short

Re: Internal error on Wiki page

2017-02-07 Thread rikki cattermole via Digitalmars-d
On 08/02/2017 3:19 PM, Ali Çehreli wrote: On 02/06/2017 06:43 PM, Luís Marques wrote: This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error" Proba

Re: Internal error on Wiki page

2017-02-06 Thread rikki cattermole via Digitalmars-d
On 07/02/2017 3:43 PM, Luís Marques wrote: This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error" If you're logged in it will work fine. There is no

Re: GSoC Project Idea's Part 2

2017-02-03 Thread rikki cattermole via Digitalmars-d
On 04/02/2017 3:53 AM, CRAIG DILLABAUGH wrote: On Friday, 3 February 2017 at 04:14:58 UTC, rikki cattermole wrote: FYI there has been a few people asking about GSOC on #D, any chance you could hang out there so if anybody turns up you can help em' out? I will make a point of going on #D whenev

Re: Workaround for DIP 1005

2017-02-03 Thread rikki cattermole via Digitalmars-d
On 04/02/2017 3:43 AM, Dominikus Dittes Scherkl wrote: DIP 1005 provides new syntax to make it possible to avoid global imports. Till now global imports are necessary if a function uses types declared in some imported module within it's declaration or definition (otherwise a local import will do)

Re: GSoC Project Idea's Part 2

2017-02-02 Thread rikki cattermole via Digitalmars-d
On 03/02/2017 5:12 PM, Craig Dillabaugh wrote: So the GSoC ideas page is now at least partially complete, you can find it here: https://wiki.dlang.org/GSOC_2017_Ideas In the previous thread some of you (Rikki, Adam) had suggested some improvements to dub/the code.dlang.org website. Either of y

Re: memcpy() comparison: C, Rust, and D

2017-01-30 Thread rikki cattermole via Digitalmars-d
On 31/01/2017 3:58 PM, Jaded Observer wrote: On Tuesday, 31 January 2017 at 02:01:05 UTC, Walter Bright wrote: On 1/30/2017 5:53 PM, Mike wrote: One in particular prevents me from using D, period! - https://issues.dlang.org/show_bug.cgi?id=14758 The -betterC switch is the approach we intend t

Re: Aerospike wrapper/driver for vibe.d ?

2017-01-28 Thread rikki cattermole via Digitalmars-d
On 28/01/2017 10:15 PM, Rico Decho wrote: I'm new to the D language, but I really enjoy its execution speed and ease of programming, and I'd like to implement the web server of my next project in D instead of C++ or Go. Unfortunately my server needs to communicate with an Aerospike database (an

Re: A mini D book: Markdown or LaTeX?

2017-01-24 Thread rikki cattermole via Digitalmars-d
On 25/01/2017 3:27 AM, aberba wrote: Which one works well? I'm more concerned about syntax highlighting and line numbering (in some cases). Support for custom fonts. I've used leanpub for my two books, it is now $100 per book (one time). Leanpub uses Markdown as input format and produces pdf, e

Re: GSoC 2017 Ideas!

2017-01-24 Thread rikki cattermole via Digitalmars-d
On 25/01/2017 12:17 PM, CRAIG DILLABAUGH wrote: I wanted to ask if anyone knows if there is a way to add links to PDF documents to the Wiki. I want to post some successful past proposals, but the Wiki only seems to want to let me upload a small number of formats, with PDF not being one of them.

Re: Gui in D: I miss this project

2017-01-18 Thread rikki cattermole via Digitalmars-d
On 19/01/2017 10:00 AM, aberba wrote: On Wednesday, 18 January 2017 at 17:51:18 UTC, Jacob Carlborg wrote: On 2017-01-18 10:24, aberba wrote: What about Photoshop? Is it native? No. Last time I used it it didn't look very native. So it will be incorrect to say native gui is a requirement t

Re: Language server protocol implementation for D

2017-01-18 Thread rikki cattermole via Digitalmars-d
On 19/01/2017 1:29 AM, Atila Neves wrote: On Wednesday, 18 January 2017 at 09:31:49 UTC, xtreak wrote: Rust is making good progress on the IDE aspect with the announcement : http://www.jonathanturner.org/2017/01/rls-alpha-release.html. HN discussion : https://news.ycombinator.com/item?id=134

Re: Gui in D: I miss this project

2017-01-17 Thread rikki cattermole via Digitalmars-d
On 18/01/2017 3:56 AM, Shachar Shemesh wrote: On 17/01/17 15:58, Adam D. Ruppe wrote: On Tuesday, 17 January 2017 at 13:46:21 UTC, Vadim Lopatin wrote: There is a workaround: it's possible to create DlangUI theme which looks like native OSX app. It usually isn't the theme, it is the little de

Re: Why not promoting team work?

2017-01-17 Thread rikki cattermole via Digitalmars-d
On 18/01/2017 12:38 AM, strymon wrote: On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: Hi! I've been following D for at least one year. I like it and I think it's a very good programming language, even though I do not agree with everything it's being done. One thing that has saddened

Re: parent class get the subclass object

2017-01-16 Thread rikki cattermole via Digitalmars-d
On 17/01/2017 1:15 AM, Brian wrote: Dlang should support such coding. What should I do? import std.stdio : writeln; abstract class Base(T) { this() { _this = this; } void hello() { _this.world(); } private { T _this; } } class Sub

Re: GSoC 2017 Ideas!

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 4:54 AM, Craig Dillabaugh wrote: On Saturday, 14 January 2017 at 15:23:19 UTC, rikki cattermole wrote: On 15/01/2017 4:19 AM, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any id

Re: GSoC 2017 Ideas!

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 4:19 AM, Craig Dillabaugh wrote: So the ideas page is up for the 2017 GSoC. Its a bit light on content. Please feel free to use this forum thread to discuss any ideas you might have for appropriate projects. https://wiki.dlang.org/GSOC_2017_Ideas Cheers Craig This year perhaps

Re: Why not promoting team work?

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 12:38 AM, nbro wrote: Nobody has understood yet the goal of this post. I'm not saying that everybody should work in a team or shouldn't try to create what one needs, if there isn't a better alternative. I'm suggesting that for a few interesting, useful and possibly valuable projec

Re: How do we make dub more useful?

2017-01-14 Thread rikki cattermole via Digitalmars-d
On 15/01/2017 12:02 AM, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a competitor: http://esr.ibiblio.org/?p=7303 Worth reading because we have similar issues

Re: Why not promoting team work?

2017-01-13 Thread rikki cattermole via Digitalmars-d
On 14/01/2017 3:59 PM, nbro wrote: On Saturday, 14 January 2017 at 02:41:00 UTC, rikki cattermole wrote: The only way to get qualified to do these tasks like GUI toolkits is by doing. Keep this in mind. As somebody who does indeed do implement multiple libraries at one time you're looking at it

<    1   2   3   4   5   6   7   8   9   10   >