On Thursday, 3 August 2017 at 04:40:05 UTC, Matt wrote:
Also note, one of the main advantages of Eigen is the whole
lazy evaluation of expressions for compound operations.
Yes, Mir does that too:
On Thursday, 3 August 2017 at 04:40:05 UTC, Matt wrote:
Also note, one of the main advantages of Eigen is the whole
lazy evaluation of expressions for compound operations.
I haven't dug in the source, but it's my understanding it's
done through a lot of compile time C++ template hacking
On Thursday, 3 August 2017 at 04:37:30 UTC, Matt wrote:
That seems like a good start. I'll probably start contributing
within a few weeks.
Great, http://gitter.im/libmir is probably the best way to get in
contact.
In the long run the goal should probably be to have a "go-to"
set of LA
Also note, one of the main advantages of Eigen is the whole lazy
evaluation of expressions for compound operations.
I haven't dug in the source, but it's my understanding it's done
through a lot of compile time C++ template hacking
On Thursday, 3 August 2017 at 03:46:38 UTC, Zwargh wrote:
On Monday, 31 July 2017 at 12:32:52 UTC, Nicholas Wilson wrote:
On Sunday, 30 July 2017 at 01:53:15 UTC, Zwargh wrote:
I am using D to develop a system for rational drug design.
The main application for D is for protein 3D structure
That seems like a good start. I'll probably start contributing
within a few weeks.
In the long run the goal should probably be to have a "go-to" set
of LA libraries, with appropriate data structures that have
friendly bindings to GPU LA computations with DCompute.
On Thursday, 3 August 2017 at 03:46:11 UTC, Matt wrote:
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright
wrote:
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/
Speakng of D in data science (where I think it can get
traction),
How can be use gtkD to load images, I assume through gdkpixbuf?
While I am getting errors loading images through glade's image:
(test.exe:8188): Gtk-[1;33mWARNING[0m **: Could not load image
'a.jpg': Couldn't recognize the image file format for file
'test\a.jpg'
(loads fine in glade)
https://issues.dlang.org/show_bug.cgi?id=14793
Vladimir Panteleev changed:
What|Removed |Added
Status|RESOLVED
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote:
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/
Speakng of D in data science (where I think it can get traction),
is there a standardized linear algebra library in D?
On Monday, 31 July 2017 at 12:32:52 UTC, Nicholas Wilson wrote:
On Sunday, 30 July 2017 at 01:53:15 UTC, Zwargh wrote:
I am using D to develop a system for rational drug design. The
main application for D is for protein 3D structure prediction
and statistical analysis using Differential
https://issues.dlang.org/show_bug.cgi?id=17622
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=14793
Vladimir Panteleev changed:
What|Removed |Added
Status|REOPENED
On Wednesday, 2 August 2017 at 22:02:49 UTC, Vladimir Panteleev
wrote:
On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev
wrote:
Good idea! But I think it needs more ranges:
The format call can be substituted with writefln directly:
void main(string[] args)
{
import
On Thursday, 3 August 2017 at 03:00:02 UTC, Johnson Jones wrote:
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
On 02-08-17 08:04, Johnson Jones wrote:
Ok, Using msys I was able to get glade 3.20 running. Maybe
that will fix everything.
Great, unfortunately "Use msys2" seems to
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
On 02-08-17 08:04, Johnson Jones wrote:
Ok, Using msys I was able to get glade 3.20 running. Maybe
that will fix everything.
Great, unfortunately "Use msys2" seems to be the official way
to install anything GTK related on windows.
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
On 02-08-17 08:04, Johnson Jones wrote:
Ok, Using msys I was able to get glade 3.20 running. Maybe
that will fix everything.
Great, unfortunately "Use msys2" seems to be the official way
to install anything GTK related on windows.
On Thursday, 3 August 2017 at 00:48:41 UTC, Andrej Mitrovic wrote:
On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner
wrote:
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic
wrote:
Is there a single person who's the main maintainer of the D
website..?
If not, I have some
On Thursday, 3 August 2017 at 00:48:41 UTC, Andrej Mitrovic wrote:
On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner
wrote:
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic
wrote:
Is there a single person who's the main maintainer of the D
website..?
If not, I have some
On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner wrote:
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic
wrote:
Is there a single person who's the main maintainer of the D
website..?
If not, I have some ideas on how to improve it. Not just
ideas, I'd like to give a
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote:
Is there a single person who's the main maintainer of the D
website..?
If not, I have some ideas on how to improve it. Not just ideas,
I'd like to give a host at improving it myself, really.
AFAIK the website is maintained
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote:
Is there a single person who's the main maintainer of the D
website..?
If not, I have some ideas on how to improve it. Not just ideas,
I'd like to give a host at improving it myself, really.
Sorry that was a weird typo. I
Is there a single person who's the main maintainer of the D
website..?
If not, I have some ideas on how to improve it. Not just ideas,
I'd like to give a host at improving it myself, really.
On Wednesday, 2 August 2017 at 21:30:11 UTC, SCev wrote:
guys don't do your own IDE, i see everyone working on his own
IDE, please just make plugin for famous crossplatform IDE..
this will be better for comunity
But I'm NIH interested in having my own plugin for Sublime which
does exactly
https://issues.dlang.org/show_bug.cgi?id=14793
Yury Korchemkin changed:
What|Removed |Added
Status|RESOLVED|REOPENED
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote:
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/
No. 2 liked proggit link of the day, should be no. 1 soon:
https://www.reddit.com/r/programming/top/?time=day
Not doing
On Wednesday, 2 August 2017 at 22:02:49 UTC, Vladimir Panteleev
wrote:
On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev
wrote:
Good idea!
https://github.com/dlang/dlang.org/pull/1854
On Wednesday, 2 August 2017 at 21:58:18 UTC, H. S. Teoh wrote:
Whoa. This is cool and everything, but it also looks pretty
intimidating for a newcomer to D. I'm not sure if we should
put this on the front page!
Perhaps we should make some examples only available if the user
selects them
https://issues.dlang.org/show_bug.cgi?id=16474
--- Comment #5 from Manu ---
True, but that could still be a long way off, and this should have already been
working like, 10 years ago... it'd be good to have a default fix in existing
ctfe code.
--
On Wed, Aug 02, 2017 at 09:59:23PM +, Vladimir Panteleev via Digitalmars-d
wrote:
> On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote:
> > This application opens the file passed as argument and display the
> > content in hex and text format:
>
> Good idea! But I think it needs
On Wednesday, 2 August 2017 at 21:54:51 UTC, Walter Bright wrote:
On 8/2/2017 12:01 PM, bachmeier wrote:
I was going to submit it to Reddit but someone beat me to it:
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/
Submit it to Hacker
On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev
wrote:
Good idea! But I think it needs more ranges:
The format call can be substituted with writefln directly:
void main(string[] args)
{
import std.algorithm, std.format, std.stdio;
enum cols = 16;
On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote:
This application opens the file passed as argument and display
the content in hex and text format:
Good idea! But I think it needs more ranges:
void main(string[] args)
{
import std.algorithm, std.format, std.stdio;
enum
On 8/2/17 3:39 PM, Andre Pany wrote:
This application opens the file passed as argument and display the
content in hex and text format:
00 00 03 00 00 00 64 00 00 00 FF 56 01 00 00 70 ......d... V..p
02 00 FF A6 00 00 00 20 02 00 00 00 00 00 00 00. ª... ...
00 00 00 00 00 00 00 00
On Wednesday, 2 August 2017 at 18:02:10 UTC, Ali Çehreli wrote:
On 08/02/2017 10:40 AM, Benoit Rostykus wrote:
Netflix is happy to open-source its first D library.
Blog post:
https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8
Repo: https://github.com/Netflix/vectorflow
On 8/2/17 5:27 PM, Nick B wrote:
On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote:
This application opens the file passed as argument and display the
content in hex and text format:
Is this code in GitHub or DUB ?
Is there a link ?
Here is a link:
On Wed, Aug 02, 2017 at 09:27:07PM +, Nick B via Digitalmars-d wrote:
> On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote:
> > This application opens the file passed as argument and display the
> > content in hex and text format:
> >
>
> Is this code in GitHub or DUB ?
> Is there
guys don't do your own IDE, i see everyone working on his own
IDE, please just make plugin for famous crossplatform IDE.. this
will be better for comunity
VSCode/Atom/Xamarin Studio/IntelliJ
my team don't want use D cause IDEs are all shit
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/
On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote:
This application opens the file passed as argument and display
the content in hex and text format:
Is this code in GitHub or DUB ?
Is there a link ?
Nick
https://issues.dlang.org/show_bug.cgi?id=17192
ag0ae...@gmail.com changed:
What|Removed |Added
Keywords||pull
CC|
On Wednesday, 2 August 2017 at 14:08:21 UTC, jmh530 wrote:
On Wednesday, 2 August 2017 at 13:50:49 UTC, 12345swordy wrote:
Is it to much to ask for d developers to provide a way to
enforce custom coding standards in a similar fashion that
@nogc and @safe does?
Alex
Like the ability to
https://issues.dlang.org/show_bug.cgi?id=16474
--- Comment #4 from uplink.co...@googlemail.com ---
newCTFE is eventually going to fix that.
and other compile-time floating-point issues as well.
--
On Wednesday, 2 August 2017 at 14:59:39 UTC, Mike Wey wrote:
On 01-08-17 22:50, Johnson Jones wrote:
So, the problem is simple(but unfortunately a lot of wasted
time). gtkD needs to be updated to work well with x64 and x86.
I think all one has to do is be able to specify which path of
gtk
This application opens the file passed as argument and display
the content in hex and text format:
00 00 03 00 00 00 64 00 00 00 FF 56 01 00 00 70
.....d... V..p
02 00 FF A6 00 00 00 20 02 00 00 00 00 00 00 00. ª...
...
00 00 00 00 00 00 00 00 00 00 00 00
On Tuesday, 1 August 2017 at 20:37:16 UTC, Anton Fediushin wrote:
Thanks! Yes, module "covered.loader" can be used, but it isn't
complete yet. I'll start working on v1.0.0 tomorrow, changing
current design (get as much information as possible and store
it) to a new one (get only required
On Wednesday, 2 August 2017 at 17:40:23 UTC, Benoit Rostykus
wrote:
Netflix is happy to open-source its first D library.
Blog post:
https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8
Repo: https://github.com/Netflix/vectorflow
I was going to submit it to Reddit but
On 08/02/2017 09:21 AM, jmh530 wrote:
I was surprised to see a familiar name here:
https://www.bloomberg.com/view/articles/2017-08-02/bitcoin-s-split-is-good-for-progress
"They -- led by former Facebook developer Amaury Sechet -- moved ahead
with new software that would increase the maximum
On 8/2/17 2:28 PM, kdevel wrote:
On Wednesday, 2 August 2017 at 17:37:09 UTC, Steven Schveighoffer wrote:
What is expected? What I see on the screen when I run my code is:
[Ü]
Upper case?
Sorry, should be c3 bc, not c3 9c. I misread the table on that wikipedia
entry.
What I see when I
On 08/02/2017 08:28 PM, kdevel wrote:
It's perfectly okay to put any value a octet can take into an octet. I
did not claim that the data in the string memory is syntactically valid
UTF-8. Read the comment in line 9 of my post of 15:02:22.
You're claiming that the data is in UTF-8 when you use
On Tue, Aug 01, 2017 at 04:58:43PM -0700, H. S. Teoh via Digitalmars-d wrote:
> On Tue, Aug 01, 2017 at 03:50:02PM -0700, Ali Çehreli via Digitalmars-d wrote:
> [...]
> > Perhaps I should get used to reading news and email with Emacs
> > already. :/
> [...]
>
> I've been using Mutt for years, and
On Wed, Aug 02, 2017 at 11:06:03AM -0700, H. S. Teoh via Digitalmars-d-learn
wrote:
[...]
> auto byPair(AA)(inout(AA) aa)
> {
> alias Modifiers = std.traits.getModifiers!AA;
> struct Result {
> std.traits.ApplyModifiers!(Slot*,
On 8/2/17 2:06 PM, H. S. Teoh via Digitalmars-d-learn wrote:
On Wed, Aug 02, 2017 at 01:15:44PM -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
[...]
It's not currently legal, you can't have inout members of a struct.
This could be added, but it still wouldn't work, because you
On Wednesday, 2 August 2017 at 17:37:09 UTC, Steven Schveighoffer
wrote:
What is expected? What I see on the screen when I run my code
is:
[Ü]
Upper case?
What I see when I run your "working" code is:
[?]
Your terminal is incapable of rendering the Latin-1 encoding. The
program
On Wednesday, 2 August 2017 at 16:32:44 UTC, Andrei Alexandrescu
wrote:
import std.algorithm;
// I probably wouldn't even define this but use the body as is
auto strnlen_safe(in char[] str)
{
return countUntil(cast(ubyte[]) str, '\0');
}
Oh that cast it irks me so.
-Steve
return
On Wed, Aug 02, 2017 at 01:15:44PM -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
[...]
> It's not currently legal, you can't have inout members of a struct.
> This could be added, but it still wouldn't work, because you can't
> "strip off" the inout part upon return.
>
> The real
On 08/02/2017 10:40 AM, Benoit Rostykus wrote:
Netflix is happy to open-source its first D library.
Blog post:
https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8
Repo: https://github.com/Netflix/vectorflow
Amazing! :) Do we need Netflix's permission to put them on the D
On 8/2/17 1:40 PM, Benoit Rostykus wrote:
Netflix is happy to open-source its first D library.
Blog post:
https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8
Repo: https://github.com/Netflix/vectorflow
Awesome! Can't say I understand most of the blog post, but it looks
Netflix is happy to open-source its first D library.
Blog post:
https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8
Repo: https://github.com/Netflix/vectorflow
On 8/2/17 1:16 PM, kdevel wrote:
On Wednesday, 2 August 2017 at 15:52:13 UTC, Steven Schveighoffer wrote:
If we use the correct code unit sequence (0xc3 0x9c), then [...]
If I avoid std.string.stripLeft and use std.algorithm.stripLeft(' ')
instead it works as expected:
What is expected?
On Wednesday, 2 August 2017 at 15:52:13 UTC, Steven Schveighoffer
wrote:
[...]
First, as a tip, please post either a link to a paste site, or
don't put the line numbers. It's much easier to copy-paste your
code into an editor if you don't have the line numbers.
With pleasure.
[...]
If
On 8/2/17 11:52 AM, H. S. Teoh via Digitalmars-d-learn wrote:
On Wed, Aug 02, 2017 at 08:20:23AM -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote:
[...]
You can iterate a const AA, but if you want to iterate a non-const
import std.algorithm;
// I probably wouldn't even define this but use the body as is
auto strnlen_safe(in char[] str)
{
return countUntil(cast(ubyte[]) str, '\0');
}
Oh that cast it irks me so.
-Steve
return str.representation.countUntil('\0');
Andrei
I was surprised to see a familiar name here:
https://www.bloomberg.com/view/articles/2017-08-02/bitcoin-s-split-is-good-for-progress
https://issues.dlang.org/show_bug.cgi?id=17665
--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/1ab473d1314960dfb6a4732fd55218ac2095a663
Fix issue 17665
https://issues.dlang.org/show_bug.cgi?id=17665
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Wed, Aug 02, 2017 at 07:29:42AM +, Robert burner Schadek via
Digitalmars-d-announce wrote:
> On Tuesday, 1 August 2017 at 17:46:57 UTC, H. S. Teoh wrote:
[...]
> > There's also UDAs for optionally flattening a nested struct, so that
> > internally I can have separate structs for
On Wed, Aug 02, 2017 at 08:20:23AM -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote:
[...]
> You can iterate a const AA, but if you want to iterate a non-const AA,
> you need a different type.
>
> For instance, if your AA is
On 8/2/17 11:02 AM, kdevel wrote:
On Wednesday, 2 August 2017 at 13:45:01 UTC, Steven Schveighoffer wrote:
As Daniel said, using byCodeUnit will help.
stripLeft seems to autodecode even when fed with CodeUnits. How do I
prevent this?
1 void main ()
2 {
3import
On 8/2/17 11:06 AM, Timoses wrote:
On Wednesday, 2 August 2017 at 13:51:01 UTC, Steven Schveighoffer wrote:
However, your original code has potential as an enhancement request,
as the type is known at compile-time and could certainly be resolved
to pass in as the `this` template parameter.
I
Thanks Arafel, the alias workaround might just be a nice way to
put it.
On Wednesday, 2 August 2017 at 13:51:01 UTC, Steven Schveighoffer
wrote:
What you are looking for is virtual static methods, and D
doesn't have those. I don't know if there's a way to make it
work with existing features.
On Wednesday, 2 August 2017 at 13:45:01 UTC, Steven Schveighoffer
wrote:
As Daniel said, using byCodeUnit will help.
stripLeft seems to autodecode even when fed with CodeUnits. How
do I prevent this?
1 void main ()
2 {
3import std.stdio;
4import std.string;
On 01-08-17 22:50, Johnson Jones wrote:
So, the problem is simple(but unfortunately a lot of wasted time). gtkD
needs to be updated to work well with x64 and x86. I think all one has
to do is be able to specify which path of gtk to use rather than have it
search the windows path.
While I
On 02-08-17 08:04, Johnson Jones wrote:
Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix
everything.
Great, unfortunately "Use msys2" seems to be the official way to install
anything GTK related on windows.
--
Mike Wey
On 02-08-17 08:35, Johnson Jones wrote:
I have a need to draw custom objects with gtkD, is this possible? I see
that with drawing area one can use cario, and it seems that gtkD
supports this. I'd rather use openGL if possible. I see there is a
gtkDGL but no reference to how to use it.
I need
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote:
While the Orgs using D page is very nice ... I hoping to hear
more personal stories ...
I use D2 since 2014. I had wide experience of C programming
earlier. Now I use only DMD in all projects, except special. At
the initial stage there were
What you are looking for is virtual static methods, and D doesn't have
those. I don't know if there's a way to make it work with existing
features.
Well, there are interesting things to do:
https://dpaste.dzfl.pl/ed826ae21473
I don't know if that's what one would call "virtual static",
On Wednesday, 2 August 2017 at 13:50:49 UTC, 12345swordy wrote:
Is it to much to ask for d developers to provide a way to
enforce custom coding standards in a similar fashion that @nogc
and @safe does?
Alex
Like the ability to run dscanner at compile-time?
On Wednesday, 2 August 2017 at 09:50:41 UTC, Walter Bright wrote:
On 8/2/2017 2:24 AM, Russel Winder via Digitalmars-d wrote:
And there was me being a great fan of AST macros in those
languages that have
them.
There are many who share your views here :-)
Well d have a goto statement
On 8/2/17 9:11 AM, Timoses wrote:
On Wednesday, 2 August 2017 at 12:49:12 UTC, Steven Schveighoffer wrote:
Thanks for the reply!
Not sure I understand correctly, though.
interface I {}
class A : I {}
void test(T)(T t) if(is(T: I))
{ writeln(T.type.stringof); }
void main()
{
A.test;
}
On 8/2/17 8:59 AM, Martin Drašar via Digitalmars-d-learn wrote:
Thanks Steven for the explanation. Just to clarify - what would be
needed to avoid auto-decoding in this case? Process it all as an arrays,
using byChunk to read it, etc?
As Daniel said, using byCodeUnit will help.
I don't know
On Wednesday, 2 August 2017 at 13:32:46 UTC, Adam D. Ruppe wrote:
On Wednesday, 2 August 2017 at 13:25:25 UTC, Martin
Tschierschke wrote:
I get a SysTime, how to check if it is older than an interval
(1 day)?
D/Phobos idiomatically?
if(Clock.currTime - timeLastModified("aa.d") > 1.days) {
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote:
While the Orgs using D page is very nice ... I hoping to hear
more personal stories ...
So
How do you use D?
I've been using D for most of my personal projects since 2011.
In work, (key projects or smaller side projects)
Unfortunately
On 08/02/2017 02:07 PM, Timoses wrote:
Hey,
wondering whether it's possible to access the derived type from a
function template in the base class or interface.
this T does not seem to be working, I guess because it's a static
function and this does not exists?!
[...]
Any way I could
On 8/1/17 8:34 PM, Mike wrote:
On Tuesday, 1 August 2017 at 14:52:51 UTC, Steven Schveighoffer wrote:
Mike, I have to say still your talk in 2014 was one of my favorites.
One of the things that was so impressive to me was the way you scraped
the PDF to generate all the registers
On Wednesday, 2 August 2017 at 13:25:25 UTC, Martin Tschierschke
wrote:
I get a SysTime, how to check if it is older than an interval
(1 day)?
D/Phobos idiomatically?
if(Clock.currTime - timeLastModified("aa.d") > 1.days) {
// older
}
With
import std.file:timeLastModified;
auto time = timeLastModified(source);
I get a SysTime, how to check if it is older than an interval (1
day)?
D/Phobos idiomatically?
(Currently I am using
(Clock.currTime().toUnixTime-time.toUnixTime)< 60*60*24)).
Regards mt.
On Wednesday, 2 August 2017 at 12:49:12 UTC, Steven Schveighoffer
wrote:
On 8/2/17 8:07 AM, Timoses wrote:
Hey,
wondering whether it's possible to access the derived type
from a function template in the base class or interface.
this T does not seem to be working, I guess because it's a
something like file.byLine.map!(a=>a.byCodeUnit)
On Wed, Aug 2, 2017 at 3:01 PM, Daniel Kozak wrote:
> using http://dlang.org/phobos/std_utf.html#byCodeUnit could help
>
> On Wed, Aug 2, 2017 at 2:59 PM, Martin Drašar via Digitalmars-d-learn <
>
using http://dlang.org/phobos/std_utf.html#byCodeUnit could help
On Wed, Aug 2, 2017 at 2:59 PM, Martin Drašar via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn
> napsal(a):
>
> > The problem is that you are 2
Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn napsal(a):
> The problem is that you are 2 ranges deep when you apply splitter. The
> result of the map is a range of ranges.
>
> Then when you apply stringStripleft, you are applying to the map result,
> not the splitter result.
On 8/2/17 8:07 AM, Timoses wrote:
Hey,
wondering whether it's possible to access the derived type from a
function template in the base class or interface.
this T does not seem to be working, I guess because it's a static
function and this does not exists?!
Yep.
Any way I could
On Wednesday, 2 August 2017 at 11:44:30 UTC, Martin Drašar wrote:
Thank you for any hint.
1 import std.stdio;
2 import std.string;
3 import std.algorithm;
4 import std.conv;
5
6 void main ()
7 {
8auto input = File("input.csv");
9
On 8/2/17 7:44 AM, Martin Drašar via Digitalmars-d-learn wrote:
Hi,
I am struggling to use a lazy range-based code to process large text
files. My task is simple, i.e., I can write a non-range-based code in a
really short time, but I wanted to try different approach and I am
hitting a wall
On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote:
On Tue, Aug 01, 2017 at 07:31:41PM -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
On 8/1/17 7:15 PM, H. S. Teoh via Digitalmars-d-learn wrote:
On Tue, Aug 01, 2017 at 07:09:45PM -0400, Steven Schveighoffer via
Dne 2.8.2017 v 14:11 Daniel Kozak via Digitalmars-d-learn napsal(a):
> import std.stdio;
> import std.algorithm;
>
> void main()
> {
>
>
> auto input = ["... some text, another text", "some,another","...so,an"];
>
> auto result = input.filter!(a => a.startsWith("..."))
>
import std.stdio;
import std.algorithm;
void main()
{
auto input = ["... some text, another text", "some,another","...so,an"];
auto result = input.filter!(a => a.startsWith("..."))
.map!(a=>a.splitter(",").map!(a=>a.stripLeft(' ')))
.map!(a=>a.joiner(","));
writeln(result);
}
On
Hey,
wondering whether it's possible to access the derived type from a
function template in the base class or interface.
this T does not seem to be working, I guess because it's a static
function and this does not exists?!
interface I
{
static void test(this T)()
{
Hi,
I am struggling to use a lazy range-based code to process large text
files. My task is simple, i.e., I can write a non-range-based code in a
really short time, but I wanted to try different approach and I am
hitting a wall after wall.
Task: read a csv-like input, take only lines starting
On 8/2/2017 2:24 AM, Russel Winder via Digitalmars-d wrote:
And there was me being a great fan of AST macros in those languages that have
them.
There are many who share your views here :-)
1 - 100 of 150 matches
Mail list logo