On Monday, 27 July 2020 at 18:15:26 UTC, Steven Schveighoffer
wrote:
On 7/27/20 1:10 PM, Charles wrote:
[...]
Let's talk about a concrete example, so you can see why:
int[] arr = [21, 83, 45, 60];
[...]
I had very incorrect model of how ranges function, and after
reading your post along
On Monday, 27 July 2020 at 16:52:51 UTC, H. S. Teoh wrote:
On Sun, Jul 26, 2020 at 07:10:41AM +, Charles via
Digitalmars-d-learn wrote:
Suppose I have the following line of code where arr is an
array, doSomething is some predicate that does a lot of
processing on each element, sort must
On Sunday, 26 July 2020 at 14:56:35 UTC, Steven Schveighoffer
wrote:
A map that returns an lvalue would be sortable, but you would
be sorting the processed elements, and probably not the
original elements.
Indeed, but that's what I want: sort the process elements.
Otherwise, I'd place sort
Suppose I have the following line of code where arr is an array,
doSomething is some predicate that does a lot of processing on
each element, sort must come after the mapping, and there are
more operations done to the range after sort:
arr.map!doSomething.sort. ...;
Sort fails to instantiate
On Thursday, 7 February 2019 at 02:55:15 UTC, evilrat wrote:
You need C++ tools from Microsoft to debug D code, don't mind
the name, its debugger works for any (compatible formats)
native code.
Then add C++ Windows debug configuration and set your paths.
Done. You can debug now. (Though it
Does anyone know of a video that shows setting up vscode (or
another editor with debugging support)? I always feel like I miss
a step when I decide to try D out again, and it never ends well.
I don't use C++, and I do use Windows, which has me wondering if
I'm just missing some
On Saturday, 2 April 2016 at 19:12:19 UTC, Suliman wrote:
Do you have any plans to public 2 edition of The D Programming
Language book?
I'd buy it.
On Friday, 4 March 2016 at 10:43:27 UTC, Joakim wrote:
I wonder what percentage of traffic is now mobile? I know I
only use mobile these days, ie I haven't used a "desktop"
browser since late last year (though my 8.4" tablet that I use
most of the time has 4 million pixels, more than most
On Wednesday, 2 March 2016 at 03:41:57 UTC, sigod wrote:
Very interesting. I wonder what Walter would say about it.
Yeah, I'm curious what others' thoughts on it are for sure.
Watched a video on Jonathan Blow's language that he's developing,
and he has a pretty neat idea of having tools being part of the
language. Looking at the first 15
minutes(https://www.youtube.com/watch?v=OHZwYYW9koI) or so of the
video, is this something that could be accomplished in D with
On Monday, 29 February 2016 at 15:25:01 UTC, Seb wrote:
Hey all,
I was quite astonished that the dlang.io domain was still
available.
I imagine it could be used to host non-official user projects
and give them a fancy name.
FYI the main website dlang.io currently redirects to dlang.org,
On Tuesday, 23 February 2016 at 17:01:47 UTC, Andre wrote:
Hi,
with the newest version of Notepad++ (6.9) strings enclosed
with backticks `Hello World!` are now correctly highlighted.
Kind regards
André
And here I've been escaping double quotes for years. Didn't know
this was a thing.
On Tuesday, 23 February 2016 at 15:12:38 UTC, John Colvin wrote:
On Tuesday, 23 February 2016 at 13:46:33 UTC, Charles wrote:
On Tuesday, 23 February 2016 at 08:49:50 UTC, John Colvin
wrote:
If you don't find people with D, this might be an
opportunity.
There is
On Tuesday, 23 February 2016 at 08:49:50 UTC, John Colvin wrote:
I saw you looking for heavy math users. I work with quite a
few actuaries, but I probably wouldn't be able to convince
them to use anything if there wasn't a way to use it with
either SAS or R. SAS can import C functions, but
On Monday, 22 February 2016 at 21:27:31 UTC, Nick B wrote:
On Monday, 22 February 2016 at 17:15:54 UTC, Charles wrote:
On Monday, 22 February 2016 at 13:11:47 UTC, Guillaume Piolat
wrote:
Slide 12, 0101 is repeated. The top
one should actually be 0111 I believe (this error also
repeats).
On Monday, 22 February 2016 at 13:11:47 UTC, Guillaume Piolat
wrote:
On Monday, 22 February 2016 at 11:34:25 UTC, Guillaume Piolat
wrote:
PDF link:
http://www.pdf-archive.com/2016/02/22/multicore2016-jlg/multicore2016-jlg.pdf
Just a heads up:
Unfortunately there's an issue with the fonts as
On Saturday, 13 February 2016 at 19:32:33 UTC, Ali Çehreli wrote:
David Simcha's DConf 2013 presentation has a singleton
implementation at 27:55:
https://www.youtube.com/watch?v=yMNMV9JlkcQ
Ali
Neat video! Watched the singleton section to end up watching the
rest of the video. Anything
On Friday, 12 February 2016 at 12:31:57 UTC, Guillaume Piolat
wrote:
1. Can vibe.d handle HTTPS connections?
2. Can vibe.d "rewrite" HTTP connections to HTTPS?
3. Can vibe.d be put behind a nginx reverse proxy?
4. Can vibe.d send mails?
1. Yes. Example:
On Friday, 12 February 2016 at 14:36:18 UTC, Ola Fosheim Grøstad
wrote:
On Friday, 12 February 2016 at 12:31:57 UTC, Guillaume Piolat
wrote:
Sorry if these questions are a bit basic, the implied subtext
is "and does it work well?".
Just in case you didn't know, browsers now support HTTP/2
This seems to be true of any range function really... is there a
way to access the key within my range?
Example of what I want to do:
auto x = [1,2,3,4,5];
x.filter( x_key % 2 == 1 ).sum(); // sum odd elements in array
On Tuesday, 9 February 2016 at 20:44:34 UTC, cym13 wrote:
On Tuesday, 9 February 2016 at 20:40:44 UTC, Charles wrote:
This seems to be true of any range function really... is there
a way to access the key within my range?
Example of what I want to do:
auto x = [1,2,3,4,5];
x.filter( x_key %
On Tuesday, 9 February 2016 at 20:48:01 UTC, Steven Schveighoffer
wrote:
On 2/9/16 3:40 PM, Charles wrote:
This seems to be true of any range function really... is there
a way to
access the key within my range?
Example of what I want to do:
auto x = [1,2,3,4,5];
x.filter( x_key % 2 == 1
On Saturday, 6 February 2016 at 13:41:03 UTC, Piotrek wrote:
For the rest there is my proposal ;) : a language embedded DB.
As far as I can tell none of the known PLes has this "killer"
feature.
Piotrek
SAS does, and has for quite a few decades now. Its a pretty big
corporate language
On Monday, 1 February 2016 at 03:23:18 UTC, Walter Bright wrote:
They have bits and pieces of the info, but nothing about what
is actually generated to, say, catch an exception.
Gotcha, is this something you'd expect to be easily obtainable
(e.g. ask Microsoft Rep saying we want to make it
On Sunday, 31 January 2016 at 06:34:26 UTC, Walter Bright wrote:
Well, here's a ripe plum for anyone wanting valuable compiler
street cred!
Make the Dwarf EH support work on OSX 32 and 64.
Are there any future plans for Win64 since it won't ever support
dwarf exceptions from how I
On Tuesday, 19 January 2016 at 14:02:52 UTC, wobbles wrote:
On Tuesday, 19 January 2016 at 13:22:48 UTC, beck wrote:
Do D need a popular framework?
in china ,a little peopel use dlang.
i just use it do some simple work for myself. yet,i have
learn d for a week ..
i ask so many friends ,they
On Monday, 4 January 2016 at 18:42:32 UTC, Sönke Ludwig wrote:
Am 04.01.2016 um 19:04 schrieb Pradeep Gowda:
On Monday, 4 January 2016 at 14:31:21 UTC, Sönke Ludwig wrote:
Added!
The footer of the website still says 2012-2014. Please fix
that!
Fixed, thanks!
Looks like this on my phone
On Monday, 4 January 2016 at 10:19:52 UTC, Sönke Ludwig wrote:
Finally published the article that I had prepared in autumn
last year. It gives an overview of the basic functionality
needed to implement a typical web application using vibe.d. The
example uses Redis as a data store - using other
On Tuesday, 29 December 2015 at 22:49:36 UTC, Nick B wrote:
On Monday, 28 December 2015 at 13:10:59 UTC, Charles wrote:
On Monday, 28 December 2015 at 12:24:17 UTC, Ola Fosheim
Grøstad wrote:
https://www.techempower.com/benchmarks/
The entries for vibe.d are either doing very poorly or fail
On Monday, 28 December 2015 at 12:24:17 UTC, Ola Fosheim Grøstad
wrote:
https://www.techempower.com/benchmarks/
The entries for vibe.d are either doing very poorly or fail to
complete. Maybe someone should look into this?
Sönke is already on it.
On Sunday, 27 December 2015 at 15:10:07 UTC, TheDGuy wrote:
I don't understand this:
https://www.youtube.com/watch?v=j_VCa-5VeP8=youtu.be
The variable "discriminant" is below zero but it jumps right
into the if statement?
The video is private, so we can't see it. I think you wanted
On Friday, 25 December 2015 at 14:04:36 UTC, anonymous wrote:
On 25.12.2015 12:51, Jacob Carlborg wrote:
Most of the pages do not seem to be updated.
I don't know what you mean. Could this be a cache thing? Can
you give a specific example, maybe with a screenshot?
The drop down in the
On Tuesday, 22 December 2015 at 15:01:52 UTC, Dmitry wrote:
On Tuesday, 22 December 2015 at 13:38:48 UTC, Charles wrote:
That's silliness, and not how percentages work at all. To
suggest that 95% of people that go to dlang.org have
widescreens because 95% of some other user base is nonsense.
On Tuesday, 22 December 2015 at 08:52:28 UTC, Dmitry wrote:
On Tuesday, 22 December 2015 at 08:04:29 UTC, Ola Fosheim
Grøstad wrote:
I use exclusively 4:3 and 3:4, 1600*1280, 1280*1024,
1024*1280, 1024*768 and 768*1024.
Yep, you are one of that 5%.
That's silliness, and not how percentages
On Monday, 21 December 2015 at 19:54:45 UTC, Andrei Alexandrescu
wrote:
On 12/21/2015 02:43 PM, Jack Stouffer wrote:
IMO we should stay away from trans-plied languages like SCSS,
Less, and
CoffeeScript, for several reasons
[snip]
That sounds reasonable. -- Andrei
Meanwhile, we could also
On Saturday, 19 December 2015 at 14:33:35 UTC, Jacob Carlborg
wrote:
[...]
kind of a neat project here... mind if I help out?
On Tuesday, 8 December 2015 at 20:56:28 UTC, cym13 wrote:
On Tuesday, 8 December 2015 at 17:33:49 UTC, Andrei
Alexandrescu wrote:
On 12/08/2015 12:12 PM, Timon Gehr wrote:
O(log(n+m)) = O(log(n)+log(m)).
Noice. Yes I did miss it. Thx!! -- Andrei
Surely I'm missing something obvious but why
On Tuesday, 8 December 2015 at 21:18:01 UTC, Timon Gehr wrote:
On 12/08/2015 09:56 PM, cym13 wrote:
On Tuesday, 8 December 2015 at 17:33:49 UTC, Andrei
Alexandrescu wrote:
On 12/08/2015 12:12 PM, Timon Gehr wrote:
O(log(n+m)) = O(log(n)+log(m)).
Noice. Yes I did miss it. Thx!! -- Andrei
On Tuesday, 1 December 2015 at 22:57:38 UTC, Ali Çehreli wrote:
My visit was short due to this:
To play, please identify yourself via one of these services:
[github] [google] [twitter] [reddit]
Ali
I was the same way earlier, but reddit doesn't need personal
information, so you can just
On Friday, 20 November 2015 at 21:27:12 UTC, Pierre wrote:
Hello, I can't build my project with MS-COFF option.
I'm using DMD 2.069.
I got this error :
utf.d(1109) : invalid UTF-8 sequence (at index 1)
I used these options with visual D:
Compiler : DMD
D-Version : D2
Output Type
Hi everyone,
Just looked at the vision for this half, and I had an idea pop in
my head. Before I get to that idea, let me explain what I think
might be an issue with it as-is.
I've consistently seen D's participation metrics marked by the
number of pull requests created and closed, which is
I have some binary files that I'm reading. At compile time it's
unknown what types I'm reading, and if they're strings, how it's
encoded.
I'm doing something like this:
Variant value;
switch(type)
{
...
case Type.STRING:
value = cast(dchar[])[];
On Saturday, 7 November 2015 at 04:25:00 UTC, Mike Parker wrote:
Missed this in my previous reply.
No problem. I appreciate you taking the time to help me either
way :)
On Saturday, 7 November 2015 at 03:53:14 UTC, Nicholas Wilson
wrote:
On Saturday, 7 November 2015 at 03:19:44 UTC, Charles wrote:
Hi guys,
It's me again... still having some issues pop up getting
started, but I remain hopeful I'll stop needing to ask so many
questions soon.
I'm trying to
Hi guys,
It's me again... still having some issues pop up getting started,
but I remain hopeful I'll stop needing to ask so many questions
soon.
I'm trying to use std.bitmanip.read; however, am having some
issues using it. For basic testing I'm just trying to use:
On Friday, 6 November 2015 at 04:34:28 UTC, TheFlyingFiddle wrote:
On Friday, 6 November 2015 at 03:59:07 UTC, Charles wrote:
Is it possible to have unittest blocks if I'm compiling a
library?
I've tried having this:
test.d:
class Classy {
unittest { assert(0, "failed test"); }
Is it possible to have unittest blocks if I'm compiling a library?
I've tried having this:
test.d:
class Classy {
unittest { assert(0, "failed test"); }
}
and then build it with `dmd test.d -lib -unittest` and it doesn't
fail the unittest.
On Monday, 10 November 2014 at 20:37:51 UTC, Charles wrote:
For anyone in the future: I needed odbc32.lib, so I created the
following odbc32.def and used implib.
Thanks me.
My computer I was using recently died, and ran into this problem
again when getting everything set up. Is there any
On Wednesday, 23 September 2015 at 13:01:54 UTC, Rory McGuire
wrote:
I think this should be on reddit either way. Perhaps someone
will suggest a
way around the oauth2 limitation.
Having to generate new client secrets just to use an app that
already
exists seems like a mission, so providing a
Friends,
I have a program that would be pretty easy to parallelize with an
openmp pragra in C. I'd like to avoid the performance cost of
using message passing, and the shared qualifier seems like it's
enforcing guarantees I don't need. Essentially, I have
x = float[imax][jmax]; //x is about
Any change of making the D Logo redirect to dlang.org rather than
the forum itself?
On Wednesday, 8 April 2015 at 16:13:22 UTC, Adam D. Ruppe wrote:
On Wednesday, 8 April 2015 at 16:08:44 UTC, Dicebot wrote:
So who is going to do the pull request? One of those Linux
developers I presume? :)
I actually came close to it, but it ended up being a bit of a
pain. The easiest
On Wednesday, 8 April 2015 at 15:41:42 UTC, bachmeier wrote:
On Wednesday, 8 April 2015 at 08:59:04 UTC, Szymon Gatner wrote:
To sum up:
Please give more attention to Windows developers like myself ;)
We could turn that around: Windows developers, please step up
to contribute to the
http://www.dsource.org/projects/bindings/wiki/WindowsApi
Thanks for this! I guess my brain was wrong thinking it'd be in
http://code.dlang.org if it was still being maintained.
For some functions, you'll need import libraries. You can get
them from the same project as in the above link,
Hi guys,
What is the best (and/or official) source for win32 bindings?
I know there's this github project:
https://github.com/AndrejMitrovic/DWinProgramming; however, it
hasn't been touched in about 2 years. It's currently linked on
the wiki (http://wiki.dlang.org/D_for_Win32).
I'm also
On Thursday, 19 March 2015 at 11:27:20 UTC, Gary Willoughby wrote:
I would like this but issue warnings not errors. I like every
function to be documented. Also don't make the Example
mandatory because people tend to use unittest blocks as the
examples.
Why not just make unittests mandatory,
For the uninitiated, Code Golf is producing the correct answer to
a question with minimal syntax (whitespace included). I found a
couple questions on HackerRank, which allows D compilation. So
far there's only two entries for D (mine and another) for the
first problem.
Here's the problem:
I didn't beat your score, but I did it with ranges (full
character count was 174):
stdin.readln();
foreach(x; stdin.byLine)
writefln(%0.15f, map!(a =
(a1?-1:1)/(2.0*a+1))(iota(x.to!int)).sum);
I think if I didn't have to import so many things, I would have
done much better :)
-Steve
On Tuesday, 24 February 2015 at 00:20:45 UTC, Martin Nowak wrote:
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote:
Curl has some issues with passwords containing special
characters
like the hash key (#).
I don't found any reference for this issue in curl and the D
wrapper hardly
On Monday, 23 February 2015 at 23:10:32 UTC, anonymous wrote:
On Monday, 23 February 2015 at 20:21:20 UTC, Charles wrote:
My solution (150 characters, 15 points):
void main(){import std.stdio;int t,n;readf(
%d,t);while(t--){readf( %d,n);real
On Friday, 20 February 2015 at 14:36:47 UTC, MartinNowak wrote:
On Friday, 20 February 2015 at 04:48:09 UTC, Charles wrote:
They're installer versions, dub is 0.9.22 Nov 22 I want to say,
and DMD is 2.066.1
Same ones I tried.
With --force dmd seems to fail but there is not output.
Can you
On Friday, 20 February 2015 at 02:55:32 UTC, MartinNowak wrote:
On Friday, 20 February 2015 at 02:50:05 UTC, Charles wrote:
Pastebin of dub --vverbose: http://pastebin.com/4BcHJM74
Target vibe-d 0.7.22 is up to date. Use --force to rebuild.
Have you tried the --force switch to rebuild
On Friday, 20 February 2015 at 04:13:08 UTC, MartinNowak wrote:
On Friday, 20 February 2015 at 04:00:21 UTC, Charles wrote:
Yes, I have. Here's a pastebin with --force --vverbose:
http://pastebin.com/qZEKUN46
Just tried the dub init web vibe.d cd web dub thing,
works for me.
So the most
Hi,
I'm trying to follow the instructions for vibe-d with:
dub init web vibe.d
cd web
dub
and then add the line subConfigurations: {vibe-d: win32}
to the dub.json file.
This however is producing errors during linking. Could I get a
hand?
Pastebin of dub --vverbose:
On Friday, 6 February 2015 at 17:40:31 UTC, ketmar wrote:
On Fri, 06 Feb 2015 17:09:28 +, Charles wrote:
readString(toBytes!string(test),0,4).writeln;
if you'll take a look into druntime sources, you'll find that
string is
just an alias to `immutable(char)[]`. so you actually
On Saturday, 7 February 2015 at 12:04:12 UTC, Nicholas Wilson
wrote:
Are you wanting to to convert each element in arr to a byte
thus truncating and losing data (when T.sizeof != 1)?
as in
toBytes([1,2,3, 42, 500 /*this will be truncated to 244
*/]);// T == int here
or are you wanting to
I'm trying to create a template function that can take in any
type of array and convert it to a ubyte array. I'm not concerned
with endianness at the moment, but I ran into a roadblock when
trying to do this with strings. It already works with ints,
chars, etc.
Here's the relevant test code:
Can I not do this cast because it's immutable?
So I was reading the documentation page:
http://dlang.org/simd.html and noticed what appears to be a typo:
int4 v;
(cast(int*)v)[3] = 2; // set 3rd element of the 4 int vector
(cast(int[4])v)[3] = 2; // set 3rd element of the 4 int vector
v.array[3] = 2; // set 3rd element of the 4
Hi guys,
I've been looking and haven't found any libraries for ODBC or
MSSQL. I saw some for D v1, but nothing for v2. Anyone know of
any, or anyone know of a tutorial that I could use to create this
myself?
Thanks,
Charles
I kinda slapped one together but idk if it actually works.
https://github.com/adamdruppe/arsd
database.d and mssql.d from that repo. I haven't even tried to
compile it for a while though, so it might not work at all.
The way I made it was to write the extern(C) function
declarations and
On Monday, 10 November 2014 at 18:13:58 UTC, Adam D. Ruppe wrote:
On Monday, 10 November 2014 at 17:57:21 UTC, Charles wrote:
It didn't compile, says, mssql.d(12): Error: module sql is in
file 'win32\sql.d' which cannot be read
Oh, I forgot I used those. You can download the win32 folder
Hi everyone
So I've been working on the problems over at HackerRank.com
trying to gain some familiarity with D. I use a Windows computer
with VisualD, but the server used to test the program uses Ubuntu
(I can't tell which compiler they're actually using).
The problem I'm stuck on now is the
For the test cases this only produces the first output
(correctly), but then hits a compiler error with format.d before
the next one. Any ideas what might be going on?
Figured it out. The issue was the \n character at the end of the
readf statements.
Is there a native D crypto library like Crypto++?
75 matches
Mail list logo