On Fri, 2020-09-18 at 20:22 -0400, James Blachly via Digitalmars-d-learn
wrote:
> On 9/18/20 9:35 AM, Russel Winder wrote:
> > On Fri, 2020-09-18 at 09:02 -0400, Steven Schveighoffer via Digitalmars-d-
> > learn wrote:
> >
> > […]
> > > it ddoc files, and compile those along with your
> > >
On Sat, 2020-09-19 at 08:12 +0200, Jacob Carlborg via Digitalmars-d-learn
wrote:
> On 2020-09-18 13:41, Russel Winder wrote:
> > Hi,
> >
> > I am trying to get to grips with DDoc for documenting an application.
> > Getting
> > the individual module HTML files seems to be the easy bit. The
On Fri, 2020-09-18 at 09:02 -0400, Steven Schveighoffer via Digitalmars-d-
learn wrote:
[…]
>
> it ddoc files, and compile those along with your
> application.
>
> https://dlang.org/spec/ddoc.html#using_ddoc_for_other_documentation
>
Any small project examples anywhere?
--
Russel.
Hi,
I am trying to get to grips with DDoc for documenting an application. Getting
the individual module HTML files seems to be the easy bit. The question is how
to get an index.html (or equivalent) so as to have an application level entry
point to the generated documentation.
--
Russel.
I see that:
https://dlang.org/spec/ddoc.html
refers to:
https://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/index.html
which is really rather ancient and definitely out of date. Should change this
to:
https://docs.oracle.com/en/java/javase/15/javadoc/index.html
--
Russel.
On Sun, 2020-06-07 at 13:21 +0200, Jacob Carlborg via Digitalmars-d-learn
wrote:
> On 2020-06-07 11:24, Russel Winder wrote:
> > Hi,
> >
> > Why on earth is Dub sending out this error message (Invalid variable: DUB)
> > on
> > GitLab but not on Travis-CI or locally?
> >
> > OK, that was slightly
On Sun, 2020-06-07 at 10:30 +, Basile B. via Digitalmars-d-learn wrote:
[…]
> What is the docker image that you use ? If it is an older
> version maybe that the $DUB env variable is not yet supported by
> the dub version that's installed (it exists since 2.084.0
> according to [1]).
I am
Hi,
The Travis-CI D language image for dist bionic still seems to be build on
Xenial. Is this as it should be?
--
Russel.
===
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Roadm: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
On Sun, 2020-06-07 at 10:24 +0100, Russel Winder wrote:
> Hi,
>
> Why on earth is Dub sending out this error message (Invalid variable: DUB)
> on
> GitLab but not on Travis-CI or locally?
>
> OK, that was slightly rhetorical, more reasonably, why is dub sending out
> this
> message at all?
I am
Hi,
Why on earth is Dub sending out this error message (Invalid variable: DUB) on
GitLab but not on Travis-CI or locally?
OK, that was slightly rhetorical, more reasonably, why is dub sending out this
message at all?
--
Russel.
===
Dr Russel Winder
On Mon, 2020-05-25 at 12:29 +, Panke via Digitalmars-d-learn wrote:
>
[…]
> https://vibed.org/api/vibe.core.core/runTask ?
>
Possibly, it is just that the documentation is sadly lacking in examples of
use.
--
Russel.
===
Dr Russel Winder t: +44
On Mon, 2020-05-25 at 11:55 +0200, Daniel Kozak via Digitalmars-d-learn wrote:
[…]
>
> https://run.dlang.io/is/SMLuA2
Thanks for this pointer. It was very helpful to read it as it confirmed that I
was going doing the right thing in my code. That you have two sources adding
some interleaving is
On Sun, 2020-05-24 at 17:01 +0100, Russel Winder wrote:
>
[…]
> connection.read(buffer, IOMode.once);
>
What an idiot I am, this call returns the read count, which makes it fine.
Progress now being made.
--
Russel.
===
Dr Russel Winder t: +44 20
On Sun, 2020-05-24 at 12:26 +, bauss via Digitalmars-d-learn wrote:
[…]
Thanks for responding, much appreciated.
> void handleConnections(TCPConnection connection) {
> ...
> }
I guess I was looking for an example of what to put in this function!
> auto buf = new ubyte[amount];
>
>
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 the TCP and UDP examples are
basically trivial and thus useless to me for learning.
I am
On Sat, 2020-05-23 at 20:52 +, Steven Schveighoffer via Digitalmars-d-
learn wrote:
[…]
>
> It’s a recent problem with vibe-core. I’ve had to switch back to
> version 1.8.1.
>
> https://github.com/vibe-d/vibe-core/issues/205
Really good to know this is a genuine problem and not just me
On Sat, 2020-05-23 at 16:56 +, bauss via Digitalmars-d-learn wrote:
[…]
>
> Had similar experiences on non-windows platforms.
I forgot to mention I was on Linux (Debian Sid).
I am (sort of) pleased it isn't just me – definitely unhappy it has happened
to others as well.
> I think the
Hi,
I thought I would try and do the async version of my mock AVR850 using the
vibe.d TCP stuff. This is not HTTP, it is proper networking! ;-)
Problem one is that vibe.d sever processes never seem to terminate.
I am using runApplication or more likely runEventLoop in my main but it never
So I have an enum:
enum RC5Command: Tuple!(ubyte, ubyte) {
Standby = tuple(to!ubyte(0x10), to!ubyte(0x0c)),
…
I can do:
RC5Command rc5command = RC5Command.CD;
However, if I do:
rc5command = RC5Command.BD;
I get:
source/functionality.d(80,16): Error: template
On Mon, 2020-05-18 at 11:56 +, Sebastiaan Koppe via Digitalmars-d-learn
wrote:
> On Thursday, 14 May 2020 at 09:36:33 UTC, Russel Winder wrote:
> > Whilst C frameworks use callbacks and trampolines, high level
> > languages seem to be basing things on futures – or things that
> > are
On Sun, 2020-05-17 at 20:32 +, Luis via Digitalmars-d-learn wrote:
> On Sunday, 17 May 2020 at 10:19:38 UTC, Russel Winder wrote:
> > I am experimenting with using manual control of the Glib event
> > loop using the pending and iteration methods on the default
> > MainContext within each
On Sun, 2020-05-17 at 11:19 +0100, Russel Winder wrote:
[…]
>
> Of course now there is jin.go which is a synchronous multi-tasking approach
> with channels rather than an asynchronous approach available in D.
Had I checked I would have seen this was a four years ago package that has
been left
On Sat, 2020-05-16 at 11:37 +, Cogitri via Digitalmars-d-learn wrote:
> On Saturday, 16 May 2020 at 10:51:07 UTC, Russel Winder wrote:
> > Has anyone got any D code using the Glib event loop, usually
> > GtkD code I'd guess, that is well tested using Unit_Threaded?
>
> I always had a hard
Has anyone got any D code using the Glib event loop, usually GtkD code I'd
guess, that is well tested using Unit_Threaded?
--
Russel.
===
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Roadm: +44 7770 465 077
London SW11 1EN, UK w:
On Tue, 2020-05-12 at 20:05 +0200, Jacob Carlborg via Digitalmars-d-learn
wrote:
> On 2020-05-12 11:23, Russel Winder wrote:
>
> > As far as I can tell D has no futures…
>
> Future and async in vibe.d [1]. Future in Mecca [2].
>
> [1] https://vibed.org/api/vibe.core.concurrency/async
> [2]
>
On Tue, 2020-05-12 at 09:57 +, Sebastiaan Koppe via Digitalmars-d-learn
wrote:
[…]
>
> Yeah it is a shame, but you see it in almost every language.
> Probably means concurrency and io isn't a fully solved problem
> yet.
Whilst C frameworks use callbacks and trampolines, high level
On Mon, 2020-05-11 at 19:34 +0200, Jacob Carlborg via Digitalmars-d-learn
wrote:
> On 2020-05-11 16:44, Russel Winder wrote:
>
> > Crickey, a third option. This wil increase my dithering! ;-)
>
> Forth: Mecca [1] :)
>
> [1] https://github.com/weka-io/mecca
Hummm… it seems everyone who needed
On Mon, 2020-05-11 at 16:36 +0200, Daniel Kozak via Digitalmars-d-learn wrote:
> 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
> > indicat
On Mon, 2020-05-11 at 15:02 +0100, Russel Winder wrote:
> OK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, this
> is
> a real server ;-) ).
>
> I think the normal response is "Use Vibe.d". However, recently I see Hunt is
> an alternative. Has anyone any way of choosing
On Wed, 2020-04-22 at 11:19 +, aliak via Digitalmars-d-learn wrote:
> On Wednesday, 22 April 2020 at 10:32:48 UTC, Russel Winder wrote:
> > Now I discover Python, Rust, and Go have far nicer abstractions
> > for writing Internet code than D does. Does D really not have a
> > TcpListener
On Mon, 2020-04-27 at 12:12 +, Antonio Corbi via Digitalmars-d-learn
wrote:
> On Monday, 27 April 2020 at 11:27:57 UTC, Paulo Pinto wrote:
> > On Sunday, 26 April 2020 at 09:09:04 UTC, Antonio Corbi wrote:
[…]
> > > I don't know if you are referring to the `clone!` macro
> > > described
OK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, this is
a real server ;-) ).
I think the normal response is "Use Vibe.d". However, recently I see Hunt is
an alternative. Has anyone any way of choosing between the two?
I notice that Hunt uses it's own library eschewing all
This seems nonsensical to me. Why is Dub using the correct (0.10.8) version of
Unit_Threaded for building the tests, but then using an earlier version
(0.10.6) for building and running the test. If I remove 0.10.6 from the
.dub/packages directory, then it uses 0.10.8 correctly. Then it complains
On Tue, 2020-04-28 at 15:09 +, WebFreak001 via Digitalmars-d-learn
wrote:
> […]
>
> well it was some problem that you tried to use the $DFLAGS
> environment variable somewhere but it wasn't defined
The problem is something to do with Dub and Unit-Threaded. My build
never uses the "$DFLAGS"
On Tue, 2020-04-28 at 14:03 +, WebFreak001 via Digitalmars-d-learn
wrote:
> […]
>
> in this case, try dub upgrade --vverbose and the full exception
> message should hopefully show
I have no idea what has changed, but things are now working again.
Strange.
Thanks for chipping in with
On Tue, 2020-04-28 at 12:04 +, WebFreak001 via Digitalmars-d-learn
wrote:
> On Tuesday, 28 April 2020 at 11:56:26 UTC, Russel Winder wrote:
> > Hi,
> >
> > Has anyone seen this before, it has just started happening to
> > me and is stopping me doing any work on this D project.
> >
> >
> >
Hi,
Has anyone seen this before, it has just started happening to me and is
stopping me doing any work on this D project.
|> dub build
Invalid variable: DFLAGS
--
Russel.
===
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Roadm: +44 7770
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 unscientific, biased, and indeed prejudiced result is that D is
a nicer programming language to
On Sat, 2020-04-25 at 09:30 +, Paulo Pinto via Digitalmars-d-learn
wrote:
[…]
>
> Just curious, how do you handle the whole RC> story in
> Gtk-rs?
>
> For me it made the point that languages with tracing GC or
> implicit reference counting are much better solution for doing
> GUI
On Fri, 2020-04-24 at 15:50 +, Phrozen via Digitalmars-d-learn
wrote:
>
[…]
> @Basile B., thanks for the suggestion. I'll try this library too.
>
Just a bit of confirmation: I am a fan of D and GtkD for desktop UI
work.
GTK+ is just a UI framework unlike Qt (which is UI and networking,
On Thu, 2020-04-23 at 14:41 +0300, drug via Digitalmars-d-learn wrote:
>
[…]
> Did you try `dub test -- -s`?
Oh f###, that is about the only combination I didn't try. :-(
Thanks. Problem solved. :-)
Not sure about the Fixture proposal, I will research and cogitate
further.
--
Russel.
On Tue, 2020-04-21 at 21:29 +, aliak via Digitalmars-d-learn wrote:
> On Tuesday, 21 April 2020 at 16:30:15 UTC, Russel Winder wrote:
[…]
>
> There've been a few attempts at building a Result type:
>
> https://code.dlang.org/search?q=expect
> And here:
>
Hi,
I need to start a process before the tests run, and terminate it after
the tests run. A module with a shared static constructor and shared
static destructor sounds like the way of doing this since the
constructor is run before main and the destructor after main. However I
am using
On Tue, 2020-04-21 at 15:48 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
[…]
>
> 1. it's shorter and prettier.
> 2. No cast (I avoid using cast whenever I can).
> 3. No gotcha type conversions.
Works for me, you have me convinced. :-)
> e.g. for point 3:
>
> enum ZoneMember { //
I ended up creating the following project structure:
.
├── dub.sdl
├── dub.selections.json
├── source
│ ├── arcam_protocol.d
│ └── main.d
├── tests
│ └── integration_tests.d
└── test_support
└── mock_avr850
└── main.d
with the following Dub control file:
name "arcamclient"
On Tue, 2020-04-21 at 18:09 +, tsbockman via Digitalmars-d-learn
wrote:
> On Tuesday, 21 April 2020 at 16:03:20 UTC, Russel Winder wrote:
> > then which of these is the right way of accessing the value?
> >
> > cast(ubyte)ZoneNumber.One
> > to!ubyte(ZoneNumber.One)
>
> Either is acceptable
On Tue, 2020-04-21 at 12:59 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> On 4/21/20 12:03 PM, Russel Winder wrote:
> > Hi,
> >
> > Given an enum:
> >
> > enum ZoneNumber {
> > One = 1,
> > Two = 2,
> > }
> >
> > then which of these is the right way of accessing the
On Mon, 2020-04-20 at 20:19 +, aliak via Digitalmars-d-learn wrote:
>
> […]
> [0]: https://github.com/aliak00/optional
Rust has Option and Result, and most languages are rapidly introducing
at least Option if not Result – and yes it is almost certain all this
comes from Haskell.
Is Option
Hi,
Given an enum:
enum ZoneNumber {
One = 1,
Two = 2,
}
then which of these is the right way of accessing the value?
cast(ubyte)ZoneNumber.One
to!ubyte(ZoneNumber.One)
conversely what is the right way of going the other way:
cast(ZoneNumber)1
to!ZoneNumber(1)
I tried:
enum
On Fri, 2020-04-17 at 17:51 +, Jon Degenhardt via Digitalmars-d-
learn wrote:
> On Friday, 17 April 2020 at 16:56:57 UTC, Russel Winder wrote:
> > Hi,
> >
> > Thinking of trying to do the next project in D rather than
> > Rust, but…
> >
> > Rust has built in unit testing on a module basis.
Hi,
Thinking of trying to do the next project in D rather than Rust, but…
Rust has built in unit testing on a module basis. D has this so no
problem.
Rust allows for integration tests in the tests directory of a project.
These are automatically build and run along with all unit tests as part
of
On Tue, 2020-03-10 at 14:18 +, Ron Tarrant via Digitalmars-d-learn
wrote:
> On Monday, 9 March 2020 at 22:48:35 UTC, Kendell wrote:
>
> > Hey Everyone,
> >
> > I'm a new D developer and therefore new to Gtkd.
> > So far I've had no problems building this project with DUB.
> > However I want
On Thu, 2020-01-23 at 23:47 -0500, James Blachly via Digitalmars-d-
learn wrote:
> On 1/23/20 8:13 PM, Mike Parker wrote:
> > On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote:
> >
> > > Or delete all that wordpress junk and make something in D :P
> >
> > I intend to delete all
On Thu, 2020-01-23 at 15:12 +, Ron Tarrant via Digitalmars-d-learn
wrote:
> On Thursday, 23 January 2020 at 12:43:24 UTC, Antonio Corbi wrote:
>
> > Yes, it uses 'sed' to get 'constants.d' from 'constants.d.in'
> > at configuration time.
> > So you can write your own 'constants.d' with the
On Wed, 2020-01-22 at 23:08 +, Russel Winder wrote:
> On Wed, 2020-01-22 at 22:48 +, Mike Parker via Digitalmars-d-
> learn
> wrote:
> […]
> > To D Blog has an RSS feed:
> >
> > http://dlang.org/blog/index.php/feed/
> >
> […]
>
> This URL doesn't seem to work for me.
>
> It redirects
On Wed, 2020-01-22 at 22:48 +, Mike Parker via Digitalmars-d-learn
wrote:
[…]
>
> To D Blog has an RSS feed:
>
> http://dlang.org/blog/index.php/feed/
>
[…]
This URL doesn't seem to work for me.
It redirects to:
https://dlang.org/blog/feed/
which gives "file not found"
--
Russel.
On Sat, 2019-12-28 at 22:01 +, p.shkadzko via Digitalmars-d-learn
wrote:
[…]
> p.s. I found it quite satisfying that D does not really need an
> IDE, you will be fine even with nano.
Java people said this and we got Eclipse, Netbeans, and IntelliJ IDEA,
and many people were better Java (and
On Tue, 2019-12-24 at 09:52 -0800, H. S. Teoh via Digitalmars-d-learn
wrote:
> On Tue, Dec 24, 2019 at 10:18:49AM +0000, Russel Winder via
> Digitalmars-d-learn wrote:
[…]
> Haha, well, a *real* hardcore retro guy would be using a magnet, a
> pin,
> and a *really* steady hand, to
On Tue, 2019-12-24 at 09:49 +, Ron Tarrant via Digitalmars-d-learn
wrote:
> If you liked last week's post, this one will knock your socks
> off. Wanna know (programmatically) which monitor your application
> window is on? Here's how to find out:
>
On Mon, 2019-12-23 at 08:09 -0800, H. S. Teoh via Digitalmars-d-learn
wrote:
[…]
>
> No idea, I use vanilla vim (not even with syntax highlighting -- I'm
> a
> hardcore retro guy).
Surely a hardcore retro guy would be using vi not vim? Indeed wouldn't
a real hardcore retro guy be using ed?
:-)
On Sun, 2019-12-22 at 17:20 +, BoQsc via Digitalmars-d-learn wrote:
> There are lots of editors/IDE's that support D language:
> https://wiki.dlang.org/Editors
>
> What kind of editor/IDE are you using and which one do you like
> the most?
CLion with the DLanguage plugin. Very much a work
On Mon, 2019-10-14 at 15:36 +, Jesse Phillips via Digitalmars-d-learn
wrote:
[…]
> Pretty sure since this is a public forum, legally you just need
> to reference your sources (if even that). Asking permission is
> just polite.
[…]
But the forum/email list does not have terms of use that
On Mon, 2019-10-14 at 11:14 +, Ron Tarrant via Digitalmars-d-learn wrote:
[…]
> 1) Does anyone know how copyright laws stand regarding reuse of
> comments on a forum?
IANAL, but… I believe emails, and I suspect forum posts, are copyright since
they are literary works. Quoting them with
On Fri, 2019-10-11 at 00:41 +, 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 Thu, 2019-10-10 at 03:08 -0700, H. S. Teoh via Digitalmars-d-learn wrote:
[…]
> Note this is why I wrote "functional-style programming" w.r.t. D, rather
> than "functional programming". Clearly, what D has isn't "real"
> functional programming in the strict sense, but it does share similar
>
On Wed, 2019-10-09 at 11:12 -0700, H. S. Teoh via Digitalmars-d-learn wrote:
[…]
> Actually, std.functional is somewhat of a misnomer. It mostly deals with
> higher-order functions, i.e., functions that return functions, currying,
> that sort of thing. These are part of functional programming,
On Wed, 2019-08-28 at 04:46 +, Jani Hur via Digitalmars-d-learn wrote:
>
[…]
> For Lisp, Clojure (https://clojure.org/) is a strong candidate:
>
> https://blog.cleancoder.com/uncle-bob/2019/08/22/WhyClojure.html
Common Lisp implementations may still have car, cdr, etc. for backward
On Mon, 2019-08-12 at 17:45 +, Enjoys Math via Digitalmars-d-learn wrote:
> Hi,
>
> I'm writing my GUI in C++ & Qt Quick. I know that I could
> connect to D from the GUI code using a DLL, but can something
> similar be done on the other PC OS's and the mobile OS's?
>
> Thanks.
>
Looking
On Mon, 2019-08-12 at 20:01 +, DanielG via Digitalmars-d-learn wrote:
> On Monday, 12 August 2019 at 10:41:57 UTC, GreatSam4sure wrote:
> > I will be happy if I can build an app in D with fanciful ui. I
> > will also be happy if you know any other way to build a
> > fanciful ui in D like
On Fri, 2019-08-02 at 20:24 +, Jon Degenhardt via Digitalmars-d-learn
wrote:
[…]
> In my view, the most important thing is the decision you've
> already made - to pick a programming language and learn it in a
> reasonable bit of depth. Which programming language you choose is
> less
On Fri, 2019-08-02 at 23:24 -0600, Jonathan M Davis via Digitalmars-d-learn
wrote:
[…]
> The university I went to had an undergrad class on programming paradigms
> that I _think_ was required (maybe two even), but it was definitely just the
> focus of a small number of classes, whereas my
On Fri, 2019-08-02 at 16:49 +, Alexandre via Digitalmars-d-learn wrote:
[…]
>
> Do you thing D would be the right tool for the job at this point
> for me? Assuming I have 2 goals in mind: 1) become a better
> programmer and 2) want to make fun writing software for myself
> and if possible
On Fri, 2019-08-02 at 17:25 +, berni via Digitalmars-d-learn wrote:
> […]
>
> Yes, that was intentional. What I wanted to say is, that I think,
> that it would have been better, if C was never invented at all...
> In that case, there would have been space for an other language
> for
On Fri, 2019-08-02 at 10:25 -0600, Jonathan M Davis via Digitalmars-d-learn
wrote:
>
[…]
> My feeling is that functional languages are likely to be a very poor place
> for most folks to start learning, much as I think that they're great for
> someone to learn and work with at some point. I have
On Fri, 2019-08-02 at 13:45 +, Alexandre via Digitalmars-d-learn wrote:
>
[…]
> Could you elaborate more about C being a burden? I have read so
> many people saying C gives a great foundation and should be
> everyone's first language. Now I am confused.
C is a programming language created
On Thu, 2019-08-01 at 14:49 +, bachmeier via Digitalmars-d-learn wrote:
[…]
> There's nothing wrong with Haskell if you want to take a deep
> dive into pure functional programming. I personally find Haskell
> to be more of a religion than a programming language. You can
> learn the same
On Mon, 2019-06-10 at 08:02 +, vitalfadeev via Digitalmars-d-learn
wrote:
[…]
Perhaps I am missing something that is critical to the example, but I
rewrote the code as:
import std.algorithm: map;
import std.stdio: writeln;
bool false_cb() { return false; }
bool true_cb() {
On Sun, 2019-06-09 at 03:42 +, rnd via Digitalmars-d-learn wrote:
>
[…]
> I also wanted to know: Once executable is successfully created,
> will it work on systems where Python and pandas are not installed?
I suspect not, but then I do not use Windows.
I would be surprised if the
On Sat, 2019-06-08 at 16:53 +, rnd via Digitalmars-d-learn wrote:
> […]
> I did not delete Python2.7 since I thought there could be some
> part of Debian/installed package that may depend on it. But I
> will try to do it now.
I overstated the case a bit. I do not use Python 2.7 but there
On Fri, 2019-06-07 at 14:02 +, rnd via Digitalmars-d-learn wrote:
This being D meets Python, I thought I'd take a look at this one.
> I tried following in dub.selections.json file:
>
> {
> "fileVersion": 1,
> "versions": {
> "pyd": "0.10.5"
> },
>
On Fri, 2019-05-31 at 18:47 +, Obsidian Jackal via Digitalmars-d-
learn wrote:
> I'm new to D and want to create GTK+ apps. I have Visual Studio,
> Glade, the Gtk+ runtime, DMD, and DUB installed. What steps,
> guides, or advice should I follow to be able to be able to use
> these tools
On Mon, 2019-05-27 at 16:13 +, Mike Brockus via Digitalmars-d-learn
wrote:
> […]
>
> I tried that custom command voodoo then I tried to use 'dub' as a
> method for hunting down dependencies. Basically got something
> like this.
Apologies but I am not sure what you have tried. Installing
On Thu, 2019-05-23 at 04:21 +, Mike Brockus via Digitalmars-d-learn
wrote:
> […]
>
> That is cool that Atila was kind enough to accept the meson.build
> file. But how do I use the written meson.build that is
> apparently in the subdirectory directory "build"? Just asking
> because
On Tue, 2019-05-21 at 19:14 +, Era Scarecrow via Digitalmars-d-learn
wrote:
>
[…]
> I worked on/with bitfields in the past, the limit sizes is more
> or less for natural int types that D supports.
Rust bitfield crate and it's macros are the same, the underlying type for a
bitfield must be
On Tue, 2019-05-21 at 18:22 +, Boris-Barboris via Digitalmars-d-learn
wrote:
[…]
>
> Never used it myself, but BitArray with careful handling of
> endianess might fit your task.
>
> https://dlang.org/phobos/std_bitmanip.html#.BitArray.this.2
>
Hi,
Has anyone used D to work with arbitrary length bitfields with multiple
occurences of a sub-bitfield. I am working with DVB Sections and EIT packets
are defined as bitfields with loops in them and the header is 112 bits. The
loops are handleable with subfields obviously, assuming you can work
On Tue, 2019-05-21 at 05:21 +, Mike Brockus via Digitalmars-d-learn wrote:
>
[…]
> The solution from Reddit solves the problem for 'dub' but as part
> of my project C to D I wanted to use Meson and run test with
> whatever is available, coming next week I will try to incorporate
>
On Sun, 2019-05-12 at 20:06 +, torea via Digitalmars-d-learn wrote:
> Hi,
>
> I'd like to use D for the "brain" of a small robot (Anki vector)
> whose API is coded in Python 3.6+.
> I had a look at Pyd but it's limited to python 2.7...
PyD works entirely fine for me using Python 3.7.
I am
Hi,
Is there a way of asking which version of package XXX "dub fetch XXX"
will actually fetch. I would like to avoid checking the contents of
~/.dub/packages before and after.
--
Russel.
===
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road
On Thu, 2019-05-09 at 08:33 +, John Colvin via Digitalmars-d-learn
wrote:
> […]
>
> Not big benefit in this case, very big benefit with longer chains.
>
> It reads in the order of operations, as opposed to inside out.
John,
Coming from a Haskell/Lisp background to declarative expression, I
On Wed, 2019-05-08 at 11:56 +, Alex via Digitalmars-d-learn wrote:
> On Wednesday, 8 May 2019 at 11:53:34 UTC, Russel Winder wrote:
> > On Mon, 2019-05-06 at 15:53 +, John Colvin via
> > Digitalmars-d-learn wrote:
> > > […]
> > >
> > > pretty please show people it with UFCS:
> > >
> > >
On Mon, 2019-05-06 at 15:53 +, John Colvin via Digitalmars-d-learn
wrote:
> […]
>
> pretty please show people it with UFCS:
>
> recurrence!((a, n) => a[n-1] + a[n-2])(zero, one)
> .dropExactly(n)
> .front
Any particular reason for preferring this form over the original?
--
On Sunday, 5 May 2019 at 19:34:05 UTC, Nicholas Wilson wrote:
On Sunday, 5 May 2019 at 19:18:47 UTC, lithium iodate wrote:
[...]
Yep https://run.dlang.io/is/XsLrRz works for me,
https://run.dlang.io/is/KxY0e9 doesn't.
Thanks people. I now have a working code. :-)
On Fri, 2019-05-03 at 14:07 -0700, H. S. Teoh via Digitalmars-d-learn wrote:
>
[…]
> The problem is that while there is no shortage of complaints about XML
> support in D, there is a great dearth of people actually willing to *do*
> something about it.
In my case it is because I have no need to
Hi,
I had merrily asumed I could implement nth Fibonacci number with:
takeOne(drop(recurrence!((a, n) => a[n-1] + a[n-2])(zero, one), n)).front
where zero and one are of type BigInt, and n is of type size_t. However both
dmd and ldc2 complain saying:
On Thu, 2019-05-02 at 09:28 -0700, H. S. Teoh via Digitalmars-d-learn
wrote:
> On Thu, May 02, 2019 at 05:23:29PM +0100, Russel Winder via
> Digitalmars-d-learn wrote:
> [...]
> > There are situations where you create a binding in preference to
> > writing something
On Wed, 2019-05-01 at 09:51 +, Laeeth Isharc via Digitalmars-d-
learn wrote:
> Hi.
>
> First question - can anyone recommend git / Gitlab training
> providers in HK and London? Two distinct audiences - highly
> intelligent people that may or may not really program, and
> experienced
On Fri, 2019-05-03 at 03:50 +1200, rikki cattermole via Digitalmars-d-
learn wrote:
> On 03/05/2019 3:36 AM, Russel Winder wrote:
> >
[…]
> > libxml2 is definitely usable from Python, it must be usable from D.
> > Of
> > course, I am assuming libxml2 has the facilities required.
>
> libxml2 is
On Thu, 2019-05-02 at 02:11 +1200, rikki cattermole via Digitalmars-d-
learn wrote:
[…]
>
> It does not. Those features come under the big bad guys feature list.
>
> Gonna have to go to C for it.
Surely that means you can use Python, Rust, C++, or D rather than
having to descend to using C?
On Thu, 2019-04-25 at 11:36 +, Ron Tarrant via Digitalmars-d-learn wrote:
> I've scoured the docs, the wrapper code, the Internet, but can't
> come up with an explanation...
>
> When running this example of a VolumeButton, no matter what the
> initial value of the slider, the icon showing
1 - 100 of 485 matches
Mail list logo