Re: Do we need Mat, Vec, TMmat, Diag, Sym and other matrix types?

2018-03-14 Thread Sam Potter via Digitalmars-d
On Wednesday, 14 March 2018 at 22:17:49 UTC, jmh530 wrote: On Wednesday, 14 March 2018 at 20:21:15 UTC, Sam Potter wrote: Sure. The key word in my statement was "ideally". :-) For what it's worth, there is already an "informal spec" in the form of the high-leve

Re: Do we need Mat, Vec, TMmat, Diag, Sym and other matrix types?

2018-03-14 Thread Sam Potter via Digitalmars-d
On Wednesday, 14 March 2018 at 17:36:18 UTC, bachmeier wrote: On Wednesday, 14 March 2018 at 17:22:16 UTC, Sam Potter wrote: Ideally data structures and algorithms covering this would be in the standard library? I sure hope not. At least not for a long time anyway. It would be hard to make

Re: Do we need Mat, Vec, TMmat, Diag, Sym and other matrix types?

2018-03-14 Thread Sam Potter via Digitalmars-d
On Wednesday, 14 March 2018 at 16:16:55 UTC, Andrei Alexandrescu wrote: Maybe we should use only column major order. --Ilya Has row-major fallen into disuse? Leaving aside interop between libraries and domains where row major is often used (e.g. computer graphics), the issue is semantic, I

Re: Chinese characters printing issue under windows

2011-12-08 Thread Sam Hu
Bernard Helyer Wrote: > This is very useful information, so thank you for posting it, but > this looks like something that Phobos should pick up > automatically. I would note that the program works perfectly in > Linux without the need for setting the locale, so I'd imagine its > some encoding

Re: Chinese characters printing issue under windows

2011-12-08 Thread Sam Hu
On Friday, 9 December 2011 at 00:51:35 UTC, Sam Hu wrote: For those who would like to print Chinese characters in windows console properly,below information for your easy reference. After test,write works properly all the way,writeln only works properly when the args is no less than 2

Chinese characters printing issue under windows

2011-12-08 Thread Sam Hu
For those who would like to print Chinese characters in windows console properly,below information for your easy reference. After test,write works properly all the way,writeln only works properly when the args is no less than 2.writefln works properly all the way. [code] module cnsetlocale;

Re: moving wxd to github

2011-11-24 Thread Sam Hu
Anders F Björklund Wrote: > Sam Hu wrote: > >>> May I ask which version of wxWidget,2.8.12 or 2.9.? ?Thanks. > >> > >> For windows, it's: > >> http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.6.4.zip > >> > >> Find this

Re: moving wxd to github

2011-11-22 Thread Sam Hu
Andrej Mitrovic Wrote: > On 11/23/11, Sam Hu wrote: > > May I ask which version of wxWidget,2.8.12 or 2.9.? ?Thanks. > > For windows, it's: > http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.6.4.zip > > Find this string: "1. wxWidgets" here: h

Re: moving wxd to github

2011-11-22 Thread Sam Hu
Andrej Mitrovic Wrote: > It compiles fine on DMD 2.056, but you need to compile wxWidgets via > DMD make first. It's described on wxd's website. > > On 11/22/11, dolive wrote: > > Anders F Björklund Wrote: > > > >> On 2011-11-10 18.27, Andrej Mitrovic wrote: > >> > Btw, it would be great if you

Re: Curl wrapper review

2011-11-15 Thread Sam Hu
Jonas Drewsen Wrote: > Hi, > > After all the comments from last review I've refactored the curl > wrapper and it is ready for a new review. > > David Nadlinger was handling the last review so I guess it would make > sense if he run this one as well if he wants to. > > Code: > https://gith

Re: Call Michel Fortin for mfrxml library

2011-10-21 Thread Sam Hu
Michel Fortin Wrote: > On 2011-10-21 03:47:55 +0000, Sam Hu said: > > > Greetings! > > > > I once downloaded from this NG the xml library for D2,but now I can not > > find that link again.I am wondering is there any updates on this > > library,if yes,

Call Michel Fortin for mfrxml library

2011-10-20 Thread Sam Hu
Greetings! I once downloaded from this NG the xml library for D2,but now I can not find that link again.I am wondering is there any updates on this library,if yes,could you please provide me the link? Thanks and best regards, Sam

Re: DWT2

2011-04-06 Thread Sam Hu
Jacob Carlborg Wrote: > On 2011-04-06 03:22, Sam Hu wrote: > > Jacob Carlborg Wrote: > > > >> On 2011-04-05 05:54, Andrej Mitrovic wrote: > >>> You have to be kidding me. Who writes code like this? > >>> > >>> http:

Re: Settings in CodeBlocks -- D Language

2011-04-05 Thread Sam Hu
David Wang Wrote: > == > My understanding is that Code::Blocks only supports code > completion for D because their fuzzy C++ parser can sometimes > parse D successfully, and that they don't plan to support D > directly. Has this changed? > == > > Acturally everytime when C

Re: DWT2

2011-04-05 Thread Sam Hu
:May I ask how to build DWT2 for DMD 2.052?I downloaded the zip file from here: http://hg.dsource.org/projects/dwt2/log/112 In the readme file I only saw it need rake to build.Except rake,can I build it also,say from .bat file? Thanks in advance. Regards, Sam

Re: DWT2

2011-04-05 Thread Sam Hu
:May I ask how to build DWT2 for DMD 2.052?I downloaded the zip file from here: http://hg.dsource.org/projects/dwt2/log/112 In the readme file I only saw it need rake to build.Except rake,can I build it also,say from .bat file? Thanks in advance. Regards, Sam

Re: why a part of D community do not want go to D2 ?

2010-11-11 Thread Sam Hu
Andrei Alexandrescu Wrote: > > The above code is supposed to print each word one time,but after testing by > > myself and my friends on different machine both under windows,it does > > not.It prints some of the words several times,but some are ok.One of my > > friend suggested to modify the code

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Sam Hu
Boris Wang Wrote: > First, forgive my poor english. > > we all known , Walter good at compiler writing, but not good at language > design and development management , if can't change this, just be silent. > > I think, on language desgin, wisdom and leadership are more more important > than techn

Re: XMLP

2009-11-17 Thread Sam Hu
Michael Rynn Wrote: My latest sc.ini says. DFLAGS="-...@p%\..\..\src\phobos" "-...@p%\..\..\src\druntime\import" > -- > michael *^&^* sc.ini for DMD2.036: [Version] version=7.51 Build 020 [Environment] LIB="%...@p%\..\lib;%...@p%\..\..\..\dsss\lib" DFLAGS="-...@p%\..\..\src\phobos" "-...@p%\.

Re: XMLP

2009-11-16 Thread Sam Hu
enable warnings -X generate JSON file -Xffilenamewrite JSON file to filename F:\DLang\DEx\D2Ex>F:\laguangeD\dlang\dtwo\dmd\windows\bin\dmd anoy.d object.d: Error: module object cannot read file 'object.d' F:\DLang\DEx\D2Ex> What does this mean?I can compile all my d2 programs just use: dmd *.d under any path: Regards, Sam

Re: XMLP

2009-11-16 Thread Sam Hu
Denis Koroskin Wrote: > Could you please check you DMD installation? Does a trivial Hello, World! > application work? Sure .it work fine. Below is the build message: F:\laguangeD\xmlp\trunk>build2 F:\laguangeD\xmlp\trunk>set DROOT=F:\laguangeD\DLang\DTwo\ F:\laguangeD\xmlp\trunk>set PLIB=F:\

Re: XMLP

2009-11-16 Thread Sam Hu
Denis Koroskin Wrote: > Could you please check you DMD installation? Does a trivial Hello, World! > application work? Yes.sure it works fine. ^-^

Re: XMLP

2009-11-16 Thread Sam Hu
Michael Rynn Wrote: > The XMLP project is on DSource. > > http://www.dsource.org/projects/xmlp > > michael *^&^* I already downloaded and trie the test,but it seems it can't get passed under DMD2.036 due to "can not find object.d".

Re: Grokking ranges: some new algorithms and ranges

2009-11-01 Thread Sam Hu
Philippe Sigaud Wrote: > I've some other things, but more minor. If someone is interested, I can send > them the module (it's only one module for now). > Bye, > > Philippe > > May I ask for one copy?Thank you so much. Sam Hu (samhu.sa...@gmail.com)

Re: DFL IDE Editor ?

2009-10-19 Thread Sam Hu
Robert Jacques Wrote: > > DMD 2.035 didn't require any patches from DMD 2.034 for DFL. I've created > a list with both you and dolive for future reference. Many... thanks!!

Re: DFL IDE Editor ?

2009-10-18 Thread Sam Hu
Robert Jacques Wrote: > > Do you have a DFL for dmd2.035 ? > > thank you very much ! > > > > dolive > > Yes, I've e-mailed it to you. Hi Robert, It would be grateful if you could add samhu.sa...@gmail.com in your list. Regards, Sam

Re: Revamped concurrency API

2009-10-12 Thread Sam Hu
Nick B Wrote: > Is this the way serious architecture decisions should be made ? > > Would Walter/Bartosz/Andrei like to comment further > > > Nick B Good point.

Re: Cannot convert of type HANDLE to HANDLE

2009-09-08 Thread Sam Hu
Sorry,wrong place,move to d.lean.

Cannot convert of type HANDLE to HANDLE

2009-09-08 Thread Sam Hu
g.dll"),null, DONT_RESOLVE_DLL_REFERENCES); I got below error: cannot implicitly convert expression (LoadLibraryExA(toStringz("netmsg.dll"),null,1u)) of type HANDLE to HANDLE What's the problem? Thanks for your help in advance. Regards, Sam

Re: Derelict+Tango

2009-09-07 Thread Sam Hu
your import statements doesn't help. Thanks.It works.It is my fault. I don't know why it did not copy DFL src to /import folder automatically when execute makelib2.bat.So maybe I wrongly copied old DFL src to /import by hand. Really thanks. Regards, Sam

Re: Derelict+Tango

2009-09-06 Thread Sam
.\..\import\dfl\control.d(4440): Error: identifier 'WPARAM' is not defined F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4440): Error: WPARAM is used as a type F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4440): Error: cannot have parameter of type void F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4453): Error: identifier 'HDC' is not defined F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4453): Error: HDC is used as a type F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4453): Error: cannot have parameter of type void F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4502): Error: identifier 'HWND' is not defined F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4502): Error: HWND is used as a type F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4502): Error: identifier 'Point' is not defined F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4502): Error: Point is used as a type F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4502): Error: cannot have parameter of type void F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4526): Error: identifier 'DWORD' is not defined F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4526): Error: DWORD is used as a type F:\DLang\Dtwo\dmd\windows\bin\..\..\import\dfl\control.d(4526): Error: variable dfl.control.Control.ldlgcode voids have no value So was I missing something again? Thanks again for your help! Regards, Sam

Re: Derelict+Tango

2009-09-06 Thread Sam
Silly me.I asked another ppl here wrongly asked you,Sorry!

Re: Derelict+Tango

2009-09-06 Thread Sam
To Jacob: Just wanna know whether you have upgraded your copy of DFL to dmd2032?If yes,can I ask for a copy again? Regards, Sam

Re: reddit.com: first Chapter of TDPL available for free

2009-08-04 Thread Sam Hu
ng while reading to test all the impressive examples,but very quicky I found I am lost starting at the point of my qestion#1-4.So finally I gave up to test the example,just read.This is my experience. Thank you again and best regards, Sam

Re: CUDA with D working after all

2009-07-20 Thread Sam Hu
Robert Jacques Wrote: > On Mon, 20 Jul 2009 08:48:04 -0400, Trass3r wrote: > > > Robert Jacques schrieb: > >> have some wrappers which greatly simplify CUDA use. Would the members > >> of team0xf be interested? > > > > Me too. > > Here: > https://jshare.johnshopkins.edu/xythoswfs/webui/_xy-

Re: Is DFL still developed?

2009-07-10 Thread Sam Hu
Solved. dmd -L+dfl.lib

Re: Is DFL still developed?

2009-07-10 Thread Sam Hu
Error 42: Symbol Undefined _D3dfl7control16ContainerControl7__ClassZ myform31.obj(myform31) Error 42: Symbol Undefined _D3dfl7control7Control7__ClassZ --- errorlevel 124 F:\DLang\DEx\D2Ex> Is there anything I've done wrong? Thanks again. Regards, Sam

Re: Is DFL still developed?

2009-07-09 Thread Sam Hu
If you need > something more recent, I have a branch that works with D2.031 (but > probably not with versions pre 2.029) I' m sorry to step in ,but can I ask for a copy? Thanks and best regards, Sam

Re: Operator overloading, structs

2009-06-22 Thread Sam
user.getBillingAddress; Regards, Sam

Bug in std.range.retro?

2009-06-22 Thread Sam Hu
Index(uint n) { return _input[_input.length - n + 1]; } Shouldn't it be _input.length-(n+1) ? Regards, Sam

Re: Andrei writes "The Case for D"

2009-06-16 Thread Sam Hu
Andrei Alexandrescu Wrote: > Sam Hu wrote: > > Andrei Alexandrescu Wrote: > > > >> Robert Fraser wrote: > >>> Tim Matthews wrote: > >>>> Anders F Björklund wrote: > >>>> > >>>>> "Last but definitely not le

Re: Andrei writes "The Case for D"

2009-06-16 Thread Sam Hu
e but not getting your permission.Below is the link: http://dlang.group.javaeye.com/group/topic/10615 I am so sorry for making such a big mistake.Just let me know if there is anything I can do for this mistake.Thanks. Btw.I( and other D fans in China) am planning to translate Bartosz's * Rice free* series into Chinese also if the original links are reachable in my region someday( they are not reachable right at this moment not knowing why).Can I get your permission also? Regards, Sam

Re: Andrei writes "The Case for D"

2009-06-16 Thread Sam Hu
ks are reachable someday( not reachable for my region at present).Can I get you permission also? Regards, Sam Regards, Sam

Re: Bartosz's latest installment on threads

2009-06-16 Thread Sam Hu
my region.It would be grateful if somebody could help to move them here or somewhere else like *.wiki. Regards, Sam

Re: Please Vote: Exercises in TDPL?

2009-05-14 Thread Sam Hu
which including almost everything need to know to guide me on the way to programming D,esp. at present sturctured and systematic D learning source is so precious. P.S:I could not wait any longer for your book :D Best Regards, Sam

Re: Fun with allMembers

2009-05-13 Thread Sam Hu
Solved.

Re: Fun with allMembers

2009-05-13 Thread Sam Hu
Powerful ...but in my pc the output is : ["a","b","c"] ["x","y"] //>not ["x","y","z"]??? ["object","core",...]

Re: foreach

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sun, Nov 23, 2008 at 10:48 AM, Sam S E <[EMAIL PROTECTED]> wrote: > > Jarrett Billingsley Wrote: > > > >> On Sat, Nov 22, 2008 at 11:40 PM, Sam S E <[EMAIL PROTECTED]> wrote: > >> > Does foreach use delegate

Re: foreach

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sat, Nov 22, 2008 at 11:40 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > Does foreach use delegates? Isn't that unnecessary overhead? > > --Sam > > It does use delegates, for iterating over most types. When iterating > over arrays

foreach

2008-11-22 Thread Sam S E
Does foreach use delegates? Isn't that unnecessary overhead? --Sam

Re: Functions as Struct Properties

2008-11-22 Thread Sam S E
Nick Sabalausky Wrote: > "Sam S E" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > We already have the notation: > > > > int[] array; > > void foo(int[] a, int x); > > > > foo(array, 3); >

Functions as Struct Properties

2008-11-22 Thread Sam S E
Hi, We already have the notation: int[] array; void foo(int[] a, int x); foo(array, 3); array.foo(3); // means the same thing so why not extend this to struct first arguments? --Sam