D bindings for TensorFlow

2017-01-06 Thread llaine via Digitalmars-d-learn
Did anyone used Tensorflow with D ? I would be really interesting to know if some libs allows it right now. I read an old thread about TS on the forum, but since then nothing ...

Re: Vibe.d compilation error: backend/cgelem.c 5018 dmd failed with exit code 1.

2016-09-23 Thread llaine via Digitalmars-d-learn
On Thursday, 22 September 2016 at 14:40:10 UTC, Saurabh Das wrote: On Thursday, 22 September 2016 at 10:44:29 UTC, llaine wrote: dub dustmite ./dustmite_output/ --compiler-regex="Internal Error" -b release Okay I tried yesterday, after 4hours of process, I never went through the end of

Re: Vibe.d compilation error: backend/cgelem.c 5018 dmd failed with exit code 1.

2016-09-22 Thread llaine via Digitalmars-d-learn
On Wednesday, 21 September 2016 at 21:32:02 UTC, Rene Zwanenburg wrote: On Wednesday, 21 September 2016 at 20:22:42 UTC, llaine wrote: Yes, but it may take some time. For large projects, running it on a server is advisable. 3K LOC should be doable on a desktop machine. Dub has built-in

Re: Vibe.d compilation error: backend/cgelem.c 5018 dmd failed with exit code 1.

2016-09-21 Thread llaine via Digitalmars-d-learn
On Wednesday, 21 September 2016 at 15:24:08 UTC, Saurabh Das wrote: On Wednesday, 21 September 2016 at 14:15:30 UTC, llaine wrote: I'm sure some more experienced forum readers will weigh in soon, but my understanding is that: All ICEs are errors in the compiler. You should submit it as a bug

Vibe.d compilation error: backend/cgelem.c 5018 dmd failed with exit code 1.

2016-09-21 Thread llaine via Digitalmars-d-learn
Using dmd every day and since one day I'm getting this error when I'm compiling using the -b release flag (dub build -b release). I'm compiling a vibe.d application that has roughly 3k LoC. Removing the -b flag solves the problem. Dmd version : v2.071.0 Vibe.d version : 0.7.26

Re: vibe.d PaaS

2016-09-15 Thread llaine via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 16:08:36 UTC, wobbles wrote: On Wednesday, 14 September 2016 at 16:03:50 UTC, Guillaume I've had success connecting vibe-d and heroku hosted postgresql dbs too :) It's actually quite easy, create a DB on Heroku, grab the credentials and pass them in your

Re: vibe.d PaaS

2016-09-14 Thread llaine via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 09:40:47 UTC, wobbles wrote: On Wednesday, 14 September 2016 at 09:01:11 UTC, Guillaume Piolat wrote: Is there vibe.d hosting sold anywhere? Not that I know, but any VPS you rent would be capable of hosting it. I guess you don't want to deal with all of

Re: C binding with D function

2016-08-05 Thread llaine via Digitalmars-d-learn
On Thursday, 4 August 2016 at 23:35:55 UTC, bachmeier wrote: On Thursday, 4 August 2016 at 17:11:04 UTC, Adam D. Ruppe wrote: Happy that you guys put this on the Wiki !!

Re: C binding with D function

2016-08-04 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 16:09:15 UTC, bachmeier wrote: On Wednesday, 3 August 2016 at 15:56:34 UTC, llaine wrote: Okay on stack overflow, they are not using ffi but dl. I tried changing ffi to dl, it's the same don't work unfortunatly. That's about as far as I can go without having it

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 15:47:48 UTC, bachmeier wrote: On Wednesday, 3 August 2016 at 15:24:56 UTC, llaine wrote: On Wednesday, 3 August 2016 at 15:14:24 UTC, Kagamin wrote: On Wednesday, 3 August 2016 at 15:08:51 UTC, llaine wrote: So basically I have to create wrapper.c ? Yes, but

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 15:24:56 UTC, llaine wrote: On Wednesday, 3 August 2016 at 15:14:24 UTC, Kagamin wrote: After digging a bit more, I get a different error. import std.stdio; import core.runtime; extern(C) { void initialize() { Runtime.initialize(); } void

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 15:14:24 UTC, Kagamin wrote: On Wednesday, 3 August 2016 at 15:08:51 UTC, llaine wrote: So basically I have to create wrapper.c ? Yes, but you should write it in D. Runtime initialization is at https://dlang.org/phobos/core_runtime.html#.Runtime Okay I tried

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 15:08:51 UTC, llaine wrote: On Wednesday, 3 August 2016 at 14:58:04 UTC, bachmeier wrote: On Wednesday, 3 August 2016 at 15:08:51 UTC, llaine wrote: by switching my file to just this extern(C) { char* foo(char* str) { return str; } } It works.

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 14:58:04 UTC, bachmeier wrote: On Wednesday, 3 August 2016 at 14:01:34 UTC, llaine wrote: On Wednesday, 3 August 2016 at 13:49:36 UTC, bachmeier wrote: Probably because you need the D runtime. One way is to import core.runtime and call Runtime.initialize().

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 14:02:12 UTC, Adam D. Ruppe wrote: On Wednesday, 3 August 2016 at 13:44:46 UTC, llaine wrote: void puts(string str) { writeln(str); } A D string isn't the same as a C string, so your params won't work as-is, and writeln requires the D runtime to be

Re: C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
On Wednesday, 3 August 2016 at 13:49:36 UTC, bachmeier wrote: Probably because you need the D runtime. One way is to import core.runtime and call Runtime.initialize(). Where should I call this Runtime.initialize() ?

C binding with D function

2016-08-03 Thread llaine via Digitalmars-d-learn
Hi guys, I'm trying to make a bridge between D and ruby with a gem called ffi. It's basically a loading/binding library that grab C function and make them callable from Ruby code. As you might already understand, i'm trying to develop extensions using D and uses them in Ruby. I tried to

Re: Why D isn't the next "big thing" already

2016-07-29 Thread llaine via Digitalmars-d-learn
On Thursday, 28 July 2016 at 15:16:20 UTC, Gorge Jingale wrote: On Wednesday, 27 July 2016 at 10:41:54 UTC, ketmar wrote: On Wednesday, 27 July 2016 at 10:39:52 UTC, NX wrote: Lack of production quality tools like? no, "refactoring" and other crap is not "production quality tools", they are

Re: Why D isn't the next "big thing" already

2016-07-27 Thread llaine via Digitalmars-d-learn
On Wednesday, 27 July 2016 at 10:42:50 UTC, lkfsdg wrote: Also I predict that the more it'll get popular the less it will attract hobbyist. I did't realized at the beginning (I've discovered D in 2012 then started to learn more seriously in 2014) but Alexandrescu clairly aims at a

Re: Why D isn't the next "big thing" already

2016-07-27 Thread llaine via Digitalmars-d-learn
On Wednesday, 27 July 2016 at 00:52:30 UTC, Gorge Jingale wrote: I think it is because D has some fundamental problems. It is a risk to use software that is not proven to be safe, effective, and easy to use. The fact there are so many bugs(and many are big blockes) in D says something about

Why D isn't the next "big thing" already

2016-07-26 Thread llaine via Digitalmars-d-learn
Hi guys, I'm using D since a few month now and I was wondering why people don't jump onto it that much and why it isn't the "big thing" already. Everybody is into javascript nowadays, but IMO even for doing web I found Vibe.d more interesting and efficient than node.js for example. I

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 15:48:18 UTC, llaine wrote: On Friday, 27 May 2016 at 15:32:13 UTC, yawniek wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: [...] you should: - use this https://github.com/etcimon/ddb Postgres client - fix your logic - NOT use option distribute - use

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 15:32:13 UTC, yawniek wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to admit that

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 15:11:32 UTC, Rene Zwanenburg wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 14:59:44 UTC, yazd wrote: On Friday, 27 May 2016 at 14:46:47 UTC, llaine wrote: On Friday, 27 May 2016 at 14:17:16 UTC, Adam D. Ruppe wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: I am doing something wrong ? So, the benchmark, the Ruby, and the JS

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 14:48:19 UTC, Daniel Kozak wrote: On Friday, 27 May 2016 at 14:18:31 UTC, llaine wrote: On Friday, 27 May 2016 at 14:17:16 UTC, Adam D. Ruppe wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: I am doing something wrong ? So, the benchmark, the Ruby, and

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 14:17:16 UTC, Adam D. Ruppe wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: I am doing something wrong ? So, the benchmark, the Ruby, and the JS all use the path to be / the D seems to use /companies (though I don't know vibe). Is that right? All

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 14:17:16 UTC, Adam D. Ruppe wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: I am doing something wrong ? So, the benchmark, the Ruby, and the JS all use the path to be / the D seems to use /companies (though I don't know vibe). Is that right? Yes

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 13:54:20 UTC, Vadim Lopatin wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to admit

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
On Friday, 27 May 2016 at 13:54:20 UTC, Vadim Lopatin wrote: On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to admit

Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread llaine via Digitalmars-d-learn
Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to admit that I though D was more faster than that. How is this even possible ? I am doing something wrong ? Here are

Re: Newbie to D, first impressions and feedback on the 5 (and more) first minutes.

2016-05-25 Thread llaine via Digitalmars-d-learn
On Wednesday, 25 May 2016 at 09:41:10 UTC, Russel Winder wrote: On Wed, 2016-05-25 at 07:43 +, llaine via Digitalmars-d-learn wrote: […] [...] D is a problem on Fedora: dmd, gdc, and dub are not packaged. ldc is so there is that – many would argue that having ldc is much more important

Re: Newbie to D, first impressions and feedback on the 5 (and more) first minutes.

2016-05-25 Thread llaine via Digitalmars-d-learn
On Tuesday, 24 May 2016 at 19:32:11 UTC, Seb wrote: On Tuesday, 24 May 2016 at 18:03:17 UTC, cy wrote: https://p0nce.github.io/d-idioms/ I wanted to mention as well, if you like idioms. That guy has some good ideas. On Tuesday, 24 May 2016 at 17:36:45 UTC, Ali Çehreli wrote: Yes, a link from

Re: Newbie to D, first impressions and feedback on the 5 (and more) first minutes.

2016-05-25 Thread llaine via Digitalmars-d-learn
On Tuesday, 24 May 2016 at 16:17:25 UTC, Daniel Kozak wrote: Dne 24.5.2016 v 17:27 llaine via Digitalmars-d-learn napsal(a): [...] On Archlinux this is even easier than on Mac just sudo yaourt -Sy dlang dub [...] As I said earlier it is fedora who should be blamed here :D [...] Again

Newbie to D, first impressions and feedback on the 5 (and more) first minutes.

2016-05-24 Thread llaine via Digitalmars-d-learn
Hi everybody, As written in the description I'm really new to D, I discovered it a few weeks ago thanks to the D Conf in Berlin. After playing around for couple of days with it, I wanted to share my journey with you guys on several points. 1 - Installation (DMD and DUB) I'm running