Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 18 October 2019 at 10:23:28 UTC, jmh530 wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: [snip] I think this is something that's been proposed before, but most people are happy with just asking a question here and usually people are pretty good about

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 18 October 2019 at 13:38:11 UTC, Ron Tarrant wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: I very often end with a solution found on one of the StackExchange forums like > StackOverflow or AskUbuntu etc. I have found that StackExchange does often

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread bachmeier via Digitalmars-d-learn
On Friday, 18 October 2019 at 13:30:37 UTC, Martin Tschierschke wrote: On Friday, 18 October 2019 at 12:51:35 UTC, bachmeier wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: If I search for what ever, not related to D, I very often end with a solution found on one

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Elronnd via Digitalmars-d-learn
Up to now I was able to compile just "First Triangle example" https://www.dropbox.com/sh/myem3g69qjyo58v/AABZuvwuRDpnskhEC4AAK5AVa?dl= Why not start with that, then, and expand it until it has everything you need? If it helps, the basic gl startup code for my engine is at http://ix.io/1Z2X/d

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote: On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote: [...] App.d import vibe.vibe; import avm.test; void main() { auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses =

Re: Vibe.d Error

2019-10-18 Thread Paolo Invernizzi via Digitalmars-d-learn
On Friday, 18 October 2019 at 08:06:30 UTC, Vino wrote: On Thursday, 17 October 2019 at 19:02:14 UTC, Vino wrote: [...] Hi Andre, I tried install vibe.d in SUSE linux 12 SP2 and facing the below error, tried the options as per the link https://github.com/vibe-d/vibe.d/issues/1748, still

Blog Post #80: Notebook, Part IV - Customized Tabs, Part II

2019-10-18 Thread Ron Tarrant via Digitalmars-d-learn
Here's the second instalment of the customized tabs discussion. May it bring you peace and joy. https://gtkdcoding.com/2019/10/18/0080-notebook-iv-custom-tabs-ii.html

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 08:54:40 UTC, Jacob Carlborg wrote: On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: [...] The instance variable in the D code, `conn`, doesn't have a type. I guess the type should be `Connection`. In the D version of `avmconnect` you're declaring a

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Prokop Hapala via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:36:49 UTC, Elronnd wrote: I guess I'm mostly confused as to what your roadblock is: once you've imported derelict.opengl, you have all the same opengl functions as you would have in c++; once you've imported derelict.sdl, you have all the same sdl functions as

Re: PHP to D Conversion

2019-10-18 Thread Aldo via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: class avmtest { private conn; You need to specify the type of conn. private Connection conn; auto avmconnect() { auto connectionStr = "host=test.srv.com;port=3910;user=testusr;pwd=#;db=test";

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote: On Friday, 18 October 2019 at 08:54:40 UTC, Jacob Carlborg wrote: On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: [...] The instance variable in the D code, `conn`, doesn't have a type. I guess the type should be `Connection`.

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider to move from C++ to Dlang or to Rust in my hobby game development (mostly based on physical simulations https://github.com/ProkopHapala/SimpleSimulationEngine). I probably prefer Dlang because it

Re: Vibe.d Error

2019-10-18 Thread Boris Carvajal via Digitalmars-d-learn
On Friday, 18 October 2019 at 08:06:30 UTC, Vino wrote: I tried install vibe.d in SUSE linux 12 SP2 and facing the below error, tried the options as per the link https://github.com/vibe-d/vibe.d/issues/1748, still no luck and the lib's are installed in the server Read the last section of

Issue with --build=profile

2019-10-18 Thread drkameleon via Digitalmars-d-learn
I'm working on a rather big project which I'm compiling with DMD/LDC. The thing is when I'm trying to profile it, using `dub build --build=profile`, weird issues keep popping up, coming from the project's dependencies... eg. "Warning: statement is not reachable" from the dyaml package. And

PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
Hi All, Request your help in converting a PHP code to D equivalent code PHP Code: class avmtest { private $con; function __construct() { global $config; $this->con = new mysqli(test.srv.com:3910, testusr, #, test);

Re: Vibe/Mysql Testing

2019-10-18 Thread Vino via Digitalmars-d-learn
On Thursday, 17 October 2019 at 20:21:39 UTC, Andre Pany wrote: On Thursday, 17 October 2019 at 19:05:44 UTC, Vino wrote: [...] Hi, I assume you are using this mysql package http://code.dlang.org/packages/mysql-native. (If not please check wheter the package you are using is vibe-d

Re: Vibe.d Error

2019-10-18 Thread Vino via Digitalmars-d-learn
On Thursday, 17 October 2019 at 19:02:14 UTC, Vino wrote: On Thursday, 17 October 2019 at 18:12:54 UTC, Andre Pany wrote: On Thursday, 17 October 2019 at 10:58:20 UTC, Vino wrote: Hi All, We are planning to migrate our website form Mysql/PHP to Mysql/D using vibe.d , as part of the plan we

Re: PHP to D Conversion

2019-10-18 Thread Jacob Carlborg via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: Hi All, Request your help in converting a PHP code to D equivalent code PHP Code: class avmtest { private $con; function __construct() { global $config; $this->con = new

Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Martin Tschierschke via Digitalmars-d-learn
If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The main advantage is, that all answers can be classified (up/down voted, moderated etc.) This is much better than finding something in

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider to move from C++ to Dlang or to Rust in my hobby game development (mostly based on physical simulations

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Paolo Invernizzi via Digitalmars-d-learn
On Friday, 18 October 2019 at 11:45:33 UTC, Seb wrote: On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke wrote: [...] In the state of the D survey, there were more people in favor of StackOverflow than D.learn, but to be fair the majority voted for "I don't care"

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread bachmeier via Digitalmars-d-learn
On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The main advantage is, that all answers can be classified

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Seb via Digitalmars-d-learn
On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke wrote: On Friday, 18 October 2019 at 10:23:28 UTC, jmh530 wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: [snip] I think this is something that's been proposed before, but most people are happy

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread bachmeier via Digitalmars-d-learn
On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The main advantage is, that all answers can be classified

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: I very often end with a solution found on one of the StackExchange forums like > StackOverflow or AskUbuntu etc. I have found that StackExchange does often have answers, but I can't say I like asking questions on there,

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread jmh530 via Digitalmars-d-learn
On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: [snip] I think this is something that's been proposed before, but most people are happy with just asking a question here and usually people are pretty good about helping out with answers when possible.

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Andrea Fontana via Digitalmars-d-learn
On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke wrote: Yes, it works as it is, but it is not the best solution to share know how. I agree. I think D.learn should be moved to stackoverflow and D.general should stay here.

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 18 October 2019 at 12:51:35 UTC, bachmeier wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 18 October 2019 at 12:41:53 UTC, Paolo Invernizzi wrote: On Friday, 18 October 2019 at 11:45:33 UTC, Seb wrote: On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke wrote: [...] In the state of the D survey, there were more people in favor of StackOverflow than

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 18 October 2019 at 13:38:11 UTC, Ron Tarrant wrote: I have found that StackExchange does often have answers, but I can't say I like asking questions on there, especially if the question is almost-the-same-but-not-the-same as a question asked earlier. In cases like this, I've been

Re: PHP to D Conversion

2019-10-18 Thread Andre Pany via Digitalmars-d-learn
On Friday, 18 October 2019 at 09:21:46 UTC, Vino wrote: On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote: On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote: [...] App.d import vibe.vibe; import avm.test; void main() { auto settings = new HTTPServerSettings;

Some questions about GC

2019-10-18 Thread Roland Hadinger via Digitalmars-d-learn
These questions probably need some context: I'm working on an interpreter that will manage memory via reference counted struct types. To deal with the problem of strong reference cycles retaining memory indefinitely, weak references or recursive teardowns have to be used where appropriate.

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Prokop Hapala via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:24:38 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider to move from C++ to Dlang or to Rust in my hobby game development

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Aldo via Digitalmars-d-learn
On Friday, 18 October 2019 at 19:20:04 UTC, Prokop Hapala wrote: On Friday, 18 October 2019 at 06:24:38 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Prokop Hapala via Digitalmars-d-learn
The whole thing is like this: prokop@prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ source ~/dlang/dmd-2.088.0/activate (dmd-2.088.0)prokop@prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ dub WARNING: A deprecated branch based version specification is used for the

Re: Help playing sounds using arsd.simpleaudio

2019-10-18 Thread Murilo via Digitalmars-d-learn
but at the beginning of main() set it up with auto audio = new AudioPcmOutThread(); audio.start(); scope(exit) { audio.stop(); audio.join(); } Thanks Adam. That worked on Windows, but now that I have switched to Linux Mint it is

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Prokop Hapala via Digitalmars-d-learn
On Friday, 18 October 2019 at 20:09:47 UTC, Aldo wrote: Try to move that libnuklear.so or rename it to nuklear.so. I checked bindbc code and saw : version(Windows) { const(char)[][1] libNames = ["nuklear.dll"]; } else version(OSX) { const(char)[][1] libNames =

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Prokop Hapala via Digitalmars-d-learn
The dmech/demos also seems to be almost running just it somehow cannot find or use my libsdl.so library which it just compiled (it is in 'dmech/demos/lib') (dmd-2.088.0)(dmd-2.088.0)prokop@prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dmech/demos$ dub Performing "debug" build using

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 19 October 2019 at 00:57:48 UTC, Prokop Hapala wrote: The dmech/demos also seems to be almost running just it somehow cannot find or use my libsdl.so library which it just compiled (it is in 'dmech/demos/lib')

Re: Some questions about GC

2019-10-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, October 18, 2019 10:54:55 AM MDT Roland Hadinger via Digitalmars- d-learn wrote: > These questions probably need some context: I'm working on an > interpreter that will manage memory via reference counted struct > types. To deal with the problem of strong reference cycles > retaining

Re: Help playing sounds using arsd.simpleaudio

2019-10-18 Thread Murilo via Digitalmars-d-learn
On Saturday, 19 October 2019 at 02:10:54 UTC, Adam D. Ruppe wrote: On Saturday, 19 October 2019 at 01:48:57 UTC, Murilo wrote: init: Operation not permitted Your system probably uses PulseAudio which I don't like, so I don't support it in my code. It *might* work to run `pasuspender --

Re: Help playing sounds using arsd.simpleaudio

2019-10-18 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 19 October 2019 at 01:48:57 UTC, Murilo wrote: init: Operation not permitted Your system probably uses PulseAudio which I don't like, so I don't support it in my code. It *might* work to run `pasuspender -- ./your_program_here` but I don't know. I can check more tomorrow.