Re: OneDrive Client written in D

2015-09-23 Thread Rory McGuire via Digitalmars-d-announce
Problem is right now anyone can make an app and pretend its your app, and then ... If the user gives your keys access to their stuff so does anyone else who has your keys, if they can get the oauth2 redirect to redirect to a matching url at least. On Wed, Sep 23, 2015 at 10:38 AM, skilion via

Re: reggae v0.5.0: new features in the D meta-build system

2015-09-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-23 08:41, NVolcz wrote: I heard that SBT does something similar (http://www.se-radio.net/2015/07/se-radio-episode-231-joshua-suereth-and-matthew-farwell-on-sbt-and-software-builds/). From what I understand it is faster due to that you can skip the overhead of startup. I also

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-23 08:32, Dmitry Olshansky wrote: Bugzilla issue with this enhancement would help a lot with this ;) And a PR would make it happen... https://issues.dlang.org/show_bug.cgi?id=15102 I'm too lazy for a PR. -- /Jacob Carlborg

Re: OneDrive Client written in D

2015-09-23 Thread Rory McGuire via Digitalmars-d-announce
I think this should be on reddit either way. Perhaps someone will suggest a way around the oauth2 limitation. Having to generate new client secrets just to use an app that already exists seems like a mission, so providing a default set that work and the user can just make sure they get the

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 09/23/2015 01:44 AM, Sönke Ludwig wrote: An alternative idea would be to mix in a local "writeln" function, which can then be used multiple times without syntax overhead: mixin template interp() { void iwriteln(string str)() { // pretend that we actually parse the string

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 09/23/2015 02:21 AM, Jacob Carlborg wrote: Different bikeshedding: I would prefer to make the curly braces optional if it only contains a symbol. I agree. I've left that as a future enhancement for the right now. Although it shouldn't be too difficult a change. Filing it here:

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Ben Boeckel via Digitalmars-d-announce
On Wed, Sep 23, 2015 at 08:30:18 +0200, Jacob Carlborg via Digitalmars-d-announce wrote: > One thing that really bugs me in Phobos, Scriptlike seems to have the > same problem, is that there are three (!!!) different functions to > remove something from the file system. Give me just one

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 09/23/2015 02:30 AM, Jacob Carlborg wrote: On 2015-09-22 22:18, Nick Sabalausky wrote: Big update to Scriptlike, v0.9.4: https://github.com/Abscissa/scriptlike Scriptlike is a library to help you write script-like programs in D. One thing that really bugs me in Phobos, Scriptlike seems to

Re: OneDrive Client written in D

2015-09-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 09/23/2015 08:38 AM, Rory McGuire via Digitalmars-d-announce wrote: Problem is right now anyone can make an app and pretend its your app, and then ... If the user gives your keys access to their stuff so does anyone else who has your keys, if they can get the oauth2 redirect to redirect to a

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 09/23/2015 03:18 PM, Chad Joan wrote: This is why I argued for alternative mixin syntax in D some ... years? ... ago. It'd be really cool to have a writefln overload that did this: int somevar = 42; writefln#("This is ${somevar}"); writefln#("Plus two and you get ${somevar+1}"); Which

Re: Silicon Valley D Meetup September 2015

2015-09-23 Thread Ali Çehreli via Digitalmars-d-announce
On 09/16/2015 11:30 AM, Ali Çehreli wrote: "Introducing ultraviolet-d, a web framework for REST-ful services" http://www.meetup.com/D-Lang-Silicon-Valley/events/224948581/ Ali This meetup is on Thursday, September 24, 2015 at 7:00 PM. I have updated the page with Truedat's bio: Truedat

Re: reggae v0.5.0: new features in the D meta-build system

2015-09-23 Thread Per Nordlöw via Digitalmars-d-announce
On Tuesday, 22 September 2015 at 13:22:25 UTC, Joakim wrote: Like ekam? https://github.com/sandstorm-io/ekam Sounds very promising! We talked about it when I interviewed Atila: http://arsdnet.net/this-week-in-d/sep-06.html Thanks!

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-22 22:18, Nick Sabalausky wrote: = String Interpolation: = https://github.com/Abscissa/scriptlike#string-interpolation AFAICT, a string mixin is necessary to accomplish this in D, but otherwise it works much like other languages:

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-22 22:18, Nick Sabalausky wrote: Big update to Scriptlike, v0.9.4: https://github.com/Abscissa/scriptlike Scriptlike is a library to help you write script-like programs in D. One thing that really bugs me in Phobos, Scriptlike seems to have the same problem, is that there are

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Dmitry Olshansky via Digitalmars-d-announce
On 23-Sep-2015 09:30, Jacob Carlborg wrote: On 2015-09-22 22:18, Nick Sabalausky wrote: Big update to Scriptlike, v0.9.4: https://github.com/Abscissa/scriptlike Scriptlike is a library to help you write script-like programs in D. One thing that really bugs me in Phobos, Scriptlike seems to

Re: reggae v0.5.0: new features in the D meta-build system

2015-09-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-22 14:39, Per Nordlöw wrote: SCons has a very hidden feature called interactive mode via `--interactive` that supports instantaenous incremental builds via a very primitive CLI that basically supports to commands: Incremental builds in D are currently not reliable. Something about

Re: OneDrive Client written in D

2015-09-23 Thread skilion via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 04:30:23 UTC, Rikki Cattermole wrote: You probably should not be exposing developer information for authentication. You need to get the authentication fixed. Users should login via user/pass. I think you are referreing to the the fields client_id and

Re: cpp_binder, a not-yet-useful tool for generating C++ bindings

2015-09-23 Thread Kagamin via Digitalmars-d-announce
On Tuesday, 22 September 2015 at 16:24:33 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 22 September 2015 at 15:53:22 UTC, Kagamin wrote: Of course you didn't. In C you can mutate const object without cast. But it's not an issue because it's not what is usually done and usually const works as

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Chad Joan via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 14:33:23 UTC, Nick Sabalausky wrote: On 09/23/2015 01:44 AM, Sönke Ludwig wrote: An alternative idea would be to mix in a local "writeln" function, which can then be used multiple times without syntax overhead: mixin template interp() { void

Re: Is there a smart way to process a range of range by front ?

2015-09-23 Thread BBasile via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 20:44:07 UTC, BBasile wrote: Is it possible ? sorry, I meant to post this in .learn

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Chad Joan via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 19:28:03 UTC, Nick Sabalausky wrote: On 09/23/2015 03:18 PM, Chad Joan wrote: This is why I argued for alternative mixin syntax in D some ... years? ... ago. It'd be really cool to have a writefln overload that did this: int somevar = 42; writefln#("This

Is there a smart way to process a range of range by front ?

2015-09-23 Thread BBasile via Digitalmars-d-announce
I was thinking to a general *interleave()* algorithm for any compatible Range of Range but I can't find any smart way to process each sub range by front, eg: --- void interleave(RoR)(RoR r) { r.each!(a => a.writeln); } void main() { auto r = [[0,2],[1,3]]; interleave(r); } ---

Re: Is there a smart way to process a range of range by front ?

2015-09-23 Thread thedeemon via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 20:44:07 UTC, BBasile wrote: I was thinking to a general *interleave()* algorithm for any compatible Range of Range but I can't find any smart way to process each sub range by front, eg: Is it possible ? What exactly shall your function do? How is it

Re: OneDrive Client written in D

2015-09-23 Thread Rory McGuire via Digitalmars-d-announce
I can't think of a way to do phishing with oauth2, doesn't mean it can't be done somehow :) Basically because you have to configure the redirect when you setup the client_secret the server will only ever send the browser to that redirect, a mismatch of requested redirect will just cause an error

Re: OneDrive Client written in D

2015-09-23 Thread Rory McGuire via Digitalmars-d-announce
The client id is generated on oauth server when setting up credentials for an app / webservice. You could never trust an app checksum because you would never know if it was fake. (Also this would only be something you could consider if you were implementing an oauth server or you had some

Re: Go 1.5

2015-09-23 Thread Martin Nowak via Digitalmars-d-announce
On 09/18/2015 09:26 PM, Rory wrote: > The new GC in Go 1.5 seems interesting. What they say about is certainly > interesting. > > http://blog.golang.org/go15gc > > "To create a garbage collector for the next decade, we turned to an > algorithm from decades ago. Go's new garbage collector is a

Release D 2.068.2

2015-09-23 Thread Martin Nowak via Digitalmars-d-announce
Glad to announce D 2.068.2. http://downloads.dlang.org/releases/2.x/2.068.2/ This point release fixes a few regressions 2.068.1, see the changelog for more details. http://dlang.org/changelog/2.068.2.html -Martin

Re: Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.

2015-09-23 Thread Meta via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 19:28:03 UTC, Nick Sabalausky wrote: On 09/23/2015 03:18 PM, Chad Joan wrote: This is why I argued for alternative mixin syntax in D some ... years? ... ago. It'd be really cool to have a writefln overload that did this: int somevar = 42; writefln#("This

Re: Go 1.5

2015-09-23 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Thursday, 24 September 2015 at 00:08:18 UTC, Martin Nowak wrote: The key to a low latency/high throughput GC is being able to incrementally collect the heap. There is a very interesting paper that uses the type system to perform incremental collections.

Re: OneDrive Client written in D

2015-09-23 Thread Charles via Digitalmars-d-announce
On Wednesday, 23 September 2015 at 13:01:54 UTC, Rory McGuire wrote: I think this should be on reddit either way. Perhaps someone will suggest a way around the oauth2 limitation. Having to generate new client secrets just to use an app that already exists seems like a mission, so providing a

Re: Is there a smart way to process a range of range by front ?

2015-09-23 Thread BBasile via Digitalmars-d-announce
On Thursday, 24 September 2015 at 04:26:05 UTC, thedeemon wrote: On Wednesday, 23 September 2015 at 20:44:07 UTC, BBasile wrote: I was thinking to a general *interleave()* algorithm for any compatible Range of Range but I can't find any smart way to process each sub range by front, eg: Is it