Re: Getting started

2024-08-21 Thread aberba via Digitalmars-d-learn
On Saturday, 10 August 2024 at 23:29:42 UTC, Ian wrote: On Saturday, 10 August 2024 at 18:11:25 UTC, Sergey wrote: On Saturday, 10 August 2024 at 16:50:11 UTC, Ian wrote: [...] Hi Ian. Many people who previously worked with Visual Studio like VisualD. For others one of the best support is i

Re: Getting started

2024-08-10 Thread Ian via Digitalmars-d-learn
On Saturday, 10 August 2024 at 18:11:25 UTC, Sergey wrote: On Saturday, 10 August 2024 at 16:50:11 UTC, Ian wrote: How do I get started with Windows desktop programming in D? Any recommended IDEs? (I have decent experience with C/C++) Hi Ian. Many people who previously worked with Visual Stud

Re: Getting started

2024-08-10 Thread Sergey via Digitalmars-d-learn
On Saturday, 10 August 2024 at 16:50:11 UTC, Ian wrote: How do I get started with Windows desktop programming in D? Any recommended IDEs? (I have decent experience with C/C++) Hi Ian. Many people who previously worked with Visual Studio like VisualD. For others one of the best support is in Vi

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread bachmeier via Digitalmars-d-learn
On Thursday, 14 December 2023 at 12:59:32 UTC, Renato wrote: On Thursday, 14 December 2023 at 12:30:35 UTC, Renato wrote: The other compilers were also easily installable on Kubuntu using snap. It seems that the Ubuntu "snap"s are not being updated for a few years?? It seems some of my

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Sergey via Digitalmars-d-learn
On Thursday, 14 December 2023 at 13:27:29 UTC, Renato wrote: On Thursday, 14 December 2023 at 13:12:06 UTC, Richard (Rikki) My build options are currently: ``` "dflags-dmd": [ "-v"], "lflags": ["-ld_classic"] ``` I tried some variations but nothing worked. Previously for macOS it was

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Renato via Digitalmars-d-learn
On Thursday, 14 December 2023 at 13:12:06 UTC, Richard (Rikki) Andrew Cattermole wrote: On 15/12/2023 2:02 AM, Renato wrote: How do you tell dub to "build and link in a single step"? This should do it: ``--combined --build-mode=allAtOnce`` I run this: ``` dub build --combined --build-mode=

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Renato via Digitalmars-d-learn
On Thursday, 14 December 2023 at 12:59:04 UTC, Hipreme wrote: Yeah, D has a really bad experience in MacOS. If you want to use it on mac, I suggest using LDC. And the package managers doesn't do D justice. You want to get the zip and setup the environment variables yourself, this is the best

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 15/12/2023 2:02 AM, Renato wrote: How do you tell dub to "build and link in a single step"? This should do it: ``--combined --build-mode=allAtOnce``

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Renato via Digitalmars-d-learn
On Thursday, 14 December 2023 at 12:59:34 UTC, Richard (Rikki) Andrew Cattermole wrote: Welcome! Regarding the problems with dub on OSX, that'll be due to separate build + link steps. It should work ok if you build and link in a single step with the workaround applied. DC is an environ

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Welcome! Regarding the problems with dub on OSX, that'll be due to separate build + link steps. It should work ok if you build and link in a single step with the workaround applied. DC is an environment variable that should point to the D compiler. As a variable this particular one has

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Renato via Digitalmars-d-learn
On Thursday, 14 December 2023 at 12:30:35 UTC, Renato wrote: The other compilers were also easily installable on Kubuntu using snap. It seems that the Ubuntu "snap"s are not being updated for a few years?? It seems some of my problems are related to the very old versions I got with sna

Re: D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Hipreme via Digitalmars-d-learn
On Thursday, 14 December 2023 at 12:30:35 UTC, Renato wrote: Hi, I have been trying D for the last few days... I am only writing because I really, really like the language! It's absolutely stunning how the features it has are simple, well designed and at the same time incredibly advanced! All w

D is a great language, but I've had a bad experience getting started

2023-12-14 Thread Renato via Digitalmars-d-learn
vable. However, I faced a lot of issues which I think could be addressed to make others have a much better time getting started so they don't stop before even being able to appreciate all the great things about D. First of all, if you have latest MacOS and install DMD (I tried several m

Re: short guide on getting started with D

2023-04-18 Thread Dukc via Digitalmars-d-learn
On Monday, 3 April 2023 at 07:29:01 UTC, cgenie wrote: Hello, I created a short guide on getting started with D: https://blog.mmksoft.uk/#A%20short%20guide%20on%20getting%20started%20with%20D%20programming This is because I recently I started to explore the language and, having read the

Re: short guide on getting started with D

2023-04-06 Thread cgenie via Digitalmars-d-learn
On Wednesday, 5 April 2023 at 05:52:33 UTC, thinkunix wrote: Thank you for these remarks! My observations: #1 typo: After that, add this meso.build file: "meso.build" should be "meson.build" Fixed. #2 Does it matter where the dlang = import... block goes in the meson.build file? I add

Re: short guide on getting started with D

2023-04-04 Thread thinkunix via Digitalmars-d-learn
cgenie via Digitalmars-d-learn wrote: Hello, I created a short guide on getting started with D: https://blog.mmksoft.uk/#A%20short%20guide%20on%20getting%20started%20with%20D%20programming This is because I recently I started to explore the language and, having read the forum, I see DUB

Re: short guide on getting started with D

2023-04-03 Thread Salih Dincer via Digitalmars-d-learn
On Monday, 3 April 2023 at 07:29:01 UTC, cgenie wrote: Thanks, you got my attention... It has come to my attention that you talked about this: https://mesonbuild.com/Dlang-module.html SDB@79

short guide on getting started with D

2023-04-03 Thread cgenie via Digitalmars-d-learn
Hello, I created a short guide on getting started with D: https://blog.mmksoft.uk/#A%20short%20guide%20on%20getting%20started%20with%20D%20programming This is because I recently I started to explore the language and, having read the forum, I see DUB being discouraged quite often. I would

Re: Getting started with graphqld

2020-12-23 Thread aberba via Digitalmars-d-learn
On Wednesday, 23 December 2020 at 08:33:21 UTC, Trustee wrote: On Tuesday, 22 December 2020 at 23:49:12 UTC, aberba wrote: On Friday, 18 December 2020 at 03:36:05 UTC, Trustee wrote: [...] Heres's a demo I put together https://github.com/aberba/graphqld-demo A minimal example with only the

Re: Getting started with graphqld

2020-12-23 Thread Trustee via Digitalmars-d-learn
On Tuesday, 22 December 2020 at 23:49:12 UTC, aberba wrote: On Friday, 18 December 2020 at 03:36:05 UTC, Trustee wrote: On Thursday, 17 December 2020 at 14:49:42 UTC, evilrat wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend.

Re: Getting started with graphqld

2020-12-22 Thread aberba via Digitalmars-d-learn
On Friday, 18 December 2020 at 03:36:05 UTC, Trustee wrote: On Thursday, 17 December 2020 at 14:49:42 UTC, evilrat wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend. umm, what? Did you mean write graphql backend using vibe.d?

Re: Getting started with graphqld

2020-12-20 Thread aberba via Digitalmars-d-learn
On Friday, 18 December 2020 at 02:46:32 UTC, Trustee wrote: On Thursday, 17 December 2020 at 14:49:42 UTC, evilrat wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend. umm, what? Did you mean write graphql backend using vibe.d?

Re: Getting started with graphqld

2020-12-17 Thread Trustee via Digitalmars-d-learn
On Thursday, 17 December 2020 at 14:49:42 UTC, evilrat wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend. umm, what? Did you mean write graphql backend using vibe.d? Vibe-d web app -> Vibe-d/GraphQL gateway server (a la Pris

Re: Getting started with graphqld

2020-12-17 Thread Trustee via Digitalmars-d-learn
On Thursday, 17 December 2020 at 14:49:42 UTC, evilrat wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend. umm, what? Did you mean write graphql backend using vibe.d? Yes. But more so, I want to learn the ins and outs of the

Re: Getting started with graphqld

2020-12-17 Thread evilrat via Digitalmars-d-learn
On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: connect a basic vibe-d app to a graphql backend. umm, what? Did you mean write graphql backend using vibe.d?

Re: Getting started with graphqld

2020-12-16 Thread Trustee via Digitalmars-d-learn
On Wednesday, 16 December 2020 at 08:33:09 UTC, aberba wrote: On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: Is there anyone willing to help me get started with GraphQLD. I have some experience with graphql in node. My D is intermediate at best but i can learn fast with guidance

Re: Getting started with graphqld

2020-12-16 Thread aberba via Digitalmars-d-learn
On Tuesday, 15 December 2020 at 16:25:29 UTC, Trustee wrote: Is there anyone willing to help me get started with GraphQLD. I have some experience with graphql in node. My D is intermediate at best but i can learn fast with guidance. I am able to build and deploy vibe-d apps locally and on hero

Getting started with graphqld

2020-12-15 Thread Trustee via Digitalmars-d-learn
Is there anyone willing to help me get started with GraphQLD. I have some experience with graphql in node. My D is intermediate at best but i can learn fast with guidance. I am able to build and deploy vibe-d apps locally and on heroku. Basically, I'm looking for someone to stand-in in lieu of

Getting started with separate compilation

2018-09-15 Thread Anonymouse via Digitalmars-d-learn
My project [1] has enough language coverage to expose two issues that break compilation. 1. Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen(); https://issues.dlang.org/show_bug.cgi?id=18026 2. -allinst gives undefined reference linker errors; https://issues.dlang.org/s

Re: getting started with web server - vibe.d dub giving link error

2016-10-25 Thread Karabuta via Digitalmars-d-learn
On Monday, 24 October 2016 at 04:46:34 UTC, aman wrote: On Sunday, 23 October 2016 at 19:23:04 UTC, Karabuta wrote: [...] Oh, I see. Actually it got installed auto-magically during dub installation I guess. Now I installed dmd with the script mention on the dlang download page. curl -fsS ht

Re: getting started with web server - vibe.d dub giving link error

2016-10-23 Thread aman via Digitalmars-d-learn
On Sunday, 23 October 2016 at 19:23:04 UTC, Karabuta wrote: On Sunday, 23 October 2016 at 14:53:48 UTC, aman wrote: On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote: [...] This time i started out with a fresh Ubuntu server and followed instructions on the blog. Here's output. Ple

Re: getting started with web server - vibe.d dub giving link error

2016-10-23 Thread Karabuta via Digitalmars-d-learn
On Sunday, 23 October 2016 at 14:53:48 UTC, aman wrote: On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote: [...] This time i started out with a fresh Ubuntu server and followed instructions on the blog. Here's output. Please help:- /usr/lib/gcc/x86_64-linux-gnu/5/include/d/core/a

Re: getting started with web server - vibe.d dub giving link error

2016-10-23 Thread aman via Digitalmars-d-learn
On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 17:21:45 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. B

Re: getting started with web server - vibe.d dub giving link error

2016-10-23 Thread aman via Digitalmars-d-learn
On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 17:21:45 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. B

Re: getting started with web server - vibe.d dub giving link error

2016-10-22 Thread Karabuta via Digitalmars-d-learn
On Saturday, 22 October 2016 at 17:21:45 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. Below are the details. [...] I wrote a blog post at https:/

Re: getting started with web server - vibe.d dub giving link error

2016-10-22 Thread Karabuta via Digitalmars-d-learn
On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. Below are the details. [...] I wrote a blog post at https://aberba.gtihub.io which has Fedora users covered. But somehow

getting started with web server - vibe.d dub giving link error

2016-10-22 Thread aman via Digitalmars-d-learn
I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. Below are the details. setup the env via yum (I have installed ldc). dub init test -t vibe.d (go ahead with default options) cd test dub Performing "debug" build using ldc2 for

Re: getting started with std.csv

2015-04-07 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 11:36:54 UTC, gjansen wrote: dmd -O (2.066.1) and gdc -O3 (4.9.2) But... as I tried to convey, I was comparing apples to oranges. I have now rewritten the D test simply using split(',') instead of csvReader, to be more similar to the python test, and it runs about

Re: getting started with std.csv

2015-04-07 Thread gjansen via Digitalmars-d-learn
dmd -O (2.066.1) and gdc -O3 (4.9.2) But... as I tried to convey, I was comparing apples to oranges. I have now rewritten the D test simply using split(',') instead of csvReader, to be more similar to the python test, and it runs about 2x faster in D with dmd and about 4x faster with gdc comp

Re: getting started with std.csv

2015-04-07 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 09:44:11 UTC, gjansen wrote: Many thanks for the feedback yazd! I've tested the approach with a large csv file and it works fine. Unfortunately csvReader seems very convenient but it is no speed daemon. To my dismay it was much slower (about 4x) than a simple approac

Re: getting started with std.csv

2015-04-07 Thread gjansen via Digitalmars-d-learn
Many thanks for the feedback yazd! I've tested the approach with a large csv file and it works fine. Unfortunately csvReader seems very convenient but it is no speed daemon. To my dismay it was much slower (about 4x) than a simple approach I am using in Python, which is essentially equivalent t

Re: getting started with std.csv

2015-04-07 Thread yazd via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 05:51:33 UTC, yazd wrote: On Tuesday, 7 April 2015 at 05:49:48 UTC, yazd wrote: I got this to work with: ``` import std.stdio, std.file, std.csv, std.range; void main() { std.file.write("test.csv", "0,1,abc\n2,3,def"); scope(exit) std.file.remove("te

Re: getting started with std.csv

2015-04-06 Thread yazd via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 05:49:48 UTC, yazd wrote: I got this to work with: ``` import std.stdio, std.file, std.csv, std.range; void main() { std.file.write("test.csv", "0,1,abc\n2,3,def"); scope(exit) std.file.remove("test.csv"); static struct Rec { int a, b; char[]

Re: getting started with std.csv

2015-04-06 Thread yazd via Digitalmars-d-learn
I got this to work with: ``` import std.stdio, std.file, std.csv, std.range; void main() { std.file.write("test.csv", "0,1,abc\n2,3,def"); scope(exit) std.file.remove("test.csv"); static struct Rec { int a, b; char[] c; } auto file = File("test.csv", "r");

getting started with std.csv

2015-04-06 Thread gjansen via Digitalmars-d-learn
Hi. I'm a D newbie(!) coming from a Fortran/C/Python background. I'm struggling with the many new concepts needed in order to make any sense out of the documentation or traceback messages (ranges/templates/...). For example, the std.csv documentation is great but all the examples read from a st

Re: Getting started with vibe.d

2014-06-03 Thread Craig Dillabaugh via Digitalmars-d-learn
On Tuesday, 3 June 2014 at 17:41:27 UTC, Chris Saunders wrote: Thanks, I somehow missed the vibe.d forums... I'd need an ldc solution in the end, but trying dmd is a good idea. The result is some kind of link error to libevent?: """ dub build vibe-d: ["vibe-d", "libevent", "openssl"] test: [

Re: Getting started with vibe.d

2014-06-03 Thread Chris Saunders via Digitalmars-d-learn
Thanks, I somehow missed the vibe.d forums... I'd need an ldc solution in the end, but trying dmd is a good idea. The result is some kind of link error to libevent?: """ dub build vibe-d: ["vibe-d", "libevent", "openssl"] test: ["test", "vibe-d", "libevent", "openssl"] Target is up to date. U

Re: Getting started with vibe.d

2014-06-03 Thread Craig Dillabaugh via Digitalmars-d-learn
On Tuesday, 3 June 2014 at 16:16:10 UTC, Chris Saunders wrote: I've made my first attempt to use dub/vibe.d and I'm running into some issues I can't find on the list. I'm on Ubuntu 14.04/x86_64, using the latest stable dub (0.9.21). I can create a new dub project: “”” $ dub init test vibe.d

Getting started with vibe.d

2014-06-03 Thread Chris Saunders via Digitalmars-d-learn
I've made my first attempt to use dub/vibe.d and I'm running into some issues I can't find on the list. I'm on Ubuntu 14.04/x86_64, using the latest stable dub (0.9.21). I can create a new dub project: “”” $ dub init test vibe.d Successfully created an empty project in '/home/csaunders/devel

Re: Getting started with threads in D

2012-06-22 Thread Sean Kelly
On Jun 22, 2012, at 11:17 AM, Henrik Valter Vogelius Hansson wrote: > > Aight been reading a lot now about it. I'm interested in the TaskPool but > there is a problem and also why I have to think about threads. OpenGL/DirectX > contexts are only valid for one thread at a time. And with the task

Re: Getting started with threads in D

2012-06-22 Thread Henrik Valter Vogelius Hansson
On Sunday, 17 June 2012 at 07:23:38 UTC, Russel Winder wrote: On Sun, 2012-06-17 at 03:15 +0200, Henrik Valter Vogelius Hansson wrote: Hi again! I have looked around a little with what D offers but don't know really what I should use since D offers several ways to use threads. Some more high

Re: Getting started with threads in D

2012-06-17 Thread Russel Winder
On Sun, 2012-06-17 at 03:15 +0200, Henrik Valter Vogelius Hansson wrote: > Hi again! > > I have looked around a little with what D offers but don't know > really what I should use since D offers several ways to use > threads. Some more high level than others. Don't really also know > which one

Re: Getting started with threads in D

2012-06-16 Thread Jonathan M Davis
On Sunday, June 17, 2012 03:15:44 Henrik Valter Vogelius Hansson wrote: > Hi again! > > I have looked around a little with what D offers but don't know > really what I should use since D offers several ways to use > threads. Some more high level than others. Don't really also know > which one woul

Getting started with threads in D

2012-06-16 Thread Henrik Valter Vogelius Hansson
Hi again! I have looked around a little with what D offers but don't know really what I should use since D offers several ways to use threads. Some more high level than others. Don't really also know which one would be suitable for me. A little background could help. I am a game developer an

Re: Getting started - D meta-program question

2009-10-07 Thread downs
Justin Johansson wrote: > Your code as below, using auto to declare a temporary var in an if statement, > ahh, nice, > didn't know that. > > if (auto res = dg(current.data)) > return res; > > What other statement types can you generalized use of auto like this to? > Sadly,

Re: Getting started - D meta-program question

2009-10-04 Thread Justin Johansson
downs Wrote: > Justin Johansson wrote: > > Daniel Keep Wrote: > > > > Just now I've written a bit of CS101 play around code (shown below) for > > constructing a > > singly-linked list of numbers (Conslist idiom). As the code seems to work, > > it looks like > > I've cut my first teeth on "D me

Re: Getting started - D meta-program question

2009-10-04 Thread downs
Justin Johansson wrote: > Daniel Keep Wrote: > >> Justin Johansson wrote: >>> There was mention** on the general discussion group that the D >>> foreach_reverse >>> language construct could be replaced (emulated?) with a (D) meta-program. >>> >>> ** "Even a novice programmer can write a meta-prog

Re: Getting started - D meta-program question

2009-10-03 Thread Justin Johansson
Daniel Keep Wrote: > Justin Johansson wrote: > > There was mention** on the general discussion group that the D > > foreach_reverse > > language construct could be replaced (emulated?) with a (D) meta-program. > > > > ** "Even a novice programmer can write a meta-program to replace > > foreach_r

Re: Getting started - D meta-program question

2009-10-03 Thread Daniel Keep
Justin Johansson wrote: > There was mention** on the general discussion group that the D foreach_reverse > language construct could be replaced (emulated?) with a (D) meta-program. > > ** "Even a novice programmer can write a meta-program to replace > foreach_reverse without any runtime performan

Getting started - D meta-program question

2009-10-03 Thread Justin Johansson
There was mention** on the general discussion group that the D foreach_reverse language construct could be replaced (emulated?) with a (D) meta-program. ** "Even a novice programmer can write a meta-program to replace foreach_reverse without any runtime performance hit." http://www.digitalmar