On Saturday, 4 May 2024 at 19:11:14 UTC, Nick Treleaven wrote:
On Saturday, 4 May 2024 at 16:58:00 UTC, Dmitry Olshansky wrote:
So I have a function:
```d
size_t awaitAny(T...)(T args) { ... }
```
And I have:
``d
Event*[4] events;
``
How do I pass all 4 of events to awaitAny as tuple of
argu
So I have a function:
```d
size_t awaitAny(T...)(T args) { ... }
```
And I have:
``d
Event*[4] events;
``
How do I pass all 4 of events to awaitAny as tuple of arguments?
--
Dmitry Olshansky
CEO @ [Glow labs](https://glow-labs.pro)
https://olshansky.me/about/
On Monday, 8 April 2024 at 13:23:12 UTC, Richard (Rikki) Andrew
Cattermole wrote:
On 09/04/2024 1:20 AM, Dmitry Olshansky wrote:
I haven’t done any research on the subject, would be nice if
somebody pointed me to good example of how it’s done.
—
Dmitry Olshansky
CEO @ Glowlabs
https://olshansk
I haven’t done any research on the subject, would be nice if
somebody pointed me to good example of how it’s done.
—
Dmitry Olshansky
CEO @ Glowlabs
https://olshansky.me
On Saturday, 23 March 2024 at 09:08:45 UTC, Per Nordlöw wrote:
Is there a reason why
```d
class Base {}
class Derived : Base {}
@safe pure nothrow unittest {
Base b;
Derived d;
b = d; // pass
Base[] bs;
Derived[] ds;
bs ~= ds; // pass
bs
Trying to compile the following:
https://github.com/DmitryOlshansky/photon/blob/master/tests/curl_download.d
with:
ldc2 curl_download.d -L-lcurl
get:
"__D6photon12__ModuleInfoZ", referenced from:
__D13curl_download12__ModuleInfoZ in curl_download.o
"__D6photon5macos4core2goFDFZvZv",
On Friday, 7 July 2023 at 10:29:14 UTC, Richard (Rikki) Andrew
Cattermole wrote:
I believe: https://github.com/dlang-community/setup-dlang
Thx!
—
Dmitry Olshansky
CEO @ Glow Labs
https://olshansky.me
https://t.me/glowlabs32
Simply enough dub test should pass.
How do I go about it?
—
Dmitry Olshansky
CEO @ Glow Labs
https://olshansky.me
https://t.me/glowlabs32
On Friday, 30 June 2023 at 16:26:26 UTC, Richard (Rikki) Andrew
Cattermole wrote:
I use it and contribute to it ;)
Thanks to Rikki I was able to figure it out.
—
Dmitry Olshansky
https://olshansky.me
Have anyone had any luck with it?
So far I'm trying to install DMD as SDK but it fails with not a
valid D compiler home.
--
Dmitry Olshansky
https://olshansky.me
On Friday, 16 June 2023 at 16:14:19 UTC, Steven Schveighoffer
wrote:
On 6/16/23 11:56 AM, Dmitry Olshansky wrote:
Any advice from MacOS users?
Yep.
Go into settings, then privacy and security. Make sure "App
store and identified developers" is checked.
On that page, you will see probably
On Wednesday, 12 April 2023 at 11:07:56 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Did you compile the library with dub using ldc2?
Yup, I do not have other compilers installed.
--
Dmitry Olshansky
On Wednesday, 12 April 2023 at 10:24:48 UTC, Richard (Rikki)
Andrew Cattermole wrote:
I'm going to guess that you need to use the version specifier
in the package name. Because I'm not seeing anything there to
handle it specifically.
https://github.com/mesonbuild/meson/blob/master/mesonbuild/d
On Wednesday, 12 April 2023 at 10:24:48 UTC, Richard (Rikki)
Andrew Cattermole wrote:
I'm going to guess that you need to use the version specifier
in the package name. Because I'm not seeing anything there to
handle it specifically.
https://github.com/mesonbuild/meson/blob/master/mesonbuild/d
I'm trying to use my new DUB package from Photon, which is
polyglot project and is built with Meson.
Have anyone worked with DUB packages in Meson? I've found this
bit of documentation:
https://mesonbuild.com/Dependencies.html#dub
And I did fetch & build but I do not understand how to introdu
On Wednesday, 12 April 2023 at 08:25:54 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Your branches + tag is all messed up.
You have both ~master and ~main. ~main has dub.json (which is
required), but the tag is based upon ~master which has your
README.
Between the two branches everything is
Could someone walk me through the steps of publish my dub package?
I'm stuck with this:
https://code.dlang.org/packages/strand
For some reason code.dlang.org cannot find my semver tag I guess.
--
Dmitry Olshansky
On Wednesday, 24 August 2022 at 21:11:42 UTC, rikki cattermole
wrote:
For dmd you use build.d that is in the repository.
Hm, I guess the makefiles should be deleted?
For phobos win64.mak (used for 32bit by default as well):
"# Makefile to build D runtime library phobos{64,32mscoff}.lib
for
It's been a long time but I've found some spare hours I want to
devote to finally updating our std.uni to Unicode 14 (soon to
migrate to 15 I guess).
I downloaded source code of DMD/Phobos as usual and dropped them
in the src folder of unpacked 7z distribution archive. Now time
to build. Sinc
On Wednesday, 9 May 2018 at 09:38:14 UTC, BoQsc wrote:
The D Style suggest to camelCase constants, while Java naming
conventions always promoted uppercase letter.
Is there an explanation why D Style chose to use camelCase
instead of all UPPERCASE for constants, was there any technical
problem
On Saturday, 21 April 2018 at 14:25:58 UTC, Cym13 wrote:
On Saturday, 21 April 2018 at 13:54:14 UTC, H. S. Teoh wrote:
On Sat, Apr 21, 2018 at 01:30:55PM +, Cym13 via
Digitalmars-d-learn wrote:
On Saturday, 21 April 2018 at 12:08:09 UTC, Dmitry Olshansky
wrote:
[...]
> Unbounded allocation
On Saturday, 21 April 2018 at 13:30:55 UTC, Cym13 wrote:
On Saturday, 21 April 2018 at 12:08:09 UTC, Dmitry Olshansky
wrote:
On Saturday, 21 April 2018 at 07:37:50 UTC, Mike Franklin
wrote:
Does D have some way to dynamically allocate on the stack?
I'm looking for something roughly equivalent
On Saturday, 21 April 2018 at 07:37:50 UTC, Mike Franklin wrote:
Does D have some way to dynamically allocate on the stack? I'm
looking for something roughly equivalent to the following C
code.
int doSomething(size_t len)
{
char stackBuffer[len + 1];
doSomethingElse(stackBuffer);
}
On Monday, 26 March 2018 at 16:14:31 UTC, Jonathan wrote:
Can I send data over an std.socket on multiple threads without
manual mutexing?
If not, can I send data on a separate thread than receive?
The docs for std.socket say nothing of it (which I guess means
I should assume it is not thread
On Sunday, 18 March 2018 at 18:11:02 UTC, Dmitry Olshansky wrote:
On Sunday, 18 March 2018 at 16:45:16 UTC, Joe wrote:
[...]
No it just creates a pair of pointer to recs[0] + length of
recs, like this:
struct Array
{
size_t length;
Record* ptr;
}
In D it’s typed as Record[] and has a n
On Sunday, 18 March 2018 at 16:45:16 UTC, Joe wrote:
On Sunday, 18 March 2018 at 13:10:08 UTC, Dmitry Olshansky
wrote:
Do this to get the usual ptr + length:
sort!((a, b) => to!string((*a).name) <
to!string((*b).name))(recs[]);
Also to!string would be computed on each compare anew. May
want
On Sunday, 18 March 2018 at 11:29:47 UTC, Joe wrote:
On Monday, 12 March 2018 at 03:50:42 UTC, Joe wrote:
On Monday, 12 March 2018 at 03:13:08 UTC, Seb wrote:
Out of interest: I wonder what's your usecase for using
qsort. Or in other words: why you can't use the high-level
std.algorithm.sortin
On Thursday, 15 March 2018 at 00:06:49 UTC, Cecil Ward wrote:
Can anyone point me in the direction of a library that provides
very very lightweight (minimum overhead) asynchronous i/o
routines for - shopping list
1. sending and receiving IPv4 / IPv6 packets,
2. sending receiving ICMP and
3, ha
On Thursday, 1 March 2018 at 10:10:27 UTC, John Burton wrote:
In the language spec here :-
https://dlang.org/spec/garbage.html#pointers_and_gc
It refers to a distinction between pointers to garbage
collected memory and pointers that are not. In particular it
says that with a non garbage collec
On Wednesday, 28 February 2018 at 05:09:03 UTC, psychoticRabbit
wrote:
On Wednesday, 28 February 2018 at 01:06:30 UTC, dark777 wrote:
Regex validates years bisexto and not bisextos in format:
const std::regex
pattern(R"(^(?:(?:(0?[1-9]|1\d|2[0-8])([-/.])(0?[1-9]|1[0-2]|[Jj](?:an|u[nl])|[Mm]a[ry
On Monday, 19 February 2018 at 14:57:22 UTC, SrMordred wrote:
On Monday, 19 February 2018 at 05:54:53 UTC, Dmitry Olshansky
wrote:
The operation is trivial and dataset is rather small. In such
cases SIMD with eg array ops is the way to go:
result[] = values[] * values2[];
Yes, absolutely righ
On Sunday, 18 February 2018 at 17:54:58 UTC, SrMordred wrote:
I´m experimenting with threads and related recently.
(i´m just started so may be some terrrible mistakes here)
With this base work:
foreach(i ; 0 .. SIZE)
{
results[i] = values1[i] * values2[i];
}
and then with this 3 others met
On Sunday, 21 January 2018 at 17:28:13 UTC, Andres Clari wrote:
Hi, is there any way to get from the GC all allocated objects,
so I can see their size and find where I'm leaking memory? Or
perhaps a good tool to help with this issue...
I tried building my program with "profile-gc" but I got an
What is the status of the platform?
I might be doing some number crunching on one of the power8
beasts, would be nice to have D working there.
---
Dmitry Olshansky
On Sunday, 15 January 2017 at 20:33:30 UTC, Alexandru Ermicioi
wrote:
Good day,
Given following code example, where a templated interface Wr,
and an implementation Im is present:
From the standpoint of the compiler they are 3 distinct
interfaces, so all is good.
interface Wr(T) {
T g
On Monday, 26 December 2016 at 10:12:20 UTC, Remi Thebault wrote:
Hello
I want to map a dchar to its Bidi_Class.
I've built an utility that reads UnicodeData.txt into an AA and
builds a trie with std.uni.codepointTrie from it.
I use Trie.store() to export the trie entry table into a D
module.
On Friday, 24 April 2015 at 18:28:16 UTC, Guillaume wrote:
Hello, I'm trying to make a regex comparison with D, based off
of this article: https://swtch.com/~rsc/regexp/regexp1.html
I've written my code like so:
import std.stdio, std.regex;
void main(string argv[]) {
string m = argv[
37 matches
Mail list logo