On Monday, 22 January 2024 at 08:54:54 UTC, zjh wrote:
On Monday, 22 January 2024 at 08:27:36 UTC, Joel wrote:
```d
import std;
struct Person {
string name, email;
ulong age;
auto withName(string name) { this.name=name; return this; }
auto withEmail(string email) { this.email
On Monday, 22 January 2024 at 08:27:36 UTC, Joel wrote:
I've been watching a video (YouTube - "Pipeline-oriented
programming - Scott Wlaschin - NDC Porto 2023") with something
like the following code. This only sets the first method call,
so I'm wanting to know how to mak
std;
struct Person {
string name, email;
ulong age;
auto withName(string name) { this.name=name; return this; }
auto withEmail(string email) { this.email=email; return this;
}
auto withAge(ulong age) { this.age=age; return this; }
}
void main() {
Person p;
p.withName(&q
On Wednesday, 20 December 2023 at 01:45:57 UTC, Joel wrote:
The dots are supposed to keep moving till they hit something
then change direction.
[...]
Oh, I found the problem, I wasn't resetting the hit bool variable.
The dots are supposed to keep moving till they hit something then
change direction.
Using DotsLogicType.solid the move at first, but then stop moving
once they hit something.
What supposed to happen: First they check left or right
(depending on the dir.x is negative or positive). If no dots
On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:
On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:
[...]
Try passing `-ld_classic` to the linker. (`dmd -L-ld_classic`)
https://github.com/ldc-developers/ldc/issues/4501#issuecomment-1738295459
-Johan
I've been holding
On Thursday, 14 December 2023 at 08:47:49 UTC, Anonymouse wrote:
On Thursday, 14 December 2023 at 03:58:37 UTC, Joel wrote:
If I get user input, for example, how do I check to see if
it's a valid path, like, file name.
```d
// something like this:
if (getUserInput.isVali
On Tuesday, 12 December 2023 at 09:43:39 UTC, Joel wrote:
I've got this mixin thing, I think it's less typo-prone. I
haven't been able to make it show the variable's name, though.
Also, it should be optional whether it prints anything, (it's
not hard for me to do that
I've got this mixin thing, I think it's less typo-prone. I
haven't been able to make it show the variable's name, though.
Also, it should be optional whether it prints anything, (it's not
hard for me to do that though).
```d
// mixin(jread("width")); -> fread(&width, 1, width.sizeof,
bfile);
What am I missing?
```d
import std;
void main() {
struct DateRem {
Date date;
string rem;
string toString() const => text(date.toSimpleString, " ",
rem);
}
DateRem[] daterem;
data
.splitter('\n')
.filter!(l => l.length && l[0].isDigit)
On Tuesday, 3 October 2023 at 17:42:51 UTC, Jonathan M Davis
wrote:
On Tuesday, October 3, 2023 8:35:31 AM MDT Joel via
Digitalmars-d-learn wrote:
[...]
Yeah. static if will compile in the code in that branch based
on whether the condition is true, whereas if without the static
will branch
The following program crashes, but doesn’t if I change (see
title) T[] to auto. The program doesn’t even use that
method/function. What’s the story?
```d
// Adding program - literal functions
import std;
struct List(T) {
class Node {
T data;
Node next;
this(T data)
On Tuesday, 3 October 2023 at 14:06:37 UTC, ryuukk_ wrote:
On Tuesday, 3 October 2023 at 11:43:46 UTC, Joel wrote:
I’ve got a struct that has a method that adds numbers
together. I want to do something like this, static if
(isInteger!T) … but it isn’t working. static if (is(T==int))
works for
I’ve got a struct that has a method that adds numbers together. I
want to do something like this, static if (isInteger!T) … but it
isn’t working. static if (is(T==int)) works for one integer type.
```d
struct List(T) {
auto addUp()
If (isInteger!T) {
(Add numbers)
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
```
[snip]
How can I improve this code? Like avoiding using foreach.
This works for me:
```d
import std;
auto data="I went for a walk, and fell down a
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
void main(string[] args) {
int[string] dic;
struct WordCnt {
string word;
ulong count;
string toString() const {
return text
On Monday, 2 October 2023 at 06:19:29 UTC, Imperatorn wrote:
On Monday, 2 October 2023 at 02:47:37 UTC, Joel wrote:
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
You can improve it further by inlining
```d
import std;
auto data = "I went for a walk, and fell d
```d
import std;
auto data=“I went for a walk, and fell down a hole.”;
void main(string[] args) {
int[string] dic;
struct WordCnt {
string word;
ulong count;
string toString() const {
return text("Word: ", word, " - number of instances:
", count);
~
"Lam Eze Dan Hos Joel Amos Oba Jon Mic Nah Hab Zep
Hag Zec".split~
"Mal Mat Mar Luk Joh Act Rom 1Cor 2Cor Gal Eph Phili
Col".split~
"1The 2The Titu Phile Heb Jam 1Pet 2Pet 1Joh 2Joh 3Joh
Jude Rev".split)
.startsWith(bk));
}
```
Why doesn't this work? canFind works though.
On Thursday, 17 August 2023 at 14:14:00 UTC, bachmeier wrote:
On Thursday, 17 August 2023 at 09:28:05 UTC, Joel wrote:
I get an compile time error with sort after using toLower,
putting in array before sort, didn’t work:
```d
void main() {
Import std;
"Ezra
On Wednesday, 16 August 2023 at 05:40:09 UTC, FeepingCreature
wrote:
On Tuesday, 15 August 2023 at 20:09:28 UTC, Joel wrote:
On Tuesday, 15 August 2023 at 16:54:49 UTC, FeepingCreature
wrote:
But does *not* import `std.ascii`! So there's no ambiguity
inside the `sort` string expression be
On Tuesday, 15 August 2023 at 16:54:49 UTC, FeepingCreature wrote:
On Tuesday, 15 August 2023 at 16:47:36 UTC, Joel wrote:
[...]
When you pass a string to a lambda, it's evaluated in
`std.functional.unaryFun`/`binaryFun`.
At that point, these modules are imported for use in s
How come toLower works in the sort quotes, but not in the map?
```d
void main() {
import std;
"EzraTezla"
.to!(char[])
.byCodeUnit
.sort!"a.toLower c.toLower)
.writeln;
}
```
onlineapp.d(60): Error: `toLower` matches conflicting symbols:
/dlang/dmd/linux/b
On Thursday, 20 April 2023 at 21:28:48 UTC, John Chapman wrote:
On Thursday, 20 April 2023 at 19:41:21 UTC, Joel wrote:
// how do I get the total of ages added together?
p.map!(x => x.age).sum();
Or: p.map!"a.age".sum; works too.
```d
import std;
struct Person {
string name;
ulong age;
}
void main() {
auto p=[Person("Joel", 43), Person("Timothy", 40)];
writeln("Total: ", p.reduce!((a,b) => a.age+b.age)(0UL)); //
how do I get the total of ages added together?
}
```
On Wednesday, 11 January 2023 at 06:00:26 UTC, Salih Dincer wrote:
On Wednesday, 11 January 2023 at 02:15:13 UTC, Joel wrote:
I get this error after a while (seems append doesn't close the
file each time):
There is no error in the function or Phobos. There may be
another error on
I get this error after a while (seems append doesn't close the
file each time):
std.file.FileException@std/file.d(836): history.txt: Too many
open files
```d
auto jm_addToHistory(T...)(T args) {
import std.conv : text;
import std.file : append;
auto txt = text(args);
On Monday, 12 December 2022 at 04:49:09 UTC, Siarhei Siamashka
wrote:
On Sunday, 11 December 2022 at 06:50:44 UTC, Joel wrote:
I've been trying to fill in areas with a colour but can't work
it out. I want something like the effect where it fills with
diamonds. Not all at once but b
I've been trying to fill in areas with a colour but can't work it
out. I want something like the effect where it fills with
diamonds. Not all at once but building up in the main program
loop.
# #
# #
# # #
# #
# #
On Tuesday, 29 November 2022 at 07:17:09 UTC, Joel wrote:
On Saturday, 30 November 2019 at 00:17:51 UTC, Mike Wey wrote:
On 29-11-2019 04:40, Joel wrote:
Oh, I used 'brew install gtk+3', and the test program worked,
but (see below) I don't know about all that installing - i
On Saturday, 30 November 2019 at 00:17:51 UTC, Mike Wey wrote:
On 29-11-2019 04:40, Joel wrote:
Oh, I used 'brew install gtk+3', and the test program worked,
but (see below) I don't know about all that installing - is
that alright?
They all look like GTK+ dependencies s
On Sunday, 6 November 2022 at 17:15:03 UTC, rikki cattermole
wrote:
On 07/11/2022 5:48 AM, Joel wrote:
The algorithm is too hard for me to work out and dg2d doesn't
help either. I want my code fixed up so that works from any
two points.
Its not as complex as that page initially
On Sunday, 6 November 2022 at 11:40:40 UTC, claptrap wrote:
On Sunday, 6 November 2022 at 11:22:26 UTC, Joel wrote:
I found some code on the net but haven't been able to get it
working properly. I trying to draw with mouse (any direction).
this is the classic integer line drawing algo
I found some code on the net but haven't been able to get it
working properly. I trying to draw with mouse (any direction).
```d
void drawLine(Dot s, Dot e) {
auto d=s;
/+
// import std.algorithm : swap;
if (s.pos.X>e.pos.X) {
On Tuesday, 18 October 2022 at 05:48:27 UTC, Ali Çehreli wrote:
On 10/17/22 22:40, Joel wrote:
> I have two text fields. The one on the left has the whole
text, new
> stuff being added to the bottom. The one on the right has
text I've been
> wiping as I'm reading.
I think t
On Tuesday, 18 October 2022 at 05:48:27 UTC, Ali Çehreli wrote:
On 10/17/22 22:40, Joel wrote:
> I have two text fields. The one on the left has the whole
text, new
> stuff being added to the bottom. The one on the right has
text I've been
> wiping as I'm reading.
I think t
I'm trying to add a feature to my text modifying program. I take
a lot of notes but I want to be able to both wipe what I've read
while still adding more notes as I go.
I have two text fields. The one on the left has the whole text,
new stuff being added to the bottom. The one on the right has
On Tuesday, 11 October 2022 at 23:28:50 UTC, Adam D Ruppe wrote:
I'm just eyeballing the code, is it the g_dateTimeCursor you're
concerned about? That's the only one I really see there.
[...]
Yes! :-D getControl was the issue, I've used ref on its return
value now. Thanks so much for your he
On Tuesday, 11 October 2022 at 22:21:35 UTC, Adam D Ruppe wrote:
On Tuesday, 11 October 2022 at 22:09:34 UTC, Joel wrote:
I've been working on a diary program (ChronoLog). but lately
my date and time variable keeps resetting. I've spent hours
trying to fix it. I'm wondering if
I've been working on a diary program (ChronoLog). but lately my
date and time variable keeps resetting. I've spent hours trying
to fix it. I'm wondering if there's a known issue.
On Wednesday, 16 February 2022 at 15:54:26 UTC, Ron Tarrant wrote:
On Monday, 14 February 2022 at 00:39:30 UTC, Joel wrote:
My GtkD programs compile and run (on Monterey - works on
earlier versions), but not GUI displayed?!
I asked on the GtkD forum, but they said about not having a
mac or
My GtkD programs compile and run (on Monterey - works on earlier
versions), but not GUI displayed?!
I asked on the GtkD forum, but they said about not having a mac
or something.
I found using timeLastModified from macOS drive to ExFat, macOS
has higher precision than ExFat[0], so a different number. My
little program lists the files to update, but I get files to
update still, after updating them, because of the differences
with the disk formats.
[0] from time: 2020-N
On Tuesday, 27 October 2020 at 08:14:28 UTC, Imperatorn wrote:
On Tuesday, 27 October 2020 at 07:32:30 UTC, Joel wrote:
On Tuesday, 27 October 2020 at 07:17:46 UTC, Imperatorn wrote:
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z
On Tuesday, 27 October 2020 at 07:17:46 UTC, Imperatorn wrote:
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z;
}
[...]
It's not really clear what your question is.
I'm trying to convert from C++ code to D code, see where I'v
On Monday, 26 October 2020 at 23:38:22 UTC, Joel wrote:
```
struct vec3d
{
float x, y, z;
}
struct triangle
{
vec3d[3] p;
}
struct mesh
{
triangle[] tris;
}
// This here
meshCube.tris = {
// SOUTH
{ 0.0f, 0.0f, 0.0f,0.0f, 1.0f, 0.0f,1.0f
```
struct vec3d
{
float x, y, z;
}
struct triangle
{
vec3d[3] p;
}
struct mesh
{
triangle[] tris;
}
// This here
meshCube.tris = {
// SOUTH
{ 0.0f, 0.0f, 0.0f,0.0f, 1.0f, 0.0f,1.0f, 1.0f, 0.0f },
{ 0.0f, 0.0f, 0.0
On Saturday, 4 July 2020 at 01:15:03 UTC, Joel wrote:
Using Windows 10.
In my dub.json file I have:
"lflags" : ["+..\\DAllegro5\\lib\\"],
But I get:
Linking...
lld-link: error: could not open '+..\DAllegro5\lib\': no such
file or directory
lld-link: error: co
On Sunday, 16 August 2020 at 18:13:07 UTC, Anonymouse wrote:
On Sunday, 16 August 2020 at 10:07:02 UTC, Simen Kjærås wrote:
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
[...]
First, what's wrong with using writeln and friends instead of
directly mucking about with stdou
../../JMiscLib/source/jmisc/base.d(176,2): Error: @safe function
jmisc.base.upDateStatus!string.upDateStatus cannot call @system
function std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal
/Library/D/dmd/src/phobos/std/stdio.d(4837,20):
std.stdio.makeGlobal!"core.stdc.stdio.stdout".
Using Windows 10.
In my dub.json file I have:
"lflags" : ["+..\\DAllegro5\\lib\\"],
But I get:
Linking...
lld-link: error: could not open '+..\DAllegro5\lib\': no such
file or directory
lld-link: error: could not open 'allegro.lib': no such file or
directory
...
lld-link: error: could not ope
On Tuesday, 16 June 2020 at 07:39:20 UTC, Luis wrote:
On Tuesday, 16 June 2020 at 06:19:51 UTC, Joel wrote:
[...]
I understand that where the trivial test code is placed, must
be something more complex being tested.
@("dummy test 1");
unittest {
/// Some test code that
I've tired different unit test libraries, but they jump out on
errors instead of just adding to failed numbers.
I'm thinking like this:
```
@("dummy");
unittset {
0.shouldEqual(0);
1.shouldEqual(2);
2.shouldEqual(3);
}
```
Test: dummy
test passed line 10: 0 is equal to 0
test failed line
On Thursday, 21 May 2020 at 06:23:10 UTC, Joel wrote:
With Windows OS.
How would I use my USB drive to compile and run (with 64-bit
too)?
So far I made a bat file that adds D to %PATH%. There's no zip
file of DMD to download, and I didn't get the 7z to work (even
with the
On Wednesday, 20 May 2020 at 09:31:38 UTC, Nathan S. wrote:
On Tuesday, 19 May 2020 at 04:54:38 UTC, Joel wrote:
I tried with DMD32 D Compiler v2.088.1-dirty, and it compiled
and created an exe file, but not run (msvcr100.dll not found -
and tried to find it on the net without success).
DMD
With Windows OS.
How would I use my USB drive to compile and run (with 64-bit too)?
So far I made a bat file that adds D to %PATH%. There's no zip
file of DMD to download, and I didn't get the 7z to work (even
with the 7z program?!) - last time I tried. With 64-bit, I don't
see what to do the
I tried with DMD32 D Compiler v2.088.1-dirty, and it compiled and
created an exe file, but not run (msvcr100.dll not found - and
tried to find it on the net without success).
I think is works with older versions of DMD.
D:\jpro\dpro2\SpellIt>dub
Performing "debug" build using D:\jpro\dmd2\windows\bin\dmd.exe
for x86_64.
bindbc-loader 0.3.0: target for configuration "noBC" is up to
date.
bindbc-sdl 0.18.0: target for configuration "dynamic" is up to
date.
spellit ~
On Monday, 11 May 2020 at 11:37:40 UTC, Simen Kjærås wrote:
On Monday, 11 May 2020 at 11:20:51 UTC, Joel wrote:
I'm gotten stuck with this error - "..is not visible from
module.."
Without some code it's hard to say exactly, but this generally
means you're referenc
I'm gotten stuck with this error - "..is not visible from
module.."
On Friday, 29 November 2019 at 08:22:09 UTC, Joel wrote:
I've used dub alright, but don't know how to install the dylib
files:
object.Exception@../../../../.dub/packages/gtk-d-3.9.0/gtk-d/generated/gtkd/gtkd/Loader.d(125):
Library load failed (libatk-1.0.0.dylib): dlopen(libatk-1
I've used dub alright, but don't know how to install the dylib
files:
object.Exception@../../../../.dub/packages/gtk-d-3.9.0/gtk-d/generated/gtkd/gtkd/Loader.d(125):
Library load failed (libatk-1.0.0.dylib): dlopen(libatk-1.0.0.dylib, 258):
image not found
What's a good way to fix this proble
On Wednesday, 20 November 2019 at 00:07:53 UTC, Joel wrote:
On Tuesday, 19 November 2019 at 14:20:39 UTC, Kagamin wrote:
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
```
http://www.w3.org/2001/XMLSchema-instance";>
```
You're missing a closing tag.
I can
On Tuesday, 19 November 2019 at 14:20:39 UTC, Kagamin wrote:
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
```
http://www.w3.org/2001/XMLSchema-instance";>
```
You're missing a closing tag.
I can store the ASV Bible in an array (I check for if the last
book,
On Tuesday, 19 November 2019 at 04:43:31 UTC, Joel wrote:
On Tuesday, 19 November 2019 at 02:45:29 UTC, Jonathan M Davis
wrote:
[...]
Thanks for taking the time to reply.
I have had another xml Bible version text in the past [1]. It
had a different format. And Adam Ruppe helped me by
On Tuesday, 19 November 2019 at 02:45:29 UTC, Jonathan M Davis
wrote:
On Sunday, November 17, 2019 11:44:43 PM MST Joel via
Digitalmars-d-learn wrote:
[...]
You need to be checking the type of the entity before you call
either name or text on it, because not all entities have a
name, and
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote:
with(ver)
vers ~= Verse(id,b,c,v,t);
Or, vers ~= ver;
I can only parse one row successfully. I tried increasing the
popFronts, till it said I'd gone off the end.
Running ./app
core.exception.AssertError@../../../../.dub/packages/dxml-0.4.1/dxml/source/dxml/parser.d(1457):
text cannot be called with elementEnd
??:? _d_assert_msg [0
On Friday, 15 November 2019 at 04:26:58 UTC, Jon Degenhardt wrote:
On Friday, 15 November 2019 at 03:51:04 UTC, Joel wrote:
I made a feature that converts, say, [9:59am] -> [10:00am] to
1 minute. but found '9'.to!int = 57 (not 9).
Doesn't seem right... I'm guessing
I made a feature that converts, say, [9:59am] -> [10:00am] to 1
minute. but found '9'.to!int = 57 (not 9).
Doesn't seem right... I'm guessing that's standard though, same
with ldc.
On Wednesday, 30 October 2019 at 03:56:40 UTC, Joel wrote:
I have DLangUI program that works on macOS, but only compiles
Windows. It returns -1. Is there a gotcha? It doesn't ask for
any DLL's.
Windows 10 Pro
I got programs to compile and run with bindbc-sdl, for example.
I have DLangUI program that works on macOS, but only compiles
Windows. It returns -1. Is there a gotcha? It doesn't ask for any
DLL's.
Windows 10 Pro
On Wednesday, 16 October 2019 at 02:30:58 UTC, Joel wrote:
How would I go about uninstalling D's DMG file, (as I'm weary
of installing it)?
I usually, use Home Brew, but the lastest on that doesn't work
(macOS Catalina). I guess I can just wipe off the executable
files that DM
How would I go about uninstalling D's DMG file, (as I'm weary of
installing it)?
I usually, use Home Brew, but the lastest on that doesn't work
(macOS Catalina). I guess I can just wipe off the executable
files that DMG produces, aye?
On Monday, 14 October 2019 at 18:49:04 UTC, Jacob Carlborg wrote:
On 2019-10-14 07:36, Joel wrote:
I use Home Brew (brew upgrade dmd, and brew upgrade dub)
Brew is only up to 2.087.1 at the moment - John Colvin seems
to be the man that mantains dmd with brew.
You can use DVM [1] to install
On Monday, 14 October 2019 at 18:49:04 UTC, Jacob Carlborg wrote:
On 2019-10-14 07:36, Joel wrote:
I use Home Brew (brew upgrade dmd, and brew upgrade dub)
Brew is only up to 2.087.1 at the moment - John Colvin seems
to be the man that mantains dmd with brew.
You can use DVM [1] to install
On Monday, 14 October 2019 at 18:49:04 UTC, Jacob Carlborg wrote:
On 2019-10-14 07:36, Joel wrote:
I use Home Brew (brew upgrade dmd, and brew upgrade dub)
Brew is only up to 2.087.1 at the moment - John Colvin seems
to be the man that mantains dmd with brew.
You can use DVM [1] to install
. The oldest version of
DMD that runs on Catalina is 2.088.0, since any given version
of DMD is compiled with the previous version.
That means that all D applications out there for macOS needs to
be recompiled.
I get this since Catalina:
Joel-Computer:VacSpace joelchristensen$ dub
Failed to
On Sunday, 15 September 2019 at 10:52:43 UTC, rikki cattermole
wrote:
On 15/09/2019 12:16 PM, Joel wrote:
What is a good keyboard input handler or so? Just need one
that picks up that a key is down, but not like a word
processor.
Are you referring to when you hold down a key and multiple
What is a good keyboard input handler or so? Just need one that
picks up that a key is down, but not like a word processor.
On Saturday, 14 September 2019 at 10:14:19 UTC, psyscout wrote:
On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote:
[...]
I had a similar issue with crazy CPU consumption when I used VS
Code. The root cause for me was "autosave" and "build on save"
settings turn
On my macOS 10.14.6 computer, I close serve-d thread when it's
using too much CPU, I also knock off spindump for the same
reason. I get artifacts and junk that flash on my screen - I
don't know if that's connected to removing those or not. Does
anyone else have these problems? I always have Vis
On Friday, 13 September 2019 at 12:20:48 UTC, H. S. Teoh wrote:
On Fri, Sep 13, 2019 at 05:57:53AM +, Joel via
Digitalmars-d-learn wrote: [...]
jex(2204,0x75356000) malloc: Incorrect checksum for freed
object
0x7ffc9368cdf8: probably modified after being freed.
Corrupt value
On Friday, 13 September 2019 at 10:02:35 UTC, Joel wrote:
On Friday, 13 September 2019 at 09:54:58 UTC, Kagamin wrote:
Maybe you upgraded SFML and now binding doesn't match?
I didn't touch SFML dylibs. I guess I could try recompling
them. It's a bit late here in New Zeala
On Friday, 13 September 2019 at 09:54:58 UTC, Kagamin wrote:
Maybe you upgraded SFML and now binding doesn't match?
I didn't touch SFML dylibs. I guess I could try recompling them.
It's a bit late here in New Zealand, though.
On Friday, 13 September 2019 at 06:07:57 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:57:53 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
[...]
Actually, forget about the above. It's still crashing in run
time.
jex(2204,0x75356000) malloc: Inco
On Sunday, 21 April 2019 at 16:20:51 UTC, WebFreak001 wrote:
I'm trying to GC profile serve-d which uses a lot of fibers
potentially also across some threads and some threads doing
some dedicated work, however -profile=gc doesn't seem to work
properly. It logs `shared static this` calls and som
On Friday, 13 September 2019 at 05:57:53 UTC, Joel wrote:
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
[...]
Actually, forget about the above. It's still crashing in run
time.
jex(2204,0x75356000) malloc: Incorrect checksum for freed
object 0x7ffc9368cdf8: pro
On Friday, 13 September 2019 at 05:39:06 UTC, Joel wrote:
I edited one of my librarys and found my programs crashing. At
first, I couldn't find what was wrong but used GitHub to review
my changes. I found an enum[0] that had a name change - that my
programs weren't even using. All
I edited one of my librarys and found my programs crashing. At
first, I couldn't find what was wrong but used GitHub to review
my changes. I found an enum[0] that had a name change - that my
programs weren't even using. All the change that was from 'enum
g_Draw {text, input}' to 'enum g_draw {t
I'm trying to understand delegates. Is there any good ways I can
get a better understanding of them?
On Sunday, 14 April 2019 at 02:12:28 UTC, evilrat wrote:
On Saturday, 13 April 2019 at 12:00:30 UTC, Joel wrote:
[...]
option 1 - using override DPI function:
---
[...]
Thanks, option 1 pretty much worked - though overrideScreenDPI
didn't compile with float type (int
On Saturday, 13 April 2019 at 02:35:59 UTC, evilrat wrote:
On Friday, 12 April 2019 at 08:39:52 UTC, Joel wrote:
[...]
It should detect DPI for you, and internally do the scaling.
Though I don't know if it works at all.
In case it is not yet implemented try this
funct
I got a new computer (another MacBook Pro, but this one has
retina display), now I don't think I can use my main programs
(done in DlangUI), without eye strain and having my head close to
the screen.
I noticed a lot of forked versions of the said library. Do any
have a fix for the tiny print,
On Thursday, 11 April 2019 at 23:22:19 UTC, Joel wrote:
I've ordered a new computer, and it has Mojave OS. It's 64 bit
only, so I'm wondering what difference would that make with
things like with C bindings and stuff.
For example would https://code.dlang.org/packages/d
I've ordered a new computer, and it has Mojave OS. It's 64 bit
only, so I'm wondering what difference would that make with
things like with C bindings and stuff.
For example would https://code.dlang.org/packages/dsfml and
https://code.dlang.org/packages/dlangui librarys work?
On Monday, 18 March 2019 at 20:25:14 UTC, Joel wrote:
On Sunday, 17 March 2019 at 09:04:37 UTC, Eugene Wissner wrote:
On Sunday, 17 March 2019 at 07:20:47 UTC, Joel wrote:
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
[snip]
dub 1.3.0 is something old. Is it reproducable with a newer
version
On Sunday, 17 March 2019 at 09:04:37 UTC, Eugene Wissner wrote:
On Sunday, 17 March 2019 at 07:20:47 UTC, Joel wrote:
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
[snip]
dub 1.3.0 is something old. Is it reproducable with a newer
version?
Can one safely update dub by it's self (Home Brew),
macOS 10.13.6
dmd 2.085.0
dub 1.3.0
{
"name": "server",
"targetType": "executable",
"description": "A testing D application.",
"sourcePaths" : ["source"],
"dependencies":
{
"vibe-d" : "~>0.8.0"
}
}
void main()
{
import vibe.d;
listenHTTP(":8080
On Monday, 3 December 2018 at 06:55:50 UTC, Nicholas Wilson wrote:
On Monday, 3 December 2018 at 06:09:21 UTC, Joel wrote:
[...]
https://run.dlang.io/is/h0ArAB
works for me. If you want it as a string not char[] then
byLineCopy should work, if not just `.idup` `line`.
Oh, I was using
1 - 100 of 343 matches
Mail list logo