Re: Passing $ as a function argument

2018-10-10 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 10 October 2018 at 08:46:42 UTC, James Japherson wrote: Would be nice to be able to pass $ as a function argument to be used in automatic path length traversing. You can already do this, by returning a custom type from opDollar: /// Define RealNumbers so that, given `RealNumbers

Re: Forums intermittently going down?

2018-10-04 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 4 October 2018 at 19:18:15 UTC, JN wrote: Seems like the issues with the forum got worse. It's hardly usable today, most of the time I am being greeted by "forums are being overloaded" message. Yeah, painfully aware. I've been trying a bunch of different things all day, and looks

Re: Just found this debugger...

2018-10-03 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 3 October 2018 at 03:25:04 UTC, solidstate1991 wrote: https://x64dbg.com/#start I've tried it. It's not very good for source-level debugging. Seems to be primarily aimed at reverse-engineering / debugging programs you don't have the source for.

Re: Just found this debugger...

2018-10-03 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 3 October 2018 at 03:25:04 UTC, solidstate1991 wrote: and I don't want to go back to VisualD after VSCode for either a usable mago or VS native debug. Visual Studio makes a decent stand-alone source-level debugger. Just select the .exe file, and right-click it in the project/sol

Re: How to correctly deal with dmd.conf with multiple dmd installations - [ref osx, brew, digger]

2018-09-27 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 27 September 2018 at 19:53:32 UTC, aliak wrote: Can you explain a bit maybe how it'd break the maximally reproducible builds with an example? I believe you might've mentioned that in the issue linked but I didn't quite get it. Well, essentially Digger tries to minimize the number

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 26 September 2018 at 02:28:27 UTC, CharlesM wrote: If you're using SQLite you don't need to specify the size of the columns, for what I gather it's useless for this DB. Yep, this is mostly descriptive. Types in column declarations have mostly the same effect. And if I'm not mis

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 26 September 2018 at 01:52:31 UTC, H. S. Teoh wrote: What version of SQLite are you using? AFAIK, SQLite itself does support concurrent access. Though it does have to be explicitly compiled with that option, otherwise it will only issue a runtime error. Of course, locking is no

Re: How to correctly deal with dmd.conf with multiple dmd installations - [ref osx, brew, digger]

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 10:34:17 UTC, aliak wrote: When you do `digger install` it seems to not “install” a `dmd.conf` but it does install the `dmd` binary in `/usr/local/bin/dmd` - but that wasn’t built with `SYSCONFDIR` so it doesn’t find `/usr/local/etc/dmd.conf` either, but even i

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 21:42:40 UTC, bachmeier wrote: How much data can there possibly be for a mailing list? Currently, 3.8 GB. A good part of that is the full-text index required for searching. (It does work really well, though - no need for Lucene or such.) I regularly see sto

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 21:12:54 UTC, Steven Schveighoffer wrote: Well, I thought it might be GC related also. It behaves similarly to how you would expect a GC pause to behave (several fast responses, then one that takes 5 seconds to come back). I think that would be plausible if par

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 21:12:54 UTC, Steven Schveighoffer wrote: I'll note that when I started running into DB slowdowns on a system (not related to D), adding one index fixed the issue. Sometimes linear searches are fast enough to hide in plain sight :) I'm no DBA. Here's the schem

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 21 September 2018 at 00:57:42 UTC, Vladimir Panteleev wrote: Performance should now be back to normal. Looks like my previous hunch as to why it was slow was off. Should be fixed now.

Re: Forums intermittently going down?

2018-09-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 18:26:58 UTC, CharlesM wrote: Yeah it happened again today. I heard this site was made in D, maybe is because the GC? No, just old server hardware and database fragmentation.

Re: Then new forum moderation

2018-09-24 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 05:52:57 UTC, bauss wrote: Not for someone who is just introduced to programming and doesn't D want to attract newcomers? If so we cannot have a programmer specific captcha. https://forum.dlang.org/post/vrehthdqtenpnysru...@forum.dlang.org Please address the c

Re: D web site and accessibility

2018-09-24 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 25 September 2018 at 05:57:06 UTC, bauss wrote: On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir Panteleev wrote: The two usages of are part of the presentation, not content. Their use is correct. I disagree: That doesn't address the argument. A program can't know whether

Re: D web site and accessibility

2018-09-23 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote: like the use of b tags on the front page, they should be replaced by strong tags The two usages of are part of the presentation, not content. Their use is correct.

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 21:42:11 UTC, bauss wrote: Maybe it should be visible to more users? At present I do not believe this would bring an observable benefit.

Re: phobo's std.file is completely broke!

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 20:46:27 UTC, Jonathan Marler wrote: Decided to play around with this for a bit. Made a "proof of concept" library: I suggest using GetFullPathNameW instead of GetCurrentDirectory + manual path appending / normalization. It's also what CoreFX seems to be doi

Re: Rather D1 then D2

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote: C++ added contextual keywords, like `override` and `final`. If this can be done in C++, surely D is easier to parse? Currently this compiles: alias safe = int; @safe foo() { return 1; } safe bar() { return 2; } Making "safe" a keyw

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote: And on top of that maybe a flag system. This exists, but is only visible to certain users.

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote: But what is there to stop a spammer from doing the same? Spammers are not going to exert that much effort in order to be able to spam 1 website, so that the moderators then change their algorithm and block them again. This is the

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 17:19:41 UTC, SashaGreat wrote: I did by head. But how a newbie would suppose to do that? For that challenge, you only non-obvious thing need to know is the syntax for the modulus and ternary operators, which are present in many programming languages. You can

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 14:58:58 UTC, aberba wrote: I'm just seeing a ..."Your message has been saved, and will be posted after being **approved** by a moderator". This doesn't make sense. Your post was flagged by the spam filter. It was a false positive, which sometimes occurs with

Re: Then new forum moderation

2018-09-22 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote: PS: By the way the CAPTCHA is awful, look what they throw to us: If you have a better idea of a CAPTCHA that would be easy for D programmers but hard for spammers, please submit a pull request: https://github.com/CyberShadow/d

Re: Rather D1 then D2

2018-09-21 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 21 September 2018 at 21:17:52 UTC, new wrote: Thank you for your answer. too bad - have to think about it. You might be interested in the Volt language, which follows in D1's footsteps: https://github.com/VoltLang/Volta I believe it was created by some D users with the same opini

Re: Jai compiles 80,000 lines of code in under a second

2018-09-21 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 21 September 2018 at 07:58:16 UTC, mate wrote: Different sensibilities on where to put restrictions clearly lead to different designs. I am not sure myself what is best. The more people you have on your team, the more you appreciate the restrictions. If you are working on a personal

Re: Jai compiles 80,000 lines of code in under a second

2018-09-20 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 21 September 2018 at 06:30:40 UTC, Walter Bright wrote: On 9/20/2018 10:11 PM, mate wrote: Note that the build can be done at compile time because the metaprogramming capabilities of the language are not limited in terms of system calls. Back in the naive olden days, Microsoft rele

Re: Jai compiles 80,000 lines of code in under a second

2018-09-20 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 21 September 2018 at 05:11:32 UTC, mate wrote: Note that the build can be done at compile time because the metaprogramming capabilities of the language are not limited in terms of system calls. Good luck bisecting that code base when any version of it did anything even mildly speci

Re: Forums intermittently going down?

2018-09-20 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 17 September 2018 at 11:51:04 UTC, Vladimir Panteleev wrote: The high load is temporary, but will take a week or two to resolve. Performance should now be back to normal.

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 20 September 2018 at 03:23:36 UTC, Nick Sabalausky (Abscissa) wrote: (Not on a Win box at the moment.) I added the output of my test program to the gist: https://gist.github.com/CyberShadow/049cf06f4ec31b205dde4b0e3c12a986#file-output-txt assert( dir.toAbsolutePath.length > MAX_L

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 20 September 2018 at 03:23:36 UTC, Nick Sabalausky (Abscissa) wrote: I'm not sure I'm quite following you. Is this what you mean?: string dir = ...; // Such that... assert( dir.isRelativePath ); assert( dir.length < MAX_LENGTH-12 ); assert( dir.toAbsolutePath.length > MAX_LENGTH-12

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 20 September 2018 at 03:25:05 UTC, Nick Sabalausky (Abscissa) wrote: On 09/19/2018 11:23 PM, Nick Sabalausky (Abscissa) wrote: rmdir(path); Obviously meant "rmdir(dir);" here. Editing mishap. and MAX_PATH instead of MAX_LENGTH, and absolutePath instead of toAbsolutePath, and !

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 06:11:22 UTC, Vladimir Panteleev wrote: One point of view is that the expected behavior is that the functions succeed. Another point of view is that Phobos should not allow programs to create files and directories with invalid paths. Consider, e.g. that a user

Re: Visual Studio Code, Code-D and Microsoft's Visual C++ Debugger (cppvsdbg)

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 14:22:13 UTC, Void-995 wrote: [...] Cool! What if that will be added as DMD command line option DMD used to have the switch -gc, which meant to emit debug information but pretend to be C as much as possible. It was removed as it wasn't considered necessa

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:13:31 UTC, Ecstatic Coder wrote: On Wednesday, 19 September 2018 at 05:32:47 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 05:24:24 UTC, Ecstatic Coder wrote: None would ever be, considering you obviously have decided to ignore such a si

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 11:04:13 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: 2. Detect and reject any non-\\?\ path longer than MAX_PATH-12 bytes[5]. This is not a good criteria: relative paths whose pointing to

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: 2. Detect and reject any non-\\?\ path longer than MAX_PATH-12 bytes[5]. This is not a good criteria: relative paths whose pointing to objects whose absolute path exceeds MAX_PATH will fail, too. So, it looks l

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 09:27:29 UTC, Vladimir Panteleev wrote: This might be a change which we won't be able to back out of if it turns out to be a bad idea, because then we break other classes of programs that depend on this change. See https://forum.dlang.org/post/eepblrtjmqzbtopy

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 09:58:30 UTC, Kagamin wrote: On Wednesday, 19 September 2018 at 06:26:21 UTC, Vladimir Panteleev wrote: Someone mentioned in this thread that .NET runtime does do the long-path workaround automatically. AFAIK, CoreFX does, but .net doesn't. .net did its own p

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:18:38 UTC, Nick Sabalausky (Abscissa) wrote: Instead, what it really means is that our APIs should be designed to *REJECT* long paths with an appropriately meaningful error message On my Windows VM, I get: C:\(long path here): The filename or extension is

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 09:16:30 UTC, Nick Sabalausky (Abscissa) wrote: Essentially they boil down to "it is impossible to prove the algorithm is correct" (for both detecting when the path fix is needed, and fixing the path). If you're referring to the inability to deterministically

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:46:13 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 08:36:35 UTC, Vladimir Panteleev wrote: If you're referring to NUL, COM1, COM2, etc, then this is completely orthogonal. Yes. How so? It is the same issue: paths with certain properti

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:36:35 UTC, Vladimir Panteleev wrote: If you're referring to NUL, COM1, COM2, etc, then this is completely orthogonal. Yes. How so? It is the same issue: paths with certain properties are valid on all platforms except on Windows. Phobos errors out when att

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:37:17 UTC, Nick Sabalausky (Abscissa) wrote: What's the other issue(s)? Essentially they boil down to "it is impossible to prove the algorithm is correct" (for both detecting when the path fix is needed, and fixing the path). Forcing the path transformati

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 08:18:38 UTC, Nick Sabalausky (Abscissa) wrote: Someone mentioned in this thread that .NET runtime does do the long-path workaround automatically. One thing we could do is copy EXACTLY what C# is doing. This is a complete textbook example of the "appeal to

Re: phobo's std.file is completely broke!

2018-09-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 06:34:33 UTC, Nick Sabalausky (Abscissa) wrote: - Does it actually, necessarily perform those additional OS calls? We need to expand relative paths to absolute ones, for which we need to fetch the current directory. - Is it really? Is what really what? I

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 06:16:21 UTC, Paolo Invernizzi wrote: On Wednesday, 19 September 2018 at 06:05:38 UTC, Vladimir Panteleev wrote: Operating on paths longer than MAX_PATH is not a typical situation. https://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/1499/

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: [...] Someone mentioned in this thread that .NET runtime does do the long-path workaround automatically. One thing we could do is copy EXACTLY what C# is doing. The rationale being that: - .NET is made by Mic

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 06:05:38 UTC, Vladimir Panteleev wrote: [...] One more thing: There is the argument that the expected behavior of Phobos functions creating filesystems objects with long paths is to succeed and create those files. However, this results in filesystem object

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: This actually leads to an interesting point. Let's change gears for a moment to "API Design Theory"... Suppose you implement API function X which takes Y as an argument. Question: Should X accept values (or type

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 05:24:24 UTC, Ecstatic Coder wrote: None would ever be, considering you obviously have decided to ignore such a simple solution to the 260 character limit... Add "ad hominem" to your pile of fallacies, I guess. I've addressed it twice in this thread already -

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 18 September 2018 at 18:04:19 UTC, Ecstatic Coder wrote: There will always be inherent differences between platforms, because they are wildly different. Right. Technically the PS2 console, the GameCube and the Xbox console were very different from each other, so I had no choice bu

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 01:50:54 UTC, Nick Sabalausky (Abscissa) wrote: And at least for me, moving from Windows to Linux would have been a LOT harder if it weren't for the OS abstractions that are already in Phobos. It's one thing to call unlink on POSIX and RemoveFileW on Windows

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 September 2018 at 02:20:45 UTC, Nick Sabalausky (Abscissa) wrote: 3. Building on what Vladimir and Jay have said in the bug report, I propose we do this: This has been proposed before in this thread. I don't think it's a good idea: https://forum.dlang.org/post/bqsjebjxuljlqu

Re: One awesome GC feature we will use in Mir!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 18 September 2018 at 17:21:17 UTC, 9il wrote: Thanks! Is there is information about how GC set flags for `new` on the site? I think it's something like this: The compiler lowers `new T[]` to _d_newarrayT or _d_newarrayiT [1]. These functions get a TypeInfo as a parameter. The actu

Re: One awesome GC feature we will use in Mir!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 18 September 2018 at 16:15:45 UTC, 9il wrote: If a user allocates new double[], GC will scan whole array memory, because it is assumed that user may reuse this memory for types that have references. Are you sure? That doesn't sound right. I know this is the case for void[] - even

Re: One awesome GC feature we will use in Mir!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 18 September 2018 at 14:23:44 UTC, 9il wrote: I just remember that D's GC has NO_SCAN [1] attribute! This will be added by default when for Mir allocations if type representation tuple has not references. For example, are Slice!(double*, 2) should never be scanned by GC, but it wil

Re: phobo's std.file is completely broke!

2018-09-18 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 18 September 2018 at 06:16:50 UTC, Ecstatic Coder wrote: This attitude is unfortunately the cause of a lot frustration among cross-platform developers like me. I chose D for my file scripting needs because it's a cross-platform language. I expect that calling the function F on sy

Re: phobo's std.file is completely broke!

2018-09-17 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 17 September 2018 at 22:58:46 UTC, tide wrote: version(Windows) { if(path.length >= MAX_PATH) { // throw Exception(...) // effectively what happens now // do workaround for } } The complexity would only exist for those that need it. It'd be the difference

Re: Forums intermittently going down?

2018-09-17 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 17 September 2018 at 16:51:42 UTC, Petar Kirov [ZombineDev] wrote: On Monday, 17 September 2018 at 11:51:04 UTC, Vladimir Panteleev wrote: [..] The high load is temporary, but will take a week or two to resolve. How feasible would be to have a simple page like https://status.gith

Re: Forums intermittently going down?

2018-09-17 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 17 September 2018 at 11:02:39 UTC, Michael wrote: It has been occurring for the past two weeks now, at least. When I try to load the forum (on different networks) it will often hang for a while, and when it does eventually load a page, it is likely that clicking a link will cause it

Re: phobo's std.file is completely broke!

2018-09-16 Thread Vladimir Panteleev via Digitalmars-d
To elaborate: On Sunday, 16 September 2018 at 22:40:45 UTC, Vladimir Panteleev wrote: If *YOU* are OK with the consequences of complexity, implement this in YOUR code, but do not enforce it upon others. This is much better done in user code anyway, because you only need to expand / normalize

Re: phobo's std.file is completely broke!

2018-09-16 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 16 September 2018 at 16:17:21 UTC, tide wrote: Nothing is "locked behind management". If you feel that some issue important to you is stalled, you can create a forum thread, or email Walter/Andrei to ask for a resolution. Funny the other guy was saying to create a bugzilla issue.

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 16 September 2018 at 02:58:30 UTC, tide wrote: There are a lot of issues that aren't simple bugs that just anyone can fix. They are issues that are locked behind management. One's that are 4 years old for example, they are probably some bug locked behind management. That's why they g

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 16 September 2018 at 01:19:46 UTC, tide wrote: I guess that's why Bugzilla is a complete disaster. No one, at all, is maintaining it. As there are only 2 people that can really maintain it, and I don't see either of them commenting on bugs to provide direction, at least very often.

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 16 September 2018 at 00:14:12 UTC, Jonathan M Davis wrote: As for figuring out who is "officially" part of the dlang org (or at least has the rights to merge PRs from at least one dlang repo), you can look here https://github.com/orgs/dlang/people though it's possible to hide your

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 23:50:43 UTC, Josphe Brigmo wrote: [...] D is generally described as a system programming language. There is value in favoring a simple and obvious implementation ("do what I say") over going out of one's way to make usage simpler ("do what I mean"). The tra

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 18:21:43 UTC, Josphe Brigmo wrote: Can you list some programming languages that achieve this task in a way you approve of? Plenty, pick just about any one. C#, Haskell, javascript, lua, python, perl, C++(yes, c++, we are not talking about language features bu

Re: Why the hell do exceptions give error in the library rather than the user code?

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 14 September 2018 at 14:34:36 UTC, Josphe Brigmo wrote: Why the hell do exceptions give error in the library rather than the user code? D exceptions can provide context in two ways: - Stack trace, for which you need to compile with debug symbols enabled (-g). - A file name and li

Re: Why the hell do exceptions give error in the library rather than the user code?

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 14 September 2018 at 16:40:01 UTC, Josphe Brigmo wrote: This is the only kind of error I get Compile with -g.

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 13:54:45 UTC, tide wrote: I feel people need to stop saying this. It feels like people are just being told to say this if there is a bug. There is a larger issue, Bugzilla doesn't and isn't working. Someone will probably throw up some stats about how many bugs

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 12:59:25 UTC, Josphe Brigmo wrote: The libraries are already copying the user's string and adding the 0 termination prior to calling the windows api, so it seems to me to be a reasonable place to make other modifications if they are needed to accomplish the int

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 10:57:56 UTC, Josphe Brigmo wrote: All ansi api calls are limited by MAX_PATH. The way to fix it is to use the wide api calls which are not limited or to use other tricks. Phobos *NEEDS* to be modified to work with these newer OS's. Phobos already uses the

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 14 September 2018 at 19:42:39 UTC, Josphe Brigmo wrote: "It doesn't matter. When I compile a program or DLL in C/C++ and many other languages, I use the Windows headers. These headers define MAX_PATH to 260. So the program will have the limit set by compile time, no matter what you d

Re: phobo's std.file is completely broke!

2018-09-15 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 15 September 2018 at 10:05:26 UTC, Josphe Brigmo wrote: Yes, I did that and it worked for some(most) things it seems but rmdir, for example, seems to fail. If the file path is passed verbatim to the OS API, and it still doesn't work, then the problem is with the OS or the API, not

Re: filtered imports

2018-09-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 13 September 2018 at 16:23:21 UTC, Jonathan Marler wrote: The immediate example is to resolve symbol conflicts. I've ran into this a few times: import std.stdio; import std.file; void main(string[] args) { auto text = readText(args[1]); write("The contents of the

Re: rund users welcome

2018-09-10 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler wrote: - -od (e.g. for -od.) Hmmm, yeah it looks like rund is currently overriding this. I've attempted a fix but it's hard to cover all the different combinations of -of/-od/etc. I'll need to fill out the rest of the tests soon.

Re: rund users welcome

2018-09-09 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler wrote: - --build-only should imply -od. Maybe...I actually have use cases where I want "--build-only" but want the executable to be built in the normal cache location. Build the program and cache it but don't run it yet. Adding a

Re: rund users welcome

2018-09-08 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 8 September 2018 at 04:24:20 UTC, Jonathan Marler wrote: I've rewritten rdmd into a new tool called "rund" and have been using it for about 4 months. It runs about twice as fast making my workflow much "snappier". It also introduces a new feature called "source directives" where yo

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-26 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 24 August 2018 at 17:12:53 UTC, H. S. Teoh wrote: This is probably completely unrealistic, but I've been thinking about the possibility of adding *all* D codebases to the CI infrastructure, including personal projects and what-not. You mean more than what's already covered by the pr

Re: Kaspersky Endpoint Security 10 flags the DMD installer as malicious!

2018-07-26 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 25 July 2018 at 08:31:05 UTC, rikki cattermole wrote: On 25/07/2018 8:27 PM, Rel wrote: I think, we should do something about it, at very least report for false-positive to Kaspersky or something. This is a pretty regular problem for Windows. Until we start signing the executable

Re: forum best practices

2018-07-02 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 1 July 2018 at 03:49:21 UTC, Jonathan M Davis wrote: 4. As I recall, the web interface already warns you if you leave enough of the quote in that it thinks that you're probably overquoting. That's right. It also warns you about not quoting at all, along with 6 other rules: https:

Re: Phobos begat madness

2018-06-23 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 22 June 2018 at 21:37:07 UTC, Walter Bright wrote: text begat textImpl begat to begat toImpl begat toStr begat formatValue begat formatValueImpl begat put begat doPut begat Appender.put begat Appender.put Hmm, this looks suboptimal for more than one reason. Woul

Re: Would be nice if compiler gave more information!

2018-06-14 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 15 June 2018 at 03:54:34 UTC, DigitalDesigns wrote: So, it should be very important to have some type of info that connects the error to what the compiler was doing. With large problems it is not easy to reduce to a test case that shows the problem directly. In my experience as a l

Re: How To Make an RSS Feed from a Forum Thread

2018-06-14 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 June 2018 at 03:17:37 UTC, nathanjame wrote: We spend a lot of our online time in an RSS reader, but not everything we want to follow has an RSS feed. There are web apps to monitor pages for changes, but forum threads spill over onto many pages – how can you get an RSS feed for

Re: Would be nice if compiler gave more information!

2018-06-14 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 June 2018 at 11:30:46 UTC, DigitalDesigns wrote: object.Error@(0): Access Violation 0x00415999 0x0040A3B7 0x00518A2D 0x005751FD 0x005ABA41 0x005ABAEB 0x00525136 0x005246D6 0x005253E2 0x0066509D 0x00664F38 0x00529F68 0x77018744 in BaseThreadInitThunk 0x77C5582D in

Re: D code obfuscator

2018-06-14 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 June 2018 at 08:54:16 UTC, Shachar Shemesh wrote: So, no, I was not kidding. Not even close. I've had some experience on both sides of this... so, I think I can say with some certainty that debugging symbols make reverse-engineering MUCH easier (many hunts to find the relevant

Re: D code obfuscator

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 June 2018 at 00:01:31 UTC, DigitalDesigns wrote: Is there an obfuscator for D that at least renames identifiers? This is because sometimes they leak from various processes and could be potential sources of attack. Yes, DustMite has an obfuscation mode. You will need to give it

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 June 2018 at 17:54:29 UTC, Atila Neves wrote: Reviewing the dustmite documentation, I'm not sure how the reduction would work when the build that's broken is a dub one that uses local packages. You will need to either reduce the test to a command which does not involve dub (i

Re: Has anyone been successful using 64-bit release dmd on Windows?

2018-06-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 June 2018 at 17:13:09 UTC, Atila Neves wrote: After too many days of frustration to be able to count, I finally discovered what works for our builds: the debug build of 64-bit dmd on Windows. When I build the release version from the Makefile or use digger, it produces a dmd

Re: Security point of contact

2018-06-09 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 9 June 2018 at 19:03:59 UTC, Cym13 wrote: Who should I contact? I'd very very much like to have something like a secur...@dlang.org for such things, it's not the first and likely not the last time this need arises, and the lack of a clear procedure doesn't encourage coordinated d

Database rollback

2018-05-27 Thread Vladimir Panteleev via Digitalmars-d
Hello, Due to an error during emergency server maintenance yesterday, some data was deleted. This includes forum.dlang.org and wiki.dlang.org databases. I managed to recover the MySQL databases, so wiki.dlang.org should work as before. Unfortunately, the last working backup of the forum.dla

Re: dlang feed, thunderbird

2018-05-24 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 24 May 2018 at 15:14:11 UTC, number wrote: are the mlOnly ones like 'phobos' accessible, since they are public via the forum? tried with server lists.puremagic.com but didn't work. To access mailing lists with an email/news client, like Thunderbird, you will need to subscribe to

Re: dlang feed, thunderbird

2018-05-24 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 24 May 2018 at 13:36:03 UTC, number wrote: Thanks, that works much better, though i don't have links to the web version of posts as i had previously. One thing you can do via NNTP which you can't do via feeds is post and reply :) How do the newsgroups match to the forum categori

Re: Why is 64-bit dmd not built as part of the Windows release?

2018-05-23 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 23 May 2018 at 20:17:04 UTC, Dlang User wrote: I tried adding bootstrap option for 64 bit: digger -c build.components.dmd.dmdModel=64 -c build.components.dmd.bootstrap.ver=v2.075.0 build --model=64 v2.080.0 Which didn't work (totally different error): Looks like more DMD bugs

Re: Why is 64-bit dmd not built as part of the Windows release?

2018-05-23 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 23 May 2018 at 17:35:28 UTC, Dlang User wrote: I too am looking for 64-bit on Windows 10. Not just DMD but ideally everything. When I try the command exactly as above, or a slightly modified version (on a second run show after this run), I hit an error on my machine: Internal

Re: Why is 64-bit dmd not built as part of the Windows release?

2018-05-22 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 22 May 2018 at 13:11:00 UTC, Atila Neves wrote: On Thursday, 17 May 2018 at 03:28:33 UTC, Vladimir Panteleev wrote: digger build --model=64 If you don't have Digger yet, you can run it straight from Dub: dub fetch digger dub run digger -- build --model=64 I keep forgetting about

Re: Generate Ddoc without compiling?

2018-05-21 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 21 May 2018 at 12:37:36 UTC, Jonathan M. Wilbur wrote: $(DCOMPILER) -o- -op -d -Df$@ $< That should work. It's roughly how the dlang.org documentation is built. But that does not work, because some of the compiled modules import other modules, and the rule fails because DCOMPILER

Re: Generate Ddoc without compiling?

2018-05-21 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 21 May 2018 at 12:37:36 UTC, Jonathan M. Wilbur wrote: Having said that, I don't see why it would be technically impossible to make DMD build the HTML (almost) without regard to the validity of the source code. Is this possible? And moreover: *should* it be done? Is it a bad idea?

Re: do not include sc.ini in zip files!

2018-05-17 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 18 May 2018 at 00:05:49 UTC, IntegratedDimensions wrote: This may be a suitable solution. While it has some overhead and pollutes the environment, it at least offers a working alternative unlike other (non)"solutions". It would be better if HOME wasn't so general since other applic

  1   2   3   4   5   6   7   8   9   10   >