Re: Signed DMD binaries
On Monday, 13 August 2018 at 19:09:55 UTC, Jacob Carlborg wrote: Any plans for doing the same thing for the installer on macOS? It complains that it's from an unidentified developer and forces the user to go into System Preferences and reopen the installer. Can't you just usually right-click the file and select "Open" which enables something like the "Open anyway" option to be displayed (usually not visible when just double clicking the file...)?
Re: DMD installation prompts "Windows protected your PC"
On Monday, 6 August 2018 at 16:22:51 UTC, rjframe wrote: On Mon, 06 Aug 2018 14:13:02 +, Timoses wrote: Thanks Windows, not! Since our department switched to Windows 10 I'm now unable to install DMD. To make it even worse, there's no way I see to install a virtual machine any more (VirtualBox or VMWare) since they collide with Hyper-V. I've disabled Hyper-V, but it seems there can be a lot of things using it around one's back anyway. By "disable Hyper-V", do you mean uninstall via Add/Remove Windows Features? I've never had a problem with VirtualBox after that. Apparently even if the user unchecks Hyper-V under Add/Remove Windows Features it does not prevent other apps or services from silently using (activating) it... So it's a matter of digging and finding out what exactly does. And I don't have the resouces to do that. Have you tried the DMD zip instead of installer? Thanks, works!
Re: DMD installation prompts "Windows protected your PC"
On Monday, 6 August 2018 at 14:19:47 UTC, rikki cattermole wrote: dmd works fine on W10. So the question is, are you seeing AV or are you seeing some other thing that your IT put in place (e.g. require code signing). Well, there is Kaspersky installed and I know there's been a discussion about it here (https://forum.dlang.org/post/wjvfkteddmwhhiktv...@forum.dlang.org). However, it's not Kaspersky that is complaining. At least it doesn't look like it. Perhaps Windows wraps it somehow, idk. Windows prompt: http://oi68.tinypic.com/2eevoxt.jpg All I can do is "Don't run". It has to do with the Windows Defender settings, which I can't change.
DMD installation prompts "Windows protected your PC"
Thanks Windows, not! Since our department switched to Windows 10 I'm now unable to install DMD. To make it even worse, there's no way I see to install a virtual machine any more (VirtualBox or VMWare) since they collide with Hyper-V. I've disabled Hyper-V, but it seems there can be a lot of things using it around one's back anyway. So... No more D programming for me it seems. Very sad. Of course there might be ways around it such as including the IT department. However, I use D for such niche use cases that I believe its unlikely to succeed. Any bright minds have better ideas?
Re: DIP 1016--ref T accepts r-values--Community Review Round 1
On Friday, 20 July 2018 at 05:16:53 UTC, Mike Parker wrote: Thanks in advance to all who participate. "It has been noted that is it possible" switch: it <-> is
Re: DMD, Vibe.d, and Dub
On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: Package installed, now I get: /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D4vibe6stream7openssl14OpenSSLContext6__ctorMFNfEQBwQBu3tls14TLSContextKindEQCxQCvQBb10TLSVersionZ9__lambda3MFNbNeZv': [...] Perhaps this? https://github.com/vibe-d/vibe.d/issues/2153
Re: Error: only one main allowed. Previously found main at *
On Tuesday, 19 June 2018 at 17:16:28 UTC, Brian wrote: dmd latest version bug? ```sh source/bootstrap.d(4,6): Error: only one main allowed. Previously found main at /tmp/dub_test_root-ad0fb2e3-6be1-4ca8-9153-e4fdd5c1b191.d(10,12) dmd failed with exit code 1. ``` Build logs: https://travis-ci.org/huntlabs/hunt-skeleton/jobs/389884419#L480 Did you fix it? Compiles fine for me on dmd version 2.081.0 and 2.080.1. (https://github.com/huntlabs/hunt-skeleton)
Re: Adding more projects to the Project Tester
On Friday, 6 July 2018 at 23:56:01 UTC, Basile B. wrote: On Friday, 6 July 2018 at 21:47:34 UTC, JN wrote: By the way, is there any policy for outdated dub packages? You just found an idea for the score algorithm. Why isn't there something like "compiler compatibility" in a dub config file? E.g. currently the vibe.d project lists the compiler versions the code is compatible with [1]. Wouldn't a field in dub like "compilerCompatibility": { "dmd": "2.080.0", "ldc": "..." } be nice? This could also help code.dlang.org to show compatibility of libraries/packages. The only pain I guess would be to keep such a list up to date. [1]: https://github.com/vibe-d/vibe.d#support
Re: `update` and `require` properties for AA
On Tuesday, 26 June 2018 at 15:51:00 UTC, H. S. Teoh wrote: On Tue, Jun 26, 2018 at 07:25:09AM +, Mike Franklin via Digitalmars-d wrote: [...] I think the documentation gets published prematurely. The new methods for the associative arrays should come in the next release, scheduled for July 1st. https://dlang.org/changelog/pending.html#require_update [...] Seriously, we need to start implementing versioned docs on dlang.org. T Doesn't it already offer it? Here https://dlang.org/spec/hash-map.html in the very top right corner you can diverge from master. However it seems a bit bugged that when selecting something else than master, it suddenly prints master again, and there is no way to get back to master. Looks a bit broken. Wouldn't it be better to reflect the latest published version of the docs there as a default??
Re: Phobos' std.conv.to-conversion from enum to string doesn't scale beyond hundreds of enumerators
On Monday, 25 June 2018 at 00:35:40 UTC, Jonathan M Davis wrote: On Sunday, June 24, 2018 23:53:09 Timoses via Digitalmars-d wrote: On Sunday, 24 June 2018 at 23:34:49 UTC, Per Nordlöw wrote: > Provided that > > __traits(allMembers, E) > > is a cheap operation as it's called once for every > enumerator. I could get it out of the loop; if I do as > > @property string toString() @safe pure nothrow @nogc > { > > final switch (_enum) > { > > enum members = __traits(allMembers, E); enum members = [_traits(allMembers, E)]; seems to work Or if you want it to stay an AliasSeq, then just use Alias or AliasSeq on it. e.g. alias members = AliasSeq!(__traits(allMembers, E)); Given that the result of __traits in this case is an AliasSeq, I have no idea why the gramar doesn't allow you to just use the result of __traits directly as an AliasSeq with something like alias members = __traits(allMembers, E); but it doesn't. So, you have to wrap it, dumb as that may be. There's a bug report about it in bugzilla somewhere. https://issues.dlang.org/show_bug.cgi?id=16390 I guess? First search result : D
Re: Bug on website code.dlang.org
On Monday, 25 June 2018 at 14:45:31 UTC, Miguel L wrote: Sorry, I don't know where is the right place to report a bug on the web site. I just noticed searching for "code" in code.dlang.org generates this crash: I suppose it's related to: https://forum.dlang.org/post/tbdxlunlactuypmep...@forum.dlang.org https://forum.dlang.org/post/qnityxrrcqpvhfqvj...@forum.dlang.org -> ? https://github.com/dlang/dub-registry/issues/296
Re: Phobos' std.conv.to-conversion from enum to string doesn't scale beyond hundreds of enumerators
On Sunday, 24 June 2018 at 23:34:49 UTC, Per Nordlöw wrote: Provided that __traits(allMembers, E) is a cheap operation as it's called once for every enumerator. I could get it out of the loop; if I do as @property string toString() @safe pure nothrow @nogc { final switch (_enum) { enum members = __traits(allMembers, E); enum members = [_traits(allMembers, E)]; seems to work
Re: Parenthesis around if/for/while condition is not necessary
On Sunday, 24 June 2018 at 22:03:13 UTC, Dennis wrote: if (!("key" in dict)) {...} if ("key" !in dict) {...} At least that one has a shorter form. The others may be rewritten to not have a leading "!" as well, e.g. if (!(t1.ty == Tarray && t2.ty == Tarray && needsDirectEq(t1, t2)) if (t1.ty != Tarray || t2.ty != Tarray || ...) Plus, for counting brackets a text editor that highlights enclosing opposite brackets really helps.
Re: dub search
On Tuesday, 8 May 2018 at 15:50:01 UTC, Nicholas Wilson wrote: I was searching for zmq-d on code.dlang.org to find the git page for it ( to differentiate it from the other ama wrappers) and was greeted with 500 - Internal Server Error Internal Server Error Internal error information: vibe.db.mongo.connection.MongoDriverException@../vibe.d/mongodb/vibe/db/mongo/cursor.d(304): Query failed. Does the database exist? ??:? [0xa7bbee] ??:? [0xa825de] exception.d:421 [0x50aa93] exception.d:388 [0x50116d] cursor.d:304 [0x517adc] dbcontroller.d:393 [0x518643] ... OK, i thought, I'll try searching for "z" Found 30 packages. ^f z one match: Search results for: z That does not bode well for people searching for code on dub. Nic Interesting. Searching for "libneo4j-client" gives 112 search results. Searching for "libneo4j" just one, namely: libneo4j-client ...
Re: New Deimos project (neo4j-client)
On Saturday, 28 April 2018 at 13:56:49 UTC, Timoses wrote: Hey there, the link http://forum.dlang.org/group/digitalmars.D redirected me here (from http://jkm.github.io/phobos/deimos.html - digitalmars.D). Apparently, the digitalmars.D group does not exist any more!? Anyway, I'd like to add a Deimos repository (libneo4j-client). How would I go about it? Now available as a dub package: http://code.dlang.org/packages/libneo4j-client
Re: New Deimos project (neo4j-client)
On Saturday, 28 April 2018 at 13:58:32 UTC, rikki cattermole wrote: On 29/04/2018 1:56 AM, Timoses wrote: Hey there, the link http://forum.dlang.org/group/digitalmars.D redirected me here (from http://jkm.github.io/phobos/deimos.html - digitalmars.D). Apparently, the digitalmars.D group does not exist any more!? Anyway, I'd like to add a Deimos repository (libneo4j-client). How would I go about it? Deimos should not be growing at this point in time. Its from before dub. Just register it with the dub registry and you should be good to go. Okay, thanks for the heads up. Would be good to state that on the Deimos page I suppose.
New Deimos project (neo4j-client)
Hey there, the link http://forum.dlang.org/group/digitalmars.D redirected me here (from http://jkm.github.io/phobos/deimos.html - digitalmars.D). Apparently, the digitalmars.D group does not exist any more!? Anyway, I'd like to add a Deimos repository (libneo4j-client). How would I go about it?