Re: HTTP frameworks benchmark focused on D libraries

2022-05-27 Thread ikod via Digitalmars-d-announce
On Saturday, 28 May 2022 at 05:44:11 UTC, tchaloupka wrote: On Friday, 27 May 2022 at 20:51:14 UTC, zoujiaqing wrote: It means two separate syscalls for header and body. This alone have huge impact on the performance and if it can be avoided, it would be much better. sendv/writev also can

Re: FTP LS

2022-05-15 Thread ikod via Digitalmars-d-learn
On Saturday, 14 May 2022 at 08:42:46 UTC, Anonymouse wrote: Before I go on duplicating effort, does anyone have anything that can access FTP beyond PUT and GET? I need to read file information from a NAS so I know if I should upload a file or not. `dlang-requests` has `Request.post` and

Re: FTP LS

2022-05-14 Thread ikod via Digitalmars-d-learn
On Saturday, 14 May 2022 at 08:42:46 UTC, Anonymouse wrote: Before I go on duplicating effort, does anyone have anything that can access FTP beyond PUT and GET? I need to read file information from a NAS so I know if I should upload a file or not. `dlang-requests` has `Request.post` and

Re: FTP LS

2022-05-14 Thread ikod via Digitalmars-d-learn
On Saturday, 14 May 2022 at 10:17:14 UTC, ikod wrote: On Saturday, 14 May 2022 at 08:42:46 UTC, Anonymouse wrote: Before I go on duplicating effort, does anyone have anything that can access FTP beyond PUT and GET? I need to read file information from a NAS so I know if I should upload a

Re: FTP LS

2022-05-14 Thread ikod via Digitalmars-d-learn
On Saturday, 14 May 2022 at 08:42:46 UTC, Anonymouse wrote: Before I go on duplicating effort, does anyone have anything that can access FTP beyond PUT and GET? I need to read file information from a NAS so I know if I should upload a file or not. `dlang-requests` has `Request.post` and

Re: Library associative array project v0.0.1

2022-05-11 Thread ikod via Digitalmars-d-announce
On Wednesday, 11 May 2022 at 19:15:36 UTC, Steven Schveighoffer wrote: * add some methods returning a copy of the value instead of a pointer to value I return a reference to the value (via `opIndex`). Can you elaborate on why you would need it to be a copy? What is your API? -Steve

Re: Library associative array project v0.0.1

2022-05-11 Thread ikod via Digitalmars-d-announce
On Wednesday, 11 May 2022 at 15:31:02 UTC, Steven Schveighoffer wrote: I just spent a couple hours making a library AA solution that is binary compatible with druntime's builtin AA. The benefits: For the future: 1. Implement all the things that AAs can do (which are possible, some are not).

Re: How to work with hashmap from memutils properly?

2022-02-16 Thread ikod via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 10:31:38 UTC, Siarhei Siamashka wrote: On Friday, 11 February 2022 at 19:04:41 UTC, Sergey wrote: Is this an attempt to implement a high performance solution for the Benchmarks Game's LRU problem in D language? Yes. There is no D version there. And I'm just

Re: Payload Details with std.net.curl:post

2021-11-29 Thread ikod via Digitalmars-d-learn
On Monday, 29 November 2021 at 01:49:37 UTC, Kyle Ingraham wrote: On Sunday, 28 November 2021 at 07:27:35 UTC, ikod wrote: On Sunday, 28 November 2021 at 01:06:45 UTC, Kyle Ingraham wrote: On Saturday, 27 November 2021 at 22:18:48 UTC, ikod wrote: Hi Kyle! I found

Re: Payload Details with std.net.curl:post

2021-11-27 Thread ikod via Digitalmars-d-learn
On Sunday, 28 November 2021 at 01:06:45 UTC, Kyle Ingraham wrote: On Saturday, 27 November 2021 at 22:18:48 UTC, ikod wrote: On Saturday, 27 November 2021 at 20:31:16 UTC, Kyle Ingraham Hi Kyle, ``` object.Exception@C:\Users\Kyle

Re: Payload Details with std.net.curl:post

2021-11-27 Thread ikod via Digitalmars-d-learn
On Saturday, 27 November 2021 at 20:31:16 UTC, Kyle Ingraham wrote: On Saturday, 27 November 2021 at 19:21:28 UTC, frame wrote: On Saturday, 27 November 2021 at 17:41:55 UTC, Kyle Ingraham wrote: I was afraid of that. Thank you for clarifying. I’ve tried other clients but they all seem to

nbuff v0.1.13

2021-05-25 Thread ikod via Digitalmars-d-announce
Hello, This is buffer management library. I created it for my networking daemons and recently it was used in Nats client (https://code.dlang.org/packages/nats), and maybe it can be useful for others, so I added small tutorial. The main features are: nogc, safety, zero copy (actually

Re: Best way to make a template function conditionally @trusted

2021-04-02 Thread ikod via Digitalmars-d-learn
On Thursday, 1 April 2021 at 22:35:01 UTC, tsbockman wrote: Suppose I have a templated struct member function for which I can compute at compile-time when the function is memory safe, and when it is not. But, the compiler cannot correctly determine this automatically. Compiler should be able

Re: requests 2.0.0 release

2020-10-29 Thread ikod via Digitalmars-d-announce
On Thursday, 29 October 2020 at 16:22:50 UTC, Anonymouse wrote: On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote: Hi, requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage. Thanks for all your hard work! This was an annoying point and I'm

Re: dub fetching dependencies for wrong configuration(s)

2020-10-29 Thread ikod via Digitalmars-d-learn
On Wednesday, 28 October 2020 at 21:56:46 UTC, Anonymouse wrote: On Wednesday, 28 October 2020 at 19:34:43 UTC, ikod wrote: To make this transition as painless as possible I'll create new package with major version "2" if you confirm that everything works as expected. ... No vibe-d

requests 2.0.0 release

2020-10-29 Thread ikod via Digitalmars-d-announce
Hi, requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage. The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration. Important in case you use requests with vibe-d: starting from this release instead of

Re: dub fetching dependencies for wrong configuration(s)

2020-10-28 Thread ikod via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 22:15:34 UTC, Anonymouse wrote: On Tuesday, 27 October 2020 at 21:15:35 UTC, ikod wrote: On Tuesday, 27 October 2020 at 17:01:23 UTC, Anonymouse wrote: On Sunday, 4 October 2020 at 21:00:49 UTC, ikod wrote: Thanks, Andre! I'll split requests as you suggested

Re: dub fetching dependencies for wrong configuration(s)

2020-10-27 Thread ikod via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 17:01:23 UTC, Anonymouse wrote: On Sunday, 4 October 2020 at 21:00:49 UTC, ikod wrote: Thanks, Andre! I'll split requests as you suggested (increasing minor version, so that this change will not hurt anybody who build current requests package for vibe-d). Will

Re: Help on asdf json module

2020-10-25 Thread ikod via Digitalmars-d-learn
On Sunday, 25 October 2020 at 06:05:27 UTC, Vino wrote: Hi All, Currently we are testing various json module such as "std.json, std_data_json, vibe.data.json and asdf", the below code works perfectely while use "std_data_json or vibe.data.json" but not working as expected when we use

Re: std.net.curl get json_encode

2020-10-08 Thread ikod via Digitalmars-d-learn
On Friday, 9 October 2020 at 01:45:37 UTC, Vino wrote: On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On Friday, 2 October 2020 at 21:12:09 UTC, Vino wrote: Hi All, ... auto content = https.perform(); https.shutdown; JSONValue jv = parseJSONValue(content); Maybe JSONValue jv

Re: It is possible to substract 5 from 3 unsigned integer

2020-10-06 Thread ikod via Digitalmars-d-learn
On Tuesday, 6 October 2020 at 18:24:14 UTC, Alaindevos wrote: There are two subtractions possible. A machine-one which can be architecture dependent, does not have the same results on all computers, and behaves like a modulus in mathematics. A logical one. For the last one higher classes

Re: dub fetching dependencies for wrong configuration(s)

2020-10-04 Thread ikod via Digitalmars-d-learn
On Sunday, 4 October 2020 at 20:08:31 UTC, Andre Pany wrote: On Sunday, 4 October 2020 at 14:08:24 UTC, Anonymouse wrote: At the moment the only chance to avoid these additional dependencies would be to split requests into 2 dub packages. The core package which uses std, and an additional

Re: dub fetching dependencies for wrong configuration(s)

2020-10-04 Thread ikod via Digitalmars-d-learn
On Sunday, 4 October 2020 at 14:08:24 UTC, Anonymouse wrote: My project depends on the requests dub package, which has two build configurations; one with an extra vibe-d dependency, one without (default). "configurations": [ { "name": "std" }, {

Re: Fiber based HTTP client for load testing

2020-10-01 Thread ikod via Digitalmars-d-learn
On Thursday, 1 October 2020 at 03:10:32 UTC, ikod wrote: On Thursday, 1 October 2020 at 00:35:49 UTC, Arun wrote: I have a REST client that can do load test of my REST void main() { auto urls = ["http://httpbin.org/;, "http://httpbin.org/image;]; foreach(url; urls) {

Re: Fiber based HTTP client for load testing

2020-09-30 Thread ikod via Digitalmars-d-learn
On Thursday, 1 October 2020 at 00:35:49 UTC, Arun wrote: I have a REST client that can do load test of my REST services. It uses ikod's dlang-requests under the hood. https://github.com/ikod/dlang-requests At the moment I use a thread pool to dispatch the runtime operation and send the

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-29 Thread ikod via Digitalmars-d-learn
Hello, Sorry if I unintentionally hurt anybody in this thread. I'll try to implement sane and correct iteration behavior for AA without noticeable performance loss, and propose it if I succeed. Igor

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-28 Thread ikod via Digitalmars-d-learn
On Monday, 28 September 2020 at 19:18:20 UTC, H. S. Teoh wrote: On Mon, Sep 28, 2020 at 05:18:41PM +, ikod via Digitalmars-d-learn wrote: On Monday, 28 September 2020 at 14:58:15 UTC, Steven Schveighoffer wrote: [...] > One could write a specific function to iterate and remove

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-28 Thread ikod via Digitalmars-d-learn
On Monday, 28 September 2020 at 14:58:15 UTC, Steven Schveighoffer wrote: On 9/27/20 4:43 PM, Per Nordlöw wrote: On Sunday, 27 September 2020 at 14:23:11 UTC, H. S. Teoh wrote: No.  Modifying a container while iterating over it is, in general, a bad idea (unless the container is designed to be

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-28 Thread ikod via Digitalmars-d-learn
On Monday, 28 September 2020 at 10:10:10 UTC, Per Nordlöw wrote: On Monday, 28 September 2020 at 10:01:23 UTC, ikod wrote: Is it specific to some types? What if collection supports stable "foreach"? Yes it depends on how collection members (such as insert, find, replace, erase, etc) are

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-28 Thread ikod via Digitalmars-d-learn
On Monday, 28 September 2020 at 09:41:02 UTC, Per Nordlöw wrote: On Monday, 28 September 2020 at 07:15:27 UTC, Imperatorn wrote: Yes, this should be a compile-time error Spec here: https://dlang.org/spec/statement.html#foreach_restrictions Is it specific to some types? What if collection

Re: Safe to remove AA elements while iterating over it via .byKeyValue?

2020-09-28 Thread ikod via Digitalmars-d-learn
On Sunday, 27 September 2020 at 14:23:11 UTC, H. S. Teoh wrote: On Sun, Sep 27, 2020 at 01:02:04PM +, Per Nordlöw via Digitalmars-d-learn wrote: Is it safe to remove AA-elements from an `aa` I'm iterating over via aa.byKeyValue? No. Modifying a container while iterating over it is, in

Re: HTTP frameworks benchmark focused on D libraries

2020-09-27 Thread ikod via Digitalmars-d-announce
On Sunday, 27 September 2020 at 10:08:24 UTC, tchaloupka wrote: Hi all, I've just pushed the updated results. * new RAW tests in C to utilize epoll and io_uring (using liburing) event loops - so we have some ground base we can I'll probably add wrk[3] load generator too to see a

Re: HTTP frameworks benchmark focused on D libraries

2020-09-21 Thread ikod via Digitalmars-d-announce
On Sunday, 20 September 2020 at 20:03:27 UTC, tchaloupka wrote: Hi, as it pops up now and then (last one in https://forum.dlang.org/thread/qttjlgxjmrzzuflrj...@forum.dlang.org) I wanted to see the various D libraries performance against each other too and ended up with

Re: vibe.d: How to get the conent of a file upload ?

2020-09-19 Thread ikod via Digitalmars-d-learn
On Saturday, 19 September 2020 at 18:56:20 UTC, Steven Schveighoffer wrote: On 9/19/20 7:15 AM, ikod wrote: On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote: On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote: My preferable way to handle such thing is: convert incoming data

Re: vibe.d: How to get the conent of a file upload ?

2020-09-19 Thread ikod via Digitalmars-d-learn
On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote: On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote: On Friday, 18 September 2020 at 12:58:29 UTC, Steven Schveighoffer wrote: On 9/18/20 8:39 AM, Steven Schveighoffer wrote: But again, solved with an enhancement that allows you

Re: vibe.d: How to get the conent of a file upload ?

2020-09-19 Thread ikod via Digitalmars-d-learn
On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote: On Friday, 18 September 2020 at 12:58:29 UTC, Steven Schveighoffer wrote: On 9/18/20 8:39 AM, Steven Schveighoffer wrote: But again, solved with an enhancement that allows you to process the data in your code. I'll file the enhancement

Re: Why is dtor called for lazy parameter?

2020-09-18 Thread ikod via Digitalmars-d-learn
On Friday, 18 September 2020 at 10:43:47 UTC, Andrey Zherikov wrote: I have this code: == class S ... auto create() { writeln("-> ",__PRETTY_FUNCTION__); scope(exit) writeln("<- ",__PRETTY_FUNCTION__); return scoped!S(1); } If you replace this line with "return new

Re: khash associative array / hash map / hash set

2020-08-25 Thread ikod via Digitalmars-d-announce
On Tuesday, 25 August 2020 at 01:04:27 UTC, James Blachly wrote: On 8/24/20 5:11 PM, ikod wrote: Thanks, but no ) Also you may find useful safe map modification during iteration over map items (at the cost of creating temporary table copy). In search of absolute speed I am willing to

Re: khash associative array / hash map / hash set

2020-08-24 Thread ikod via Digitalmars-d-announce
On Monday, 24 August 2020 at 20:31:42 UTC, James Blachly wrote: On Monday, 24 August 2020 at 05:51:59 UTC, ikod wrote: On Monday, 24 August 2020 at 01:39:26 UTC, James Blachly wrote: OH, I almost forgot the best part. It is crazy fast.

Re: khash associative array / hash map / hash set

2020-08-23 Thread ikod via Digitalmars-d-announce
On Monday, 24 August 2020 at 01:39:26 UTC, James Blachly wrote: OH, I almost forgot the best part. It is crazy fast. https://attractivechaos.wordpress.com/2018/01/13/revisiting-hash-table-performance/ https://attractivechaos.wordpress.com/2019/12/28/deletion-from-hash-tables-without-tombstones/

Re: Construct an used-defined hash table container type from an AA-literal expression

2020-07-05 Thread ikod via Digitalmars-d-learn
On Sunday, 5 July 2020 at 21:06:32 UTC, Per Nordlöw wrote: Is there a way to construct a custom written hash-table container (struct) from an AA-literal expression? can opAssign help? struct AA(K,V) { void opAssign(V[K] aa) { } } void main() { AA!(string, int) custom_aa;

Re: Downloading files over TLS

2020-06-26 Thread ikod via Digitalmars-d-learn
On Friday, 26 June 2020 at 11:41:27 UTC, Jacob Carlborg wrote: On Friday, 26 June 2020 at 11:10:27 UTC, ikod wrote: [...] Oh, it's that bad. That's disappointing. [...] I'm using a script (written in D) in my tool, DStep [1][2], to identify which versions of libclang is available and to

Re: Downloading files over TLS

2020-06-26 Thread ikod via Digitalmars-d-learn
On Friday, 26 June 2020 at 10:12:09 UTC, Jacob Carlborg wrote: Downloading files over TLS. This seems that it's something that should be quite simple to do. My high level goals are cross-platform and easy distribution. I don't need anything fancy just a simple API like this:

Re: Use classes as keys in associative array

2020-06-06 Thread ikod via Digitalmars-d-learn
On Saturday, 6 June 2020 at 20:31:36 UTC, ikod wrote: On Saturday, 6 June 2020 at 16:49:29 UTC, JN wrote: Is it possible to use different class instances as keys for associative array, but compare them by the contents? I tried to override opEquals but it doesn't seem to work. Basically I'd

Re: Use classes as keys in associative array

2020-06-06 Thread ikod via Digitalmars-d-learn
On Saturday, 6 June 2020 at 16:49:29 UTC, JN wrote: Is it possible to use different class instances as keys for associative array, but compare them by the contents? I tried to override opEquals but it doesn't seem to work. Basically I'd May be wrong, but probably you have to override opEquals

Re: Fibers and std.socket

2020-05-22 Thread ikod via Digitalmars-d-learn
On Friday, 22 May 2020 at 06:10:38 UTC, Atwork wrote: Is it possible to mix fibers with sockets from phobos? If so, how would I do it? Like just a simple example of async sockets using fibers in D. I will say that I'd prefer to not use any packages ex. vibe.d Yes you can mix std sockets

Re: undefined reference to 'deflateEnd'

2020-05-18 Thread ikod via Digitalmars-d-learn
On Monday, 18 May 2020 at 07:33:29 UTC, Andre Pany wrote: On Monday, 18 May 2020 at 06:02:03 UTC, ikod wrote: NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" [...] Thanks a lot. Kind regards André Just discovered that we can import etc.c.zlib and use low level zlib directly

Re: undefined reference to 'deflateEnd'

2020-05-18 Thread ikod via Digitalmars-d-learn
On Monday, 18 May 2020 at 05:01:45 UTC, Andre Pany wrote: Hi, I have some issues, the get this program working on ubuntu: ``` Dockerfile FROM ubuntu:focal RUN apt-get update && apt-get upgrade -y \ && apt-get install --no-install-recommends -y build-essential ldc dub zlib1g-dev COPY

Re: dlang-requests 1.1.0 released

2020-05-12 Thread ikod via Digitalmars-d-announce
On Tuesday, 12 May 2020 at 09:56:44 UTC, Pavel Shkadzko wrote: On Sunday, 5 April 2020 at 08:59:50 UTC, ikod wrote: Hello! Just a note that dlang-requests ver 1.1.0 released with new 'ByLine' interfaces added for get/post/put requests. range algorithms can be applied to server responses, so

Re: D and Async I/O

2020-05-11 Thread ikod via Digitalmars-d-learn
On Monday, 11 May 2020 at 21:15:28 UTC, Steven Schveighoffer wrote: On 5/11/20 3:46 PM, ikod wrote: On Monday, 11 May 2020 at 17:34:41 UTC, Jacob Carlborg wrote: On 2020-05-11 16:44, Russel Winder wrote: Crickey, a third option. This wil increase my dithering! ;-) Forth: Mecca [1] :) [1]

Re: D and Async I/O

2020-05-11 Thread ikod via Digitalmars-d-learn
On Monday, 11 May 2020 at 17:34:41 UTC, Jacob Carlborg wrote: On 2020-05-11 16:44, Russel Winder wrote: Crickey, a third option. This wil increase my dithering! ;-) Forth: Mecca [1] :) [1] https://github.com/weka-io/mecca And probably more. At least I also have my async library for

Re: dlang-requests 1.1.0 released

2020-04-05 Thread ikod via Digitalmars-d-announce
On Sunday, 5 April 2020 at 16:25:52 UTC, Anonymouse wrote: On Sunday, 5 April 2020 at 08:59:50 UTC, ikod wrote: Hello! Just a note that dlang-requests ver 1.1.0 released with new 'ByLine' interfaces added for get/post/put requests. [...] As always, thanks for your hard work! I don't use

Re: dlang-requests 1.1.0 released

2020-04-05 Thread ikod via Digitalmars-d-announce
On Sunday, 5 April 2020 at 11:53:29 UTC, Petar Kirov [ZombineDev] wrote: On Sunday, 5 April 2020 at 08:59:50 UTC, ikod wrote: Hello! Just a note that dlang-requests ver 1.1.0 released with new 'ByLine' interfaces added for get/post/put requests. range algorithms can be applied to server

dlang-requests 1.1.0 released

2020-04-05 Thread ikod via Digitalmars-d-announce
Hello! Just a note that dlang-requests ver 1.1.0 released with new 'ByLine' interfaces added for get/post/put requests. range algorithms can be applied to server responses, so that simple chain getContentByLine("https://httpbin.org/anything;) .map!"cast(string)a" .filter!(a =>

Re: How to get to body of HTTP 500 error with std.net.curl.get()?

2020-02-16 Thread ikod via Digitalmars-d-learn
On Saturday, 15 February 2020 at 20:38:51 UTC, Anonymouse wrote: On Saturday, 15 February 2020 at 16:25:42 UTC, Gregor Mückl When testing to confirm I ran into a bug[2] where the body is sometimes empty, but outside of fringe cases it should work. [1]:

Re: Intersection of two sets

2019-12-03 Thread ikod via Digitalmars-d-learn
On Tuesday, 3 December 2019 at 13:43:26 UTC, Jan Hönig wrote: It seems i don't google the right keywords. What i want to do: I have two sets. (I didn't find how to do sets, so i have two associative boolean arrays `bool[]`). And i want to join them, via an intersection. I know how to code

Re: dmd memory usage

2019-11-17 Thread ikod via Digitalmars-d-learn
On Monday, 18 November 2019 at 00:20:12 UTC, Steven Schveighoffer wrote: I'm fighting some out of memory problems using DMD and some super-template heavy code. I have ideas on how to improve the situation, but it involves redesigning a large portion of the design. I want to do it

Re: (SOLVED) requests module generates " Can't parse uri '' "

2019-11-10 Thread ikod via Digitalmars-d-learn
On Sunday, 10 November 2019 at 01:28:13 UTC, cartland wrote: On Saturday, 9 November 2019 at 01:02:57 UTC, cartland wrote: On Saturday, 9 November 2019 at 00:53:13 UTC, cartland wrote: On Friday, 8 November 2019 at 17:01:07 UTC, ikod wrote: *snip* Even this does it. import requests; void

Re: requests module generates " Can't parse uri '' "

2019-11-08 Thread ikod via Digitalmars-d-learn
On Friday, 8 November 2019 at 03:29:41 UTC, cartland wrote: First time D use :) After dub init, I used the example from https://code.dlang.org/packages/requests and ran "dub add requests" [...] If you still stuck with this problem, you can post new issue on github project page, I'll try

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

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: 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: Redis client hunt-redis RC1 released

2019-07-28 Thread ikod via Digitalmars-d-announce
On Thursday, 25 July 2019 at 16:23:58 UTC, Dejan Lekic wrote: On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote: A Powerfull Redis client library for D Programming Language. Porting from java Jedis, support redis 3.x / 4.x all features and 5.x some features. Why? There is the

Re: cachetools v.0.1.1

2019-07-17 Thread ikod via Digitalmars-d-announce
Hello cachetools version 0.2.1 released Changelog: OrderedHashMap added to containers, copy constructors added to containers addIfMissed interface added to HashMap's What is it? cachetools - package with @safe and @nogc cache and hashtable implementations. It inherits nogc propery from

Re: Error: @nogc function run cannot call non-@nogc destructor TcpServer.~this

2019-07-17 Thread ikod via Digitalmars-d-learn
On Wednesday, 17 July 2019 at 10:51:53 UTC, Newbie2019 wrote: this is very hard to made a minimal example, and the projects only build with ldc. There is a struct TcpServer has no destructor, and all method is @nogc nothrow. Then just add destructor with @nogc attribute.

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

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

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

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

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

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

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.

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

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:

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: 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: 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,

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

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: 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: 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!

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

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

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

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

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

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

  1   2   >