Re: LDC 0.15.0 alpha1 released! Please help test!
Does this msvc based build output gdb-compatible debugging symbols? No DWARFs in there.
Re: 438-byte Hello, world Win32 EXE in D
And how do ldc and gdc do? =)
Re: LDC 0.14.0 alpha1 released! Please help test!
Thanks for the help with the Win64 version and for providing the binary! :) fwiw A bunch of tests still crash.
Re: LDC 0.14.0 alpha1 released! Please help test!
I also have an experimental Win64 MSVC version. https://github.com/Trass3r/ldc/releases
Re: DConf 2014 Day 2 Talk 4: Reducing D Bugs by Vladimir Panteleev
druntime: make -f win64.mak DMD=../windows/bin/dmd.exe CC=\c:\l\vc10\bin64\cl.exe\ target phobos: make -f win64.mak DMD=../windows/bin/dmd.exe CC=\c:\l\vc10\bin64\cl.exe\ MAKE=c:\l\dmc\bin\make AR=\c:/l/vc10/bin64/lib.exe\ LIB=..\lib64\phobos64.lib That works? So it probably doesn't need the includes set in the makefile.
Re: DConf 2014 Day 2 Talk 4: Reducing D Bugs by Vladimir Panteleev
Nope doesn't. Setting VCDIR and SDKDIR via the make command works.
Re: DConf 2014 Day 2 Talk 4: Reducing D Bugs by Vladimir Panteleev
Setting VCDIR and SDKDIR via the make command works. Works for me. Maybe you need a newer version of make (there was a silent update in 2012, my version is 5.06). Well if you don't set VCDIR you won't get proper include paths. So no clue why it works for you.
Re: DConf 2014 Day 2 Talk 6: Debugging in D by Iain Buclaw
The pdb debug format is not supported, AFAIK. But that format is not documented and I don't think you could add D extensions anyway. So does LLVM really support PDB? As long as they rely on the MS linker they only need to emit proper debug info into the object files. But that's still TODO: http://clang.llvm.org/docs/MSVCCompatibility.html#abi-features
Re: DConf 2014 Day 2 Talk 4: Reducing D Bugs by Vladimir Panteleev
Digger is awesome. Have never heard of it before this talk. Unfortunately it's a huge PITA to get a Win64 build with it cause of those stupid hardcoded \Program Files (x86)\Microsoft Visual Studio 10.0\VC paths. The modified makefiles etc are always reverted by Digger before building.
Re: DConf 2014 Day 2 Talk 4: Reducing D Bugs by Vladimir Panteleev
You can add the compiler to the make command line with some magic quoting. My build script calls druntime: make -f win64.mak DMD=../windows/bin/dmd.exe CC=\c:\l\vc10\bin64\cl.exe\ target phobos: make -f win64.mak DMD=../windows/bin/dmd.exe CC=\c:\l\vc10\bin64\cl.exe\ MAKE=c:\l\dmc\bin\make AR=\c:/l/vc10/bin64/lib.exe\ LIB=..\lib64\phobos64.lib Isn't the make call hardcoded in Digger?
Re: Dconf 2014 Day 2 Talk 5: Tooling: Bringing Developers and Development Together by Brad Roberts
http://youtu.be/Es8st0E5428 Thx alot! Enables me to watch it easily on my tv :)
Re: DConf 2014 Day 2 Talk 6: Debugging in D by Iain Buclaw
http://youtu.be/n9RNxUQ0Cyk
Re: Introducing vibe.d!
Looks promising. Though I wouldn't know how to choose between Adam's web framework, Cybershadow's code (seemed like he coded the newsreader in no time and it works very nicely) and yours. Any advice?
Re: Native GTK bindings v2
I've been running with phobos built using -ffunction-sections -fdata-sections since ~the time of #293 and so far haven't seen any problems (which of course doesn't mean that there aren't any). Me too. If you don't use gc-sections there shouldn't be any difference and if you do a lot of unnecessary code is stripped.
Pull requests processing issue
I think the problem of ~100 open pull requests needs to be faced better. People that see their patches rot in that list probably don't feel rewarded enough to submit more patches. So true. I won't do any further work if it's in vain anyway. Also I regularly have to rebase my one cause of conflicts, which is annoying. I really wonder what Walter's doing. Is he still running the whole testsuite instead of relying on the autotester?
Re: D on AtCoder
I and other D programmers begged AtCoder team to support D. In the result, AtCoder supports D (dmd 2.058) officially. Now get them to update to 2.059 so you will get UFCS ;)
Re: Native GTK2 D Bindings
The function names should be converted to camelCase. and a README. gdc does cross module inlining if you pass all modules to it at once.
Re: Native GTK2 D Bindings
No. I named it native for a reason. The method names are not manipulated in any way - they come directly from GTK. I could *add* all kind of aliases, including camelCased ones, but why would anyone want to use those? Cause those C names with underscores are just crappy. gdc does cross module inlining if you pass all modules to it at once. As i mentioned in the README; but that's not really a solution. No, in there you claim gdc didn't support cross module inlining.
Re: cl4d OpenCL wrapper moved to Github
The CLGLInterop example however still just gives a black window. It only outputs the FPS in cmdline. Well it works fine on my Win7 x64 machine.
Re: cl4d OpenCL wrapper moved to Github
Well, I resorted to using bud and managed to get the vectorAdd example to compile, but when I run I get this error: btw, bud's not maintained anymore. Is this some kind of \ vs / bug? Try removing the mixin(CL_PROGRAM_STRING_DEBUG_INFO) ~ @ vectorAdd.d(36)
Re: cl4d OpenCL wrapper moved to Github
The vectorAdd example works perfectly, without any editing (ie. without removing the mixin(CL_PROGRAM_STRING_DEBUG_INFO)). How strange, does pragma(msg, CL_PROGRAM_STRING_DEBUG_INFO); give different results for the two dmd revisions? The CLGLInterop example however still just gives a black window. It only outputs the FPS in cmdline. any error messages? compile it in debug mode with -debug -g.
Re: cl4d OpenCL wrapper moved to Github
Does this one work? http://www.cmsoft.com.br/index.php?option=com_contentview=categorylayout=blogid=99Itemid=150
Re: cl4d OpenCL wrapper moved to Github
Those guys do know how to create useless exception messages o.O Well can't investigate this further at the moment.
Re: cl4d OpenCL wrapper moved to Github
I'm trying to use cl4d, but when I compile I get a stack overflow.. Sigh. As I stated in the announcement you need a HEAD dmd. Or use a cl4d revision prior to the mentioned bugfix.
Re: cl4d OpenCL wrapper moved to Github
About the 'mentioned bugfix', I assume you're referring to bug 6473 has been fixed = so let's fix that memory leak? Yep, just git checkout the revision before that one.
Re: cl4d OpenCL wrapper moved to Github
Ok, so when i try to compile it says src\opencl\c\cl_d3d10.d(88): Error: undefined identifier UINT src\opencl\c\cl_d3d10.d(96): Error: undefined identifier UINT and upon changing those to uint I get src\opencl\c\cl_d3d11.d(77): Error: undefined identifier ID3D11Buffer src\opencl\c\cl_d3d11.d(84): Error: undefined identifier ID3D11Texture2D src\opencl\c\cl_d3d11.d(91): Error: undefined identifier ID3D11Texture3D What am I missing? Well the DirectX stuff isn't tested at all. I always compile with rdmd so these modules aren't compiled. The uint errors are small cases I overlooked. The rest is obvious: cl4d knows nothing about DirectX, so you need a binding. Maybe I should just turn these into void* to get rid of the errors, but then you loose type safety, hmm.
Re: cl4d OpenCL wrapper moved to Github
On Thursday, 29 December 2011 at 10:32:49 UTC, Extrawurst wrote: nice work. why moved to github ? I'm sick of having to switch from git to hg commands every time I work on cl4d. So I converted it to git, cleaned up the history and just put it on Github cause it has nicer features. btw. with dmd2057 and the -property flag it does not build anymore. I see, haven't used that switch yet.
cl4d OpenCL wrapper moved to Github
I finally moved cl4d to https://github.com/Trass3r/cl4d It's in a very usable state. Contains 2 samples including an OpenCL/OpenGL interop one similar to http://www.youtube.com/watch?v=K1FOIhA6ecQ btw, as of my latest commit you need a HEAD dmd to build it. This fixes a severe memory leak.
Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055
Thx! * Release includes both D versions. * -v1(default) compiles for D1. * -v2 compiles for D2. * The switch must be used for linking as well. Why is D1 still the default? * 64bit and up to date GDC forthcoming. Imho the 64 bit version is even more important since gdc is the only option at all to produce Win64 binaries. (and of course beginning with Win7 everyone should use an x64 OS anyway ;)) * 7-zip format for size reasons: http://7-zip.org perfect. This release https://bitbucket.org/goshawk/gdc/downloads/gcc-4.6.1-tdm-1-gdc-7e22befef29c-20111205.zip but why is there a zip version anyway?
Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055
Why is D1 still the default? Because this is the first release where I felt D2 was capable of being the default and I forgot about it until writing the post. It also requires some reworking of the changes that enable dual compilers. but why is there a zip version anyway? I posted with a zip extension in the original post, so rather than letting everyone get an 404 error, I just uploaded a zip file. I see. btw, is there something like gdmd for Windoze too?
Re: D2 port of Tango
Timon Gehr Wrote: Yes, Tango for D2 should make use of druntime and deimos. Deimos?? Isn't that dead? Probably he meant this: https://github.com/D-Programming-Language/deimos What other project were you referring to? http://www.dsource.org/projects/deimos of course ;)
Re: dmd 1.071 and 2.056 release
- Using --build-only, by default, places the exe in the current directory rather than the usual tmp directory. The --build-only option is frequently (always, AFAIK) used like an alternate to bud/rebuild/xfbuild/etc Yep, build-only should be the default! And running the exe afterwards an option.
Re: dmd 1.071 and 2.056 release
This is the only section that seem to have a big difference in length: 2.055: Length Name Class 00071CAEH _TEXT CODE 32-bit 2.056: Length Name Class 00101A1AH _TEXT CODE 32-bit Hurray, template bloat ;)
Re: AI Challenge - Ants
I'm working on a bot in D. I'm currently done implementing the A* algorithm for path finding Dump A*, D* Lite ftw ;)
Re: D2 port of Tango
Good job. The first project is a D2 port proper that tries to keep API semantics This is the 'd2port' branch in my repository. The second project is a more ambitious effort to rewrite some aspects This is the 'master' branch in my repository. Why isn't it the other way around?
Re: D2 port of Tango
Why? What's the point? Why not work on Phobos instead? Well D1 projects could be ported to D2 much more easily, e.g. Yage.
Re: D2 port of Tango
I already mentioned this deeper down in the thread, but what are the chances of being able to use tango as an add-on for phobos2? Something from which I could pull in only the tango modules I need and use phobos for the rest? He already answered that: SiegeLord Wrote: Does this use druntime? Yes, although a Tango specific runtime (compatible with druntime) will probably be an option some day too. Still, right now you can safely use (modulo my imperfect testing) Phobos and Tango modules together in a single program.
Re: [Phoronix] Merging In The GNU D Language Compiler To GCC
Am 07.10.2011, 13:28 Uhr, schrieb Steve Teale steve.te...@britseyeview.com: Are you saying that GDC is way faster? Yep. Especially for floating point calculations. Worst-case scenario for dmd: http://www.mail-archive.com/digitalmars-d@puremagic.com/msg61860.html (be sure to read through the whole thread though, I refined my post later and then gdc and ldc were on par with C++ while dmd is still slower than javascript.) Another test: http://www.digitalmars.com/d/archives/digitalmars/D/path_tracing_benchmark_142014.html
Re: [Phoronix] Merging In The GNU D Language Compiler To GCC
Just as a matter of interest, how do you rate GDC 2.055 for speed alongside the Linux DMD. Of course it is way faster. You should compare with gcc instead.
Re: D Programming Language talk at Bahcesehir University, Istanbul, Turkey
Kural, dünyanın D! (translated nautomatically)
Re: dmd 1.069 and 2.054 release
It occured for the mixin method to generate the different exception classes. Specifically the toCamelCase method was not working there. Ok. Do you have any idea how to solve the problem I described in D.learn? (template instance cannot use local.)
Re: dmd 1.069 and 2.054 release
Looks like it fails to build under Linux using linux.mak makefile due to missing intrange.c / intrange.o in file lists. Linking stage errors. When I add them manually, everything works like a charm. I think compiling it worked just fine for me.
Re: dmd 1.069 and 2.054 release
In general good work! But again phobos makes a simple std.string function unCTFEable. Now I have to use an ugly hack to achieve something as simple as toUpper: mixin( (){char[] tmp = dup; toUpperInPlace(tmp); return tmp;}() );
Re: dmd 1.069 and 2.054 release
Now I have to use an ugly hack to achieve something as simple as toUpper: mixin( (){char[] tmp = dup; toUpperInPlace(tmp); return tmp;}() ); Damn i found that too and wanted to mention it in the dmd-beta list b4 release. But the workaround is simple. At least this one was fixed: http://lists.puremagic.com/pipermail/dmd-beta/2011-July/000773.html Cause that was making cl4d with all its string mixins pretty much unbuildable at all. Yeah I've done some crazy shit in the cl4d code :D But in the end that was just another workaround cause template mixins couldn't mixin constructors. Good news: this seems to have been fixed. Bad news: there still is another problem. I asked about it in D.learn. btw, that problem you reported, where did it occur in cl4d?
dfilt - c++filt like tool to demangle D names
Since I couldn't find a tool like c++filt for D I quickly hacked one together. Very useful especially for 'objdump -d test.o | dfilt'. If anybody is interested: https://github.com/Trass3r/tools/blob/master/dfilt/dfilt.d Side note: seems like core.demangle can't demangle _D5utils7__arrayZ, bug?
Re: Programming Windows D Examples are now Online!
Am 21.06.2011, 20:32 Uhr, schrieb Andrej Mitrovic andrej.mitrov...@gmail.com: I don't know whether it is planned to incorporate the WinAPI bindings into Phobos/Druntime, there's at least 2.5 megs of code in prototypes and I'm not sure about the license (it's based on the MinGW headers). That is indeed long overdue!
Re: IDA Pro 6.1 got D support
+ FLIRT: added autodetection of the programs written in the D language + FLIRT: added Digital Mars FLIRT signatures Wow that's really cool :)
Re: GtkD 1,4 released.
Am 28.03.2011, 21:58 Uhr, schrieb Mike Wey mike-...@example.com: GtkD 1.4 is now available, get it from dsource: http://www.dsource.org/projects/gtkd/ This reminds me, didn't we also want to add GUI projects as a GSoC idea?
Re: Alternative linker win32/64
Well, IMHO the intermediate solution would be to just get DMD to output Win64 OMF object files for now Hopefully we won't have to wait too long!
Re: Alternative linker win32/64
Am I the only one getting a virus warning as soon as I try to unpack the ZIP file? This one is found within the binary: TR/Crypt.XPACK.Gen Yep, Antivir is pretty paranoid and fires up even if an exe is only compressed.
Re: BlogPost: Implementing an asynchronous, epoll based network client
Nice, what will this be used for?
Re: Announcing: D support in SWIG
Does SWIG also support turning all those crappy C++ Get*/Set* methods you can find in almost every OOP-based project into proper D properties (incl. removing Get/Set and turning the next letter lowercase)?
Re: New web newsreader - requesting participation
Speaking of newsgroup web interface, interestingly while the main D site points to this crappy reader: http://www.digitalmars.com/pnews/indexing.php?server=news.digitalmars.comgroup=digitalmars.D.announce there still is a hidden one which is much better imho: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce
Re: New web newsreader - requesting participation
That one has horrible bugs. You'll click on a topic, then try to read a reply, and it shoots you to some random topic 4+ years ago. Happens all the time. I only use it to post to NG since using Gmail directly doesn't show up my own posts (this is a known gmail bug). Didn't occur to me so far.
Re: New web newsreader - requesting participation
OT: c) It tries to convert news posts to HTML, so the paragraphs wrap to the browser, links work, quotes are put into the proper tags for indentation, and it tries to auto-detect D code and put it in a pre block - which my javascript can make inline editable and runnable. Example: http://arsdnet.net/d-web-site/nntp/get-message? newsgroup=digitalmars.DmessageId=% 3Cmailman.1085.1296409409.4748.digitalmars-d%40puremagic.com%3E I accidentally used http://arsdnet.net/d-web-site/nntp/get-message?%20%20newsgroup=digitalmars.DmessageId=%3Cmailman.1085.1296409409.4748.digitalmars-d%40puremagic.com%3E (note the %20%20 before newsgroup) So it showed me some Get Message form with mailman.1085.1296409409.4748.digitalmar...@puremagic.com in the message id field. If I click on Get Message then: object.Exception: invalid newsgroup /var/www/htdocs/d-web-site/nntp(immutable(char)[] nntp.sanitizeNewsgroupName(immutable(char)[])) [0x80ba73b] /var/www/htdocs/d-web-site/nntp(arsd nntp.Newsreader.getMessage(immutable(char)[], immutable(char)[])) [0x80b84a8] /var/www/htdocs/d-web-site/nntp(_D4arsd3web42__T17prepareReflectionTS4nntp10NewsreaderZ17prepareReflectionFC4arsd3cgi3CgiZPS4arsd3web14ReflectionInfo1499__T15generateWrapperS1425_D4nntp10Newsreader10getMessageFAyaAyaZC4arsd8database1349__T16SimpleDataObjectVAyaa5_706f737473TS4arsd8database1267__T21StructFromCreateTableVAyaa607_0a09435245415445205441424c4520706f73747320280a09092d2d20616c6c206f6620746865736520617265204d6573736167652d49442076616c7565730a09092d2d204649584d453a2074686973206973206c6961626c6520746f20626520736c6f6f6f6f6f6f77206173207468652064622067726f77730a09096d6573736167654964205641524348415228363029205052494d415259204b45592c0a0909696e5265706c79546f2056415243484152283630292c0a0909746872656164526f6f742056415243484152283630292c0a0a09092d2d20746865206e756d65726963206964656e7469666965722c206966207765206b6e6f772069740a090961727469636c65496420494e54454745522c0a0a090964617465506f7374656420424947494e54204e4f54204e554c4c2c0a0a09096e65777367726f7570205641524348415228343029! 204e4f54204e554c4c2c0a0a0909617574686f72205641524348415228383029204e4f54204e554c4c2c0a09097375626a65637420564152434841522831323029204e4f54204e554c4c2c0a0a09096d65737361676520544558540a092920454e47494e453d496e6e6f44422044454641554c5420434841525345543d757466383b0a0a09435245415445205441424c45206173736f727465645f6461746120280a0909696420494e5445474552204155544f5f494e4352454d454e542c0a0a09096e616d652056415243484152283830292c0a090976616c75652056415243484152283830292c0a0a09095052494d415259204b4559286964290a09292044454641554c5420434841525345543d757466383b0aVAyaa5_706f737473Z21StructFromCreateTableZ16SimpleDataObjectTS4nntp10NewsreaderVxAyaa10_6765744d657373616765Z15generateWrapperMFPS4arsd3web14ReflectionInfoZDFC4arsd3cgi3CgixHAyaAAyaxAyaZAya7wrapperMFC4arsd3cgi3CgixHAyaAAyaxAyaZAya+0x1dd) [0x80be21d] /var/www/htdocs/d-web-site/nntp(_D4arsd3web3runFC4arsd3cgi3CgiPS4arsd3web14ReflectionInfoZv+0x384) [0x80bca68] /var/www/htdocs/d-web-site/nntp(_Dmain+0x2b) [0x80b9b33] /var/www/htdocs/d-web-site/nntp(extern (C) int rt.dmain2.main(int, char**)) [0x80e4a36] /var/www/htdocs/d-web-site/nntp(extern (C) int rt.dmain2.main(int, char**)) [0x80e4990] /var/www/htdocs/d-web-site/nntp(extern (C) int rt.dmain2.main(int, char**)) [0x80e4a7a] /var/www/htdocs/d-web-site/nntp(extern (C) int rt.dmain2.main(int, char**)) [0x80e4990] /var/www/htdocs/d-web-site/nntp(main+0x96) [0x80e4936] /lib/libc.so.6(__libc_start_main+0xe6) [0xf741db86] /var/www/htdocs/d-web-site/nntp() [0x80b8291] Strange thing is, most functions are properly demangled but 2 aren't. Is this a (known) bug?
Re: New web newsreader - requesting participation
Strange thing is, most functions are properly demangled but 2 aren't. Is this a (known) bug? Yes, core.demangle can't do some symbols because DMD applies a one-way hash to them once they reach a certain length because such long symbols tend to break linkers. Ah I see, but what about the short one: _D4arsd3web3runFC4arsd3cgi3CgiPS4arsd3web14ReflectionInfoZv
Re: New web newsreader - requesting participation
Very interesting stuff. May D kick php out of business ;)
Re: D Programming Language source (dmd, phobos, etc.) has moved to github
I don't know. I haven't used Hg. However, I have a hard time seeing how you could have revision numbers like subversion does Mercurial uses hashes. For convenience it *additionally* provides consecutive numbers which are to be used in your own *local repo only*.
Re: boxen - an audio player written in D
Why is there no advertisement for D, the MagicCounter page lists C# right at the top ;) The directory tree sorts everything by name, would be cool if listing directories first was possible as well. It really needs a proper icon, looks shitty in the taskbar ;) Nice tool!
Re: boxen - an audio player written in D
Also playback stops when a directory is reached in the list.
Re: Announcing: D support in SWIG
I just wanted to drop a note to say that i have tried it and it works quite well. I am wrapping a small C++ library and using in my D application. Is there a tutorial (not 50 pages of text) about what needs to be done to support a C++ library?
Re: cl4d - OO wrapper for the OpenCL C API
Thanks! Note that bindings to the C API are included. They are pretty much complete, I just haven't found a way yet to organize extensions. If you've got an idea, just share it ;)
cl4d - OO wrapper for the OpenCL C API
Just wanted to let you know that cl4d is basically usable now. Some things like OpenGL interoperability still need to be finished though and of course it needs to be extensively tested for bugs. http://bitbucket.org/trass3r/cl4d
Re: Interview with InformIT part 3/3
My impression from following the newsgroup was that no alternative compiler was even close to compiling D2. The LDC D2 status page says: D2 support is a stub and very experimental. Anyone interested to improve it (or LDC in general) is highly welcome. The last News item on the GDC page is from 2007. He was referring to D1 support being closely behind dmd. LDC2 is pretty much dead at the moment. GDC2 is currently breaking the 2.020 wall: http://bitbucket.org/goshawk/gdc/
Re: Mago Debugger
I'm working on my long term solution to testing on Windows XP: setting up Windows 7 and the Windows XP Virtual PC image that it brings. You could also use http://www.virtualbox.org/ Nice, slim, heavily under development :)
Re: Mago Debugger
Still, I think it is a bit troublesome for people to build MaGo from source if they are not used to work with the Visual Studio Extensibility, so you should consider providing some precompiled binaries. votes++;
Re: MatD - Matlab external interface bindings for D
Here is (attachement) a translation of file mwdebug.h (matd.c.mwdebug). Thanks for your work but unfortunately I already converted mwdebug.h in the first place. The reason why it isn't committed yet is these functions aren't provided by Matlab's dlls. mwdebug.cpp contains the implementation. I want to handle this in a clever way together with solving another big problem: Detouring of function calls is done via the C preprocessor. In fact the current code is most probably invalid in 64Bit environments since MX_COMPAT_32 isn't handled correctly yet. I don't know if there is a way to handle all this without string mixins. Some comments on your code: - You need to use extern(C):, extern itself is equivalent to extern(D) - Arrays are different in D, so mxArray*[] plhs becomes mxArray** plhs since I don't know how to replace the C FILE structure. import core.stdc.stdio;
Re: MatD - Matlab external interface bindings for D
I don't know if there is a way to handle all this without string mixins. i.e. something along the lines of mixin(foo( ... /** * Get pointer to dimension array */ const(mwSize)* mxGetDimensions(const(mxArray)* pa); ... )); and foo replaces the function defs with func(...){return func_730(...)} via RegEx replace if MX_COMPAT_32 is not defined and so on. (IF RegEx works at compile-time)
Re: MatD - Matlab external interface bindings for D
I am interested in using the MatD and mex files in D. Also, if possible, to contribute. Cool :) For the time being, I see that you are distributing a set of win32 .lib with MatD. I tried to compile the mex examples you provided in Linux 64 bit, but dmd failed to link, I think it is because there is a 32 bit compiler (and the Matlab libmex.so librariest ec. are 64 bit). Yeah, you need to create mex64 files for use with Matlab x64. That's why I haven't tested it on Win64 yet. On the one hand, when compiling/linking against the libmex.lib and libmx.lib files that you provided, a (correct) .dll file (or a .mexw32 file) is generated, along with two other files called arrayProduct.map and arrayProduct.obj. This is just perfect, the .DLL works and is recognized by Matlab (win32 bit) as a MEX file. As Rainer already pointed out optlink only supports omf import libraries. I created them using implib.
MatD - Matlab external interface bindings for D
I've created some bindings to access Matlab's external interface from D, i.e. manipulating .mat files, accessing the current workspace and creating .mex files. Thought I'd share it: http://bitbucket.org/trass3r/matd/wiki/Home
Re: New debugger coming soon!
Part of the reason I wanted to make this debugger is that using cv2pdb, although a great tool that helped fill a need, means: 1. Relying on the built-in C++ debugger, which means you get a C++ expression evaluator. That sounds really good.
Re: Goldie v0.3 Release (Parser Library and Tools)
Nice work! I'm curious, how does it handle the case of incremental development, i.e. gradually changing and enhancing the grammar?
Re: D/Objective-C Bridge still alive, now working on D2
How does it work? Could something similar be created for C++ (automatically creating wrappers around C++ classes or whatever)?
Re: cv2pdb 0.12 released
Any plans for that? Just updated to VS2010 and don't have the old files anymore. Ah, thankfully they haven't been deleted after all. It worked with copying the files you mentioned. Nevertheless VS2010 support would be nice.
zlib 1.2.4 released
http://www.zlib.net/ So the phobos module should be updated, shouldn't it?
Re: Do not use 2.041
I did use it, ddbg worked good (but always skipped over runtime functions, which is annoying when you are developing the runtime). I hope that this problem eventually is solved. Isn't ddbg totally abandoned?
Re: Do not use 2.041
stacktrace printout, there is a need for such things. But I think exception tracing is coming, I think Tango already has it. Tango has it since a long time. Makes me wonder why it hasn't been ported to druntime, I thought the runtimes are quite similar.
Re: Do not use 2.041
If a good debugger existed for dmd, you could determine the location, but I don't know of any good ones. gdb doesn't do a very good job with D. On Windows cv2pdb + Visual Studio works pretty damn well for me. Can't compare it to gdb though, since I haven't used that yet.
Re: Do not use 2.041
Note to everyone, dmd 2.041 array allocation is broken (inadvertently by my array append patch). You should not use this release. Another big problem of the release is operator overloading.
Re: DSFML2
C:\Jpro\dpro\smallxfbuild xft.d Thread 1: compiling 1 modules Thread 0: compiling 0 modules Error: unrecognized switch '-deps=xft.moduleDeps' Build failed: dmd @xfbuild.1660e00.rsp returned 1 Yeah it still has its quirks. Feel free to contact the authors/file an issue/etc.
Re: dmd 1.057 and 2.041 release
Is there a better way to use the new operator overloading than string mixins? Also the following code strangely yields: dsfml\system\vector2.d(47): Error: variable dsfml.system.vector2.Vector2!(float).Vector2.op only parameters or foreach declarations can be ref /// element-wise operations, +, -, ref Vector2 opBinary(string op)(ref Vector2 v) { mixin(return Vector2!(T)( cast(T)(x ~ op ~ v.x), cast(T)(y ~ op ~ v.y) );); } Removing ref from the return type makes it compile. Furthermore the assignment operator seems to be rewritten as opBinary instead of opAssign as the docs state: Vector2f_pos = Vector2f(0.f, 0.f); yields: Error: template instance opBinary!(=) matches more than one template declaration This also shows another problem. It can't distinguish between these two: Vector2 opBinary(string op)(ref Vector2 v) if (op != *) { mixin(return Vector2!(T)( cast(T)(x ~ op ~ v.x), cast(T)(y ~ op ~ v.y) );); } Vector2 opBinary(string op)(int i) { mixin(return Vector2!(T) ( cast(T)(x ~ op ~ i), cast(T)(y ~ op ~ i) );); } even though vec1 + vec2 resp. vec + 5 is unambiguous.
Re: obj2asm
obj2asm tells the tale. (obj2asm is an incredibly useful tool, I don't know why nobody uses it.) Maybe because it's not free (and not much advertised). obconv also supports disassembling various object file formats + conversion between them and it's open source: http://www.agner.org/optimize/#objconv obj2asm might provide something fancy that objconv doesn't but its page doesn't show anything that would justify paying 10$.
Re: obj2asm
The linux version comes in the zip right along side dmd. Indeed. Even the OSX folder contains obj2asm. The windows version is missing.
Re: DSFML2
I've been trying xfBuild and have now found that I can't write to the command prompt, and there doesn't seem to be any flag to activate to do it. Don't understand what you mean.
Re: DSFML2
Maybe he is looking for a way to pass some custom arguments to DMD and couldn't find a way to do so via xfBuild? compiler arguments are passed just as normal.
Re: DSFML2
I'm not sure about compiling the latest csfml dlls. Now I don't know what I'm doing :-/. Maybe later take another look. Well DSFML is just a wrapper around CSFML (which in turn is a C wrapper around SFML :D but hell, there's no other way except a complete port) So you need the CSFML shared libraries and since there are no prebuilt versions you need to compile them yourself. Works flawlessly with Visual Studio 2008 on Windows for me.
Re: DSFML2
Tried bud, it compiled but it filled my command prompt window with errors when I tried running it. When trying to run it it came up with 'not a Win32 program'. I tried using ReBuild, but it didn't even compile. Btw, xfBuild is better. My script simply looks like: xfbuild main.d +obin\OpenBB-d -debug -g cv2pdb -D2 bin\OpenBB-d.exe // for debugging also be sure to properly compile the latest csfml dlls. It seems like you can't use static CSFML libraries for this.
Re: D-IDE now has a debugger!
Great, but I can't run it in my win2000 There's no point in supporting Win2k these days anymore.
Re: GDC-newbies
There are some encoding problems: Björklund Vincenzo Ampolo I’ve been working with ldc for a long time
DSFML2
I've ported DSFML to the currently developed SFML v2. It is included in its svn branch: http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2/ The packages system, window and graphics already work quite well. Audio package has been ported but the callbacks still need to be modified. Supports D2. I tried to change as few as possible, so any tango-fetishist might get it to run by removing some const etc. and dealing with struct construction.
Re: DSFML2
Ok, audio and network package compiles. Extensive tests are still due.
Re: DSFML2
Yeah, sorry the correct repository is: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2/ The one I posted before is just the web version.
Re: Descent, now with Open Type Hierarchy
Also the hover feature/Open Declaration sometimes behaves incorrectly. Unfortunately I couldn't really track down its cause yet :( Usually when hovering over a function call the ddoc output is correct. Then holding shift to see the source suddenly shows another function. F3 also jumps to that false one then. Sometimes Open Declaration makes eclipse get stuck (where sometimes that extra window operation pending or whatever it was reading is opened, sometimes not)
Re: Descent, now with Open Type Hierarchy
Ary Borenszweig schrieb: Please report these things into the bug tracket: http://www.dsource.org/projects/descent/newticket I'd have done that, if I had managed to narrow down the problem.
Re: Descent, now with Open Type Hierarchy
Descent seems to have some problems with multiline `` comments though. void foo() { writefln(` `); version(Windows) { } } everything following the 2nd ` is highlighted incorrectly. Or is it some configuration mistake?
Re: Descent, now with Open Type Hierarchy
Ary Borenszweig schrieb: I just uploaded a new version of Descent that implements the Open Type Hierarchy funcionality. You can see a video of it here: Works like a charm, thanks!
Re: Descent, now with Open Type Hierarchy
btw, would be very cool if the code formatter would also format pasted code! VisualAssistX has this feature and it's a pleasure to use it, esp. if you use some code written by other guys with strange code style. I just cut the whole file, paste it again and voila it's nicely formatted ;)
Re: Descent with compile-time debug for testing
Ary Borenszweig schrieb: That's ddbg working wrong, not Descent. :-P Ah, damn so no way this gets fixed. Debugging D is a pain :(
Re: Descent with compile-time debug for testing
Thanks for your hard work! Are there plans to improve ddbg support? I'm getting parser errors: -APC10goldengine5token5Token class goldengine.token.Token*[] -Parser: (1:0): found [, expected Ident input: [0] lookahead: [ lexeme: \[ AST node stack: Deref Cast Ident LR stack: State 4 (1:1) Expr - Deref . Cast DotChain Cast - . State 43 (1:1) Expr - Deref Cast . DotChain Sign - . State 71 (1:1) DotChain - Ident . RefExpr RefExpr - . State 47 (1:1) RefExpr - \. . Ident RefExpr -
Re: Descent 0.5.5 released
Ary Borenszweig schrieb: For this release Robert Fraser made an excelent addition: when compiling programs using an external tool such as dsss, rebuild, dmd, gdc, ldc, gdmd or bud, there are now links to the files in the console output for warnings and errors. I think this one was pretty requested. So say thanks to him! :-) FINALLY! Yha. Many thanks to Robert!