Re: Pro programmer

2019-08-26 Thread Rémy Mouëza via Digitalmars-d-learn
On Monday, 26 August 2019 at 16:41:05 UTC, GreatSam4sure wrote: Thanks, is there tutorial on the translation of Java to D. Which tools is used? Pls guide me, I am really interested in translating JavaFX to D From what I can recall and find on the Internet, the tool used was named "tioport".

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 15:29:47 UTC, Kagamin wrote: On Monday, 26 August 2019 at 12:02:12 UTC, GreatSam4sure wrote: I want customizable GUI toolkit like JavaFX and adobe spark framework in D. DWT was translated from java SWT, you can do the same for JavaFX, D is heavily based on java

Re: Pro programmer

2019-08-26 Thread Kagamin via Digitalmars-d-learn
On Monday, 26 August 2019 at 12:02:12 UTC, GreatSam4sure wrote: I want customizable GUI toolkit like JavaFX and adobe spark framework in D. DWT was translated from java SWT, you can do the same for JavaFX, D is heavily based on java and there's an automatic translation tool from java to D.

Re: How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Anders S via Digitalmars-d-learn
On Monday, 26 August 2019 at 13:58:34 UTC, Olivier Pisano wrote: On Monday, 26 August 2019 at 13:49:21 UTC, Anders S wrote: [...] I don't have a compiler accessible right now, but according to https://dlang.org/phobos/std_variant.html : int i; if (row[2].peek!int !is null)

Re: How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Olivier Pisano via Digitalmars-d-learn
On Monday, 26 August 2019 at 13:49:21 UTC, Anders S wrote: Hi guys, I'm trying to read a post of different datatypes from MariaDB table into another message and pass it on into a FIFO pipe to an other application. My code : string sql = "SELECT * FROM guirequest WHERE read_request =

How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Anders S via Digitalmars-d-learn
Hi guys, I'm trying to read a post of different datatypes from MariaDB table into another message and pass it on into a FIFO pipe to an other application. My code : string sql = "SELECT * FROM guirequest WHERE read_request = -1;"; ResultRange range = conn.query(sql); Row row =

Re: How do I execute a sql-file inside D code

2019-08-26 Thread Anders S via Digitalmars-d-learn
On Tuesday, 20 August 2019 at 13:10:55 UTC, Andre Pany wrote: On Tuesday, 20 August 2019 at 11:33:33 UTC, Anders S wrote: I'm creating an application that connect to a database and write data from another application. Now when I start the application I want it to check if the database exists

Re: How do I execute a sql-file inside D code

2019-08-26 Thread Anders S via Digitalmars-d-learn
On Thursday, 22 August 2019 at 13:39:00 UTC, XavierAP wrote: On Tuesday, 20 August 2019 at 11:33:33 UTC, Anders S wrote: Use this code to check conn.exec("CREATE DATABASE IF NOT EXISTS boxweb;"); however haven't found a way to run the sql file that create the tables. The file is in the

Re: .fflush() in stdio.d

2019-08-26 Thread berni via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:14:23 UTC, Jonathan M Davis wrote: The dot makes it so that it's specifically referencing a module-level symbol (be it in that module or an imported module) instead of a local or member symbol. Ah, thanks. Now it makes sense! :)

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 08:50:29 UTC, Chris wrote: On Monday, 26 August 2019 at 06:46:04 UTC, GreatSam4sure wrote: What is the path of becoming very good at programming? Which language will one start with. Often it's the language that best solves the problem at hand for you, but it

Re: Structure of Arrays vs Array of Structures

2019-08-26 Thread a11e99z via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:58:30 UTC, Per Nordlöw wrote: On Monday, 26 August 2019 at 09:54:30 UTC, Per Nordlöw wrote: I have made some significant optimizations with regards to compilation performance at https://github.com/nordlow/phobos-next/blob/master/src/soa.d What is the

Re: .fflush() in stdio.d

2019-08-26 Thread a11e99z via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:14:23 UTC, Jonathan M Davis wrote: On Sunday, August 25, 2019 11:59:08 PM MDT berni via - Jonathan M Davis OFFTOPIC: (dont have ur email. dont like emails cuz too officially and too long) (and dont want create new topic. this one probably solved/finished

Re: Structure of Arrays vs Array of Structures

2019-08-26 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:54:30 UTC, Per Nordlöw wrote: I have made some significant optimizations with regards to compilation performance at https://github.com/nordlow/phobos-next/blob/master/src/soa.d What is the preferred way to implement to support foreach over `x` in struct

Structure of Arrays vs Array of Structures

2019-08-26 Thread Per Nordlöw via Digitalmars-d-learn
https://forum.dlang.org/post/cvsajblducyanpqah...@forum.dlang.org On Monday, 15 May 2017 at 06:44:53 UTC, Nordlöw wrote: After having watched Jonathan Blow's talk on Jai https://www.youtube.com/watch?v=TH9VCN6UkyQ=2880s I realized that we should add his Array-of-Structures (AoS) concept to

Re: .fflush() in stdio.d

2019-08-26 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, August 25, 2019 11:59:08 PM MDT berni via Digitalmars-d-learn wrote: > Out of curiosity: Browsing the source of stdio.d I found that > flush() is implemented by calling fflush from some C++ library. > What I don't understand: Why is the call to fflush preceded by a > dot? The dot

Re: Pro programmer

2019-08-26 Thread Chris via Digitalmars-d-learn
On Monday, 26 August 2019 at 06:46:04 UTC, GreatSam4sure wrote: What is the path of becoming very good at programming? Which language will one start with. Often it's the language that best solves the problem at hand for you, but it really depends on what you want to achieve. For fast

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 04:39:39 UTC, Tony wrote: On Sunday, 25 August 2019 at 21:30:10 UTC, GreatSam4sure wrote: I am wondering as to what is the starting point of being a pro programmer. If I want to be a pro programmer what language must I start with? Most pro programmer I have heard

.fflush() in stdio.d

2019-08-26 Thread berni via Digitalmars-d-learn
Out of curiosity: Browsing the source of stdio.d I found that flush() is implemented by calling fflush from some C++ library. What I don't understand: Why is the call to fflush preceded by a dot?