Re: New DConf Blog Post

2019-03-22 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/22/19 9:58 AM, Mike Parker wrote: The DConf schedule was announced last Sunday. I've just published a write-up about it on the blog for the world-at-large. Please help us out by sharing this post in your social media circles. The blog:

Re: DConf 2019 Schedule

2019-03-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/19/19 10:24 AM, Mike Parker wrote: On Tuesday, 19 March 2019 at 13:44:03 UTC, Steven Schveighoffer wrote: On 3/19/19 9:27 AM, XavierAP wrote: On Sunday, 17 March 2019 at 22:43:28 UTC, Mike Parker wrote: http://dconf.org/2019/schedule/index.html I see transcoding errors in several of

Re: DConf 2019 Schedule

2019-03-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/19/19 9:27 AM, XavierAP wrote: On Sunday, 17 March 2019 at 22:43:28 UTC, Mike Parker wrote: http://dconf.org/2019/schedule/index.html I see transcoding errors in several of the event pages, on Firefox. Am I the only one? « The D version of the C++ copy constructor, historically

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 4:46 PM, Andrei Alexandrescu wrote: On 1/31/19 4:42 PM, Olivier FAURE wrote: On Thursday, 31 January 2019 at 16:38:42 UTC, Steven Schveighoffer wrote: Yeah, that's already a thing that ref in D doesn't protect against: It took me a while to understand what the compiler was doing.

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 4:42 PM, Olivier FAURE wrote: On Thursday, 31 January 2019 at 16:38:42 UTC, Steven Schveighoffer wrote: Yeah, that's already a thing that ref in D doesn't protect against: It took me a while to understand what the compiler was doing. This really feels like something that shouldn't

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 4:46 PM, Olivier FAURE wrote: On Thursday, 31 January 2019 at 18:31:22 UTC, Steven Schveighoffer wrote: BTW, the DIP discusses how to annotate these rare situations: int doubleMyValue(ref int x) { ... } @disable int doubleMyValue(int x); I don't think that's a solution. The

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 11:04 AM, Olivier FAURE wrote: On Thursday, 31 January 2019 at 02:10:05 UTC, Manu wrote: I still can't see a truck-sized hole. I don't know if it's truck-sized, but here's another corner case:     int doubleMyValue(ref int x) {     x *= 2;     return x;     }    

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 11:04 AM, Olivier FAURE wrote: On Thursday, 31 January 2019 at 02:10:05 UTC, Manu wrote: I still can't see a truck-sized hole. I don't know if it's truck-sized, but here's another corner case:     int doubleMyValue(ref int x) {     x *= 2;     return x;     }    

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 3:25 AM, Walter Bright wrote: But the DIP says const ref is not required. Therefore, copying an lvalue to a temporary cannot be allowed, therefore implicit conversion of lvalues cannot happen. The biggest reason I see to not worry about const is that we already don't for member

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/31/19 2:26 AM, Andrei Alexandrescu wrote: The trouble is major. Replace "if" with "while": while (ref_fun(10)) { ... } ==> {   int __tmp = 10;   while (ref_fun(__tmp)) { ... } } That means ref_fun is called with the same lvalue multiple times. In all likelihood this is not what you

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/30/19 10:05 PM, Manu wrote: On Wed, Jan 30, 2019 at 6:40 PM Nicholas Wilson via Digitalmars-d-announce wrote: You should clarify that ;) Yes, as said above, read `short(10)`. I can understand the confusion that it may look like a variable when taken out of context; but listed beneath

Re: DIP 1016 should use expression lowering, not statement lowering

2019-01-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/30/19 10:03 PM, Nicholas Wilson wrote: On Thursday, 31 January 2019 at 02:29:47 UTC, Steven Schveighoffer wrote: I came up with this idea based on tempCString, but it doesn't work: So I don't get why it doesn't work. But if that was fixed, could be a potential workaround without

Re: DIP 1016 should use expression lowering, not statement lowering

2019-01-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/30/19 9:20 PM, Steven Schveighoffer wrote: Essentially, nothing is different from existing semantics today, when rvalues are used and provides reference semantics (yes, it's possible, see tempCString). They live until the end of the statement. It's how this has to be. It can't be

Re: DIP 1016 should use expression lowering, not statement lowering

2019-01-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/29/19 6:52 AM, Andrei Alexandrescu wrote: While writing this example: int[] a = cast(int[]) alloc.allocate(100 * int.sizeof); if (alloc.reallocate(a, 200 * int.sizeof)) {     assert(a.length == 200); } => int[] a = cast(int[]) alloc.allocate(100 * int.sizeof); void[] __temp0 = a; if

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/28/19 9:15 PM, Andrei Alexandrescu wrote: On 1/28/19 5:23 PM, Steven Schveighoffer wrote: I already see this kind of bug all the time with alias this. Can you please post more detail? It may be of relevance to future work. Any time you have the alias this, then you can get confused

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/28/19 2:58 PM, Andrei Alexandrescu wrote: TL;DR: it could be argued that the only dangerous conversions are lvalue -> temp rvalue -> ref, so only disable those. The conversion rvalue -> temp rvalue -> ref is not dangerous because the starting value on the caller side could not be

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-01-25 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/25/19 5:57 AM, kinke wrote: On Thursday, 24 January 2019 at 23:59:30 UTC, Walter Bright wrote: On 1/24/2019 1:03 PM, kinke wrote: (bool __gate = false;) , ((A __pfx = a();)) , ((B __pfy = b();)) , __gate = true , f(__pfx, __pfy); There must be an individual gate for each of __pfx and

Re: D-lighted, I'm Sure

2019-01-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/18/19 11:42 AM, Ron Tarrant wrote: On Friday, 18 January 2019 at 15:08:48 UTC, Steven Schveighoffer wrote: Nice read! And welcome to Ron! I too, started with BASIC, but on a Commodore 64 :) Thanks, Steve. Just to set the record straight, I only had access to that Coleco Adam for the

Re: D-lighted, I'm Sure

2019-01-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/18/19 9:29 AM, Mike Parker wrote: Not long ago, in my retrospective on the D Blog in 2018, I invited folks to write about their first impressions of D. Ron Tarrant, who you may have seen in the Lear forum, answered the call. The result is the latest post on the blog, the first guest post

Re: B Revzin - if const expr isn't broken (was Re: My Meeting C++ Keynote video is now available)

2019-01-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/17/19 2:31 PM, H. S. Teoh wrote: On Thu, Jan 17, 2019 at 06:03:07PM +, Paul Backus via Digitalmars-d-announce wrote: [...] [2] https://bartoszmilewski.com/2009/10/21/what-does-haskell-have-to-do-with-c/ [...] Haha, seems D did better than C++ in this respect, but not quite at the

Re: My Meeting C++ Keynote video is now available

2019-01-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/16/19 11:43 AM, Paolo Invernizzi wrote: On Wednesday, 16 January 2019 at 16:30:17 UTC, Steven Schveighoffer wrote: On 1/16/19 10:06 AM, Paolo Invernizzi wrote: I'm waiting, for example, for a revamp of IO, just to start... We're working on it... https://github.com/schveiguy/iopipe

Re: My Meeting C++ Keynote video is now available

2019-01-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/16/19 10:06 AM, Paolo Invernizzi wrote: I'm waiting, for example, for a revamp of IO, just to start... We're working on it... https://github.com/schveiguy/iopipe https://github.com/MartinNowak/io -Steve

Re: My Meeting C++ Keynote video is now available

2019-01-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/15/19 4:37 AM, Martin Tschierschke wrote: On Monday, 14 January 2019 at 18:52:02 UTC, Jacob Carlborg wrote: On 2019-01-14 15:42, Steven Schveighoffer wrote: That's a bad example :) The clear answer is mysql-native, which is what vibe.d recommends. Exactly, and I don't need five minutes

Re: My Meeting C++ Keynote video is now available

2019-01-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/14/19 10:57 AM, Adam D. Ruppe wrote: On Monday, 14 January 2019 at 14:56:00 UTC, bachmeier wrote: Only a small sliver of programming involves anything where "overhead of a runtime" is an issue. I hope you intend this comment as pertaining to Better C usage. Real D is the true better C.

Re: My Meeting C++ Keynote video is now available

2019-01-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/14/19 5:18 AM, Martin Tschierschke wrote: On Monday, 14 January 2019 at 07:50:32 UTC, Walter Bright wrote: On 1/13/2019 9:31 PM, Paul Backus wrote: Scheme is probably the language that takes this idea of a minimal "core language" with powerful metaprogramming facilities the furthest, and

Re: The D Blog in 2018

2019-01-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 1/2/19 10:01 AM, Mike Parker wrote: It's time for the annual D Blog retrospective. Including the stats. The blog: https://dlang.org/blog/2019/01/02/the-d-blog-in-2018/ Reddit: https://www.reddit.com/r/d_language/comments/abu43a/the_d_blog_in_2018/ In a few days I'll be publishing a look

Re: DConf 2019: Shepherd's Pie Edition

2018-12-28 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/28/18 11:31 AM, Adam D. Ruppe wrote: But I'm telling you, DConf can learn from this stuff. Joakim is doing the community a service by trying to get you all to try some changes. Even baby step compromises can yield results at low risk. Note that the proposals always ask for format

Re: DConf 2019: Shepherd's Pie Edition

2018-12-24 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/24/18 2:44 AM, Joakim wrote: On Sunday, 23 December 2018 at 22:36:05 UTC, Steven Schveighoffer wrote: Huh? It's their decision, not yours. Even if the decision has no reason at all, it's still theirs. What is the problem? Start your own D "conference competitor" if you think you can do

Re: DConf 2019: Shepherd's Pie Edition

2018-12-23 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/22/18 12:22 PM, Joakim wrote: On Saturday, 22 December 2018 at 17:13:06 UTC, Mike Parker wrote: On Saturday, 22 December 2018 at 16:57:10 UTC, Joakim wrote: I'm not trying to discuss it with you or the community. I'm asking the D team who're making this decision why it's being made,

Re: Blog post: What D got wrong

2018-12-20 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/19/18 2:58 PM, Neia Neutuladh wrote: On Wed, 19 Dec 2018 17:28:01 +, Vijay Nayar wrote: Could you please elaborate a little bit more on this? In the linked program, I had expected that "ref" would return a reference to "a" that would behave similar to a pointer. They work like

Re: Announcing Elembuf

2018-12-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/19/18 12:54 PM, H. S. Teoh wrote: On Wed, Dec 19, 2018 at 11:56:44AM -0500, Steven Schveighoffer via Digitalmars-d-announce wrote: I had expected *some* improvement, I even wrote a "grep-like" example that tries to keep a lot of data in the buffer such that movin

Re: Announcing Elembuf

2018-12-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/18/18 8:41 PM, H. S. Teoh wrote: On Tue, Dec 18, 2018 at 01:56:18PM -0500, Steven Schveighoffer via Digitalmars-d-announce wrote: On 12/18/18 10:36 AM, H. S. Teoh wrote: On Tue, Dec 18, 2018 at 08:00:48AM +, Cyroxin via Digitalmars-d-announce wrote: [...] While the focus

Re: Announcing Elembuf

2018-12-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/18/18 10:36 AM, H. S. Teoh wrote: On Tue, Dec 18, 2018 at 08:00:48AM +, Cyroxin via Digitalmars-d-announce wrote: [...] While the focus of this library is in socket receival, reading from a file doesn't seem to be bad either. [...] Ahh, I see. I thought the intent was to read from

Re: Blog post: What D got wrong

2018-12-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/17/18 4:42 AM, Dukc wrote: On Monday, 17 December 2018 at 09:41:01 UTC, Dukc wrote: On Saturday, 15 December 2018 at 19:53:06 UTC, Atila Neves wrote: @safe and pure though... Why @safe? Can't you just write "@safe:" on top and switch to @system/@trusted as needed? Argh, I forgot

Re: D is helping with porch pirates

2018-12-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/17/18 6:13 PM, Daniel Kozák wrote: https://gma.abc/2zWvXCl Fixed subject, nice story! -Steve

Re: A brief survey of build tools, focused on D

2018-12-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/11/18 12:39 PM, H. S. Teoh wrote: On Tue, Dec 11, 2018 at 09:58:39AM +, Atila Neves via Digitalmars-d-announce wrote: On Monday, 10 December 2018 at 22:18:28 UTC, Neia Neutuladh wrote: [...] In typical D code, it's usually faster to compile per package than either all-at-once or

Re: Blog post: What D got wrong

2018-12-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/11/18 5:45 AM, Atila Neves wrote: A few things that have annoyed me about writing D lately: https://atilanevesoncode.wordpress.com/2018/12/11/what-d-got-wrong/ Agree with most of this. UFCS for templates would be awesome, but the syntax is trickier, since instantiation uses ! instead

Re: Ported js13k game underrun to D targeting webassembly

2018-11-18 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/17/18 4:35 PM, Sebastiaan Koppe wrote: Underrun is small game build by Dominic Szablewski for the 2018 js13kGames competition. I decided to port it to D and to target webassembly. You can play the game here https://skoppe.github.io/spasm/examples/underrun/ It is part of my endeavour

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-15 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/14/18 4:32 PM, Neia Neutuladh wrote: On Wed, 14 Nov 2018 13:40:46 -0500, Steven Schveighoffer wrote: You don't think this is confusing? enum A : int { val } A a; foo(a); // error: be more specific int x = a; foo(x); // Sure I find this confusing: void foo(int i) {}

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/14/18 1:11 PM, Neia Neutuladh wrote: On Tue, 13 Nov 2018 20:27:05 -0800, Walter Bright wrote: There have been various attempts over the years to "fix" various things in the D matching system by adding "just one more" match level. I kind of feel like, if something would be confusing like

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/13/18 11:26 AM, Chris M. wrote: On Monday, 12 November 2018 at 09:45:14 UTC, Mike Parker wrote: DIP 1015, "Deprecation and removal of implicit conversion from integer and character literals to bool, has been rejected, primarily on the grounds that it is factually incorrect in treating

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/12/18 4:38 PM, Walter Bright wrote: On 11/12/2018 8:28 AM, 12345swordy wrote: The issue that I see is unintended implicit conversation when passing values to functions that have both int and bool overloads. The exact same thing happens when there are both int and short overloads. The

Re: DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

2018-11-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/12/18 4:45 AM, Mike Parker wrote: DIP 1015, "Deprecation and removal of implicit conversion from integer and character literals to bool, has been rejected, primarily on the grounds that it is factually incorrect in treating bool as a type distinct from other integral types. The TL;DR

Re: Wed Oct 7 - Avoiding Code Smells by Walter Bright

2018-11-05 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/5/18 7:19 AM, Codifies wrote: I subscribed to this forum in the hope I'd get irregular updates on useful and interesting things related to the D language. This thread as far as I see it had degenerated into a somewhat childish and unproductive waste of time, I wouldn't object to a

Re: Spasm - webassembly libary for single page applications

2018-10-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 10/12/18 3:43 PM, Sebastiaan Koppe wrote: I like to announce Spasm https://github.com/skoppe/spasm It is a webassembly library to develop single page applications and builds on my previous work (https://forum.dlang.org/post/eqneqstmwfzugymfe...@forum.dlang.org). It generates fast and

Re: fearless v0.0.1 - shared made easy (and @safe)

2018-09-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 9/19/18 6:44 AM, Atila Neves wrote: On Tuesday, 18 September 2018 at 17:34:10 UTC, 12345swordy wrote: On Tuesday, 18 September 2018 at 17:20:26 UTC, Atila Neves wrote: The `shared` keyword currently means one of two things: 1. You can use core.atomic with it 2. It's some struct and you

Re: A facebook group for D programmers

2018-09-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 9/16/18 2:51 PM, Peter Alexander wrote: On Sunday, 16 September 2018 at 20:19:32 UTC, Murilo wrote: Hello everyone, I was so amazed with the D language that I created a facebook group for us all to be connected and share information. It is called "Programming in D", it has already 55

Re: [OT] My State is Illegally Preventing Me From Voting In The Upcoming 2018 US Elections

2018-09-15 Thread Steven Schveighoffer via Digitalmars-d-announce
On 9/9/18 2:34 AM, Nick Sabalausky (Abscissa) wrote: [snip] I personally think you are overreacting. Have you voted before? If so, just go to the place you did before. It's all I ever do. If you haven't, and go to the wrong place, I'm sure they will help you find the right place. In my state

Re: silly is released - new test runner for the D programming language

2018-08-15 Thread Steven Schveighoffer via Digitalmars-d-announce
On 8/12/18 11:07 AM, Anton Fediushin wrote: Hello, I'm glad to announce that silly v0.0.1 is released. Silly is a brand-new test runner with simplicity in mind. It's developed to be as simple as possible and contain no useless features. Another important goal is to provide flexible tool which

D Boston Meetup - 8/22

2018-08-08 Thread Steven Schveighoffer via Digitalmars-d-announce
Hi all, We are meeting again at the Capital One Cafe [1] on August 22nd at 6pm for a meetup to continue (start?) progress on the NLP library and to converse more about our favorite language. Sameer and Michael are going to be there, as well as myself. If you are in the Boston area around

Re: On D in competitive programming

2018-07-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/28/18 3:51 PM, Ivan Kazmenko wrote: Hey, I wrote a post with my general reflections on using D in competitive programming. Mostly compared to C++, since that's what more than 90% of people use for it. The post is tailored to cover only the competitive programming specifics.

Re: Hunt framework 1.2.0 released

2018-07-26 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/17/18 2:49 PM, Brian wrote: On Tuesday, 17 July 2018 at 11:10:07 UTC, Suliman wrote: On Tuesday, 17 July 2018 at 09:27:26 UTC, Brian wrote: Hello, hunt framework fix bugs version release. Major updates: 1. Add simplify functions 2. You can use createUrl() to create link url from

D Boston Meetup - 7/26

2018-07-10 Thread Steven Schveighoffer via Digitalmars-d-announce
Hi all, We are going to set up a little coding session/gathering for D in the Capital One Cafe in Back bay [1] on July 26th (Thursday) starting at 6 pm. So far it looks like Sameer, myself and Andrei will be there. Please stop by if you want to hang out, chat about our favorite language, or

Re: I have a plan.. I really DO

2018-07-06 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/6/18 11:53 AM, Ecstatic Coder wrote: Of course, the answer in C++ is that it won't compile, this is D code! ;) Seriously ? No, not seriously! I realized what you meant. I wrote : "And what about the same code in C++ ?" I thought people on this forum were smart enough to understand

Re: I have a plan.. I really DO

2018-07-06 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/6/18 11:19 AM, Ecstatic Coder wrote: On Friday, 6 July 2018 at 14:52:46 UTC, 12345swordy wrote: On Friday, 6 July 2018 at 14:11:05 UTC, Ecstatic Coder wrote: Just one silly question. Can the following "naive" D code trigger a garbage collection stall ? score.Text =

Re: DVM - D Version Manager 0.4.4

2018-07-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/2/18 3:36 AM, Tony wrote: On Monday, 2 July 2018 at 07:12:47 UTC, Basile B. wrote: On Monday, 2 July 2018 at 06:21:53 UTC, Tony wrote: On Sunday, 13 September 2015 at 16:26:04 UTC, Jacob Carlborg wrote: I just released a new version of DVM, 0.4.4. The most important I am on Windows 10.

Boston D presentation Wednesday 6/27

2018-06-25 Thread Steven Schveighoffer via Digitalmars-d-announce
Hi all, We are going to meet on 6/27 at 6 pm at the Capital One cafe in the Back Bay in Boston (https://www.capitalone.com/local/boston-backbay). Sameer Pradhan, a regular at the Boston D meetup group will show us his NLP tool that he is planning to port from Python to D, called OntoNotes.

Re: iopipe v0.1.0 - now with Windows support!

2018-06-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/19/18 7:18 AM, Jacob Carlborg wrote: On 2018-06-11 16:45, Steven Schveighoffer wrote: I just pushed v0.1.1 -- I realized that I never *actually* compiled on windows, and there were a couple things that didn't work. Note: the examples still don't work as they rely on openDev, which is

Re: Encouraging preliminary results implementing memcpy in D

2018-06-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/14/18 9:31 AM, rikki cattermole wrote: On 15/06/2018 1:22 AM, Steven Schveighoffer wrote: It's really the impersonation that is the problem, not the anonymity. If you just would stick to one persona, and especially not impersonate people who actually post on this forum, you would not have

Re: Encouraging preliminary results implementing memcpy in D

2018-06-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 10:32 PM, errExit wrote: On Wednesday, 13 June 2018 at 17:04:11 UTC, Ali Çehreli wrote: I am part of the D community. I haven't discriminated against anyone. I don't know what a Tor user is. I've just searched: So Tor is an old idea of mine, implemented. :o) Ali Tor is our

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 2:46 AM, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux system running on real hardware at this time, nor do I have a wide range of platforms and

Re: iopipe v0.1.0 - now with Windows support!

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 12:03 PM, Steven Schveighoffer wrote: I'm going to push this (I'll do some tests for the other widths to make sure it works for all UTF), but if you have any more things you want to work at CTFE, submit some issues on the github project. v0.1.2 released -Steve

Re: iopipe v0.1.0 - now with Windows support!

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/13/18 8:35 AM, bauss wrote: Does iopipe work with CTFE? It may work in some cases. Some of the things it does are not conducive to CTFE working well -- like using a buffer. But generally at compile time, you don't want to use a buffer. But I would expect, for instance, using

Re: Seoul D Meetup

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/11/18 10:50 PM, Mike Parker wrote: Woohoo! I'm extremely pleased to announce the first Seoul D Meetup! The three known D enthusiasts currently in Seoul (me, Mike Franklin, and Mathias Lang), and at least one potential enthusiast, are getting together at Charlie's (the hot dog shop my

Re: iopipe v0.1.0 - now with Windows support!

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/12/18 10:19 AM, Jesse Phillips wrote: I plan to eventually finish the JSON parser for a releasable state, and eventually tackle XML and a few other things. You should definitely tackle xml by branching dxml. I'm really liking the api. Of course that is my plan! I would never want to

Re: iopipe v0.1.0 - now with Windows support!

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/12/18 3:08 AM, Anton Fediushin wrote: On Sunday, 10 June 2018 at 20:10:31 UTC, Steven Schveighoffer wrote: iopipe version 0.1.0 has been released. iopipe is a high-performance pipe processing system that makes it easy to string together pipelines to process data with as little buffer

Re: iopipe v0.1.0 - now with Windows support!

2018-06-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/12/18 1:51 AM, DigitalDesigns wrote: Could you explain some benefits specific to this implementation and a bit of the functional aspects for a proper overview of it's capabilities and why I should chose this method over others? The things that I think make this approach better are: 1.

Re: DasBetterC: Converting make.c to D

2018-06-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/11/18 10:21 AM, Mike Parker wrote: Walter's latest post on -betterC is now on the blog. Here, he shows step-by-step an example of using -betterC to convert a real-world program, one small enough to describe in a blog post, from C to D. The blog:

Re: iopipe v0.1.0 - now with Windows support!

2018-06-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/10/18 4:10 PM, Steven Schveighoffer wrote: Nothing has really been changed, but it now has Windows i/o support. I will note at this time, however, that ring buffers are not yet supported on Windows. I just pushed v0.1.1 -- I realized that I never *actually* compiled on windows, and

Re: iopipe v0.1.0 - now with Windows support!

2018-06-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/11/18 6:14 AM, Dejan Lekic wrote: On Sunday, 10 June 2018 at 20:10:31 UTC, Steven Schveighoffer wrote: iopipe version 0.1.0 has been released. iopipe is a high-performance pipe processing system that makes it easy to string together pipelines to process data with as little buffer

iopipe v0.1.0 - now with Windows support!

2018-06-10 Thread Steven Schveighoffer via Digitalmars-d-announce
iopipe version 0.1.0 has been released. iopipe is a high-performance pipe processing system that makes it easy to string together pipelines to process data with as little buffer copying as possible. Nothing has really been changed, but it now has Windows i/o support. I will note at this

Re: Beta 2.080.1

2018-06-08 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/8/18 2:13 PM, Russel Winder wrote: On Mon, 2018-06-04 at 17:14 +0100, Russel Winder wrote: On Mon, 2018-06-04 at 11:14 -0400, Steven Schveighoffer via […] I just submitted a PR to fix https://issues.dlang.org/show_bug.cgi?id=18934 I used stable. I'm hoping it could get in for this

Re: Driving Continuous Improvement in D

2018-06-05 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/5/18 9:58 AM, Steven Schveighoffer wrote: On 6/5/18 3:20 AM, drug wrote: 04.06.2018 21:08, Steven Schveighoffer пишет: On 6/4/18 1:51 PM, Joakim wrote: On Monday, 4 June 2018 at 15:52:24 UTC, Steven Schveighoffer wrote: On 6/2/18 3:23 AM, Mike Parker wrote: [...] I like the article,

Re: Driving Continuous Improvement in D

2018-06-05 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/5/18 3:20 AM, drug wrote: 04.06.2018 21:08, Steven Schveighoffer пишет: On 6/4/18 1:51 PM, Joakim wrote: On Monday, 4 June 2018 at 15:52:24 UTC, Steven Schveighoffer wrote: On 6/2/18 3:23 AM, Mike Parker wrote: [...] I like the article, but was taken aback a bit by this quote: "for

Re: Hunt framework 1.0.0 released

2018-06-05 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/5/18 3:25 AM, Brian wrote: source code in github https://github.com/huntlabs/hunt/ documents in wiki https://github.com/huntlabs/hunt/wiki/ hunt framework website http://www.huntframework.com/ Is there a way to view your website in English? I found a popup on the bottom that has

Re: GitHub could be acquired by Microsoft

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/4/18 2:46 PM, Anton Fediushin wrote: Of course MS does, since they spent $5 billion on it. They will try their best to make profit out of it, just like they did with LinkedIn. $7.5 billion. -Steve

Re: GitHub could be acquired by Microsoft

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/3/18 11:51 PM, Anton Fediushin wrote: This is still just a rumour, we'll know the truth on Monday (which is today). Some articles about the topic: https://fossbytes.com/microsoft-github-aquisition-report/ https://www.theverge.com/2018/6/3/17422752/microsoft-github-acquisition-rumors

Re: Driving Continuous Improvement in D

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/4/18 1:51 PM, Joakim wrote: On Monday, 4 June 2018 at 15:52:24 UTC, Steven Schveighoffer wrote: On 6/2/18 3:23 AM, Mike Parker wrote: [...] I like the article, but was taken aback a bit by this quote: "for example, a PR to fix a bug in a specific piece of code mustn’t also edit the

Re: Driving Continuous Improvement in D

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/2/18 3:23 AM, Mike Parker wrote: In this post for the D Blog, Jack Stouffer details how dscanner is used in the Phobos development process to help improve code quality and fight entropy. The blog: https://dlang.org/blog/2018/06/02/driving-continuous-improvement-in-d/ reddit:

Re: Beta 2.080.1

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/4/18 7:44 AM, Martin Nowak wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 First beta for the 2.080.1 patch release. Comes with a handful of fixes. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.080.1.html Please report any bugs at https://issues.dlang.org

Re: DConf 2018 Ex Post Facto

2018-06-01 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/31/18 7:06 PM, Stefan wrote: On Thursday, 31 May 2018 at 19:31:20 UTC, Steven Schveighoffer wrote: There was a small "presentation" where people could show what they had accomplished during the hackathon, which gives a rough estimation of what you are looking for. It was a google doc,

Re: DConf 2018 Ex Post Facto

2018-05-31 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/31/18 1:40 PM, jmh530 wrote: On Thursday, 31 May 2018 at 15:01:12 UTC, Mike Parker wrote: Since I returned home from my extended trip to Germany, it's been a slog trying to ramp back up into my usual routine. It was a week before I could find any words at all for a retrospective on the

Re: Complicated Types: Prefer “alias this” Over “alias” For Easier-To-Read Error Messages

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/21/18 4:29 PM, Nick Sabalausky (Abscissa) wrote: On 05/21/2018 01:30 PM, Paul Backus wrote: I'm not sure making `_data` private is really a good idea. For example, this only works if `_data` is public: import std.algorithm; import std.range; import std.stdio; struct MyType {  auto

Re: Complicated Types: Prefer “alias this” Over “alias” For Easier-To-Read Error Messages

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/21/18 10:48 AM, Mike Parker wrote: Nick Sabaluasky's first post to the D Blog is a tip on how to create an aliased type that keeps its name in error messages. The blog: https://dlang.org/blog/2018/05/21/complicated-types-prefer-alias-this-over-alias-for-easier-to-read-error-messages/

Re: vibe.d 0.7.33 maintenance release

2018-05-21 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/20/18 8:07 AM, Sönke Ludwig wrote: Another big improvement is the diet-ng library, which uses less compile-time memory and is a lot more flexible than the old `vibe.textfilter.diet` module. Isn't diet-ng used by 0.7.x branch now? It seems to be selected when I'm using 0.7.x -Steve

Re: iopipe v0.0.4 - RingBuffers!

2018-05-14 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/14/18 6:02 AM, bioinfornatics wrote: On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer wrote: OK, so at dconf I spoke with a few very smart guys about how I can use mmap to make a zero-copy buffer. And I implemented this on the plane ride home. However, I am struggling to

Re: iopipe v0.0.4 - RingBuffers!

2018-05-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/12/18 3:38 PM, Patrick Schluter wrote: On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer wrote: OK, so at dconf I spoke with a few very smart guys about how I can use mmap to make a zero-copy buffer. And I implemented this on the plane ride home. [...] They can be

Re: iopipe v0.0.4 - RingBuffers!

2018-05-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/11/18 11:44 AM, Steven Schveighoffer wrote: On 5/10/18 7:22 PM, Steven Schveighoffer wrote: However, this example *does* show the power of iopipe -- it handles all flavors of unicode with one template function, is quite straightforward (though I want to abstract the line tracking code,

Re: iopipe v0.0.4 - RingBuffers!

2018-05-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/10/18 7:22 PM, Steven Schveighoffer wrote: However, this example *does* show the power of iopipe -- it handles all flavors of unicode with one template function, is quite straightforward (though I want to abstract the line tracking code, that stuff is really tricky to get right). Oh, and

Re: iopipe v0.0.4 - RingBuffers!

2018-05-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/11/18 5:55 AM, Kagamin wrote: On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer wrote: However, I am struggling to find a use case for this that showcases why you would want to use it. While it does work, and works beautifully, it doesn't show any measurable difference vs.

Re: iopipe v0.0.4 - RingBuffers!

2018-05-11 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/11/18 1:30 AM, Dmitry Olshansky wrote: On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer wrote: OK, so at dconf I spoke with a few very smart guys about how I can use mmap to make a zero-copy buffer. And I implemented this on the plane ride home. However, I am struggling to

iopipe v0.0.4 - RingBuffers!

2018-05-10 Thread Steven Schveighoffer via Digitalmars-d-announce
OK, so at dconf I spoke with a few very smart guys about how I can use mmap to make a zero-copy buffer. And I implemented this on the plane ride home. However, I am struggling to find a use case for this that showcases why you would want to use it. While it does work, and works beautifully,

Re: Dconf live stream for Shachar's talk

2018-05-05 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/5/18 9:56 AM, Steven Schveighoffer wrote: Hi all, We are live streaming Shachar's talk this morning at https://www.youtube.com/watch?v=xNWRgEHxOhc Ali is uploading the slides to dconf.org so you can follow along. Cheers! I will note that we don't have the normal A/V crew from the

Dconf live stream for Shachar's talk

2018-05-05 Thread Steven Schveighoffer via Digitalmars-d-announce
Hi all, We are live streaming Shachar's talk this morning at https://www.youtube.com/watch?v=xNWRgEHxOhc Ali is uploading the slides to dconf.org so you can follow along. Cheers! -Steve

Re: #include C headers in D code

2018-04-10 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/10/18 2:36 PM, Atila Neves wrote: Haha, I remember. I do plan on dealing with emplace_back, but I have no idea how just yet and I was hoping nobody was going to call me on it until then. Busted! :P I think we all agree you aren't going to instantiate C++ templates in D (and who

Re: #include C headers in D code

2018-04-10 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/10/18 12:51 PM, Atila Neves wrote: On Tuesday, 10 April 2018 at 13:53:34 UTC, Steven Schveighoffer wrote: If you get to the point where you can #include , it will be doubly impressive! Not *if*, *when*. ;) I hope you are right, but I remain skeptical :) If I may throw a curveball

Re: #include C headers in D code

2018-04-10 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/9/18 7:03 AM, Atila Neves wrote: Here's my blog post about my project that allows directly #including C headers in D* https://atilanevesoncode.wordpress.com/2018/04/09/include-c-headers-in-d-code/ The summary is that, modulo bugs, things like this work:     #include     void

Re: std.variant Is Everything Cool About D

2018-04-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/3/18 11:29 PM, Meta wrote: Also, with Nullable your data is guaranteed to not be boxed, whereas it's a possibility with Variant/Algebraic if the types you're working with are large enough. Not with Algebraic. -Steve

Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side

2018-03-27 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/26/18 9:26 AM, Atila Neves wrote: On Friday, 23 March 2018 at 14:54:57 UTC, Steven Schveighoffer wrote: On 3/22/18 6:59 AM, Atila Neves wrote: Blog post: https://atilanevesoncode.wordpress.com/ Atila It's simple. Unittests in imported modules should not be visible. They should be

Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side

2018-03-24 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/23/18 9:54 PM, Tony wrote: I said my "original reply", meaning the one where I first mentioned Test-Driven Development. That was to something that Steven Schveighoffer said (although I did not reply directly to his message, but replied to his comment that was still in H.S. Teoh's

  1   2   3   4   >