I see now.
https://github.com/tim-dlang/dqt
has examples of where these libs are found within Qt itself.
```
Build started at 7:16 PM...
-- Build started: Project: d--, Configuration: debug x64
--
Building
C:\Users\fruit\OneDrive\Desktop\Code\StateMachine\D--\d--.exe...
LINK : fatal error LNK1181: cannot open input file
'Qt5Widgets.lib'
Building
On Tuesday, 12 March 2024 at 05:38:03 UTC, Liam McGillivray wrote:
I am in need of a data type for holding direction information;
one of 8 directions on a single axis. They are named in terms
of compass directions. If D had a 4-bit datatype, I would just
use this and do `+=2` whenever I want
Dne so 20. 1. 2024 21:21 uživatel Renato via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> napsal:
> On Saturday, 20 January 2024 at 19:45:19 UTC, Daniel Kozak wrote:
> > On Sat, Jan 20, 2024 at 2:11 PM Renato via Digitalmars-d-learn
> > < digitalmars-d-le
On Sat, Jan 20, 2024 at 2:11 PM Renato via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Wow, fantastic feedback from lots of people, thanks so much!
> ...
>
> > evilrat:
> > There is another important difference, i quickly looked up D
> > associative array implementation and
On Fri, Jan 19, 2024 at 4:44 PM H. S. Teoh via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Taking a look at this code:
> ...
> Try addressing the points I wrote above and see if it makes a
> difference.
>
>
I have tried it (all of it) even before you wrote it here, because
03:11479)
at async Q.jb (vscode-file://vscode-
app/c:/Users/deepa/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:18090)
This is on my friend's machine, who I am teaching D. What can
be done?
Thanks,
Daniel Donnelly
On Thursday, 19 October 2023 at 15:25:36 UTC, ryuukk_ wrote:
```
"stopOnEntry": true,
```
Thanks, my bad I missed that. The entry point I get is a dynamic
link error and the program exits after trying to do a single step
(I've put the asm below).
Since calling `./bin/dfmt` works in
On Thursday, 19 October 2023 at 14:30:06 UTC, evilrat wrote:
Could it be is that it instantly crashes?
Thanks, but I have found it doesn't get that far* while debugging
in vscode, it seems to be a linker error.
\* If I randomly change program arguments (`--help`,
`./tests/issue0578.d` or
Hello, I need some help getting into the debugger in vscode on
macOS. It did work some months ago but that was finicky to set
up. Maybe I am forgetting something now?
I am compiling the project with `dub build --build debug
--compiler ldc2 --force` (the `-ld_classic` flag to fix the new
Right now, fresh install of VS and Visual D, all up-to-date.
Can't display ∈, so how can we fix this? There is no project
setting for Unicode chars.
Thanks!
EnjoysMath
```
dstring s = "";
for (dchar i='ₐ'; i < 'ₜ'; i++)
s ~= i;
writeln(s);
```
Doesn't work. The result I get is shit:
ₐₑₒₓₔₕₖₗₘₙₚₛ
On Thursday, 17 November 2022 at 05:34:49 UTC, zjh wrote:
On Thursday, 17 November 2022 at 04:25:13 UTC, Daniel Donnelly,
Jr. wrote:
...
`crtp`, will it work?
Can't use CRTP, because once you choose a derived class to pass
into the template system, how do you pass in subclasses
On Thursday, 17 November 2022 at 05:21:05 UTC, MorteFeuille123
wrote:
On Thursday, 17 November 2022 at 04:25:13 UTC, Daniel Donnelly,
Jr. wrote:
[...]
You can use TypeInfoClass:
[...]
I don't get it - you never made use of b1 or b2...
```
PosetRelation transitivity(PosetRelation R, PosetRelation S)
{
// These if conditions are typically ordered from easiest to
// most involved-to-check.
if (R.op == S.op &&
is(typeof(R) == typeof(S)) &&
R.right == S.left)
{
return new typeof(R)(
R.left,
I have SubclassOf derived from PosetRelation. For any poset
relation, the transitivity law applies, however, I'd like to
return the correct type:
```
PosetRelation transitivity(PosetRelation R, PosetRelation S)
{
if (R.op == S.op)
{
if (R.right is S.left)
On Saturday, 22 October 2022 at 13:29:00 UTC, Salih Dincer wrote:
On Saturday, 22 October 2022 at 09:49:28 UTC, Salih Dincer
wrote:
On Saturday, 22 October 2022 at 07:40:39 UTC, MGW wrote:
is dmd a virus?
https://www.virustotal.com report:
Cybereason --> Malicious.779f29
VBA32 -->
On Saturday, 22 October 2022 at 22:01:09 UTC, Enjoys Math wrote:
On Saturday, 22 October 2022 at 21:53:05 UTC, WhatMeWorry wrote:
string[] tokens = userSID.output.split!isWhite;
writeln("tokens = ", tokens);
tokens = ["SID", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "",
On Sunday, 11 September 2022 at 02:14:51 UTC, zjh wrote:
On Saturday, 10 September 2022 at 22:07:32 UTC, Ali Çehreli
wrote:
On 9/10/22 13:04, Daniel Donnell wrote:
> https://dlang.org/spec/cpp_interface.html
At DConf, Manu indicated that that page is outdated and that
D's C++ supp
As you may already know if you want to move a file or rename a
folder in VisualD, you can't simply do it. I've even had to edit
the project file with Notepad++ in order to repair it.
So, I'm humbly asking how can we fix this? I'm considering doing
something in C++ which I'd rather not
https://dlang.org/spec/cpp_interface.html
According to that C++ / D .object files can interoperate both
ways, but one has to be compiled before the other, order
depending on direction.
My question is, can you have a class C (C++) use a class D
(Dlang) in such a way that D can also use C as
On Tuesday, 25 January 2022 at 20:04:04 UTC, Adam D Ruppe wrote:
On Tuesday, 25 January 2022 at 19:52:17 UTC, Ali Çehreli wrote:
ldc: ~0.95 seconds
gdc: ~0.79 seconds
dmd: ~1.77 seconds
Maybe you can try --ffast-math on ldc.
On Mon, Aug 30, 2021 at 8:20 AM bauss via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Monday, 30 August 2021 at 02:39:06 UTC, someone wrote:
> > https://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/
> >
> > I've been reading vibe.d tour and some documentation
On Wed, Jul 28, 2021 at 11:41 PM hanabi1224 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Wednesday, 28 July 2021 at 16:26:49 UTC, drug wrote:
> > I profiled the provided example (not `FiberScheduler`) using
> > perf. Both dmd and ldc2 gave the same result - `void
> >
D could be the greatest thing on the planet. Like Python, D will
take over the world of coding.
On Thursday, 20 May 2021 at 22:54:18 UTC, Daniel Donnelly, Jr
wrote:
Hi, I'm just testing whether I can post here. Thank you.
Okay it worked. I am installing Visual D now. I am going to
write a program that tries to guess a mathematical model of data
using < 10 operators. I won't incl
Hi, I'm just testing whether I can post here. Thank you.
On Fri, Mar 26, 2021 at 7:31 AM Daniel Kozak wrote:
> On Fri, Mar 26, 2021 at 6:50 AM Jack via Digitalmars-d-learn <
> digitalmars-d-learn@puremagic.com> wrote:
>
>> What's the equivalent of C's VLA in D? scoped from std.typecons
>> doesn't seem to work with arrays. S
On Fri, Mar 26, 2021 at 7:36 AM Daniel Kozak wrote:
> On Fri, Mar 26, 2021 at 7:31 AM Daniel Kozak wrote:
>
>> On Fri, Mar 26, 2021 at 6:50 AM Jack via Digitalmars-d-learn <
>> digitalmars-d-learn@puremagic.com> wrote:
>>
>>> What's the equivalent of
On Fri, Mar 26, 2021 at 6:50 AM Jack via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> What's the equivalent of C's VLA in D? scoped from std.typecons
> doesn't seem to work with arrays. Should I use alloca() for my
> array or is there something else?
>
On Saturday, 13 February 2021 at 04:19:17 UTC, Ali Çehreli wrote:
On 2/11/21 6:22 PM, H. S. Teoh wrote:
>bool[size_t] hashes;
I would start with an even simpler solution until it's proven
that there still is a memory issue:
import std.stdio;
void main() {
bool[string] lines;
On Sat, Jan 23, 2021 at 7:15 AM dan via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> ...
> So debian 10 and ubuntu 20.4 are candidates, but i'm wondering if
> there are others. (I tried to find gtkd on linux mint but did
> not see a package for it, but man i could sure be
On Fri, Jan 15, 2021 at 10:30 AM dog2002 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> ...
> Okay, the reason is incredibly stupid: using WinMain instead of
> main causes high memory usage. I don't know why, I use the same
> code. If I replace WinMain with main, the memory
On Fri, Jan 15, 2021 at 8:20 AM dog2002 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Friday, 15 January 2021 at 06:56:36 UTC, dog2002 wrote:
> > On Friday, 15 January 2021 at 06:33:55 UTC, Paul Backus wrote:
> >> On Friday, 15 January 2021 at 06:31:18 UTC, Paul Backus
On Fri, Jan 15, 2021 at 8:00 AM dog2002 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Friday, 15 January 2021 at 06:33:55 UTC, Paul Backus wrote:
> > On Friday, 15 January 2021 at 06:31:18 UTC, Paul Backus wrote:
> >>
> >> You can save a little bit of memory here by
On Wed, Jan 13, 2021 at 4:10 PM Roguish via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Wednesday, 13 January 2021 at 14:17:51 UTC, Rikki Cattermole
> wrote:
> >
> > Same thing.
>
> Clear, thanks.
>
> I'm just discovering today that DMD and LDC are two different
>
Dne st 23. 12. 2020 1:00 uživatel Steven Schveighoffer via
Digitalmars-d-learn napsal:
> On 12/22/20 5:44 PM, Daniel Kozak wrote:
> > On Tue, Dec 22, 2020 at 10:15 PM Andre Pany via Digitalmars-d-learn
> > > <mailto:digitalmars-d-learn@puremagic.com>> wrote:
>
On Tue, Dec 22, 2020 at 10:15 PM Andre Pany via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Hi,
>
> I am really confused, why is this valid:
> void sample(string[string] s = string[string].init){}
>
> while this causes syntax errors?
>
> void sample_invalid1(double[string] s
or VMware, to more
easily evaluate if linux + ASAN matches your expectations or if
it's another dead-end.
Regards,
Daniel
On Sunday, 29 November 2020 at 16:05:04 UTC, Mark wrote:
Thanks a lot for reading, and sorry for a lot of text that is
off-topic and is not related to D.
Sounds like what you want is ASAN? You can use it with plain C or
D(LDC).
https://clang.llvm.org/docs/AddressSanitizer.html
On Fri, Nov 20, 2020 at 8:55 AM Mike Parker via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> ...
> Eh, I wouldn't quite put it that way. If we're thinking of the
> same thread, one person said he thought it was a bad idea. That
> doesn't make it bad practice. It's just his
On Thu, Nov 12, 2020 at 4:12 PM Daniel Kozak wrote:
> On Thu, Nov 12, 2020 at 4:05 PM Ruby The Roobster via Digitalmars-d-learn <
> digitalmars-d-learn@puremagic.com> wrote:
>
>> Here is a test that I did:
>>
>> void func(int i)
>> {
>> Thread.sleep(i
On Thu, Nov 12, 2020 at 4:05 PM Ruby The Roobster via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Here is a test that I did:
>
> void func(int i)
> {
> Thread.sleep(i.seconds);
> }
> void main() {
> auto test = Task!func(3);
> test.executeInNewThread();
> test.yeildForce();
On Tue, Nov 10, 2020 at 11:55 AM Max Samukha via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> We can get the compile time equivalent of a member function's
> address by applying '&' to the function in a static context:
>
> struct S {
> void foo() {}
> }
>
> enum pfoo =
On Tue, Nov 10, 2020 at 8:50 PM Max Samukha via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Tuesday, 10 November 2020 at 14:36:04 UTC, Steven
> Schveighoffer wrote:
>
> >>
> >> Is there a way to get a pointer to a non-static nested
> >> function?
> >
> > I don't think you
On Mon, Nov 9, 2020 at 9:50 PM rinfz via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Monday, 9 November 2020 at 20:40:59 UTC, rinfz wrote:
> > On Monday, 9 November 2020 at 19:55:07 UTC, Vino wrote:
> >> ...
> >
> > The only curl option you need to set within the loop is
Just delete it
On Mon, Nov 9, 2020 at 9:00 PM Vino via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Hi All,
>
>Request your help to on how to improve the performance of the
> below code.
>
> import std.conv: to;
> import std.net.curl : get, HTTP, CurlOption;
> import
On Monday, 9 November 2020 at 08:06:54 UTC, Andrey wrote:
Hello,
Are here any differences in creation of dynamic array with
known size?
auto array = new wchar[](111);
and
wchar[] array;
array.length = 111;
In theory
auto array = new wchar[111]; // or new wchar[](111);
should do less
On Thu, Oct 29, 2020 at 4:13 PM H. S. Teoh via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
>
> But why can't that be treated differently from explicitly writing @safe
> on a declaration? I mean, yeah, it's easier to implement the compiler
> that way, but ease of
On Wed, Oct 14, 2020 at 10:30 PM Jack via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> What was the reasoning behind this decision?
>
https://dlang.org/deprecate.html#Class allocators and deallocators
On Mon, Oct 5, 2020 at 10:25 AM Alaindevos via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Can I say python has pip, ruby has bundle and D has dub.
> Meaning they perform the same function ?
> Or am I wrong?
>
Yes and no. Dub is Dlang dependency solution but it is not
On Sat, Oct 3, 2020 at 11:30 PM Steven Schveighoffer via
Digitalmars-d-learn wrote:
>
>
> "StructMemberInitializers with the NonVoidInitializer syntax appear in
> the lexical order of the fields in the StructDeclaration" seems to
> suggest it will not call the constructor, but instead initialize
On Sat, Oct 3, 2020 at 10:40 PM Daniel Kozak wrote:
> I would say it is here you just need to read it carefully:
>
> https://dlang.org/spec/struct.html#static_struct_init
>
>
For case specification is change I will paste it here:
'''
If a StructInitializer is supplied, the fields
On Sat, Oct 3, 2020 at 4:45 PM Steven Schveighoffer via Digitalmars-d-learn
wrote:
> On 10/3/20 6:52 AM, claptrap wrote:
> > On Saturday, 3 October 2020 at 00:15:02 UTC, Steven Schveighoffer wrote:
> >> On 10/2/20 7:28 PM, claptrap wrote:
> >>
> >>> Why would putting in the writeln cause it to
On Wed, Sep 30, 2020 at 2:40 PM seany via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Wednesday, 30 September 2020 at 12:29:06 UTC, Daniel Kozak
> wrote:
>
> to separate the messages from the IoT responses quickly and
> forward them to different
Dne st 30. 9. 2020 13:25 uživatel seany via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> napsal:
> Hello
>
> I am trying to use this example for a iot application:
> https://aberba.com/2018/using-vibe-d-web-interface/
>
> The code i use is:
>
> ushort port = 5504;
On Tue, Sep 22, 2020 at 3:05 PM claptrap via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
>
> The thread title is...
>
> "Why private methods cant be virtual?"
>
> IE Not...
>
> "how do I override private functions in a non-polymorphic manner."
>
> And what you suggest wont
On Tue, Sep 22, 2020 at 1:30 PM ShadoLight via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
>
>
> This is not really "overriding", it is more akin to "overloading"
>
No it is not overloading, overloading is when you have more methods with
same name and differents params. It
On Tue, Sep 22, 2020 at 11:06 AM claptrap via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
>
> "Functions marked as final may not be overridden in a derived
> class, unless they are also private"
>
> So final private functions can be overriden? It seems not, but
> the sentence
On Tue, Sep 22, 2020 at 12:23 PM Daniel Kozak wrote:
> ...
> void main(string[] args)
> {
> B b = new B;
> b.overrideFun;
> }
>
You can have A and B in one module too of course
On Wed, Sep 16, 2020 at 12:50 PM Daniel Kozak wrote:
>
>
> On Wed, Sep 16, 2020 at 12:00 PM Jan Hönig via Digitalmars-d-learn <
> digitalmars-d-learn@puremagic.com> wrote:
>
>> ...
>>
>> My main question is why? Is there something, which I am missing,
On Wed, Sep 16, 2020 at 12:00 PM Jan Hönig via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> ...
>
> My main question is why? Is there something, which I am missing,
> that explains, why it is beneficial to return a templated
> function?
>
> (maybe, because I might want to
On Fri, Sep 11, 2020 at 1:15 PM Daniel Kozak wrote:
> On Fri, Sep 11, 2020 at 1:10 PM Selim Ozel via Digitalmars-d-learn <
> digitalmars-d-learn@puremagic.com> wrote:
>
>> It seems like rejected-software forum is flooded with spam, so I
>> decided to ask it here.
On Fri, Sep 11, 2020 at 1:10 PM Selim Ozel via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> It seems like rejected-software forum is flooded with spam, so I
> decided to ask it here. Is there a way to generate a file -csv
> for example- on the back-end and serve it to the
On Wed, Aug 12, 2020 at 3:51 PM James Blachly via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Unfortunately the problem still occurs with Vibe.d 0.9.0
>
> IMO **this is the single most important problem to fix** for vibe.d --
> if the most basic of examples (indeed, supplied
On Mon, Aug 10, 2020 at 1:15 PM Per Nordlöw via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Monday, 10 August 2020 at 05:54:14 UTC, Daniel Kozak wrote:
> > I am not sure but last time I checked ldc does not do cross
> > module inlinig by default, and
On Mon, Aug 10, 2020 at 12:50 AM claptrap via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Sunday, 9 August 2020 at 22:18:13 UTC, Per Nordlöw wrote:
> > ...
> If you enable link time optimisation you get cross module
> inlining,
>
> -flto=full
>
> I'm not 100% sure but I
On Mon, Aug 10, 2020 at 12:20 AM Per Nordlöw via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
>
> Is cross-module-inlining enabled by default in LDC when compiling
> in release mode or do I have to use explicitly flag for it? I
> can't find any such flag from the output of
On Sat, Jun 13, 2020 at 9:20 PM Robert M. Münch via
Digitalmars-d-learn wrote:
>
> After a CTRL+C I still have the server process running on OSX. Any idea?
>
> [main() INF] Listening for requests on http://[::1]:8080/
> [main() INF] Listening for requests on http://127.0.0.1:8080/
>
On Tuesday, 26 May 2020 at 15:56:31 UTC, kinke wrote:
Using `-L/safeseh:no` should work around this.
It successfully made the executable, and it runs fine - until
exit lol. Must be more tweaks needed.
Edit source/app.d to start your project.
object.Error@(0): Access Violation
On Tuesday, 26 May 2020 at 15:56:31 UTC, kinke wrote:
On Monday, 25 May 2020 at 01:32:58 UTC, Daniel C wrote:
Is lld-link only for 64-bit compiles (-m64 is the only one
that gives no errors)
Nope, but SafeSEH is a 32-bit-only feature. DMD doesn't emit
SafeSEH compatible object files, and LLD
On Sun, May 24, 2020 at 10:10 AM Russel Winder via Digitalmars-d-learn
wrote:
>
> Hi,
>
> Clearly Vibe.d is mostly for people doing HTTP and HTTPS stuff. Yet it claims
> to be able to support TCP and UDP working with other protocols. However, all
> the serious examples are HTTP/HTTPS related. All
On Sun, May 24, 2020 at 10:06 AM Russel Winder via Digitalmars-d-learn
wrote:
>
> For my purposes switching to using SIGKILL rather than SIGTERM in my tests
> seems to work with 1.9.1, so I'll go with that till 1.9.2 or 1.10.0 produces a
> fix rather than revert to 1.8.1.
>
You can use
Hi, I have a simple program with just one line (below). I've
compiled on Windows using
dmd -ms32coff app.d
and have had LINKCMD set to lld-link, but get the following
errors. Is lld-link only for 64-bit compiles (-m64 is the only
one that gives no errors)
lld-link: error: /safeseh: app.obj
On Wed, May 20, 2020 at 9:45 AM Atwork via Digitalmars-d-learn
wrote:
>
> Is it possible to have vibe.d gzip responses?
>
> I cannot find anything in the documentation about it.
>
> I am not talking about gzipping ex. files/streams but ALL
> responses as a whole.
>
> Is there a configuration or
https://vibed.org/api/vibe.http.server/HTTPServerSettings.useCompressionIfPossible
On Wed, May 20, 2020 at 9:45 AM Atwork via Digitalmars-d-learn
wrote:
>
> Is it possible to have vibe.d gzip responses?
>
> I cannot find anything in the documentation about it.
>
> I am not talking about gzipping
On Mon, May 11, 2020 at 4:03 PM Russel Winder via Digitalmars-d-learn
wrote:
>
> ...
> I notice that Hunt uses it's own library eschewing all of Phobos. Is this an
> indicator that Phobos is not suitable for networking activity?
Vibe-d do that too, But https://code.dlang.org/packages/async use
On Mon, Apr 27, 2020 at 11:56 AM Russel Winder via Digitalmars-d-learn
wrote:
>
> Hi,
>
> Background: I chose to rewrite a Python/PySide2/Qt application in
> X/GTK+. After much dithering I was pushed to Rust/gtk-rs/GTK+ and set
> to it. Then I decided to do D/GtkD/GTK+ as well.
>
> Totally
On Mon, Mar 2, 2020 at 6:50 PM Severin Teona via Digitalmars-d-learn
wrote:
>
> Hello,
>
> I am working on a project that uses a Raspberry Pi (armv7l) and
> the latest LDC version I found for this architecture is 1.13.0.
> Can you help me install the latest version(1.20.0)?
>
> Also, I'm having
On Mon, Mar 2, 2020 at 7:40 PM Daniel Kozak wrote:
>
> On Mon, Mar 2, 2020 at 6:50 PM Severin Teona via Digitalmars-d-learn
> Do you really need to build you app on arm, could not you use crosscompiling?
https://wiki.dlang.org/Cross-compiling_with_LDC
On Mon, Mar 2, 2020 at 7:40 PM Daniel Kozak wrote:
>
> On Mon, Mar 2, 2020 at 6:50 PM Severin Teona via Digitalmars-d-learn
> wrote:
> >
> > Hello,
> >
> > I am working on a project that uses a Raspberry Pi (armv7l) and
> > the latest LDC version I found f
"lflags-windows": ["/SUBSYSTEM:WINDOWS", "/ENTRY:mainCRTStartup"],
On Sun, Feb 9, 2020 at 2:30 PM mark via Digitalmars-d-learn
wrote:
>
> I found a much easier way to get GtkD working on windows than
> that described in
> https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html
>
>
On Mon, Nov 18, 2019 at 7:25 PM Steven Schveighoffer via
Digitalmars-d-learn wrote:
>
>
> You could also use cast(dchar[]), and avoid the cast back to char.
>
> -Steve
or use byCodeUnit
writeln(['a', 'b', 'c'].byCodeUnit.choice);
On Tue, Nov 12, 2019 at 11:50 PM Marcone via Digitalmars-d-learn
wrote:
>
>
> Can you make Alias for:
> task!func().executeInNewThread();
>
> Thank you!
AFAIK that is not possible without some wrapper because
executeInNewThread is member function of Task so it will need this
reference for object
On Tuesday, 12 November 2019 at 21:24:54 UTC, Marcone wrote:
I am using this function to sleep, but I want a simple Alias.
How can I alias this?
// Function sleep(int)
void sleep(int seconds){
Thread.sleep(dur!("seconds")( seconds ));
}
sleep(1); // Using function.
You can do this:
On Mon, Nov 4, 2019 at 10:45 AM Treebeard via Digitalmars-d-learn
wrote:
>
> Hoom, hum, can you tell me some nice instructions to compile the
> latest release of DMD using LDC?
>
> I walk slowly, but I love fast compilers.
>
> ---
> But I spoke hastily. We must not be hasty. I have become too
On Tue, Oct 29, 2019 at 5:09 PM Daniel Kozak wrote:
>
> On Tue, Oct 29, 2019 at 4:45 PM Twilight via Digitalmars-d-learn
> wrote:
> >
> > D calculation:
> >mport std.stdio;
import std.math : pow;
import core.stdc.math;
void main()
{
writefln("%12.3F&
On Tue, Oct 29, 2019 at 5:09 PM Daniel Kozak wrote:
>
>
> If you use gdc or ldc you will get same results as c++, or you can use
> C log directly:
>
> import std.stdio;
> import std.math : pow;
> import core.stdc.math;
>
> void main()
> {
> writefln(&quo
On Tue, Oct 29, 2019 at 4:45 PM Twilight via Digitalmars-d-learn
wrote:
>
> D calculation:
>
>writefln("%12.2F",log(1-0.)/log(1-(1-0.6)^^20));
>
> 837675572.38
>
> C++ calculation:
>
>cout< <<'\n';
>
> 837675573.587
>
> As a second data point, changing 0. to 0.75 yields
>
On Mon, Oct 28, 2019 at 9:40 AM Per Nordlöw via Digitalmars-d-learn
wrote:
>
> Is it possible to run the unittests of a module with -betterC like
>
> dmd -D -g -main -unittest -betterC f.d
>
> ?
>
> This currently errors as
>
> /usr/include/dmd/druntime/import/core/internal/entrypoint.d:34:
On Thu, Oct 24, 2019 at 3:35 PM 9898287 via Digitalmars-d-learn
wrote:
>
> What's the function for converting a ulong to a native-endian
> byte array?
> For example,
>
> auto bytes = 0x1234567890123456u64.to_ne_bytes();
> // should yield
> // [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56] in
On Thu, Oct 24, 2019 at 1:55 PM Mil58 via Digitalmars-d-learn
wrote:
>
> Hi All...
> I am desperate for the answer to the following problem:
> to obtain the difference between the date of today and an older
> date (results in days...)
>
> See my script below, where I would like to do:
> "date of
On Tue, Oct 22, 2019 at 8:30 PM Vinod K Chandran via
Digitalmars-d-learn wrote:
>
> On Tuesday, 22 October 2019 at 17:38:58 UTC, Adam D. Ruppe wrote:
> > On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran
> > wrote:
> >> Hi all,
> >> I am new to D. But some fair experience with vb.net.
On Tue, Oct 22, 2019 at 2:20 PM Andrey via Digitalmars-d-learn
wrote:
>
> Hello,
> During compilation on linking stage I get strange errors (LDC):
> lld-link: error: undefined symbol:
>
On Tue, Oct 22, 2019 at 10:25 AM Prokop Hapala via Digitalmars-d-learn
wrote:
>
> ...
>
> Also where is RDMD in the equation? I really like the idea run
> binary programs like:
>
> #!/usr/bin/env rdmd
> import std.stdio;
> void main(){
> writeln("Hello, world!");
> }
>
> But I cannot find
On Tue, Oct 22, 2019 at 8:00 AM Prokop Hapala via Digitalmars-d-learn
wrote:
>
> I'm examining the possibility to move from Python+C/C++ to D or
> Python+D. I read
> (https://wiki.dlang.org/Programming_in_D_for_Python_Programmers)
> and
> (https://jackstouffer.com/blog/nd_slice.html), where is
On Fri, Oct 11, 2019 at 6:58 AM Daniel Kozak wrote:
>
> so can stress your CPU.
can't
On Fri, Oct 11, 2019 at 2:45 AM Murilo via Digitalmars-d-learn
wrote:
>
> I have started working with neural networks and for that I need a
> lot of computing power but the programs I make only use around
> 30% of the cpu, or at least that is what Task Manager tells me.
> How can I make it use
On Thursday, 10 October 2019 at 19:26:36 UTC, Daniel Kozak wrote:
On Thursday, 10 October 2019 at 19:25:22 UTC, Daniel Kozak
wrote:
On Thursday, 10 October 2019 at 19:21:06 UTC, Daniel Kozak
wrote:
On Thursday, 10 October 2019 at 19:19:42 UTC, Daniel Kozak
wrote:
On Thursday, 10 October 2019
On Thursday, 10 October 2019 at 19:21:06 UTC, Daniel Kozak wrote:
On Thursday, 10 October 2019 at 19:19:42 UTC, Daniel Kozak
wrote:
On Thursday, 10 October 2019 at 18:52:32 UTC, Jarek wrote:
On Monday, 23 September 2019 at 12:31:16 UTC, Adam D. Ruppe
wrote:
[...]
Hello,
thanks for reply
1 - 100 of 926 matches
Mail list logo