Hide input string from stdin

2016-05-22 Thread Michael Chen via Digitalmars-d
I tried to write a small program that receive string as password. However, I didn't find available library for hide input string, even in core library. Any suggestion?

Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-09 Thread Michael Chen
Hi, Cristi, From change log of D 2.059. I saw that uniform function call syntax was implemented. I hope you can leverage this feature to make non member function calls look nicer. Another suggestion, please use shorter function name for example M.t() instead of M.transpose() so that long

Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-05 Thread Michael Chen
is really suitable for scientific computation. It will be great to have an efficient and easy-to-use linear algebra library. On Thu, Apr 5, 2012 at 7:42 AM, Cristi Cobzarenco cristi.cobzare...@gmail.com wrote: Thanks for the feedback! On 4 April 2012 10:21, Michael Chen sth4...@gmail.com wrote

Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-04 Thread Michael Chen
For the Point 4, I really like to have high order functions like reduceRow and reduceCol. then the function argument is simply the reduceRow!foo(0,mat), here the foo is not a function operating on the whole column but simply a function of two elements (e.g. reduceRow!(a+b)(0,mat)). Or even better

Re: Improvements to std.string

2011-06-13 Thread Michael Chen
I vote for the changes. They are better name for newbies like me. On Mon, Jun 13, 2011 at 9:29 AM, Adam D. Ruppe destructiona...@gmail.com wrote: Jonathan M Davis wrote: Would it be better to rename toStringz to toCString when fixing it I think it should stay just how it is: toStringz, with a

Problem with string.whitespace and newline

2011-06-11 Thread Michael Chen
The following code cannot be compiled string clean(string x) { return join(split(x),whitespace); } The compile error is Error 2 Error: template std.array.join(RoR,R) if (isInputRange!(RoR) isInputRange!(ElementType!(RoR)) isForwardRange!(R)) cannot deduce template function from

Re: Problem with string.whitespace and newline

2011-06-11 Thread Michael Chen
Thanks Andrej, it works. On Sun, Jun 12, 2011 at 9:14 AM, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: try return join(split(x),whitespace[]); It seems whitespace is a static array. On 6/12/11, Michael Chen sth4...@gmail.com wrote: The following code cannot be compiled string clean

Re: duck!

2010-10-16 Thread Michael Chen
totally agreeed. let advertisability to influence a function name is ridiculous to me. you gotta have some princeple for names, but advertisability? i dont think so. On Sunday, October 17, 2010, Steven Schveighoffer schvei...@yahoo.com wrote: On Sat, 16 Oct 2010 16:26:15 -0400, Walter Bright

Is there anybody working on a linear algebra library for D2?

2010-10-05 Thread Michael Chen
I remember that one of D's goal is easy scientific computation. However I haven't seen any linear algebra package for D2. My work heavily relays on all kinds of matrix stuff (matrix multiplication, factorization, linear system etc). I like D and am willing to work with D. However without these

Re: What would you rewrite in D?

2010-10-05 Thread Michael Chen
There is DDMD. On Wed, Oct 6, 2010 at 10:04 AM, BCS n...@anon.com wrote: DMD -- ... IXOYE

Re: Fedora 14 will integrate D into the distribution

2010-09-28 Thread Michael Chen
Somebody should say something to them to use D 2.0 instead. On Tue, Sep 28, 2010 at 11:37 PM, Paulo Pinto pj...@progtools.org wrote: Hi, it seems that Fedora will provide D out of the box in their distribution. But they seem to be providing an old version of it.