SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread ikod via Digitalmars-d
Hello, On linux, in the code below, receive() returns -1 with errno=EINTR if syscall is interrupted by GC (so you can see several "insterrupted") when GC enabled, and prints nothing (this is desired and expected behavior) when GC disabled. Looks like the reason of the problem is call

Re: SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread ikod via Digitalmars-d
On Thursday, 26 May 2016 at 19:40:35 UTC, Claude wrote: On Thursday, 26 May 2016 at 18:44:22 UTC, ikod wrote: Is there any recommended workaround for this problem? Is this a bug? I don't think it's a bug. Even without a GC, on GNU/Linux OS, I would enclose the receive function (or any

dub and debian packaging

2016-01-25 Thread ikod via Digitalmars-d
Hello I'd like to hear any opinions and best practices on coexistence of dub and debian .deb packaging and deployment. Here is my problem: I wrote some small library that use Pegged to parse and process user requests. This library can be used in shebang-scripts on servers or can be

Re: dub and debian packaging

2016-01-26 Thread ikod via Digitalmars-d
On Tuesday, 26 January 2016 at 11:06:40 UTC, Bastiaan Veelo wrote: On Monday, 25 January 2016 at 23:46:09 UTC, Paul O'Neil wrote: On 01/25/2016 12:08 PM, ikod wrote: [...] I think there's a longer discussion one one of the dub issues that explains why this doesn't exist yet. The blocker is

Re: The end of curl (in phobos)

2016-05-08 Thread ikod via Digitalmars-d
On Saturday, 7 May 2016 at 21:03:36 UTC, yawniek wrote: On Saturday, 7 May 2016 at 09:46:36 UTC, ikod wrote: What do you mean under re-licensing? you added GPL to requests, this is incompatible with phobos and your code can not be included. could it be changed to boost licence? Hello,

Re: The end of curl (in phobos)

2016-05-07 Thread ikod via Digitalmars-d
On Friday, 6 May 2016 at 10:27:54 UTC, yawniek wrote: On Friday, 6 May 2016 at 09:21:43 UTC, Andrei Alexandrescu wrote: On 5/6/16 10:32 AM, Robert burner Schadek wrote: As discussed yesterday at DConf, curl in phobos must go. The plan is as follows. 1. undocument everything curl related in

Re: An IO Streams Library

2016-07-25 Thread ikod via Digitalmars-d
On Sunday, 7 February 2016 at 00:48:54 UTC, Jason White wrote: I see the subject of IO streams brought up here occasionally. The general consensus seems to be that we need something better than what Phobos provides. I wrote a library "io" that can work as a replacement for std.stdio,

Re: An IO Streams Library

2016-07-27 Thread ikod via Digitalmars-d
On Wednesday, 27 July 2016 at 06:18:07 UTC, Sönke Ludwig wrote: 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.

Re: Self Optimizing Code

2016-08-03 Thread ikod via Digitalmars-d
On Tuesday, 2 August 2016 at 22:06:38 UTC, Mark "J" Twain wrote: Another new D feature here! Self-Optimizing Code is a fantastic research area that can lead to greater improvements in code, make them more responsive to individual applications, and requires very little effort. Looks like

Re: Self Optimizing Code

2016-08-03 Thread ikod via Digitalmars-d
On Wednesday, 3 August 2016 at 19:25:08 UTC, Mark "J" Twain wrote: On Wednesday, 3 August 2016 at 18:18:51 UTC, ikod wrote: On Tuesday, 2 August 2016 at 22:06:38 UTC, Mark "J" Twain wrote: Another new D feature here! Self-Optimizing Code is a fantastic research area that can lead to greater

Re: Go's march to low-latency GC

2016-07-08 Thread ikod via Digitalmars-d
On Friday, 8 July 2016 at 20:35:05 UTC, Martin Nowak wrote: On 07/08/2016 07:45 AM, ikod wrote: Correct me if I'm wrong, but in D fibers allocate stack statically, so we have to preallocate large stacks. If yes - can we allocate stack frames on demand from some non-GC area? Fiber stacks

Re: Go's march to low-latency GC

2016-07-09 Thread ikod via Digitalmars-d
On Saturday, 9 July 2016 at 13:48:41 UTC, Dicebot wrote: On 07/09/2016 02:48 AM, ikod wrote: If I made a wrong guess and ask for too small stack then programm may crash. If I ask for too large stack then I probably waste resources. Nope, this is exactly the point. You can demand crazy 10 MB

Re: Go's march to low-latency GC

2016-07-07 Thread ikod via Digitalmars-d
On Thursday, 7 July 2016 at 22:36:29 UTC, Enamex wrote: https://news.ycombinator.com/item?id=12042198 ^ reposting a link in the right place. While a program using 10,000 OS threads might perform poorly, that number of goroutines is nothing unusual. One difference is that a goroutine starts

Re: Why D is not popular enough?

2016-08-20 Thread ikod via Digitalmars-d
On Saturday, 20 August 2016 at 06:08:21 UTC, Bill Hicks wrote: F*CK, here we go again. Why do you spend your precious time posting these messages? Are you real Batman?

Re: DIP 1002 (TryElseExpression) added to the queue

2016-09-29 Thread ikod via Digitalmars-d
On Wednesday, 28 September 2016 at 20:18:06 UTC, pineapple wrote: On Wednesday, 28 September 2016 at 17:56:13 UTC, Steven Schveighoffer wrote: The more I think about this submission, I feel like the benefits are quite slim. This is not and was not intended to be a glorious, incredible

Re: DIP 1002 (TryElseExpression) added to the queue

2016-09-28 Thread ikod via Digitalmars-d
On Tuesday, 27 September 2016 at 09:30:10 UTC, Dicebot wrote: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1002.md PR: https://github.com/dlang/DIPs/pull/43 Abstract: In Python, the try/catch/finally syntax is augmented with an additional clause, termed else. It is a fantastically

Re: What are you planning for 2016?

2017-01-02 Thread ikod via Digitalmars-d
On Tuesday, 5 January 2016 at 12:27:12 UTC, Ola Fosheim Grøstad wrote: I wonder what kind of programming people plan or _hope_ to use D for in 2016? Do you have plans to: 1. migrate legacy C++ code bases to D when C++ bindings are final? 2. integrate with numerical solutions like

Re: What are you planning for 2016?

2017-01-02 Thread ikod via Digitalmars-d
On Monday, 2 January 2017 at 17:09:41 UTC, Chris Wright wrote: On Mon, 02 Jan 2017 11:51:59 +, ikod wrote: Correct me if I'm wrong but dub can't deploy system-wide. dub fetch --cache=system $PKG This lets you run `dub run $PKG` as any user. thanks for the info!

Re: D future ...

2016-12-21 Thread ikod via Digitalmars-d
On Wednesday, 21 December 2016 at 09:35:31 UTC, Andrey wrote: On Wednesday, 21 December 2016 at 07:47:08 UTC, O-N-S wrote: On Monday, 19 December 2016 at 23:02:59 UTC, Benjiro wrote: I split this from the "Re: A betterC modular standard library?" topic because my response is will be too much

Re: So no one is using Amazon S3 with D, why?

2017-03-14 Thread ikod via Digitalmars-d
On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? [1] https://trends.builtwith.com/cdn/Amazon-S3 At least one package:

ssl 1.0.0 and 1.1.0 detection

2017-07-09 Thread ikod via Digitalmars-d
hello Does anybody have experience with detection and usage of new ssl library from D code? Thanks!

Re: AWS SDK

2017-10-18 Thread ikod via Digitalmars-d
Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: On Wednesday, 18 October 2017 at 19:28:30 UTC, aberba wrote: The implementation is straight forward. For every api definition (e.g. https://github.com/aws/aws-sdk-js/blob/master/apis/iam-2010-05-08.normal.json) create a

Re: AWS SDK

2017-10-18 Thread ikod via Digitalmars-d
On Wednesday, 18 October 2017 at 20:51:48 UTC, Stephan Dilly wrote: On 2017-10-18 20:19:20 +, ikod said: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: [...] Is there any docs from Amazon on this, beside json's itself? I will be very grateful for link. Are

Re: Looking for a job in USA

2017-11-20 Thread ikod via Digitalmars-d
On Saturday, 18 November 2017 at 12:39:18 UTC, jmh530 wrote: On Saturday, 18 November 2017 at 01:31:09 UTC, Indigo wrote: What is your reasoning for coming to the US? You might want to rethink this as America is collapsing. America is collapsing? This is ever lasting story: "decaying

unicode combinig mark/ std.uni question

2017-12-05 Thread ikod via Digitalmars-d
Hello, I have to create very basic IDNA (Internationalized Domain Names in Applications) library. There are two parts in IDNA - user input checks and punycode encoding/decoding. Punycode part already completed, and now I have to add some checks but I'm weak in unicode and cant find proper

Re: AWS SDK

2017-10-20 Thread ikod via Digitalmars-d
On Wednesday, 18 October 2017 at 23:02:27 UTC, Stephan Dilly wrote: On 2017-10-18 22:25:23 +, ikod said: On Wednesday, 18 October 2017 at 20:51:48 UTC, Stephan Dilly wrote: On 2017-10-18 20:19:20 +, ikod said: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote:

Re: dlang-requests 0.1.7 released

2016-06-12 Thread ikod via Digitalmars-d-announce
On Sunday, 12 June 2016 at 22:37:34 UTC, Alexander Milushev wrote: On Saturday, 11 June 2016 at 23:03:52 UTC, ikod wrote: Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. It provide interfaces for HTTP(S) and FTP

dlang-requests 0.1.7 released

2016-06-11 Thread ikod via Digitalmars-d-announce
Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. It provide interfaces for HTTP(S) and FTP requests. You can tune request details, but for most cases you will need single and simple API call. Latest release

Re: dlang-requests 0.1.7 released

2016-06-13 Thread ikod via Digitalmars-d-announce
On Monday, 13 June 2016 at 08:29:28 UTC, Alexander Milushev wrote: On Monday, 13 June 2016 at 00:09:12 UTC, ikod wrote: On Sunday, 12 June 2016 at 22:37:34 UTC, Alexander Milushev wrote: On Saturday, 11 June 2016 at 23:03:52 UTC, ikod wrote: [...] Hi, this is great project, but what about

Re: dlang-requests 0.1.7 released

2016-06-22 Thread ikod via Digitalmars-d-announce
On Wednesday, 22 June 2016 at 02:04:25 UTC, Zekereth wrote: On Saturday, 11 June 2016 at 23:03:52 UTC, ikod wrote: Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. I have a couple of questions. If a url can't be

Re: dlang-requests 0.1.7 released

2016-06-14 Thread ikod via Digitalmars-d-announce
On Tuesday, 14 June 2016 at 14:59:37 UTC, Andrei Alexandrescu wrote: On 6/11/16 7:03 PM, ikod wrote: Hello, Dlang-requests is library created under influence of ... Code and docs available at https://github.com/ikod/dlang-requests or as dub package. Thanks Dlang authors and community for

Re: dlang-requests 0.1.7 released

2016-06-17 Thread ikod via Digitalmars-d-announce
On Tuesday, 14 June 2016 at 14:59:37 UTC, Andrei Alexandrescu wrote: On 6/11/16 7:03 PM, ikod wrote: Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. ... Thanks! Does the project have a dub presence? How does

Re: dlang-requests 0.1.7 released

2016-06-20 Thread ikod via Digitalmars-d-announce
On Friday, 17 June 2016 at 17:31:55 UTC, ikod wrote: On Tuesday, 14 June 2016 at 14:59:37 UTC, Andrei Alexandrescu wrote: On 6/11/16 7:03 PM, ikod wrote: Hello, Dlang-requests is library created under influence of Python-requests, with primary goal of easy to use and performance. ...

Re: What reasons are known a thread stops suddenly?

2016-02-04 Thread ikod via Digitalmars-d-learn
On Thursday, 4 February 2016 at 20:25:27 UTC, tcak wrote: Is there any known reason for a thread to suddenly stop like this? Your listener object can be GC-ed. Check if you have any live ref to it.

attributes and properties lookup order

2016-01-26 Thread ikod via Digitalmars-d-learn
Hello $ cat t.d import std.net.curl: get; void main() { string[string] x; string y = x.get("",""); } $ dmd t.d t.d(6): Error: template std.net.curl.get cannot deduce function from argument types !()(string[string], string, string), candidates are:

docs generation for mixins

2016-05-15 Thread ikod via Digitalmars-d-learn
Hello, sorry if this question was asked before... How can I get docs generated for int z? - string V(string var) { return "int " ~ var ~ ";"; } /// struct X { /// comment for y int y; /// comment for z mixin(V("z")); } void main() { } - "dmd -D -Dddocs" generate

Re: New deb packages on d-apt

2016-04-17 Thread ikod via Digitalmars-d-announce
Hello, On Wednesday, 6 April 2016 at 13:06:54 UTC, Jordi Sayol wrote: d-apt has three new deb packages for Dfix, Dfmt and Dscanner. $ sudo apt-get install dfix dfmt dscanner d-apt JFYI - pegged is ready fo packaging: https://github.com/PhilippeSigaud/Pegged

Re: std.range pipelike interface, inverting OutputStreams?

2016-08-13 Thread ikod via Digitalmars-d-learn
On Saturday, 13 August 2016 at 02:15:55 UTC, cy wrote: I was trying to use std.regex, and it takes an output stream to pump the result to, which is great, but I wanted to perform TWO replacements, one with the output of the previous, with data that might be a tricky size to cache redundantly.

dlang-requests 0.2.0 released

2016-07-06 Thread ikod via Digitalmars-d-announce
Hello, dlang-requests v0.2.0 released. Major feature improvement: 1. Nonblocking vibe.d sockets support. That means you can safely use dlang-requests in vibe.d applications. Thanks to Johannes Pfau (https://github.com/jpf91). Minor improvements: 2. Dump network data when verbosity level>=3

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread ikod via Digitalmars-d-learn
On Monday, 15 August 2016 at 15:01:13 UTC, Oleg B wrote: Hello. As replacement of std.net.curl I found https://github.com/ikod/dlang-requests. Who know's about this lib? Is this good replacement of std.net.curl? Maybe if I need json and http requests I must fully use vibe for these things?

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-16 Thread ikod via Digitalmars-d-learn
On Tuesday, 16 August 2016 at 09:16:40 UTC, yawniek wrote: imo things should be modularized. so there should be (fast) protocol parsers first, something like https://github.com/h2o/picohttpparser or https://github.com/seanmonstar/httparse then a very simple eventloop that has abstractions and

trick to make throwing method @nogc

2017-02-25 Thread ikod via Digitalmars-d-learn
Hello, I have a method for range: struct Range { immutable(ubyte[]) _buffer; size_t _pos; @property void popFront() pure @safe { enforce(_pos < _buffer.length, "popFront from empty buffer"); _pos++; } } I'd like to have @nogc here, but I can't

Re: trick to make throwing method @nogc

2017-02-25 Thread ikod via Digitalmars-d-learn
On Saturday, 25 February 2017 at 19:59:29 UTC, ikod wrote: Hello, I have a method for range: struct Range { immutable(ubyte[]) _buffer; size_t _pos; @property void popFront() pure @safe { enforce(_pos < _buffer.length, "popFront from empty buffer");

Re: trick to make throwing method @nogc

2017-02-25 Thread ikod via Digitalmars-d-learn
On Saturday, 25 February 2017 at 20:49:51 UTC, Adam D. Ruppe wrote: A wrapper that unifies these 4 steps like enforce is pretty easy to implement. yeah easy to use exception in @nogc as long as the catch knows to free it too. Alas, not my case. Exception can be catched not in my code.

Re: foreach for string[string]AA

2017-02-28 Thread ikod via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 15:15:00 UTC, Anton Pastukhov wrote: I can't see the logic in AA foreach order. Consider this code: ``` void main() { string[string] test = [ "one": "1", "two": "2", "three": "3", "four": "4" ]; import

Re: Classes and Structs, Memory management questions

2016-09-02 Thread ikod via Digitalmars-d-learn
On Friday, 2 September 2016 at 08:43:45 UTC, dom wrote: Since garbage collection is a very nice feature that I wouldn't wanna miss for certain scenarios I think D should give us the opportunity to determine how an object is allocated. In the example above putting it on the stack is probably

Re: Release D 2.072.0

2016-11-07 Thread ikod via Digitalmars-d-announce
Hello, Here is another bug: https://issues.dlang.org/show_bug.cgi?id=16667 app unit tests start to fail on std.conv internal unit tests.

Re: Low-level and Hight-level Kafka bindings

2016-11-14 Thread ikod via Digitalmars-d-announce
On Monday, 14 November 2016 at 16:17:33 UTC, Ilya Yaroshenko wrote: Kafka is most reliable distributed log system. It is used as many2many messaging system. # Links C library: https://github.com/edenhill/librdkafka Low-level bindings: https://github.com/DlangApache/librdkafka/ High-level

vibed ssl stream and SSL_CTX_set_default_verify_paths

2016-11-15 Thread ikod via Digitalmars-d-learn
Hello, Sorry if this is FAQ, or any other way stupid question, e.t.c. I have to configure vibe.d tlsstream to verify remote certificate. Please correct me if I'm wrong -- here is part of my code to request certificate verification: auto sslctx = createTLSContext(TLSContextKind.client);

dlang-requests 0.4.0 released

2016-12-29 Thread ikod via Digitalmars-d-announce
Hi, dlang-requests v0.4.0 released. Major new feature - threaded request pool, which works like InputRange. You can write code like this: iota(10). map!(n => "%d".format(n).representation). map!(d => Job("http://httpbin.org/post;).method("POST").data(d)).

Re: 'Access Violation Error' with parallel-foreach loop

2017-03-19 Thread ikod via Digitalmars-d-learn
On Sunday, 19 March 2017 at 00:46:29 UTC, ooyu wrote: On Saturday, 18 March 2017 at 22:27:27 UTC, Vladimir Panteleev wrote: [...] Aha! Thank you. I try again using std.file.write and input ubyte[] data. auto rq = Request(); auto d =

Re: 'Access Violation Error' with parallel-foreach loop

2017-03-18 Thread ikod via Digitalmars-d-learn
On Saturday, 18 March 2017 at 16:15:30 UTC, ooyu wrote: When i was uing parallel-foreach loop, got this error: object.Error@(0): Access Violation 0x0056CCB8 in _flushbu 0x005663C7 in fwrite 0x0041D39F in nothrow @nogc

Re: Date formatting in D

2017-03-07 Thread ikod via Digitalmars-d-learn
On Tuesday, 7 March 2017 at 20:29:07 UTC, aberba wrote: I've been trying to figure out an inbuilt functionality in phobos for formatting date. In my use case, I've been trying to format current Unix timestamp to something like "Thu, 08 Mar 2017 12:00:00 GMT". How do I go by this easily

dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread ikod via Digitalmars-d-announce
Hello, Since version 0.5.0 dlang-requests has become compatible with both 1.0.x and 1.1.x versions of openssl library. Please try and report any issues on github. Thanks! dlang-requests is HTTP/FTP client library, inspired by python-requests with goals: small memory footprint performance

Re: dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread ikod via Digitalmars-d-announce
On Thursday, 3 August 2017 at 14:03:02 UTC, aberba wrote: On Thursday, 3 August 2017 at 10:02:24 UTC, Temtaime wrote: On Thursday, 3 August 2017 at 09:57:11 UTC, Suliman wrote: On Thursday, 3 August 2017 at 06:33:38 UTC, ikod wrote: Hello, Since version 0.5.0 dlang-requests has become

Re: D outperformed by C++, what am I doing wrong?

2017-08-13 Thread ikod via Digitalmars-d-learn
On Sunday, 13 August 2017 at 08:13:56 UTC, amfvcg wrote: On Sunday, 13 August 2017 at 08:00:53 UTC, Daniel Kozak wrote: my second version on ldc takes 380ms and c++ version on same compiler (clang), takes 350ms, so it seems to be almost same Ok, on ideone (ldc 1.1.0) it timeouts, on dpaste

Re: D outperformed by C++, what am I doing wrong?

2017-08-13 Thread ikod via Digitalmars-d-learn
On Sunday, 13 August 2017 at 08:32:50 UTC, amfvcg wrote: Gives me 5 μs and 2 hnsecs 5000 3 secs, 228 ms, 837 μs, and 4 hnsecs 5000 And you've compiled it with? Btw. clang for c++ version works worse than gcc (for this case [112ms vs 180ms]). DMD64 D Compiler v2.074.1

Re: Having a strange issue with std.net.curl.HTTP as a struct dependency

2017-07-12 Thread ikod via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 08:24:12 UTC, NoBigDeal256 wrote: On Monday, 10 July 2017 at 20:55:19 UTC, ketmar wrote: NoBigDeal256 wrote: Do you happen to have a link to the bug report for this specific issue that I could look at? I looked at the known bugs list and couldn't find anything

Re: How to add authentificaion method to request?

2017-07-11 Thread ikod via Digitalmars-d-learn
On Tuesday, 11 July 2017 at 12:15:39 UTC, Suliman wrote: I am using dlang-requests. I need authentificate on https://scihub.copernicus.eu/dhus/login and than do some data-parsing. MultipartForm form; form.add(formData("login_username", "Suliman"));

Re: dlang-requetst: openssl 1.1 compatible release

2017-08-04 Thread ikod via Digitalmars-d-announce
On Friday, 4 August 2017 at 17:06:16 UTC, Jack Applegame wrote: On Thursday, 3 August 2017 at 06:33:38 UTC, ikod wrote: Hello, Since version 0.5.0 dlang-requests has become compatible with both 1.0.x and 1.1.x versions of openssl library. Please try and report any issues on github. Thanks!

Re: lambda function with "capture by value"

2017-08-05 Thread ikod via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:45:34 UTC, Simon Bürger wrote: On Saturday, 5 August 2017 at 18:22:38 UTC, Stefan Koch wrote: [...] No, sometimes I want i to be the value it has at the time the delegate was defined. My actual usecase was more like this: void delegate()[3] dgs;

Re: Different Output after each execution

2017-08-18 Thread ikod via Digitalmars-d-learn
On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code [...] Do you expect some strict execution order when

Re: What is the best way to use requests and iopipe on gzipped JSON file

2017-10-17 Thread ikod via Digitalmars-d-learn
Hello, Steve On Friday, 13 October 2017 at 22:22:54 UTC, Steven Schveighoffer wrote: On 10/13/17 6:18 PM, ikod wrote: On Friday, 13 October 2017 at 19:17:54 UTC, Steven Schveighoffer wrote: Eventually, something like this will be possible with jsoniopipe (I need to update and release this

Re: What is the best way to use requests and iopipe on gzipped JSON file

2017-10-13 Thread ikod via Digitalmars-d-learn
On Friday, 13 October 2017 at 19:17:54 UTC, Steven Schveighoffer wrote: On 10/13/17 2:47 PM, Andrew Edwards wrote: A bit of advice, please. I'm trying to parse a gzipped JSON file retrieved from the internet. The following naive implementation accomplishes the task: auto url =

dlang-requetst v0.5.3 released

2017-09-12 Thread ikod via Digitalmars-d-announce
Hello, Since last announced version 0.5.1 several bugfixes and improvements were added: 1. Improvement: "bind" local address enabled on outgoing connections (https://github.com/ikod/dlang-requests/issues/51) 2. Improvement: SNI for ssl connection implemented, as some servers require SNI

Re: dlang-requetst: openssl 1.1 compatible release

2017-08-20 Thread ikod via Digitalmars-d-announce
On Saturday, 5 August 2017 at 09:46:44 UTC, Jack Applegame wrote: On Friday, 4 August 2017 at 18:28:23 UTC, ikod wrote: On Friday, 4 August 2017 at 17:06:16 UTC, Jack Applegame wrote: Does dlang-requests support binding interface for outgoing connection, like curl --interface option? No, but

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread ikod via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:52:08 UTC, Biotronic wrote: On Wednesday, 18 October 2017 at 11:34:57 UTC, Nordlöw wrote: Another thing...how should the synchronization between the fibers figure out when the total number of fibers have reached one million?...via an atomic counter fed by

Re: Intellij D Language v1.15.2

2017-11-23 Thread ikod via Digitalmars-d-announce
On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote: Hi all. A new release intellij-dlanguage plugin has been made available for download from the Jetbrains repository this week. There is also support for debugging with GDB (since v1.14 1st Nov). We need to completely overhaul

Re: libcurl acting differently to curl.exe

2017-12-11 Thread ikod via Digitalmars-d-learn
On Monday, 11 December 2017 at 03:53:25 UTC, Josh wrote: The POST C code was: /* Sample code generated by the curl command line tool ** * All curl_easy_setopt() options are documented at: * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html Maybe off-topic but you can

dub optional dependency

2017-10-28 Thread ikod via Digitalmars-d-learn
Hello, I have dub.json with two configurations: "configurations": [ { "name": "std", "targetType": "library" }, { "name": "vibed",

Re: How to curl!

2018-05-01 Thread ikod via Digitalmars-d-learn
On Wednesday, 2 May 2018 at 00:04:49 UTC, IntegratedDimensions wrote: On Tuesday, 1 May 2018 at 23:35:42 UTC, Arun Chandrasekaran wrote: On Tuesday, 1 May 2018 at 21:57:22 UTC, IntegratedDimensions wrote: [...] std.net.curl is not quite up to date when compared to the curl command. It is

Re: How to curl!

2018-05-02 Thread ikod via Digitalmars-d-learn
On Wednesday, 2 May 2018 at 16:58:35 UTC, IntegratedDimensions wrote: On Wednesday, 2 May 2018 at 03:03:19 UTC, ikod wrote: On Wednesday, 2 May 2018 at 00:04:49 UTC, IntegratedDimensions wrote: On Tuesday, 1 May 2018 at 23:35:42 UTC, Arun Chandrasekaran wrote: [...] Ok, first try:

Re: run.dlang.io can now display ASM + AST + IR

2018-01-25 Thread ikod via Digitalmars-d-announce
On Thursday, 25 January 2018 at 19:22:19 UTC, Seb wrote: On Monday, 15 January 2018 at 22:50:55 UTC, kinke wrote: On Sunday, 14 January 2018 at 04:18:41 UTC, Seb wrote: 3) IR (LDC only) https://run.dlang.io/is/BOTNDf Thanks Seb. I particularly like this feature. After a quick glance, the

inline @trusted code

2018-01-30 Thread ikod via Digitalmars-d-learn
Hello, Several times I faced with next problem: I have "@safe" routine with few calls to @system functions inside: OS calls (recv, send, kqueue) os some phobos unsafe functions like assumeUnique. I'd like not to wrap these @system functions in @trusted wrappers, but somehow mark these calls

dlang-requests 0.7.0 released

2018-02-05 Thread ikod via Digitalmars-d-announce
Hello, dlang-request 0.7.0 released with support for International Domain Names. dlang-reuests is HTTP/FTP native client library, inspired by python-requests with support both for system and vibe.d sockets. https://github.com/ikod/dlang-requests https://code.dlang.org/packages/requests

Re: Blogpost about parallelizing Datacat with std.parallelism

2018-07-26 Thread ikod via Digitalmars-d-announce
On Thursday, 26 July 2018 at 12:13:01 UTC, Joakim Brännström wrote: Hello, I've written up a blog post[0] of my explorations when parallelizing Datacat[1]. Thanks for nice article. Just in case if you never tried this: https://bitbucket.org/andrewtrotman/d-profile-viewer

dlang-requests v0.9.0

2018-08-16 Thread ikod via Digitalmars-d-announce
Hello, I just released v0.9.0 of dlang-requests. This is large performance improvement and code refactoring release. Nothing changed in API and everything should work as before (hopefully better and faster) What's new: 1. Connection pool for each HTTPRequest structure added. This give

Re: Optional and NotNull version 0.5.0 - swift optional like and scala option like

2018-08-20 Thread ikod via Digitalmars-d-announce
On Thursday, 16 August 2018 at 16:20:09 UTC, aliak wrote: On Thursday, 16 August 2018 at 12:25:14 UTC, aliak wrote: It's also @nogc and @safe No it's not. Not dispatching at least. Dunno why though. Seems safey is because taking an address. Nogc will have to look in to. Hello! please,

Re: HTTP-methods and encoding

2018-04-08 Thread ikod via Digitalmars-d-learn
On Saturday, 7 April 2018 at 23:54:21 UTC, Vindex wrote: On Saturday, 7 April 2018 at 15:58:14 UTC, Seb wrote: On Saturday, 7 April 2018 at 13:02:39 UTC, Vindex wrote: There is an error on some sites when using HTTP-methods (std.net.curl.get, std.net.curl.post):

can be (){yield();} mark as @trusted?

2018-03-28 Thread ikod via Digitalmars-d-learn
Hello, I have very short function with only Fiber.yield() inside it, like: void f1() { yield(); } This function is called inside @safe function f2: void f2() @safe { f1(); } Can f1 be marked as @trusted so that I can keep @safe for the whole hierarchy of calls? Thanks!

Re: automem v0.3.5 - now with more vector (like std::vector, not Physics)!

2018-09-30 Thread ikod via Digitalmars-d-announce
On Thursday, 20 September 2018 at 14:57:42 UTC, Atila Neves wrote: If you've never heard of automem before, I wrote it to have C++-style smart pointers in D that I could use in @nogc code: http://code.dlang.org/packages/automem Sorry for asking here. Shouldn't this code work? import

Re: how to make '==' safe for classes?

2018-10-28 Thread ikod via Digitalmars-d-learn
On Sunday, 28 October 2018 at 18:00:06 UTC, Stanislav Blinov wrote: On Sunday, 28 October 2018 at 12:38:12 UTC, ikod wrote: and object.opEquals(a,b) do not inherits safety from class C properties, and also I can't override it. Yep. Since Object is the base class and it defines opEquals as:

Re: how to make '==' safe for classes?

2018-10-28 Thread ikod via Digitalmars-d-learn
Thanks for excellent explanation! On Sunday, 28 October 2018 at 19:00:52 UTC, Jonathan M Davis wrote: Because Object predats @safe (and most attributes), it really isn't compatible with them. In fact, it predates const (since it's basically the same as it was in D1) and it's only possible

how to make '==' safe for classes?

2018-10-28 Thread ikod via Digitalmars-d-learn
Hello How to make this code to compile? My goal is safe(not @trusted) longFunction(). --- class C { override bool opEquals(Object o) const @safe { return true; } } bool longFunction(C a, C b) @safe { return a==b; } void main() { } --- As far as I understand the

Re: what are the rules for @nogc and @safe attributes inference?

2018-11-16 Thread ikod via Digitalmars-d-learn
On Thursday, 15 November 2018 at 21:55:18 UTC, Steven Schveighoffer wrote: On 11/15/18 4:09 PM, Adam D. Ruppe wrote: On Thursday, 15 November 2018 at 21:00:48 UTC, ikod wrote: what are the rules for @nogc inference? It attempts it if and only if it is a template. Well, the general "rule"

Re: what are the rules for @nogc and @safe attributes inference?

2018-11-16 Thread ikod via Digitalmars-d-learn
On Friday, 16 November 2018 at 12:12:12 UTC, Alex wrote: = This code compiles as long as `lazy` is commented out. But I'd like to have both lazy parameter and @nogc inferrence for `library_func` so that user is not locked to code @nogc or

Re: what are the rules for @nogc and @safe attributes inference?

2018-11-30 Thread ikod via Digitalmars-d-learn
On Friday, 30 November 2018 at 21:03:06 UTC, Neia Neutuladh wrote: On Fri, 30 Nov 2018 20:41:03 +, ikod wrote: I can't find the reason why nogc/nothrow can't be inferred in this case: class S(K,V) { auto get/*()*/(K a) { return 0; } } void main() @nogc nothrow {

Re: ddox and exempting dependencies

2018-12-05 Thread ikod via Digitalmars-d-learn
On Wednesday, 5 December 2018 at 17:12:03 UTC, Anonymouse wrote: On Wednesday, 5 December 2018 at 16:56:12 UTC, Andre Pany wrote: The compiler (DMD) is triggered to generate a JSON file docs.json which contains technical information used by ddox in a later step. The error message you see is

cachetools v.0.0.1

2018-11-26 Thread ikod via Digitalmars-d-announce
Hello, I released cachetools - package with @safe and @nogc cache and hashtable implementations. It inherits nogc propery from key toHash and opEquals methods and can store immutable keys and values (with restrictions). Currently implemented only LRU cache with TTL.

cachetools v.0.1.1

2019-01-11 Thread ikod via Digitalmars-d-announce
Hello, v.0.1.1 released. Significant changes since previous announce: Caches: 1. added 2Q cache. 2Q is more advanced strategy than plain LRU. It is faster, scan-resistant and can give more cache hits. 2. For LRU cache implemented per-item TTL in addition to global TTL. Containers: 1.

Re: what are the rules for @nogc and @safe attributes inference?

2018-11-30 Thread ikod via Digitalmars-d-learn
On Thursday, 15 November 2018 at 21:55:18 UTC, Steven Schveighoffer wrote: On 11/15/18 4:09 PM, Adam D. Ruppe wrote: On Thursday, 15 November 2018 at 21:00:48 UTC, ikod wrote: what are the rules for @nogc inference? It attempts it if and only if it is a template. Well, the general "rule"

Re: How to debug long-lived D program memory usage?

2019-04-18 Thread ikod via Digitalmars-d-learn
On Wednesday, 17 April 2019 at 16:27:02 UTC, Adam D. Ruppe wrote: D programs are a vital part of my home computer infrastructure. I run some 60 D processes at almost any time and have recently been running out of memory. I usually run program under valgrind in this case. Though it will

Re: dlang.ru is updated

2019-05-17 Thread ikod via Digitalmars-d-announce
On Friday, 17 May 2019 at 08:14:26 UTC, drug wrote: I understand that there is a habit to guilt Russians and/or Putin in many problems but let's try to be clever? At least he leaded Crimea annexion, war against Georgia, current proxy war on the east of Ukraine. He pretend to defend russians

one more redis client library

2019-07-13 Thread ikod via Digitalmars-d-announce
Hello, I didn't find D redis client with configurable transport - usually either std.socket or vibe-d sockets are available. So I wrote client library with pluggable transport provider - currently it supports std.socket, vibe-d sockets and hio (my own eventloop package) sockets, but can be

Q: docs and guides for hunt

2019-04-21 Thread ikod via Digitalmars-d-learn
Hello, I'l like to try 'hunt' project to solve one of my problems, but I can't find docs and code samples or tutorials, etc. I even can't find if hunt (or hunt-framework) can be used for my task. Please, help! Here is short descriptions what I need - long running application, periodically

Re: How to debug long-lived D program memory usage?

2019-04-22 Thread ikod via Digitalmars-d-learn
On Sunday, 21 April 2019 at 21:04:52 UTC, Patrick Schluter wrote: On Thursday, 18 April 2019 at 12:00:10 UTC, ikod wrote: On Wednesday, 17 April 2019 at 16:27:02 UTC, Adam D. Ruppe wrote: D programs are a vital part of my home computer infrastructure. I run some 60 D processes at almost any

Re: cachetools v.0.3.1

2019-08-13 Thread ikod via Digitalmars-d-announce
On Tuesday, 13 August 2019 at 17:18:23 UTC, ag0aep6g wrote: On 13.08.19 11:34, ikod wrote: What is it? cachetools - package with @safe and @nogc cache and containers implementations. [...] Project page: https://github.com/ikod/cachetools docs: https://ikod.github.io/cachetools/ They don't

Re: cachetools v.0.3.1

2019-08-13 Thread ikod via Digitalmars-d-announce
Hello cachetools version 0.3.1 released Changelog: "Set" container added (based on hashtable) Const-ness problems for hashtable fixed. What is it? cachetools - package with @safe and @nogc cache and containers implementations. It inherits @nogc and @safe property from key toHash and

Re: cachetools v.0.3.1

2019-08-13 Thread ikod via Digitalmars-d-announce
On Tuesday, 13 August 2019 at 10:12:45 UTC, Martin Tschierschke wrote: On Tuesday, 13 August 2019 at 09:34:48 UTC, ikod wrote: Hello cachetools version 0.3.1 released [...] Looking at your performance numbers, I am wondering should your work in the end result in a better std AA

Re: How should I sort a doubly linked list the D way?

2019-08-13 Thread ikod via Digitalmars-d-learn
On Tuesday, 13 August 2019 at 09:48:52 UTC, Mirjam Akkersdijk wrote: Hello there, If I had a DLL, how would I sort it judging by the node contents, the D way? In C if I were to sort a piece of malloc'd memory pointing to node pointers, I would write my compare function and let qsort sort it

  1   2   >