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 be

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 i

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 https://c

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 bu

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 knowledg

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" subPack

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" 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 all that yield() does

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 C

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 keywords/properties/att

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 #{nonexisti

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 ch

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 = "{"version":"0.6","status":"ok","sig":"717451517

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 func

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 values(jsonObject.get!(Json[strin

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 - t

Re: DUB Errors

2014-10-08 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

Re: DUB Errors

2014-10-04 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. I

Re: dmd v2.065 compatibility

2014-03-20 Thread Sönke Ludwig
Am 14.03.2014 11:43, schrieb Chris: [1] Yesterday I tried to build a project with dub. dub had downloaded and installed dmd v2.065. The project and accompanying library had been built with dmd v2.064. dub said that the project was up to date and didn't need compiling. However, I got a long long e

Re: DUB Error

2014-02-26 Thread Sönke Ludwig
Am 26.02.2014 08:00, schrieb Steve Teale: On Wednesday, 26 February 2014 at 03:33:38 UTC, Jesse Phillips wrote: On Tuesday, 25 February 2014 at 14:32:42 UTC, Steve Teale wrote: What does the somewhat cryptic DUB error Trying to append absolute path. mean. By a process of elimination, the off

Re: dub and ddox

2014-01-10 Thread Sönke Ludwig
Am 08.01.2014 16:34, schrieb Kelet: On Wednesday, 8 January 2014 at 09:47:03 UTC, Sönke Ludwig wrote: In that particular case (dub build --build=ddox), you can just have your own versions of the style files in your docs/styles/ folder (copy and modify from ddox/public/styles). That won't

Re: dub and ddox

2014-01-08 Thread Sönke Ludwig
Am 07.01.2014 21:15, schrieb Kelet: Also, I cannot find any documentation on ddox arguments (ddoxFilterArgs). Is this currently not available? I had to look through the source code and vibe.d to figure them out. Regards, Kelet Running just "ddox filter" or "dub run ddox -- filter" will print t

Re: dub and ddox

2014-01-08 Thread Sönke Ludwig
Am 07.01.2014 21:14, schrieb Kelet: Hello, I'm working on a library, and I'm trying to write the documentation with Sönke's ddox software[1]. As I understand, it works with the Ddoc documentation format[2]. The first problem I came across is that documented unit tests weren't being converted in

Re: A little DUB question

2014-01-03 Thread Sönke Ludwig
Am 31.12.2013 11:35, schrieb thedeemon: I've missed all the DUB discussions here and couldn't find the answer to my question in the docs, so here it is, very simple: I've got an app with one dependency stated in package.json as "dependencies": { "pegged": "~master" } When I bui

Re: Thread termination conditions in dmd 2.064.2

2013-11-07 Thread Sönke Ludwig
Am 07.11.2013 11:28, schrieb Atila Neves: Looking like a bug I think. Changed the code to this and it crashes again: import std.concurrency; private void threadWriter() { for(bool running = true; running;) { receive( (Tid i) { }, (OwnerTermin

Re: How to iterate through all modules for use with the new getUnitTests trait?

2013-11-07 Thread Sönke Ludwig
Am 07.11.2013 09:37, schrieb Jacob Carlborg: On 2013-11-06 22:26, Dicebot wrote: You need only symbol name of your root compiled module which imports all others. All imported ones will be available in its member list, exactly what this snippet shows. That is the problem. One needs to import a

Re: fast floor

2013-10-11 Thread Sönke Ludwig
Am 11.10.2013 00:27, schrieb Spacen Jasset: Hello, I am after a fast floor function; In fact a fast truncation and conversion to integer. I see that std.math takes a real, and that std.c.math takes a double. Is there a quicker function, and what might cast(int)1.5f do? Regards, Spacen. For

Re: Using ReadWriteMutex with synchronized{} ?

2013-10-07 Thread Sönke Ludwig
Am 06.10.2013 23:25, schrieb E.S. Quinn: I need to share an associative array between two threads, and to that extent I'd like to make the whole thing synchronized. And I'd like to use the built-in synchronized{} blocks, and I'd also like to use the ReadWriteMutex from core.sync.rwmutex, since it

Re: Pitfalls of delegates inside ranges

2013-09-03 Thread Sönke Ludwig
Am 02.09.2013 15:39, schrieb Artur Skawina: this(this) { jump.ptr = &this; } Just a warning: This can still easily crash due to D's struct move semantics. Structs are moved around sometimes without any postblit constructor or destructor being called, so fixing self-references like thi

Re: Regarding std.array.Appender

2012-03-01 Thread Sönke Ludwig
Am 01.03.2012 03:40, schrieb Jonathan M Davis: On Wednesday, February 29, 2012 21:23:54 bearophile wrote: Jonathan M Davis: put is a function on output ranges, and Appender is an output range. Also, given that it doesn't define ~ (and it wouldn't really make sense for it to), it would be very