Re: Vibe-d issue with timer in separate thread on debug builds

2018-01-16 Thread Sönke Ludwig via Digitalmars-d-learn
Am 10.01.2018 um 15:40 schrieb Andres Clari: Hi, I have an app that uses vibe tasks, fibers and timers extensively, and I found an issue only for debug builds, when canceling a timer. However the code in question works just fine in the release build. But having this here makes testing certain

Re: need help with vibe.d receive()

2018-01-16 Thread Sönke Ludwig via Digitalmars-d-learn
Am 10.01.2018 um 15:39 schrieb crimaniak: Hi! I make multi-task event bus, but there is a problem with the task stops. Please see end of file https://github.com/crimaniak/d-vision/blob/master/src/vision/eventbus.d Expected behavior: After sending the StopEvent message in line 244 it is must

Re: vibed services stop response after several days of work

2017-09-05 Thread Sönke Ludwig via Digitalmars-d-learn
Am 01.09.2017 um 12:31 schrieb Suliman: On Friday, 1 September 2017 at 08:01:24 UTC, Suliman wrote: I got same problem on Windows Server 2016 and on Linux Debian 8.5. I have few very simple backend based on vibed 0.8.1, compiler dmd 2.075.1. nginx servise is do port forwarding. Nothing more

Re: DUB and LTO?

2017-09-05 Thread Sönke Ludwig via Digitalmars-d-learn
Am 24.01.2017 um 17:02 schrieb Las: How do I enable LTO in DUB in a sane way? I could add it to dflags, but I only want it on release builds. You can put a "buildTypes" section in your package recipe and override default dflags or lflags there just for the "release" build type. See

Re: Vibe.d diet template reuse

2016-11-14 Thread Sönke Ludwig via Digitalmars-d-learn
Am 03.11.2016 um 06:31 schrieb Jot: I would like to create some generic diet templates for different html functionality. Some code in the template will need to be setup/changed for it to function properly. How can I write code that allows for one to express generic statements in the template

Re: DUB, Platform specifications and dependencies

2015-11-30 Thread Sönke Ludwig via Digitalmars-d-learn
Am 24.11.2015 um 19:51 schrieb Zardoz: Actually I'm trying to setup dub to not grab a dependency on Windows ( https://github.com/Zardoz89/DEDCPU-16/blob/master/dub.sdl ) : name "dedcpu" authors "Luis Panadero Guardeño" targetType "none" license "BSD 3-clause" description "DCPU-16 tools"

Re: vibe.d-example illustrating Dynamic Textual Web-Interface

2015-11-30 Thread Sönke Ludwig via Digitalmars-d-learn
Am 30.11.2015 um 11:08 schrieb Nordlöw: Can somebody please show a enlightening example of, so called, "revamp of the REST interface generator" added to release 0.7.26 at: http://vibed.org/blog/posts/vibe-release-0.7.26 I want to use vibe.d to add a modern dynamic web-interface to my

Re: goroutines vs vibe.d tasks

2015-07-10 Thread Sönke Ludwig via Digitalmars-d-learn
Am 01.07.2015 um 20:09 schrieb Mathias Lang: On Tuesday, 30 June 2015 at 15:18:36 UTC, Jack Applegame wrote: Just creating a bunch (10k) of sleeping (for 100 msecs) goroutines/tasks. Compilers go: go version go1.4.2 linux/amd64 vibe.d: DMD64 D Compiler v2.067.1 linux/amd64, vibe.d 0.7.23

Re: goroutines vs vibe.d tasks

2015-07-10 Thread Sönke Ludwig via Digitalmars-d-learn
Am 01.07.2015 um 09:55 schrieb Daniel Kozák: On Wed, 01 Jul 2015 03:28:01 + rsw0x anonym...@anonymous.com wrote: how do they compare if you replace the sleep with yield? Same problem still extreamly slow Hm, this is strange. I'll have to find some time to profile this. More or less

Re: About @ and UDA

2015-04-17 Thread Sönke Ludwig via Digitalmars-d-learn
Am 15.04.2015 um 18:59 schrieb ketmar: On Wed, 15 Apr 2015 08:53:05 +, Andrea Fontana wrote: My 2 cents. If I remember correctly, @ prefix in @safe, @trusted, @system, etc was added just to avoid keywords pollution, right? Now UDA uses the same prefix: if some new

Re: Vibe.d json to csv

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 05.04.2015 um 06:24 schrieb Sebastiaan Koppe: (...) I can probably use zip to get the quotes around the names, to avoid concatenation. But it works fine the way it is. The problem is, the following doesn't: ``` void csvRow(const Json jsonObject) { return

Re: using vibe.d to parse json

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 26.03.2015 um 02:38 schrieb Laeeth Isharc: On Thursday, 26 March 2015 at 01:04:06 UTC, Jakob Ovrum wrote: On Thursday, 26 March 2015 at 00:41:50 UTC, Laeeth Isharc wrote: Yeah, it is not very intuitive. But it works. Thanks. Next question - how can I correctly deal with inconsiderately

Re: vibed - blocking file I/O via library?

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 06.04.2015 um 17:45 schrieb Laeeth Isharc: So a very basic question about using vibed for a REST service. I am serving data using REST to another application. For the time being it is internal so it is not a disaster if the fiber blocks. But I wanted to understand what I should be doing -

Re: using vibe.d to parse json

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 24.03.2015 um 06:36 schrieb Laeeth Isharc: On Tuesday, 24 March 2015 at 04:53:39 UTC, Laeeth Isharc wrote: Hi. struct RawGoogleResults { string version_; string status; string sig; string[string][][string] table; } enum json =

Re: Temple templates with vibe.d support and first D experiences

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 20.03.2015 um 10:42 schrieb István Zólyomi: Still does not compile, thanks for the idea though. I think it's better to avoid Temple, compilation of Diet templates seems to be better anyway. E.g. temple seems to accept % var.nonexistingname % while diet gives a compile error for

Re: feature request for dlang.org library preview

2015-04-07 Thread Sönke Ludwig via Digitalmars-d-learn
Am 26.03.2015 um 21:36 schrieb Steven Schveighoffer: So I just noticed, when I click on source code button for a function in dlang.org library preview, it brings me to the source code as of that release, but to the file itself (on github). I'd like it to go to the specific line where that

Re: DUB Errors

2014-10-09 Thread Sönke Ludwig via Digitalmars-d-learn
Am 05.10.2014 15:50, schrieb Nordlöw: On Sunday, 5 October 2014 at 06:39:00 UTC, Sönke Ludwig wrote: Judging by the log output it should be fixed (on vibe.d's side) with [1] by using a version based dependency to the OpenSSL bindings with an old version*. I've tagged a new RC-2 version now

Re: DUB Errors

2014-10-05 Thread Sönke Ludwig via Digitalmars-d-learn
Am 05.10.2014 02:11, schrieb David Nadlinger: On Friday, 3 October 2014 at 23:00:53 UTC, Brian Hechinger wrote: With my old set of packages I had no problems. I just now deleted ~/.dub and now I too get this error. Some issue with the openssl module, yes, but what? This is a bit of an issue. :)

Re: DUB git master hang

2014-07-16 Thread Sönke Ludwig via Digitalmars-d-learn
Am 15.07.2014 00:29, schrieb Nordlöw: On Monday, 14 July 2014 at 22:27:48 UTC, Nordlöw wrote: and then it hangs with same behaviour. It finally got through...hmm maybe I'm on a slow 3g-network currently... Although the log indicates that it hung while extracting the downloaded zip file.