Re: [OT] Algorithm question

2017-05-04 Thread Timon Gehr via Digitalmars-d
On 03.05.2017 01:09, MysticZach wrote: Counterexample: [1,1,1,0,0] Your algorithm returns 0 with probability 7/20, 1 with probability 6/20 and 2 with probability 7/20. Note that there is a simple reason why your algorithm cannot work for this case: it picks one of 20 numbers at random. The

DConf 2017 livestream

2017-05-04 Thread Johannes Pfau via Digitalmars-d-announce
As nobody posted this in the announce group yet, I'll just repeat this information here: The DConf 2017 livestream is available here: https://www.youtube.com/watch?v=MqrJZg6PgnM See the DLangConf twitter account for more information: https://twitter.com/DLangConf

Re: Dconference recordings and presentations

2017-05-04 Thread Ali Çehreli via Digitalmars-d
On 04/20/2017 11:22 AM, Ali Çehreli wrote: > I will try hard to have the slides updated on the DConf site. Walter's slides are up a little later than I hoped probably due to automatic deployment issues. (?) http://dconf.org/2017/talks/bright.html (You may need to refresh that page.) I

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Brian Schott via Digitalmars-d
On Saturday, 29 April 2017 at 20:46:06 UTC, Andrej Mitrovic wrote: The last bit of news I've received is they will be streamed on youtube this time. Is there any update on this? (Preferably in the form of a URL)

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Mike Parker via Digitalmars-d
On Thursday, 4 May 2017 at 06:51:22 UTC, Joakim wrote: On Thursday, 4 May 2017 at 06:35:39 UTC, Brian Schott wrote: On Saturday, 29 April 2017 at 20:46:06 UTC, Andrej Mitrovic wrote: The last bit of news I've received is they will be streamed on youtube this time. Is there any update on

Re: Blog post on automem

2017-05-04 Thread Atila Neves via Digitalmars-d-announce
On Wednesday, 3 May 2017 at 12:43:26 UTC, ANtlord wrote: On Friday, 28 April 2017 at 14:40:03 UTC, Mike Parker wrote: Atila was kind enough to do a write up on his automem library for the D Blog, talking about why he did it and showing some of the implementation details. This is officially

Re: DConf 2017 livestream

2017-05-04 Thread Johannes Pfau via Digitalmars-d-announce
On Thursday, 4 May 2017 at 08:02:22 UTC, Johannes Pfau wrote: The DConf 2017 livestream is available here: https://www.youtube.com/watch?v=MqrJZg6PgnM Looks like the youtube video ID changes when the stream is stopped / restarted. Look for the livestream on

[Issue 17363] @safety hole due to $ caching in slice expressions

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17363 --- Comment #3 from anonymous4 --- Because you can't resolve $ before loading the array, therefore loading before resolution is the only way to do it. --

[Issue 17368] [DIP1000] scope T** implicit convertion to scope T* allow to escape pointer

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17368 Mathias Lang changed: What|Removed |Added Status|NEW |RESOLVED

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Mike Parker via Digitalmars-d
On Thursday, 4 May 2017 at 07:13:40 UTC, Mike Parker wrote: On Thursday, 4 May 2017 at 06:51:22 UTC, Joakim wrote: On Thursday, 4 May 2017 at 06:35:39 UTC, Brian Schott wrote: On Saturday, 29 April 2017 at 20:46:06 UTC, Andrej Mitrovic wrote: The last bit of news I've received is they will be

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Joakim via Digitalmars-d
On Thursday, 4 May 2017 at 06:35:39 UTC, Brian Schott wrote: On Saturday, 29 April 2017 at 20:46:06 UTC, Andrej Mitrovic wrote: The last bit of news I've received is they will be streamed on youtube this time. Is there any update on this? (Preferably in the form of a URL) Yeah, hopefully

Re: Dconference recordings and presentations

2017-05-04 Thread Ali Çehreli via Digitalmars-d
On 05/04/2017 01:53 AM, Ali Çehreli wrote: > a little later than I hoped probably due to > automatic deployment issues. (?) It turns out, dmd builds are clogging up travis builds, so dconf.org deployments don't get a chance. As a solution, we will be killing your dmd builds randomly.

[Issue 17368] New: [DIP1000] scope T** implicit convertion to scope T* allow to escape pointer

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17368 Issue ID: 17368 Summary: [DIP1000] scope T** implicit convertion to scope T* allow to escape pointer Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: DIP 1004 Preliminary Review Round 1

2017-05-04 Thread deadalnix via Digitalmars-d
On Tuesday, 2 May 2017 at 11:13:35 UTC, Andrej Mitrovic wrote: On Tuesday, 2 May 2017 at 09:03:27 UTC, deadalnix wrote: 100% in favor of the constructor behavior change in case no constructor is in the derived class. I think we could even split this up into two separate proposals, because

Re: Blog post on automem

2017-05-04 Thread Nick Treleaven via Digitalmars-d-announce
On Thursday, 4 May 2017 at 08:41:55 UTC, Atila Neves wrote: I took a look at this. It's a druntime problem. Unique.~this calls std.experimental.allocator.dispose, which calls destroy in object.d which calls rt_finalize: extern (C) void rt_finalize(void *data, bool det=true); Notice the lack

Re: [OT] Algorithm question

2017-05-04 Thread MysticZach via Digitalmars-d
On Thursday, 4 May 2017 at 13:19:43 UTC, MysticZach wrote: On Thursday, 4 May 2017 at 08:04:22 UTC, Timon Gehr wrote: On 03.05.2017 01:09, MysticZach wrote: That's true. Two points, though: If the range of error is within 1/(n*(n-1)), with array length n, It's not though. For example,

Re: DConf hackathon: idea list

2017-05-04 Thread rikki cattermole via Digitalmars-d-announce
In short I want Phobos to have an image library and long with it a windowing lib (but lets ignore that last part for now). I welcome people stealing and creating a competing ideas for anything in [0] and [1] that I have. Alternatively you can also create PR's for anything there as well. There

Re: alloca without runtime?

2017-05-04 Thread 岩倉 澪 via Digitalmars-d-learn
On Sunday, 30 April 2017 at 05:07:31 UTC, 岩倉 澪 wrote: I've been playing around with using D with no runtime on Linux, but recently I was thinking it would be nice to have an alloca implementation. I was thinking I could just bump the stack pointer (with alignment considerations) but from what

Re: [OT] Algorithm question

2017-05-04 Thread MysticZach via Digitalmars-d
On Thursday, 4 May 2017 at 08:04:22 UTC, Timon Gehr wrote: On 03.05.2017 01:09, MysticZach wrote: Counterexample: [1,1,1,0,0] Your algorithm returns 0 with probability 7/20, 1 with probability 6/20 and 2 with probability 7/20. Note that there is a simple reason why your algorithm cannot

DConf hackathon: idea list

2017-05-04 Thread Seb via Digitalmars-d-announce
Hi all, the DConf hackathon isn’t a hackathon in the traditional sense. It is intended as a day for _collaboratively_ focusing on long-lasting problems and pain points in the D ecosystem, planning upcoming features or DIPs, and creation of a rough roadmap for the next months. Of course, any

Re: Productive vibe.d dev environment (IDE, debugger) on Linux?

2017-05-04 Thread Carlin via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 17:43:07 UTC, kinke wrote: Hey guys, can anyone recommend a more or less production-ready dev environment for vibe.d on Linux? I'm evaluating vibe.d against Phoenix (Elixir/Erlang) for a new project. Today I gave Visual Studio Code a quick shot (with LDC 1.1.1 and

Re: DConf 2017 livestream

2017-05-04 Thread Joakim via Digitalmars-d-announce
On Friday, 5 May 2017 at 01:43:15 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: On Thursday, 4 May 2017 at 09:29:01 UTC, Johannes Pfau wrote: Looks like the youtube video ID changes when the stream is for the late comers, meanwhile the videos are getting ready and posted on youtube, it would

Re: DConf 2017 livestream

2017-05-04 Thread via Digitalmars-d-announce
On Friday, 5 May 2017 at 04:00:14 UTC, Joakim wrote: On Friday, 5 May 2017 at 01:43:15 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: ... If you can't wait, those archived stream ids have been posted in the General forum. What I was looking for. Thank you.

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Dukc via Digitalmars-d
On Friday, 5 May 2017 at 01:41:25 UTC, bachmeier wrote: https://www.youtube.com/watch?v=IqiXMN03968 Ah, a link to view all the talks one has missed -Thanks, Just what I wanted! Could you to provide them for todays and tomorrows talk too, when they are over? BTW I really like how the

Re: alloca without runtime?

2017-05-04 Thread Kagamin via Digitalmars-d-learn
You can try ldc and llvm intrinsics http://llvm.org/docs/LangRef.html#alloca-instruction http://llvm.org/docs/LangRef.html#llvm-stacksave-intrinsic

DMD 2.074.0

2017-05-04 Thread jj via Digitalmars-d
the installer does not work for VS 2017 - that sucks!!!

Re: DConf hackathon: idea list

2017-05-04 Thread OoopsAgain via Digitalmars-d-announce
On Thursday, 4 May 2017 at 15:40:57 UTC, rikki cattermole wrote: On 04/05/2017 4:29 PM, OoopsAgain wrote: On Thursday, 4 May 2017 at 14:53:34 UTC, Adam D. Ruppe wrote: [...] I just had a vision: pragma(pushAttributes); @safe: void foo(); pragma(popAttributes); void notsafeanymore(); No

[Issue 15947] [REG 2.069.0?] simple multithreaded program + "-profile=gc" = crash

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15947 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/08835c01cf2d64a06c53739223edba55cc23db2f Simple multithreaded program + "-profile=gc" = crash

Re: DConf hackathon: idea list

2017-05-04 Thread rikki cattermole via Digitalmars-d-announce
On 04/05/2017 4:29 PM, OoopsAgain wrote: On Thursday, 4 May 2017 at 14:53:34 UTC, Adam D. Ruppe wrote: I just added two things: 1) error messages, which are code intensive but a HUGE payoff in productivity (and thus marketing) and 2) Opposite attributes, which are trivial to implement but

[Issue 17369] New: [Module std.traits] Documentation lists ditto in table

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17369 Issue ID: 17369 Summary: [Module std.traits] Documentation lists ditto in table Product: D Version: D2 Hardware: All URL: http://dlang.org/library/std/traits.html OS:

Re: multiple `alias this` suggestion

2017-05-04 Thread Carl Sturtivant via Digitalmars-d
On Wednesday, 3 May 2017 at 19:52:46 UTC, Daniel N wrote: On Wednesday, 3 May 2017 at 19:41:58 UTC, Daniel N wrote: On Saturday, 29 April 2017 at 23:57:07 UTC, Carl Sturtivant wrote: On Thursday, 27 April 2017 at 05:41:43 UTC, Daniel N wrote: Even better, with alias for embedded

Re: alias can't find symbol or can't use symbol

2017-05-04 Thread Carl Sturtivant via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 09:04:07 UTC, Jonathan M Davis wrote: I believe that the core problem is that an alias declaration just aliases a symbol - i.e. it just creates a new name for the symbol. And as far as I can tell, alias n2 = x2.n; is actually equivalent to alias n2 = member.n;

Re: DConf hackathon: idea list

2017-05-04 Thread Adam Wilson via Digitalmars-d-announce
On 5/4/17 15:32, Seb wrote: Hi all, the DConf hackathon isn’t a hackathon in the traditional sense. It is intended as a day for _collaboratively_ focusing on long-lasting problems and pain points in the D ecosystem, planning upcoming features or DIPs, and creation of a rough roadmap for the

Re: DConf hackathon: idea list

2017-05-04 Thread rikki cattermole via Digitalmars-d-announce
On 04/05/2017 3:22 PM, Adam Wilson wrote: On 5/4/17 15:32, Seb wrote: Hi all, the DConf hackathon isn’t a hackathon in the traditional sense. It is intended as a day for _collaboratively_ focusing on long-lasting problems and pain points in the D ecosystem, planning upcoming features or DIPs,

Re: DConf hackathon: idea list

2017-05-04 Thread OoopsAgain via Digitalmars-d-announce
On Thursday, 4 May 2017 at 14:53:34 UTC, Adam D. Ruppe wrote: I just added two things: 1) error messages, which are code intensive but a HUGE payoff in productivity (and thus marketing) and 2) Opposite attributes, which are trivial to implement but painful to get merged. I think dconf is

Re: alias this on module

2017-05-04 Thread Meta via Digitalmars-d
On Sunday, 30 April 2017 at 23:35:43 UTC, Jonathan Marler wrote: Any reason why "alias this" doesn't work at the module level? If I recall correctly, a module is really just a "class" under the hood, but when I tried to use it I got: Error: alias this can only be a member of aggregate, not

Re: DConf 2017 livestream

2017-05-04 Thread via Digitalmars-d-announce
On Thursday, 4 May 2017 at 09:29:01 UTC, Johannes Pfau wrote: Looks like the youtube video ID changes when the stream is for the late comers, meanwhile the videos are getting ready and posted on youtube, it would be nice to post all those ids here. because it seems only those with a link can

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread bachmeier via Digitalmars-d
On Thursday, 4 May 2017 at 23:42:19 UTC, Nick B wrote: On Thursday, 4 May 2017 at 07:28:42 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=MqrJZg6PgnM_content=buffercc4c1_medium=social_source=twitter.com_campaign=buffer Wow - walters talk has 1,000 views already !! How do we see

Re: Productive vibe.d dev environment (IDE, debugger) on Linux?

2017-05-04 Thread bauss via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 17:43:07 UTC, kinke wrote: Hey guys, can anyone recommend a more or less production-ready dev environment for vibe.d on Linux? I'm evaluating vibe.d against Phoenix (Elixir/Erlang) for a new project. Today I gave Visual Studio Code a quick shot (with LDC 1.1.1 and

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Nick B via Digitalmars-d
On Thursday, 4 May 2017 at 07:28:42 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=MqrJZg6PgnM_content=buffercc4c1_medium=social_source=twitter.com_campaign=buffer Wow - walters talk has 1,000 views already !! How do we see the next talk? Nick

Re: DConf 2017 Berlin - Streaming ?

2017-05-04 Thread Nick B via Digitalmars-d
On Friday, 5 May 2017 at 01:41:25 UTC, bachmeier wrote: Nick https://www.youtube.com/watch?v=IqiXMN03968 thanks :)

[Issue 15903] [REG 2.071] module foo.bar is not accessible here, perhaps add 'static import foo.bar; (already there)

2017-05-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15903 calex changed: What|Removed |Added CC|

[your code here]

2017-05-04 Thread hdkfjhk via Digitalmars-d
dsfdsfsdfb cxvxcvxcv

Re: alloca without runtime?

2017-05-04 Thread 岩倉 澪 via Digitalmars-d-learn
On Thursday, 4 May 2017 at 12:50:02 UTC, Kagamin wrote: You can try ldc and llvm intrinsics http://llvm.org/docs/LangRef.html#alloca-instruction http://llvm.org/docs/LangRef.html#llvm-stacksave-intrinsic Ah, yep! pragma(LDC_alloca) void* alloca(size_t); This appears to work with ldc. It

Re: DConf hackathon: idea list

2017-05-04 Thread Adam D. Ruppe via Digitalmars-d-announce
I just added two things: 1) error messages, which are code intensive but a HUGE payoff in productivity (and thus marketing) and 2) Opposite attributes, which are trivial to implement but painful to get merged. I think dconf is a good opportunity for you guys to get things like #2

Re: Blog post on automem

2017-05-04 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 4 May 2017 at 08:41:55 UTC, Atila Neves wrote: On Wednesday, 3 May 2017 at 12:43:26 UTC, ANtlord wrote: [...] I took a look at this. It's a druntime problem. Unique.~this calls std.experimental.allocator.dispose, which calls destroy in object.d which calls rt_finalize: extern

Re: DMD 2.074.0

2017-05-04 Thread Jolly James via Digitalmars-d
On Thursday, 4 May 2017 at 16:43:27 UTC, jj wrote: the installer does not work for VS 2017 - that sucks!!! see also: https://forum.dlang.org/post/oe7usu$bvf$1...@digitalmars.com