On Sunday, 12 May 2024 at 20:13:04 UTC, WhatMeWorry` wrote:
This should be trivial, right?
I've been looking at existing D repo code for hours. Can't
figure why TTF_Init doesn't work?
It would help if I could figure out how to use SDL_GetError()
INFO: SDL loaded v2.30.2
INFO: SDL initialized:
On Thursday, 22 February 2024 at 01:23:36 UTC, ptcute wrote:
Greeings!
My c to d header wrapper file curl_d.c (just 2 lines):
...
So what's the real issue behind?
Anyone help on this would be appreciated.
According to the windows documentation, you'll need: Kernel32.lib
See:
On Tuesday, 23 May 2023 at 13:51:29 UTC, Quirin Schroll wrote:
On Tuesday, 23 May 2023 at 13:50:09 UTC, Quirin Schroll wrote:
The dlang-bot writes a message to every PR:
Testing this PR locally
If you don't have a local development environment setup, you
can use Digger to test this PR:
On Friday, 19 May 2023 at 11:07:01 UTC, anonymouse wrote:
What am I doing wrong here?
```D
import std.net.curl: Curl, CurlOption, CurlException;
import std.file: exists;
import std.stdio: File, writefln;
import core.thread: Thread;
void downloadFile(string url, string filename)
{
while
Hey All,
For some reason I cannot reset my password to get into dub
(https://code.dlang.org/), after trying I never receive the email
to reset my password.
I was unsure at first if I had signed up at all, but trying to
make a new account tells me my email address is already in use.
Any
On Friday, 1 October 2021 at 17:53:24 UTC, Steven Schveighoffer
wrote:
I think your struct is different than this, because this only
happens if aliasing is inside the struct being sorted (i.e. it
has pointers). Your presented struct doesn't have pointers, and
the code you linked to is
Hey all,
Using a modified 3D A* tile searching algorithm, full code see:
https://github.com/DannyArends/CalderaD/blob/master/src/math/search.d
I get the following AssertError, 'sometimes' but not always on
running the code:
mutation.d(2816): Swap: rhs points to lhs.
the first time I hit
On Saturday, 10 July 2021 at 12:41:19 UTC, Виталий Фадеев wrote:
On Saturday, 10 July 2021 at 08:36:07 UTC, Danny Arends wrote:
On Thursday, 8 July 2021 at 13:51:51 UTC, Виталий Фадеев wrote:
[...]
OpenGL is being replaced by vulcan, just to plug my little
project:
http://github.com
On Thursday, 8 July 2021 at 13:51:51 UTC, Виталий Фадеев wrote:
Hi!
I searching trivial simple D/OpenGL working in 2021 year
example.
It may be triangle.
It may be based on any library: SDL, GLFW, Derelict, etc.
Can you help me ?
OpenGL is being replaced by vulcan, just to plug my little
On Sunday, 2 May 2021 at 13:43:11 UTC, evilrat wrote:
Anyway, I might try to look at this next weekend. Do you have
this project available on github/google drive?
Open-sourced the code see:
https://github.com/DannyArends/CalderaD
Danny
On Sunday, 2 May 2021 at 16:42:07 UTC, evilrat wrote:
On Sunday, 2 May 2021 at 16:06:10 UTC, Danny Arends wrote:
On Sunday, 2 May 2021 at 12:35:51 UTC, evilrat wrote:
As for SDL2, are you sure it was built with Vulkan support?
That's the thing I worry about, since the SDL2 libraries
On Sunday, 2 May 2021 at 13:43:11 UTC, evilrat wrote:
On Sunday, 2 May 2021 at 12:35:51 UTC, evilrat wrote:
On Sunday, 2 May 2021 at 08:58:30 UTC, Danny Arends wrote:
Any thoughts on why loading the Vulkan library using SDL2
would not work ?
thoughts in general about the process ?
Just few
On Sunday, 2 May 2021 at 12:35:51 UTC, evilrat wrote:
On Sunday, 2 May 2021 at 08:58:30 UTC, Danny Arends wrote:
Any thoughts on why loading the Vulkan library using SDL2
would not work ?
thoughts in general about the process ?
Just few tips.
GC "crashes" since you have cust
Dear all,
I've written a 2D/3D engine in D before which runs on windows,
linux and android using SDL2 as the window manager and uses
Modern OpenGL /OpenGLES for rendering. It compiles fine for
android using ldc and works like a charm, although the garbage
collection under android has
On Monday, 22 February 2021 at 14:52:22 UTC, frame wrote:
On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote:
https://github.com/DannyArends/DaNode/blob/master/danode/process.d
Danny
This example shows how easy it is to implement a non-blocking
stream. Phobos knows
On Tuesday, 23 February 2021 at 10:07:03 UTC, Imperatorn wrote:
On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote:
On Friday, 19 February 2021 at 15:39:25 UTC, kdevel wrote:
[...]
Perhaps a bit late, but this is how I deal with pipes and
spawnShell.
Read one byte at a time
On Thursday, 25 February 2021 at 15:28:25 UTC, kdevel wrote:
On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote:
On Friday, 19 February 2021 at 15:39:25 UTC, kdevel wrote:
[...]
Fortunately the D runtime /does/ take care and it throws---if
the signal
is ignored beforehand. I
On Friday, 19 February 2021 at 15:39:25 UTC, kdevel wrote:
On Friday, 19 February 2021 at 13:42:46 UTC, Steven
Schveighoffer wrote:
[...]
[...]
Sure.
[...]
As application programmer I don't want to check any error codes.
Thankfully I don't have to in D. There is a nice off-topic
On Friday, 18 September 2020 at 11:38:14 UTC, wjoe wrote:
Something like this:
configuration "lib" {
targetType "dynamicLibrary"
sourceDir "source/lib/"
}
configuration "app" {
targetType "executable"
sourceFiles "source/app.d"
linkWith "lib"
}
I found subConfiguration in the docs
On Monday, 31 August 2020 at 22:25:48 UTC, Mike Parker wrote:
On Monday, 31 August 2020 at 14:04:19 UTC, Danny Arends wrote:
Don't know exactly where to post this, so I hope the bindbc
team will see the post here in learn.
I was wondering if it would be possible to have bindbc OpenGL
ES
On Tuesday, 8 September 2020 at 13:20:24 UTC, kinke wrote:
On Tuesday, 8 September 2020 at 12:47:11 UTC, Danny Arends
wrote:
How can I figure out which linker is used ? When performing a
dub build, it just mentions that ldc2 is used for linking
You can add -v as dub 'linker' flag
On Tuesday, 8 September 2020 at 12:53:43 UTC, Adam D. Ruppe wrote:
On Tuesday, 8 September 2020 at 12:47:11 UTC, Danny Arends
wrote:
How can I figure out which linker is used ? When performing a
dub build, it just mentions that ldc2 is used for linking
If you are using the d_android setup
On Tuesday, 8 September 2020 at 12:23:43 UTC, kinke wrote:
On Tuesday, 8 September 2020 at 11:17:45 UTC, Danny Arends
wrote:
Does anyone have any experience with using D on android, and
using the garbage collector ???
I've never run anything on Android myself, but I've gotten good
feedback
Hey all,
I'm porting my 3D engine to Android (so far most of the work is
going smoothly). However, I had random crashes which I first
suspected was due to how I do multi-threading, but after
debugging it turns out that the Garbage Collector is the issue.
The crash always happens after
On Monday, 31 August 2020 at 22:25:48 UTC, Mike Parker wrote:
On Monday, 31 August 2020 at 14:04:19 UTC, Danny Arends wrote:
Don't know exactly where to post this, so I hope the bindbc
team will see the post here in learn.
I was wondering if it would be possible to have bindbc OpenGL
ES
On Monday, 31 August 2020 at 15:16:40 UTC, Ferhat Kurtulmuş wrote:
On Monday, 31 August 2020 at 14:04:19 UTC, Danny Arends wrote:
Don't know exactly where to post this, so I hope the bindbc
team will see the post here in learn.
I was wondering if it would be possible to have bindbc OpenGL
ES
Don't know exactly where to post this, so I hope the bindbc team
will see the post here in learn.
I was wondering if it would be possible to have bindbc OpenGL ES
bindings ?
I'm working on porting my 3D Engine to Android, and well Android
doesn't support anything else but OpenGL ES... I saw
On Saturday, 1 February 2020 at 20:06:42 UTC, seany wrote:
On Saturday, 1 February 2020 at 14:42:58 UTC, Seb wrote:
On Saturday, 1 February 2020 at 10:35:52 UTC, seany wrote:
Hi
I want to start a small server, that will be accessible form
outside. Not a huge deal right?
Not quite.
[...]
On Saturday, 1 February 2020 at 10:35:52 UTC, seany wrote:
Hi
I want to start a small server, that will be accessible form
outside. Not a huge deal right?
Not quite.
My machine: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DMD : DMD64 D
On Wednesday, 18 September 2019 at 13:36:30 UTC, Arjan wrote:
On Wednesday, 18 September 2019 at 13:22:03 UTC, Danny Arends
wrote:
Hey all,
"Program exited with code -11"
Not signal 11? On unix/linux I assume?
It's on linux yes...
No idea if it is a signal or an exitcode
Hey all,
I have written some code to analyze massive gzipped files (using
std.iopipe), tested it on small subsets of the gzip files, and
everything works using small 20 to 50 Mb files.
However when I try to run the code on 2.7 Gb file sizes the
program always crashes with the following
On Wednesday, 22 May 2019 at 00:22:09 UTC, JS wrote:
I am trying to create some fast sin, sinc, and exponential
routines to speed up some code by using tables... but it seems
it's slower than the function itself?!?
[...]
I'll just leave this here:
On Monday, 13 May 2019 at 09:03:02 UTC, evilrat wrote:
On Monday, 13 May 2019 at 03:06:07 UTC, evilrat wrote:
https://github.com/Superbelko/pyd-min
Here. Super minimal example, ptvsd can be commented out as
well, it is there entirely for debugging.
Pardon me, somehow I was completely
On Saturday, 3 November 2018 at 12:27:19 UTC, Ecstatic Coder
wrote:
import std.conv;
import std.stdio;
void main()
{
double value = -12.000123456;
writeln( value.sizeof );
writeln( value );
writeln( value.to!string() );
writeln( value.to!dstring() );
}
/*
8
-12.0001
-12.0001
On Wednesday, 10 October 2018 at 09:16:43 UTC, Gorker wrote:
On Wednesday, 10 October 2018 at 08:31:36 UTC, Kagamin wrote:
Maybe read them with parallelism?
http://dpldocs.info/experimental-docs/std.parallelism.parallel.2.html
thanks, but I'd rather avoid having to use threads just for
this
On Friday, 11 May 2018 at 17:49:17 UTC, Jonathan M Davis wrote:
On Friday, May 11, 2018 17:25:44 Danny Arends via
Digitalmars-d-learn wrote:
[...]
getopt is designed to be single-threaded. The keyword shared is
not used a single type in that module. If you want to use
shared with anything
On Friday, 11 May 2018 at 17:25:44 UTC, Danny Arends wrote:
Hey all,
I have been working on creating a multi-threaded application,
so I have a shared configuration object which hold several
command line parameters (which I fill using getopt).
The problem is that I get deprecation warnings
Hey all,
I have been working on creating a multi-threaded application, so
I have a shared configuration object which hold several command
line parameters (which I fill using getopt).
The problem is that I get deprecation warnings when trying to set
numerical values:
Hey all,
When running a D program that i wrote (32bit mode, windows10), an
OutOfMemory exception being thrown when executing the program:
core.exception.OutOfMemoryError@src\core\exception.d(702): Memory
allocation failed
However there is no stack trace being generated (due to the
program
this, any suggestions ?
Danny Arends
http://www.dannyarends.nl
like a charm
for blocking sockets, however I found some minor bugs related to
non-blocking BIO functions.
How to report these ? Can I just submit a pull request ? or do I
have to create bugs first in the bug tracker ?
Gr,
Danny Arends
':
(.text+0x1b): undefined reference to `__dlsym'
/usr/lib32/libdl.a(dlerror.o): In function `dlerror':
(.text+0x1): undefined reference to `__dlerror'
collect2: error: ld returned 1 exit status
--- errorlevel 1
Pass it depending if you use rdmd or dmd
-L-ldl
or
-ldl
Gr,
Danny Arends
http
the D way.
Anyway, Where could the problem be?
Regards, Hugo
You need to pass the INI parameters separately see:
http://dlang.org/phobos/std_process.html#.spawnProcess
spawnProcess([appexe,format(/INI=%s)], [,],
Config.suppressConsole);
Gr,
Danny Arends
http://www.dannyarends.nl
On Monday, 16 December 2013 at 00:59:51 UTC, Danny Arends wrote:
On Sunday, 15 December 2013 at 23:14:45 UTC, Hugo Florentino
wrote:
Hello,
I am trying to do a small launcher for a Windows application
which (in order to be portable) requires a specific parameter,
and I am getting this error
Is there a reason why the decode/encode functions and such throw
Errors ?
Seems like an error (Non-recoverable) is a bit harsh, why isn't
the Exception class used ?
Kind regards,
Danny Arends
http://www.dannyarends.nl
On Thursday, 24 October 2013 at 08:35:15 UTC, Danny Arends wrote:
Is there a reason why the decode/encode functions and such
throw Errors ?
Seems like an error (Non-recoverable) is a bit harsh, why isn't
the Exception class used ?
Kind regards,
Danny Arends
http://www.dannyarends.nl
Some
On Thursday, 24 October 2013 at 09:46:52 UTC, Danny Arends wrote:
Some people on the IRC channel said it might be a bug:
http://d.puremagic.com/issues/show_bug.cgi?id=11338
Gr,
Danny Arends
And a pull request:
https://github.com/D-Programming-Language/phobos/pull/1659
Gr,
Danny Arends
and CPP compiler by using an obscure settings file..
Gr,
Danny Arends
http://www.dannyarends.nl
I need to call some C code which takes a double**
In D I have a dynamic array X, Whats a good way of doing this ?
#SNIP
extern(C){
void toCall(double** X, size_t d1, size_t d2);
}
void main(){
double[][] X;
// How to be able to:
toCall(X, X.length, X[0].length);
}
#/SNIP
Danny
Thanks so much !
Why is this not easy 2 find :P
When I do:
rdmd --build-only -w dir/main.d
It compiles fine under Debian 32b and Debian 64b however:
in 32b the executable is created as: ./main
in 64b the executable is created as: ./dir/main
Is this expected, and if so why the difference based on
architecture ?
Danny Arends
http
I decided to put some code here that allowed me read (via a
streamed pipe) the stdout from an external process. I didn't see
something like this before and when searching I only found the
new std.process in phobos development branch which doesn't have a
Windows version.
If anyone feels like
doing something wrong ??
Danny Arends
http://www.dannyarends.nl
.
Gr,
Danny Arends
http://www.dannyarends.nl
On Tuesday, 28 August 2012 at 11:29:32 UTC, Chris Cain wrote:
On Tuesday, 28 August 2012 at 11:13:40 UTC, Danny Arends wrote:
Is this a bug or am I doing something wrong ??
Danny Arends
http://www.dannyarends.nl
You're doing something wrong, but I can
On Tuesday, 28 August 2012 at 12:07:07 UTC, Chris Cain wrote:
On Tuesday, 28 August 2012 at 11:39:20 UTC, Danny Arends wrote:
I'm pretty sure there isn't. However, if you're just trying to
develop/test your algorithm, you could write a program that
runs it as a normal function (and just use
Hey all,
After switching to 2.060, I'm getting the following linker errors
on a project of mine:
Error 42: Symbol Undefined _D4core6memory2GC6extendFPvkkZk
build\unittest.obj(unittest)
Error 42: Symbol Undefined
_D4core6memory2GC6qallocFkkZS4core6memory8BlkInfo_
On Thursday, 21 June 2012 at 17:14:34 UTC, Regan Heath wrote:
On Thu, 21 Jun 2012 14:56:37 +0100, Paul phshaf...@gmail.com
wrote:
I wrote a program that parses a text file and writes results
as it is processing the file (i.e. many writeln()'s). On my
local harddrive it works fine. When I
Wow been looking for this for some time,
just tested it and it works on windowsXP 32 bit as well
On Sunday, 3 June 2012 at 02:55:53 UTC, Jason King wrote:
I've seen a few messages asking how to get this to work and the
replies that were functional involved snagging the console
input handle and
You could have a look at my attempt:
https://github.com/DannyArends/D-coding/tree/master/src/web
(Also posted this in bugs, but I think it needs to be here)
When I try to print floats and doubles from a fiber it fails with a
segfault, while it is possible to do the same in the main thread.
The expected output of the attached code file:
15
15
Done
However I get:
15
segfault
I am using the
OK
Thanks very much, made myself an account there and
re-posted the issue.
Though it still feels like I'm doing something wrong
Hey all,
I'm trying to build a D application which statically links in the the blas and
lapack libraries
(from http://icl.cs.utk.edu/lapack-for-windows/clapack/index.html ). When
downloading the
pre-build libraries from the website I link them in using:
pragma(lib, blas);
pragma(lib, lapack);
Wow THANX,
Using the COFF2OMF tool at least got me a step further, now it finds and
accepts the lib files,
however, it now fails with the following error:
OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
Hey all,
I'm trying to build a D application which statically links in the the blas
and lapack libraries
(from http://icl.cs.utk.edu/lapack-for-windows/clapack/index.html ). When
downloading the
pre-build libraries from the website I link them in using:
pragma(lib, blas);
pragma(lib, lapack);
64 matches
Mail list logo