Re: I want change package name for dub , how to do it?

2018-08-30 Thread Sönke Ludwig via Digitalmars-d
Am 27.08.2018 um 12:25 schrieb Brian: My team want change packages name: hunt -> hunt-framework entity -> hunt-entity database -> hunt-database cache -> hunt-cache How to do it? Must delete package before add it again? To avoid breaking dependencies, the best approach is this: 1. clone the r

Re: ! No allerts ! code.dlang.org

2018-05-11 Thread Sönke Ludwig via Digitalmars-d
Am 07.05.2018 um 16:57 schrieb Martin Tschierschke: I just want to send a big thank you to Martin Nowak and Sönke Ludwig and every one else running the infrastructure of DUB behind the scene! This is the list of Weekly Reports from pingdom.com for code.dlang.org: Pingdom Weekly Reports 2018

Re: DUB: Only fetch and cache packages in dub.json without running build

2018-04-10 Thread Sönke Ludwig via Digitalmars-d
Am 10.04.2018 um 15:50 schrieb Clinton: Hi all, I'm setting up a CircleCI config for my project. Right now I'm trying to cache dependencies before running builds. This way I can run "dub build --nodeps" immediately after the packages are cached to avoid extra network calls and speed it up.

Re: Registering packages crashed DUB registry

2018-04-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.04.2018 um 23:57 schrieb Sönke Ludwig: Am 07.04.2018 um 21:49 schrieb 0xEAB: Hello :) Tried to add a new package, but after clicking on [Register package] I only get the following error: 502 Bad Gateway nginx/1.6.2 Regards, Elias Bug report: https://github.com/dlang/dub/issues/1

Re: Registering packages crashed DUB registry

2018-04-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.04.2018 um 21:49 schrieb 0xEAB: Hello :) Tried to add a new package, but after clicking on [Register package] I only get the following error: 502 Bad Gateway nginx/1.6.2 Regards, Elias Bug report: https://github.com/dlang/dub/issues/1441 PR: https://github.com/dlang/dub-registry/

Re: Space before parens in all function definitions

2018-04-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.04.2018 um 04:23 schrieb Andrei Alexandrescu: Why is there a space before "(" in our /library/ docs? https://dlang.org/library/std/stdio/file.tmpfile.html The paren here has role similar to that in mathematics, not literary. Thanks, Andrei Has been a regression during the diet-ng tra

Re: I didn't succeed in creating an empty project for a long time

2018-03-08 Thread Sönke Ludwig via Digitalmars-d
Am 08.03.2018 um 10:15 schrieb Sueko: On Monday, 15 January 2018 at 11:15:41 UTC, Brian wrote: zoujiaqing@Brian-XPS MINGW64 /d/Projects $ dub init serializable -v Using dub registry url 'https://code.dlang.org/' Refreshing local packages (refresh existing: true)... Looking for local package map

Re: How to represent multiple files in a forum post?

2018-02-18 Thread Sönke Ludwig via Digitalmars-d
Am 14.02.2018 um 19:33 schrieb Jonathan Marler: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? Why not multipart/mixed? Since this is NNTP based, wouldn't that be the natural choice? That it, assuming that forum.dlang.org is

Re: OT: Photo of a single atom by David Nadlinger wins top prize

2018-02-14 Thread Sönke Ludwig via Digitalmars-d
Am 14.02.2018 um 02:11 schrieb David Nadlinger: On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote: David (aka klickverbot) is a longtime D contributor […] … who is slightly surprised at the amount of media interest this has attracted. ;)  — David Also saw it cited by severa

Re: Module bug?

2017-12-18 Thread Sönke Ludwig via Digitalmars-d
Am 18.12.2017 um 13:14 schrieb Luís Marques: Is this a bug? foo/bar/baz.d:     module foo.bar.baz;     alias thisModule = foo.bar.baz; $ dmd -main -I. foo/bar/baz.d OK foo/bar/baz.d:     module foo.bar.baz;     alias thisModule = foo.bar.baz;     import foo; foo/package.d:     module fo

Re: Adding Markdown to Ddoc

2017-12-06 Thread Sönke Ludwig via Digitalmars-d
Am 06.12.2017 um 12:34 schrieb Walter Bright: On 12/6/2017 1:33 AM, Sönke Ludwig wrote: This is great news! While I don't have the time to work on this directly, I can offer vibe.d's Markdown module* (re-licensing as necessary): https://github.com/vibe-d/vibe.d/blob/master/textfilter/vibe/text

Re: Adding Markdown to Ddoc

2017-12-06 Thread Sönke Ludwig via Digitalmars-d
Am 06.12.2017 um 05:11 schrieb Walter Bright: https://help.github.com/articles/basic-writing-and-formatting-syntax/ Anyone interested in picking up the flag? (I know this has come up before, and I've been opposed to it, but I've changed my mind.) This is great news! While I don't have the ti

Re: Actor model & D

2017-11-11 Thread Sönke Ludwig via Digitalmars-d
Am 11.11.2017 um 13:28 schrieb Nordlöw: On Friday, 8 November 2013 at 08:22:56 UTC, Bienlein wrote: It seems like a pretty simple change so far, though I guess we'll see today. As >a demo, I'm creating both a ThreadMultiplexer and a FiberMultiplexer. That would be awesome. Something similar t

Re: Back to SDL question

2017-10-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.10.2017 um 20:39 schrieb jmh530: On Thursday, 19 October 2017 at 18:16:12 UTC, Sönke Ludwig wrote: I wouldn't want to change the default back at this point, as the landscape of opinions on this matter is far too heterogeneous. But if at some point it should turn out that there is a clea

Re: Back to SDL question

2017-10-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.10.2017 um 15:40 schrieb rikki cattermole: On 19/10/2017 2:34 PM, Suliman wrote: First of all I would like to say sorry for Ludwig, that 2 years ago I was initiator to making JSON back by default for dub config. It was really my mistake. Only some time later I understand that it was big

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.09.2017 um 20:36 schrieb Vadim Lopatin: On Friday, 22 September 2017 at 09:40:00 UTC, Sönke Ludwig wrote: What's was the last status? Could you observe any meaningful thread scaling? It works for me - multithreading improves performance on my PC. So far, test results on https://github.c

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Sönke Ludwig via Digitalmars-d
Am 21.09.2017 um 20:49 schrieb bitwise: Doesn't vibe-d use Fibers? I tried to build a simple web server with a fiber-based approach once - it was horribly slow. I hope C# (and soon C++) style stackless resumable functions will eventually come to D. It uses them and the overhead actually d

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-22 Thread Sönke Ludwig via Digitalmars-d
Am 22.09.2017 um 09:45 schrieb Vadim Lopatin: On Thursday, 21 September 2017 at 19:40:48 UTC, bitwise wrote: On Thursday, 21 September 2017 at 18:55:04 UTC, Vadim Lopatin It does. But Golang uses them, too. Goroutines. Indeed. I'm reading about them right now, and they seem to be "multiplexe

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-21 Thread Sönke Ludwig via Digitalmars-d
Am 21.09.2017 um 14:41 schrieb Vadim Lopatin: On Thursday, 21 September 2017 at 10:21:17 UTC, Sönke Ludwig wrote: shared static this() { (...) } BTW, I'd recommend using     void main()     {     (...)     runApplication();     } instead and dropping the VibeD

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-21 Thread Sönke Ludwig via Digitalmars-d
    shared static this()     {     (...)     } BTW, I'd recommend using void main() { (...) runApplication(); } instead and dropping the VibeDefaultMain version in the package recipe. The old approach is planned to be faded out slowly, because it requires

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-09-21 Thread Sönke Ludwig via Digitalmars-d
Am 21.09.2017 um 10:01 schrieb Vadim Lopatin: There is a simple set of simple web server apps written in several languages (Go, Rust, Scala, Node-js): https://github.com/nuald/simple-web-benchmark I've sent PR to include D benchmark (vibe.d). I was hoping it could show performance at least no

Re: Community Rant

2017-08-22 Thread Sönke Ludwig via Digitalmars-d
Am 22.08.2017 um 17:14 schrieb Jonathan Shamir: The DUB package repository is horrible! More often than not, the packages are so poorly written I end up just writing my own implementation. Adding the ability to "rate" packages would go a long way in improving the situation. We are working on

Re: jai-like CTFE string formating

2017-08-13 Thread Sönke Ludwig via Digitalmars-d
Am 13.08.2017 um 20:25 schrieb Stefan Koch: On Sunday, 13 August 2017 at 18:20:15 UTC, Sönke Ludwig wrote: I was a bit shocked by this number and performed a little test with multiple calls to format. Fortunately only the first one takes that long to compile. For 500 different calls I got about

Re: jai-like CTFE string formating

2017-08-13 Thread Sönke Ludwig via Digitalmars-d
Am 12.08.2017 um 13:47 schrieb Stefan Koch: Hi Guys, I've just implemented a subset of the std.format functionality. In the same style that Johnathan Blow uses for JAI. It's about 10x faster then using std.format and uses much less memory :) the follwing code takes over 250 ms to compile : {

Re: Is there a way to use x86 and x86_mscoff with dub simultaneously.

2017-07-25 Thread Sönke Ludwig via Digitalmars-d
Am 25.07.2017 um 20:47 schrieb ciechowoj: As Jacob Carlborg said it's for the dstep. On Tuesday, 25 July 2017 at 15:18:04 UTC, Mike Parker wrote: On Tuesday, 25 July 2017 at 14:17:54 UTC, ciechowoj wrote: What's wrong with the current error message? Doesn't it do that? Nope, this message look

Re: Vibe.d - very low performance

2017-07-14 Thread Sönke Ludwig via Digitalmars-d
Am 14.07.2017 um 11:55 schrieb Marek: On Friday, 7 July 2017 at 19:03:52 UTC, Jacob Carlborg wrote: I think that vibe.d didn't take full advantage of multi core, even when enabling threading support. Ruby, or rather Rails, applications are usually run using multiple processes, which allows to s

Re: Vibe.d - very low performance

2017-07-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.07.2017 um 21:27 schrieb FoxyBrown: On Thursday, 6 July 2017 at 10:57:31 UTC, Sönke Ludwig wrote: Am 06.07.2017 um 09:27 schrieb Marek: https://www.techempower.com/benchmarks/#section=data-r14&hw=ph&test=plaintext C++, Java and Go frameworks have very high performance. Vibe.d is suppos

Re: D for mobile development

2017-07-07 Thread Sönke Ludwig via Digitalmars-d
My impression was that Android is more or less solved these days: https://github.com/joakim-noah/android/releases iOS development seems like it has stalled since the start of this year, which is quite sad. Maybe someone knows the status of this? https://github.com/smolt/ldc/commits/a0201e4c17

Re: Vibe.d - very low performance

2017-07-06 Thread Sönke Ludwig via Digitalmars-d
Am 06.07.2017 um 09:27 schrieb Marek: https://www.techempower.com/benchmarks/#section=data-r14&hw=ph&test=plaintext C++, Java and Go frameworks have very high performance. Vibe.d is supposed to have similar performance, but in fact vibe.d performance is very low. Why? This is a scalability

Re: DCompute development

2017-07-06 Thread Sönke Ludwig via Digitalmars-d
Am 05.07.2017 um 11:41 schrieb Nicholas Wilson: Hi all, Now that I've (finally) finished my honours thesis, I've got time to start working on dcompute again. I'd like to invite anyone interested in helping to develop and/or document (or just interested in general) the drivers for OpenCL/CUDA,

Re: Is there a macro for code snippets introduced with "---"?

2017-07-03 Thread Sönke Ludwig via Digitalmars-d
Am 04.07.2017 um 01:17 schrieb Andrei Alexandrescu: Trying to to this: file.dd This will be highlighted: --- int i; --- This should also be but it isn't: $(MYMACRO int j; ) Macros: MYMACRO = Code begins --- $0 --- Code ends file.dd ends The expansion doesn'

Re: Why do "const inout" and "const inout shared" exist?

2017-07-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.07.2017 um 08:39 schrieb H. S. Teoh via Digitalmars-d: In your example, inout makes no sense at all. It should be written as: const(char)[] foo(bool condition, const(char)[] chars) because if it returns the argument, then it's const(char)[], and if it returns an immutable global,

Re: dlang website design

2017-06-28 Thread Sönke Ludwig via Digitalmars-d
Am 25.06.2017 um 01:12 schrieb Timon Gehr: On 25.06.2017 01:09, Adam D. Ruppe wrote: On Saturday, 24 June 2017 at 23:00:59 UTC, Timon Gehr wrote: Failed to listen on :::80 Listening on port 80 requires root anyway. That's why like my cgi.d uses 8085 - anything over 1024 can be listened by an

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 28.06.2017 um 01:24 schrieb Vladimir Panteleev: On Tuesday, 27 June 2017 at 23:18:18 UTC, Sönke Ludwig wrote: I mean if, by switching to more colors, we rule out few people, but are able to provide a much better value for the (presumed) majority of people with differently colored, but 256-col

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 28.06.2017 um 00:44 schrieb Vladimir Panteleev: On Tuesday, 27 June 2017 at 22:34:39 UTC, Sönke Ludwig wrote: I was specifically trying to steer away from a random propose-and-comment approach, because I think we can do a lot better if we first reduce the size of the design space using object

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 28.06.2017 um 00:19 schrieb Vladimir Panteleev: On Tuesday, 27 June 2017 at 22:12:42 UTC, Sönke Ludwig wrote: [...] (snip - as it boils down to needing a concrete proposal) I was specifically trying to steer away from a random propose-and-comment approach, because I think we can do a lot

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 27.06.2017 um 23:45 schrieb Vladimir Panteleev: On Tuesday, 27 June 2017 at 21:10:37 UTC, Sönke Ludwig wrote: Intended to be more of the latter, especially as a consequence of the readability concern. The typical colorful syntax highlighting that is often used (lets say like the Monokai theme

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 27.06.2017 um 22:35 schrieb Vladimir Panteleev: On Tuesday, 27 June 2017 at 20:19:14 UTC, Sönke Ludwig wrote: I would argue pretty strongly that this should be toned down as much as possible. From the perspective of a personal preference, or an objective analysis? It sounds like the former

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread Sönke Ludwig via Digitalmars-d
Am 27.06.2017 um 16:32 schrieb Vladimir Panteleev: As has been announced, DMD now has colorized syntax highlighting in error messages: http://forum.dlang.org/post/of9oao$230j$1...@digitalmars.com With 2.075's release near, now would be a good time to decide on a nice color palette that looks fi

Re: dlang website design

2017-06-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.06.2017 um 10:41 schrieb Wulfklaue: On Monday, 26 June 2017 at 08:29:54 UTC, Sönke Ludwig wrote: Am 26.06.2017 um 09:19 schrieb Wulfklaue: Can you post the error message? I didn't use the Linux sub system. From what i remember on my home system, the issue was it tried to store the file i

Re: dlang website design

2017-06-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.06.2017 um 09:19 schrieb Wulfklaue: On Sunday, 25 June 2017 at 07:34:57 UTC, Sönke Ludwig wrote: With inline, do you mean the embedded package recipe? Works for me on Windows if you add the colon. Strange, colon was there. Did not work on Windows. Same error as without the colon. This is

Re: dlang website design

2017-06-25 Thread Sönke Ludwig via Digitalmars-d
Am 25.06.2017 um 01:01 schrieb Wulfklaue: On Saturday, 24 June 2017 at 22:16:11 UTC, Wulfklaue wrote: Attempt 1: Attempt 2: Attempt 3: Attempt 4: Attempt 5: = Almost forgot to mention, this was done under Windows ( where the inline does not work ). It works under Linux but that is a d

Re: dlang website design

2017-06-24 Thread Sönke Ludwig via Digitalmars-d
Am 25.06.2017 um 00:18 schrieb Timon Gehr: $ cat main.d /++ dub.sdl: <-- colon missing here (...) What am I doing wrong? I forgot a colon at the end of the first line. With that it *actually* works now.

Re: dlang website design

2017-06-24 Thread Sönke Ludwig via Digitalmars-d
Am 25.06.2017 um 00:16 schrieb Wulfklaue: On Saturday, 24 June 2017 at 20:29:23 UTC, Sönke Ludwig wrote: /++ dub.sdl name "webserver" dependency "vibe-d:http" version="~>0.7.31" +/ module main; import vibe.core.core; import vibe.http.fileserver; import vibe.http.server; void main() {

Re: dlang website design

2017-06-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.06.2017 um 21:22 schrieb Ecstatic Coder: package main import ( "log" "net/http" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, r.URL.Path[1:]); }); log.Fatal(http.ListenAndServe(":80", nil)); } /++ du

Re: Dub

2017-06-23 Thread Sönke Ludwig via Digitalmars-d
Am 23.06.2017 um 12:38 schrieb Russel Winder via Digitalmars-d: 350 issues, 42 pull requests. I have to admit I am shocked. It really shows that I have very little time left for DUB at the moment. Unfortunately the contributor/user ratio of vibe.d is very close to zero and even just one addi

Re: vibe.d on Web Framework Benchmarks

2017-06-09 Thread Sönke Ludwig via Digitalmars-d
Am 07.06.2017 um 11:44 schrieb Ali Çehreli: Is there an issue with the tests? Surprised that vibe.d is not higher in the rating... https://www.techempower.com/benchmarks/#section=data-r14&hw=ph&test=fortune Ali There are thread scaling issues in the tested version. The test setup there use

Re: DUB: Multiprocess?

2017-05-14 Thread Sönke Ludwig via Digitalmars-d
On Sunday, 14 May 2017 at 21:41:58 UTC, Ivan Trombley wrote: On Sunday, 14 May 2017 at 21:01:37 UTC, Basile B. wrote: On Sunday, 14 May 2017 at 20:23:17 UTC, Ivan Trombley wrote: When I build C++ projects using make, I can specify how many processes I want to use (-j). This keeps the processors

Re: dubs: Getting into the Node scripts market

2017-05-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.05.2017 um 12:54 schrieb Andre Pany: Hi, it would be great if we can position D as replacement of Node scripts. With the --single argument of Dub we have almost everything we need in this scenario. But one thing is very odd. If you want to execute the app.d source file with dub you have t

Re: A few notes on the ddox-based documentation

2017-03-23 Thread Sönke Ludwig via Digitalmars-d
Am 05.03.2017 um 02:47 schrieb Andrei Alexandrescu: * For some reason tables have the wrong penalties set up because they hyphenate type names in their left column (e.g. Pro-erCom-pare) which makes all tables look comically bad. https://github.com/dlang/dlang.org/pull/1613

Re: A few notes on the ddox-based documentation

2017-03-23 Thread Sönke Ludwig via Digitalmars-d
Am 05.03.2017 um 02:47 schrieb Andrei Alexandrescu: Was just looking over these: https://dlang.org/library-prerelease/std/experimental/checkedint.html https://dlang.org/phobos-prerelease/std_experimental_checkedint.html http://dpldocs.info/experimental-docs/std.experimental.checkedint.html Ther

Re: CTFE Status 2

2017-03-16 Thread Sönke Ludwig via Digitalmars-d
Am 16.03.2017 um 15:48 schrieb Stefan Koch: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Hi Guys I am proud to say that newCTFE with string-foreach enabled, is now green! As soon as array-length assignment (and therefore expansion) is working again; You can start

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.02.2017 um 14:50 schrieb Moritz Maxeiner: On Friday, 24 February 2017 at 11:22:34 UTC, Sönke Ludwig wrote: [...] Would be good if someone could have a look. Once this is merged, anyone can run this on a server using `./dub-registry --mirror https://code.dlang.org/` and then forward incomi

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear what the root cause is. I will instead set up a r

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.02.2017 um 10:01 schrieb Eugene Wissner: On Friday, 24 February 2017 at 08:50:12 UTC, Sönke Ludwig wrote: Am 24.02.2017 um 01:46 schrieb Sönke Ludwig: Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.02.2017 um 01:46 schrieb Sönke Ludwig: Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear wha

Re: code.dlang.org major outage

2017-02-23 Thread Sönke Ludwig via Digitalmars-d
Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear what the root cause is. I will instead set up a r

code.dlang.org major outage

2017-02-23 Thread Sönke Ludwig via Digitalmars-d
The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear what the root cause is. I will instead set up a replacement server with the latest backup fr

Re: Updating Windows SDK static libraries of the DMD distribution

2017-02-15 Thread Sönke Ludwig via Digitalmars-d
Am 15.02.2017 um 07:43 schrieb Mike Parker: On Tuesday, 14 February 2017 at 20:14:32 UTC, Jonathan M Davis wrote: I would point out that we technically don't support Windows XP. If you use D with it, and it works for you, great, but you're on your own. Which is why the OMF libs need to be up

Updating Windows SDK static libraries of the DMD distribution

2017-02-14 Thread Sönke Ludwig via Digitalmars-d
It's a quite frequent issue to get unresolved externals on Windows, because the lib files of the Windows platform SDK are still stuck at Windows XP age. It would make a lot of sense to update those to the latest Windows 10 SDK, but I couldn't find a place where those are present physically, exc

Re: Best error msg ever

2017-02-10 Thread Sönke Ludwig via Digitalmars-d
Am 09.02.2017 um 22:44 schrieb Daniel Kozak via Digitalmars-d: Dne 9.2.2017 v 22:28 Sönke Ludwig via Digitalmars-d napsal(a): Am 09.02.2017 um 22:20 schrieb Daniel Kozak: source/app.d(51,37): Error: function dub.internal.utils.jsonFromFile (Path file, bool silent_fail = false) is not callable

Re: Best error msg ever

2017-02-09 Thread Sönke Ludwig via Digitalmars-d
Am 09.02.2017 um 22:20 schrieb Daniel Kozak: source/app.d(51,37): Error: function dub.internal.utils.jsonFromFile (Path file, bool silent_fail = false) is not callable using argument types (Path, bool) WTF? Must be caused by Path meaning two different type definitions. The most likely cause i

Re: code.dlang.org internal server error

2017-02-09 Thread Sönke Ludwig via Digitalmars-d
Am 09.02.2017 um 03:34 schrieb puming: On Wednesday, 8 February 2017 at 14:11:48 UTC, Sönke Ludwig wrote: Am 08.02.2017 um 14:29 schrieb singingbush: [...] Yes, we need to prioritize this somehow. Having a fallback mirror, coupled with dependency upgrade checks that run asynchronously would g

Re: code.dlang.org internal server error

2017-02-08 Thread Sönke Ludwig via Digitalmars-d
Am 08.02.2017 um 14:29 schrieb singingbush: On Wednesday, 8 February 2017 at 12:54:00 UTC, John Colvin wrote: On Wednesday, 8 February 2017 at 05:49:55 UTC, Ali Çehreli wrote: code.dlang.org gives the following error: 500 - Internal Server Error Internal Server Error Ali Seeing as code.dla

Re: [OT] Screenshot of D program in the latest issue of Ct magazine

2016-12-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.12.2016 um 11:35 schrieb Nemanja Boric: I thought I see familiar name :-) http://imgur.com/a/TqGdj Nice! Congrats to Vladimir for getting featured there!

Re: dub to create multiple executables from one source directory?

2016-12-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.12.2016 um 11:24 schrieb biocyberman: Hi I am learning D and dub, and playing with this repository: https://github.com/biod/BioD The whole repo itself and be compiled with `dub build` command. How write dub.json under `examples` directory and compile every d source file in there? The clea

GitHub now supports editing the target branch for PR

2016-11-12 Thread Sönke Ludwig via Digitalmars-d
Not sure if this is common knowledge already, but it was new for me. If you click the edit button at the top of a pull request on GitHub, you now get a drop down to change the base branch to which the request will be pulled. Really handy for PRs that should be targeted at a stable branch, but i

Re: Speed up compilation of CTFE-heavy programs with this One Weird Trick!

2016-11-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.11.2016 um 04:43 schrieb Vladimir Panteleev: For each function that is only called during compilation (e.g. for code generation), at the top add: if (!__ctfe) return; That's it. For one project, this brought compilation time (with optimizations) from over an hour down to secon

Re: Can we get unitests to not run with program start ?

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 19:58 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 17:47:51 UTC, Sönke Ludwig wrote: I misremembered this as getting called once per module, which would have been insufficient. Yeah, I don't love the name either. But you should be able to set that in a static modul

Re: Can we get unitests to not run with program start ?

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 18:32 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 16:08:23 UTC, Sönke Ludwig wrote: How would a custom unit test runner such as "unit-threaded" or "tested" work in that case? http://dpldocs.info/experimental-docs/core.runtime.Runtime.moduleUnitTester.1.html http:

Re: Can we get unitests to not run with program start ?

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 15:25 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). It should just be implied by -unittest! The only cast I'd be worried about is an explicit version(unittest) main() {}.

Re: I can't use nodejs anymore. Please vibe.d, don't follow that path

2016-10-21 Thread Sönke Ludwig via Digitalmars-d
Am 20.10.2016 um 22:25 schrieb Karabuta: This is actually a nodejs project's dependencies for a small code-base. (...) Dependencies upon dependencies. Each package comes along with its own dependencies. I give up nodejs, you win. Now I am investing my time in Vibe.d which I hope ... I persona

Re: Add "Go To Source" for Docs?

2016-10-08 Thread Sönke Ludwig via Digitalmars-d
Am 08.10.2016 um 23:49 schrieb Jacob: Well a lot of the times I'm browsing the phobos library documentation I want to go to the source code, but there's no easy way to go there directly from the docs. Some modules have a link to the source file but I think that's done manually as many of them don

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Sönke Ludwig via Digitalmars-d
Am 05.10.2016 um 05:04 schrieb ketmar: On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be

Re: dub: Detected dependency cycle

2016-09-29 Thread Sönke Ludwig via Digitalmars-d
Am 29.09.2016 um 12:31 schrieb unDEFER: Forgot to say: dub normally builds my bdb2d from it's directory. It doesn't detects any dependency cycle on targets "bdb2d", "bdb2d:reader", "bdb2d:writer". The problem appears to be that both packages are called "bdb2d", so they are considered as the sa

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-16 Thread Sönke Ludwig via Digitalmars-d
There is indeed a separate macro engine [1] contained in the ddox repo. Neither DDMD, nor libddoc existed at the time and DMD's implementation was written in, from a D POV, very alien C style, with no suitable structure to extract high level information, so instead of porting it, I instead trie

Re: vibed.org is down

2016-09-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.09.2016 um 09:48 schrieb Daniel Kozak via Digitalmars-d: Dne 2.9.2016 v 09:39 wobbles via Digitalmars-d napsal(a): On Friday, 2 September 2016 at 07:23:51 UTC, Mike Parker wrote: On Friday, 2 September 2016 at 07:02:20 UTC, finalpatch wrote: Probably not good for publicity. meh. It'

Re: Docs: Links to source code

2016-07-27 Thread Sönke Ludwig via Digitalmars-d
Am 27.07.2016 um 11:43 schrieb Chris: For one reason or another I sometimes find myself checking out the implementation of functions in Phobos. For this I have to go to the module file on Github, e.g. this one [1], and look for the function (that often has more than one implementation). Wouldn't

Re: An IO Streams Library

2016-07-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.07.2016 um 16:50 schrieb Johannes Pfau: Am Mon, 25 Jul 2016 13:10:42 + Hello, I don't know if it is good practice or not, but sometimes it make life easier if you can put part of the data back into the input stream. Writing data back to a stream is quite uncommon. The standard way

Re: Atila Neves: "C IS NOT MAGICALLY FAST, PART 2"

2016-07-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.07.2016 um 12:07 schrieb Atila Neves: On Tuesday, 19 July 2016 at 02:54:37 UTC, Saurabh Das wrote: Posted on Atila's blog yesterday: https://atilanevesoncode.wordpress.com/2016/07/18/c-is-not-magically-fast-part-2/ So, about D vs C++ there... last night for reasons I forget I tried re

Re: UDAs on enum members

2016-07-16 Thread Sönke Ludwig via Digitalmars-d
Am 16.07.2016 um 20:57 schrieb ZombineDev: On Thursday, 14 July 2016 at 07:05:08 UTC, Jacob Carlborg wrote: On 2016-07-13 13:57, Tomer Filiba wrote: It would be really nice if I could put UDAs on enum members as well, e.g., I think it should be supported, if nothing else for "turtles all the

Re: Examples of dub use needed

2016-06-21 Thread Sönke Ludwig via Digitalmars-d
Am 21.06.2016 um 06:42 schrieb Guido: Dub doesn't really work like other package managers. When I load a package: dub fetch scriptlike It stores it someplace and doesn't say where. You have to run 'dub list' to figure out where. That's is very different than other packages. It deserves a bigger

Re: Fiber implementation questions

2016-06-20 Thread Sönke Ludwig via Digitalmars-d
Am 20.06.2016 um 17:43 schrieb Ilya Yaroshenko: Hello, I am thinking about faster event loop that vibe.d has (does not matter what driver are used). I want to implement (at least DIP) advanced Fiber yielding loop that can allow to eliminate context switching for all kind of event waiters. I'm

Re: Fixed date to move to ddox for Phobos documentation

2016-06-04 Thread Sönke Ludwig via Digitalmars-d
Am 04.06.2016 um 19:01 schrieb Andrei Alexandrescu: I recall there were a few issues with ddox rendering up until relatively recently, have all been fixed? I think they have. Vladimir has reported a bunch of them over time and all of those have been fixed. I don't see these options mutuall

Re: Fixed date to move to ddox for Phobos documentation

2016-06-04 Thread Sönke Ludwig via Digitalmars-d
Am 04.06.2016 um 19:18 schrieb ag0aep6g: On 06/04/2016 07:01 PM, Andrei Alexandrescu wrote: * The cheat sheet made sense for the single-page docs but not for the new ones. Consider e.g. http://dlang.org/library/std/algorithm/comparison.html - it's two tables with the same row headings one after

Re: Broken links continue to exist on major pages on dlang.org

2016-06-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.06.2016 um 14:16 schrieb Andrei Alexandrescu: On 6/3/16 7:59 AM, Sönke Ludwig wrote: Wait a minute... MYREF = $(D $1) in std-ddox-override.ddoc should actually do the job just fine. Those links should have actually worked before until I removed full-text automatic cross-references from DDO

Re: Broken links continue to exist on major pages on dlang.org

2016-06-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.06.2016 um 13:47 schrieb Sönke Ludwig: Am 03.06.2016 um 11:49 schrieb ag0aep6g: On 06/02/2016 09:09 PM, Sönke Ludwig wrote: Which are the remaining issues that you know of? Next up: MYREF. Example page with missing links: http://dlang.org/library/std/string.html In std.ddoc, MYREF is

Re: Broken links continue to exist on major pages on dlang.org

2016-06-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.06.2016 um 11:49 schrieb ag0aep6g: On 06/02/2016 09:09 PM, Sönke Ludwig wrote: Which are the remaining issues that you know of? Next up: MYREF. Example page with missing links: http://dlang.org/library/std/string.html In std.ddoc, MYREF is defined as: MYREF = $(TT $1)$(NBSP) In

Re: Broken links continue to exist on major pages on dlang.org

2016-06-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.06.2016 um 21:29 schrieb ag0aep6g: On 06/02/2016 09:09 PM, Sönke Ludwig wrote: Which are the remaining issues that you know of? I've searched bugzilla earlier today and couldn't find anything apart from broken "Improve this page" links for package.d modules. The big one I know of is (M)R

Re: Broken links continue to exist on major pages on dlang.org

2016-06-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.06.2016 um 21:27 schrieb Adam D. Ruppe: On Thursday, 2 June 2016 at 19:06:42 UTC, Sönke Ludwig wrote: But I'd hate to implement some kind of special case here instead of simply fixing the Phobos sources to use macros that carry proper semantical meaning. That's actually exactly what I di

Re: Broken links continue to exist on major pages on dlang.org

2016-06-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.06.2016 um 20:44 schrieb ag0aep6g: /library/ pages are DDOX pages. That is the "NEW Library Reference Preview". It's not ready for prime time. It should be hidden from Google until it's ready. Here's a quick PR to do that: https://github.com/dlang/dlang.org/pull/1320 I guess no one really

Re: Broken links continue to exist on major pages on dlang.org

2016-06-02 Thread Sönke Ludwig via Digitalmars-d
Am 02.06.2016 um 20:44 schrieb Adam D. Ruppe: On Thursday, 2 June 2016 at 18:24:30 UTC, Andrei Alexandrescu wrote: Within that page, the top table has links to various constituents such as std.algorithm.searching, std.algorithm.comparison etc. None of those links work. I fixed it months ago on

Re: SDLang-D on Github

2016-05-17 Thread Sönke Ludwig via Digitalmars-d
Am 17.05.2016 um 11:45 schrieb Chris: @Nick, fyi, when I compile the library with dmd v2.071.0, I get the following warning: sdlang-d 0.9.5: building configuration "library"... src/sdlang/lexer.d(13,8): Deprecation: module std.stream is deprecated - It will be removed from Phobos in October 2016

Re: Is synchronized(...){...} doomed to never be nothrow/@nogc?

2016-05-10 Thread Sönke Ludwig via Digitalmars-d
Am 11.05.2016 um 03:08 schrieb Walter Bright: Why does vibe.d throw? Also, any throwing code can be converted to nothrow with: try { ...throwing code... } catch (Exception e) { ... } There are two kinds of fiber-aware mutexes in vibe.d, one that doesn't thro

Re: [DUB] Does anyone have some time to look at PR #785?

2016-04-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.04.2016 um 18:50 schrieb Jack Stouffer: On Tuesday, 19 April 2016 at 06:31:13 UTC, Sönke Ludwig wrote: It consists of mostly just documentation additions, deprecations/name changes and moved code, so the review can focus on the high level changes and should be well manageable despite the s

Re: mutable array of immutable objects

2016-04-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.04.2016 um 12:41 schrieb Jeff Thompson: I want to create a mutable array of immutable objects, but the code below gives the error shown below. It seems that "new immutable(C)[1]" makes the entire array immutable, but it seems I should be able to change the elements of an array of pointers t

Re: [DUB] Does anyone have some time to look at PR #785?

2016-04-19 Thread Sönke Ludwig via Digitalmars-d
Am 19.04.2016 um 11:44 schrieb Marc Schütz: On Tuesday, 19 April 2016 at 06:31:13 UTC, Sönke Ludwig wrote: This is a rather important pull request and the last big milestone for the 1.0.0 release. I'd like to get the next version out shortly, but this PR is sitting idle for over a month now and

[DUB] Does anyone have some time to look at PR #785?

2016-04-18 Thread Sönke Ludwig via Digitalmars-d
This is a rather important pull request and the last big milestone for the 1.0.0 release. I'd like to get the next version out shortly, but this PR is sitting idle for over a month now and partially blocks development. It consists of mostly just documentation additions, deprecations/name chan

Re: How does one get to the root of a package in ddox?

2016-04-15 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2016 um 07:38 schrieb Sönke Ludwig: Am 15.04.2016 um 22:38 schrieb Andrei Alexandrescu: Say you're on https://dlang.org/library/std/range/primitives.html and try to find your way to https://dlang.org/library/std/range.html. Clicking on "range" in the navigation panel doesn't help - it

Re: How does one get to the root of a package in ddox?

2016-04-15 Thread Sönke Ludwig via Digitalmars-d
Am 15.04.2016 um 22:38 schrieb Andrei Alexandrescu: Say you're on https://dlang.org/library/std/range/primitives.html and try to find your way to https://dlang.org/library/std/range.html. Clicking on "range" in the navigation panel doesn't help - it just collapses/expands the tree branch. What'

  1   2   3   4   5   >