Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Friday, 6 May 2016 at 00:08:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 23:46:59 UTC, Ed wrote: On Thursday, 5 May 2016 at 23:33:07 UTC, Yuxuan Shui wrote: It'd really nice if this just works, That's clear that you've never been stuck in the fat mud of imperative and OO

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 23:19:59 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 23:12:40 UTC, Ed wrote: On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...]

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...] It's hard to help without a minimal working example (maybe something with just the body). If you mean that

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: So I was working on a parser combinator library, where the combinators take parsers as template argument. It works well until recently I decided to change the parsers so they would take Ranges instead of just strings. The combinator

Re: DConf 2016 speakers: please add your slides beforehand

2016-05-04 Thread Ed via Digitalmars-d-announce
On Wednesday, 4 May 2016 at 14:34:22 UTC, Andrei Alexandrescu wrote: The video's resolution makes it difficult to follow in real time. Use this example: https://github.com/dlang/dconf.org/pull/116. Thanks! -- Andrei http://dconf.org/2016/talks/thaut.pdf broken.

Re: Rust piece on integer safety

2016-04-30 Thread Ed via Digitalmars-d-learn
On Saturday, 30 April 2016 at 23:11:20 UTC, Laeeth Isharc wrote: All the design/discussion/implementation of this scheme for handling integer overflow would be wasted if it didn’t actually find any bugs in practice. I personally have had quite a few bugs found nearly as I write them, with

Re: Inheritance of mixin

2016-04-30 Thread Ed via Digitalmars-d
On Saturday, 30 April 2016 at 01:06:18 UTC, Andrew Benton wrote: On Friday, 29 April 2016 at 19:11:24 UTC, tsbockman wrote: Rare as in, "effecting only a very small amount of real world code" - not as in "effecting only a very small number of people". [...] Additionally, any libraries that

Re: GSoC 2016 - A replacement of std.xml for the Phobos standard library

2016-04-23 Thread Ed via Digitalmars-d
On Saturday, 23 April 2016 at 08:30:32 UTC, Lodovico Giaretta wrote: This is my first experience at GSoC and also my first collaboration with a big open source project, so if you have any suggestion about my proposal or my early implementation, feel free to tell me. Thank you very much to

Re: Are structs saved in multi-thread delegate call?

2016-04-22 Thread ed via Digitalmars-d-learn
On Saturday, 23 April 2016 at 01:11:49 UTC, Ramon wrote: mmm, I figured the problem, but don't know how to solve it. my struct has a destructor which clears itself: struct json_value { ~this() { .ValueClear(); } } so how I can I put a struct in the heap? (not in the stack, as is the

Re: Auto attributes for functions

2014-08-20 Thread ed via Digitalmars-d-learn
On Wednesday, 20 August 2014 at 09:13:15 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: On Wed, 20 Aug 2014 01:38:52 + uri via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Hi all, Bit new to D so this might be a very naive question... Can the compiler auto infer

Re: Are there desktop appications being developed in D currently?

2014-08-08 Thread ed via Digitalmars-d-learn
On Saturday, 9 August 2014 at 00:34:43 UTC, Puming wrote: Hi, I bumped into a blog talking about building a (toy) browser engine in Rust: (http://limpet.net/mbrubeck/2014/08/08/toy-layout-engine-1.html) In the blog I found that the OP is in the mozilla servo team building a parallel

Re: Programming in D book is 100% translated

2014-07-24 Thread ed via Digitalmars-d-announce
On Thursday, 24 July 2014 at 08:11:01 UTC, Ali Çehreli wrote: I have completed the translation of the book. Phew... :) However, there is still more work, like adding a UDA chapter and working on many little TODO items. The following was the final chapter, which actually only scratches the

Re: Optimizing Java using D

2014-07-03 Thread ed via Digitalmars-d
On Thursday, 3 July 2014 at 07:29:42 UTC, Wanderer wrote: Nobody, never, measures sort algorithms by amount of swaps. What if you're sorting a large database with large records?

Re: Worrying attitudes to the branding of the D language

2014-07-01 Thread ed via Digitalmars-d
On Wednesday, 2 July 2014 at 03:15:20 UTC, Nick Sabalausky wrote: On 7/1/2014 5:15 PM, Gary Willoughby wrote: On Tuesday, 1 July 2014 at 19:50:15 UTC, David Nadlinger wrote: Care to share any work samples/your la(te)st portfolio? David In the past i worked on purely traditional packaging so

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

2014-06-30 Thread ed via Digitalmars-d
On Monday, 30 June 2014 at 06:21:49 UTC, Walter Bright wrote: When precision is an issue we always choose a software solution. This has been my experience in both geophysics and medical device development. It is cheaper, faster (dev. time), and better tested than anything we would develop

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

2014-06-30 Thread ed via Digitalmars-d
On Monday, 30 June 2014 at 07:21:00 UTC, Don wrote: On Monday, 30 June 2014 at 04:15:46 UTC, Walter Bright wrote: On 6/29/2014 8:22 PM, Manu via Digitalmars-d wrote: Well, here's the thing then. Consider that 'real' is only actually supported on only a single (long deprecated!) architecture.

Re: Designing a matrix library for D

2014-06-24 Thread ed via Digitalmars-d
On Tuesday, 24 June 2014 at 07:01:14 UTC, Mason McGill wrote: On Tuesday, 24 June 2014 at 04:36:04 UTC, ed wrote: On Monday, 23 June 2014 at 21:08:03 UTC, Mason McGill wrote: [snip] Concepts: InputGrid: anything with a size (size_t[n]) and n-dimensional opIndex. OutputGrid: anything with a

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-06-23 Thread ed via Digitalmars-d-announce
On Monday, 23 June 2014 at 08:10:49 UTC, Jacob Carlborg wrote: On 2014-06-22 08:25, ed wrote: But there's no 64 bit support for DWT, or am I mistaken? Yes, correct. Why do you need 64bit? All 64bit Windows computers can run 32bit applications. Memory is the main reason. I have started

Re: Designing a matrix library for D

2014-06-23 Thread ed via Digitalmars-d
On Monday, 23 June 2014 at 21:08:03 UTC, Mason McGill wrote: [snip] Concepts: InputGrid: anything with a size (size_t[n]) and n-dimensional opIndex. OutputGrid: anything with a size (size_t[n]) and n-dimensional opIndexAssign. [snip] Cheers, Mason I don't think 'Grid' is not a good

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-06-22 Thread ed via Digitalmars-d-announce
On Friday, 20 June 2014 at 18:24:49 UTC, Jacob Carlborg wrote: On 2014-06-19 20:47, SomeRiz wrote: Thanks Gary. Very simple :) But i have a question. All DLL file = How can i embed main.d file? Use DWT [1], no additional requirements besides the system libraries ;) [1]

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-21 Thread ed via Digitalmars-d-announce
On Friday, 20 June 2014 at 22:04:37 UTC, Andrei Alexandrescu wrote: I use archive.org because it's the only I found that accepts full-resolution videos. -- Andrei A bit off-topic but I just found this while searching around archive.org with `subject:D Programming`

Re: Out of sight out of mind

2014-06-17 Thread ed via Digitalmars-d
On Tuesday, 17 June 2014 at 06:07:22 UTC, Russel Winder via Digitalmars-d wrote: On Tue, 2014-06-17 at 02:24 +, ed via Digitalmars-d wrote: […] I agree, but it is rather pricey for OSS. JIRA is free for FOSS projects if you apply to them and they agree. Groovy, GPars and Gant all use

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread ed via Digitalmars-d
On Tuesday, 17 June 2014 at 11:59:23 UTC, Manu via Digitalmars-d wrote: On 17 June 2014 18:36, Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/17/2014 2:56 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 17 June 2014 at 05:52:37 UTC,

Re: Out of sight out of mind

2014-06-16 Thread ed via Digitalmars-d
On Monday, 16 June 2014 at 13:53:39 UTC, Byron Heads wrote: Does github link issues with pull requests (and the conversation) and commits? Does it link issues with sub issues/tasks? Can Issues link to other repos (link issues that are in both runtime and std lib)? If it does have these

Re: Will std.experimental be shipped with DMD zip package?

2014-06-06 Thread ed via Digitalmars-d
On Thursday, 5 June 2014 at 16:57:53 UTC, Andrei Alexandrescu wrote: On 6/5/14, 1:08 PM, uri wrote: I assume it will but thought I'd ask all the same... I only use the latest official release and would still like to bash on std.experimental modules so I hope it will be in 2.066.zip. Thanks,

Re: Will std.experimental be shipped with DMD zip package?

2014-06-06 Thread ed via Digitalmars-d
On Thursday, 5 June 2014 at 16:57:53 UTC, Andrei Alexandrescu wrote: On 6/5/14, 1:08 PM, uri wrote: I assume it will but thought I'd ask all the same... I only use the latest official release and would still like to bash on std.experimental modules so I hope it will be in 2.066.zip. Thanks,

Re: SurveyMonkey for D users OS - Results

2014-06-06 Thread ed via Digitalmars-d
On Friday, 6 June 2014 at 22:04:35 UTC, Paulo Pinto wrote: Am 06.06.2014 22:24, schrieb Dicebot: On Friday, 6 June 2014 at 19:44:53 UTC, Paulo Pinto wrote: Battery usage is still a common problem. Everything has been working perfectly for years now. Not really, case in point my Netbook Asus

Re: Kernel in D

2014-06-05 Thread ed via Digitalmars-d-learn
On Thursday, 5 June 2014 at 11:07:54 UTC, 1100110 wrote: On 6/5/14, 6:05, 1100110 wrote: On 5/31/14, 7:57, ed wrote: On Saturday, 31 May 2014 at 07:28:32 UTC, Mineko wrote: So, I've gotten interested in kernel programming in D.. And as much as I like C/C++, I wanna try innovating, I'm aware

Re: D's gui controls need a cool control for DataBase Programming

2014-06-03 Thread ed via Digitalmars-d
On Wednesday, 4 June 2014 at 02:02:38 UTC, FrankLike wrote: There's no GUI builder for DWT, if that's what you're looking for. But there is a plugin for Eclipse called WindowBuilder [1]. That will output Java code for SWT (which DWT is a port of). [1] http://www.eclipse.org/windowbuilder/

Re: D's gui controls need a cool control for DataBase Programming

2014-06-03 Thread ed via Digitalmars-d
On Wednesday, 4 June 2014 at 02:25:29 UTC, ed wrote: On Wednesday, 4 June 2014 at 02:02:38 UTC, FrankLike wrote: There's no GUI builder for DWT, if that's what you're looking for. But there is a plugin for Eclipse called WindowBuilder [1]. That will output Java code for SWT (which DWT is a

Re: Segfault in shared object when writeln

2014-06-03 Thread ed via Digitalmars-d-learn
On Wednesday, 4 June 2014 at 03:49:25 UTC, Harpo wrote: Hello I am having the following problem. I am trying to turn a program I have written into a shared object. I have ran into some problems however. When I use writeln instead of printf my program segfaults. I have edited the code to just

Re: Segfault in shared object when writeln

2014-06-03 Thread ed via Digitalmars-d-learn
On Wednesday, 4 June 2014 at 04:46:59 UTC, ed wrote: On Wednesday, 4 June 2014 at 03:49:25 UTC, Harpo wrote: Hello I am having the following problem. I am trying to turn a program I have written into a shared object. I have ran into some problems however. When I use writeln instead of printf

Re: [OT] Extra time spent

2014-06-01 Thread ed via Digitalmars-d
On Monday, 2 June 2014 at 03:08:33 UTC, John wrote: On Sunday, 1 June 2014 at 19:22:44 UTC, Walter Bright wrote: On 5/30/2014 8:08 AM, Chris wrote: I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. A few years back I invented a triangular wheel,

Re: Kernel in D

2014-05-31 Thread ed via Digitalmars-d-learn
On Saturday, 31 May 2014 at 07:28:32 UTC, Mineko wrote: So, I've gotten interested in kernel programming in D.. And as much as I like C/C++, I wanna try innovating, I'm aware that phobos/gc and any OS-specific issues are going to be a problem, but I'm willing to implement them into the kernel

Re: Web based NG/forum error Don't know how parse text/html message

2014-05-29 Thread ed via Digitalmars-d
On Thursday, 29 May 2014 at 06:28:13 UTC, Vladimir Panteleev wrote: On Thursday, 29 May 2014 at 01:49:51 UTC, ed wrote: This is just recent and only seems to be affecting posts by J M Davies, which are often enlightening so it is a bit frustrating. I get the following error in the web

Re: D Users Survey: Primary OS?

2014-05-29 Thread Ed via Digitalmars-d
On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom

Re: Web based NG/forum error Don't know how parse text/html message

2014-05-29 Thread ed via Digitalmars-d
On Friday, 30 May 2014 at 02:10:56 UTC, ed wrote: On Friday, 30 May 2014 at 00:57:36 UTC, Jonathan M Davis via Digitalmars-d wrote: On Thu, 29 May 2014 01:49:49 + ed via Digitalmars-d digitalmars-d@puremagic.com wrote: This is just recent and only seems to be affecting posts by J M Davies

Re: Web based NG/forum error Don't know how parse text/html message

2014-05-29 Thread ed via Digitalmars-d
On Friday, 30 May 2014 at 00:57:36 UTC, Jonathan M Davis via Digitalmars-d wrote: On Thu, 29 May 2014 01:49:49 + ed via Digitalmars-d digitalmars-d@puremagic.com wrote: This is just recent and only seems to be affecting posts by J M Davies, which are often enlightening so it is a bit

Re: DConf Recommendation

2014-05-28 Thread ed via Digitalmars-d
On Wednesday, 28 May 2014 at 21:05:13 UTC, Chris Williams wrote: My first day at DConf, during lunch, I ended up sitting next to the CTO/CEO of a startup company that was considering D as their language of choice. He commented to me, and which makes sense to me, that the format of the

Web based NG/forum error Don't know how parse text/html message

2014-05-28 Thread ed via Digitalmars-d
This is just recent and only seems to be affecting posts by J M Davies, which are often enlightening so it is a bit frustrating. I get the following error in the web interface: Don't know how parse text/html message I have switched to email for now but I actually prefer the web interface.

Re: Mass-enabling D = License question

2014-05-20 Thread ed via Digitalmars-d
On Wednesday, 21 May 2014 at 00:16:07 UTC, Max Barraclough wrote: The DMD frontend is licensed under the GPL, which is 'viral': if your code links against it, you'll have to release your code as GPL. Strictly, John is right in that the GPL doesn't prevent you from charging for your code, but

Re: DFL is the best UIcontrols for D,compare it to dwt, tkd,dtk,dlangui,anchovy......

2014-05-14 Thread ed via Digitalmars-d-learn
On Wednesday, 14 May 2014 at 06:14:16 UTC, FrankLike wrote: On Tuesday, 13 May 2014 at 23:26:20 UTC, ed wrote: On Tuesday, 13 May 2014 at 15:20:36 UTC, FrankLike wrote: DFL is just a thin wrapper around Win32, no surprise. I've found my apps written using DFL work quite fine in Linux via

Template delegate/function ptr struct member

2014-05-13 Thread ed via Digitalmars-d-learn
I'm porting some C++ code to D and a struct has the following member: struct S { // ... //void* (*createMethod)(); void* function() createMethod; } I'd like to extend this as little to accept delegates for future use without breakage to existing code... Is it possible to template this so

Re: DFL is the best UIcontrols for D,compare it to dwt, tkd,dtk,dlangui,anchovy......

2014-05-13 Thread ed via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 15:20:36 UTC, FrankLike wrote: DFL is just a thin wrapper around Win32, no surprise. I've found my apps written using DFL work quite fine in Linux via Wine, so I use them from both OSes. In Linux?The exe was compiled in win32? Don't play jokes on it. He's not

Re: question about passing associative array to a function

2014-05-11 Thread ed via Digitalmars-d-learn
On Sunday, 11 May 2014 at 14:46:35 UTC, rbutler wrote: I have searched and can not understand something about passing AAs to a function. I have reduced the gist of the question to a tiny program below. If I put ref in the function stmt it works, i.e.: ref int[int] aa My confusion is

Re: API

2014-05-05 Thread ed via Digitalmars-d
On Tuesday, 6 May 2014 at 00:10:36 UTC, Andrei Alexandrescu wrote: So I'm looking at creation functions and in particular creation functions for arrays. 1. Follow the new int[n] convention: auto a = allok.make!(int[])(42); assert(a.length == 42); assert(a.equal(repeat(0, 42)); 2. Follow the

Re: More radical ideas about gc and reference counting

2014-05-01 Thread ed via Digitalmars-d
On Thursday, 1 May 2014 at 22:18:59 UTC, H. S. Teoh via Digitalmars-d wrote: [snip] 6) Since class dtors were the only thing that cleaned up the struct member variables by invoking their dtors, that means the struct dtor will *never* get invoked. [snip] I might be mistaken but isn't it