On Thursday, 22 August 2019 at 00:57:26 UTC, Bert wrote:
How hard would it be to do something like Shadertoy in Dcompute
and would it be any faster?
I don't like the basics of Shadertoy, lots of nonsense to do
basic stuff. E.g., to work with complex numbers one must
essentially do everything
After my post, a fellow going by Biotronic on Exercism came along
and cleared out the queue. Much appreciated!
How hard would it be to do something like Shadertoy in Dcompute
and would it be any faster?
I don't like the basics of Shadertoy, lots of nonsense to do
basic stuff. E.g., to work with complex numbers one must
essentially do everything manually.
Would there be any benefit using Dcompute(last
On Tuesday, 20 August 2019 at 09:40:06 UTC, Björn Lindström wrote:
Hello,
I've recently decided to pick up D, and have started doing some
exercises on
https://exercism.io/ (a non-profit programming exercise
platform), which I think is an excellent way to pick up the
basics in a new language.
On Wednesday, 21 August 2019 at 13:56:51 UTC, Eugene Wissner
wrote:
On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote:
I've:
```
module anomalo.util;
// Foo doesn't exist anywhere!
Foo toJsJson(string type, Args...)(string id, Args args) {
static if (type == "int" || type == "o
On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote:
I've:
```
module anomalo.util;
// Foo doesn't exist anywhere!
Foo toJsJson(string type, Args...)(string id, Args args) {
static if (type == "int" || type == "outcome") {
return Json(["id" : Json(id), "type" : Json(type),
I've:
```
module anomalo.util;
// Foo doesn't exist anywhere!
Foo toJsJson(string type, Args...)(string id, Args args) {
static if (type == "int" || type == "outcome") {
return Json(["id" : Json(id), "type" : Json(type), "value"
: Json(0),]);
} else {
static assert(0, "i
On Wednesday, 21 August 2019 at 00:11:23 UTC, ads wrote:
On Wednesday, 21 August 2019 at 00:04:37 UTC, H. S. Teoh wrote:
On Tue, Aug 20, 2019 at 11:48:04PM +, ads via
Digitalmars-d-learn wrote: [...]
2) Deducing the string as you describe would require CTFE
(compile-time function evaluation