Re: Why don't you advertise more your language on Quora etc ?

2017-03-15 Thread jmh530 via Digitalmars-d
On Wednesday, 15 March 2017 at 21:10:49 UTC, Laeeth Isharc wrote: A Jupyter kernel exists - written by John Colvin. It works and I have used it, and you can write python in one sell and D in another. It needs some work though, and so I am sure if somebody would like to contribute pull reque

Re: Why don't you advertise more your language on Quora etc ?

2017-03-15 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 4 March 2017 at 19:36:30 UTC, Jon Degenhardt wrote: On Saturday, 4 March 2017 at 09:13:15 UTC, Seb wrote: On Friday, 3 March 2017 at 19:18:31 UTC, jmh530 wrote: A Jupyter kernel would go a long way to students being able to easily play around with it in a browser. There's already

Re: [OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-15 Thread Laeeth Isharc via Digitalmars-d
On Monday, 6 March 2017 at 14:49:42 UTC, Atila Neves wrote: On Monday, 6 March 2017 at 05:50:01 UTC, Rico Decho wrote: It's actually rather rare to *need* to avoid the GC -- only niche applications need that, like if you're writing a game engine that has to avoid stop-the-world pauses (which ca

Re: [OT] Re: Why don't you advertise more your language on Quora etc ?

2017-03-15 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 7 March 2017 at 16:26:20 UTC, Russel Winder wrote: Learn the lesson from Java. It started with a truly crap GC and everyone said Java is crap because the GC is garbage. D has seemingly actually progressed beyond this stage technically but not marketing wise. The Java folk worked o

Re: Special Code String for mixins

2017-03-15 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/15/2017 11:50 AM, Stefan Koch wrote: Wish I could get rid of the need for "mixin(...)" in interp though. But you can. in interp you can evoke the function you generate however for that you need to pass s to it. Thus reinventing writef and defeating the whole point of interpolated stri

Re: Why don't you advertise more your language on Quora etc ?

2017-03-15 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 28 February 2017 at 23:29:24 UTC, Jared Jeffries wrote: I've read the answer to questions like "Which is the best programming language to learn in 2017?". Nobody was telling anything about D, which is really sad, because in my opinion D could be one of the best answers to this que

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 16:11:44 UTC, Stefan Koch wrote: and string-foreach caused dmd to miscomplie itself ... *sigh* Guess what ? Things work so much better when you allocate space for the zero terminator :) The segfaults are mysteriously gone :D

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 19:00:21 UTC, Nordlöw wrote: On Wednesday, 15 March 2017 at 15:59:46 UTC, Stefan Koch wrote: Unsupported Features include : - Unicode/Auto-decoding support. NOTE: foreach(char c; string) { ... } will work since it does not auto-decode. - Floating point. - Cl

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 18:52:16 UTC, H. S. Teoh wrote: On Wed, Mar 15, 2017 at 03:59:46PM +, Stefan Koch via Digitalmars-d wrote: [...] Unsupported Features include : [...] - Floating point. [...] - unions [...] What are the chances / what's the expected timeframe of unions

Re: CTFE Status 2

2017-03-15 Thread Nordlöw via Digitalmars-d
On Wednesday, 15 March 2017 at 15:59:46 UTC, Stefan Koch wrote: Unsupported Features include : - Unicode/Auto-decoding support. NOTE: foreach(char c; string) { ... } will work since it does not auto-decode. - Floating point. - Classes - unions - structs containing other structs. - array

Re: Special Code String for mixins

2017-03-15 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 15, 2017 at 01:50:28PM +, Inquie via Digitalmars-d wrote: > I hate building code strings for string mixins as it's very ugly and seems > like a complete hack. > > How bout, instead, we have a special code string similar to a multiline > string that allows us to represent valid D co

Re: CTFE Status 2

2017-03-15 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 15, 2017 at 03:59:46PM +, Stefan Koch via Digitalmars-d wrote: [...] > Unsupported Features include : [...] > - Floating point. [...] > - unions [...] What are the chances / what's the expected timeframe of unions being implemented? Support for unions in CTFE is a MAJOR mileston

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread Johannes Pfau via Digitalmars-d
Am Wed, 15 Mar 2017 08:27:23 + schrieb Suliman : > On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: > > Amazon S3 seem like a common solution for object storage these > > days[1] but I'm seeing almost no activity in this area (stable > > native D API). Why? > > > > [1] https://trends

Re: ranges of characters and the overabundance of traits that go with them

2017-03-15 Thread H. S. Teoh via Digitalmars-d
On Tue, Mar 14, 2017 at 07:21:05PM -0700, Jonathan M Davis via Digitalmars-d wrote: > On Tuesday, March 14, 2017 11:38:21 H. S. Teoh via Digitalmars-d wrote: [...] > > Actually, come to think of it, the only time isNarrowString, et al > > are *necessary* is in the autodecoding parts of Phobos. I

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 15:59:46 UTC, Stefan Koch wrote: On Wednesday, 15 March 2017 at 15:49:59 UTC, Nordlöw wrote: On Wednesday, 15 March 2017 at 13:49:43 UTC, Stefan Koch wrote: String Slicing is in! Great! What remains? Unsupported Features include : - Unicode/Auto-decoding sup

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 15:49:59 UTC, Nordlöw wrote: On Wednesday, 15 March 2017 at 13:49:43 UTC, Stefan Koch wrote: String Slicing is in! Great! What remains? Unsupported Features include : - Unicode/Auto-decoding support. NOTE: foreach(char c; string) { ... } will work since it do

Re: Special Code String for mixins

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 15:39:38 UTC, Nick Sabalausky (Abscissa) wrote: On 03/15/2017 09:50 AM, Inquie wrote: e.g., string s = "smile"; enum code1 = @# void happyCode = "Makes me @@s@@"; #@ enum code2 = code1 ~ @# int ImThisHappy = @@s.length@@; #@ mixin(code); import scriptlike; /

Re: CTFE Status 2

2017-03-15 Thread Nordlöw via Digitalmars-d
On Wednesday, 15 March 2017 at 13:49:43 UTC, Stefan Koch wrote: String Slicing is in! Great! What remains?

Re: [OT] cheap hosting

2017-03-15 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/15/2017 05:02 AM, Jonathan M Davis via Digitalmars-d wrote: If you want a cheap solution for running a website, there's always digital ocean: https://www.digitalocean.com/ You can run whatever you want on there quite easily. It's what I use when I want to spin up a server for something o

Re: Cityhash in D?

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Wednesday, 15 March 2017 at 14:58:02 UTC, Ethan Watson wrote: On Wednesday, 15 March 2017 at 13:37:41 UTC, Andrea Fontana wrote: It seems pretty easy to use with dstep, isn't it? I need to use it at compile time. Linking as a C lib is subsequently out of the question. For now, yes :) I

Re: Special Code String for mixins

2017-03-15 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/15/2017 09:50 AM, Inquie wrote: e.g., string s = "smile"; enum code1 = @# void happyCode = "Makes me @@s@@"; #@ enum code2 = code1 ~ @# int ImThisHappy = @@s.length@@; #@ mixin(code); import scriptlike; // https://github.com/Abscissa/scriptlike string s = "smile"; // http://semitwi

Re: Cityhash in D?

2017-03-15 Thread Ethan Watson via Digitalmars-d
On Wednesday, 15 March 2017 at 13:37:41 UTC, Andrea Fontana wrote: It seems pretty easy to use with dstep, isn't it? I need to use it at compile time. Linking as a C lib is subsequently out of the question.

Re: Special Code String for mixins

2017-03-15 Thread Inquie via Digitalmars-d
On Wednesday, 15 March 2017 at 14:12:57 UTC, Adam D. Ruppe wrote: On Wednesday, 15 March 2017 at 13:50:28 UTC, Inquie wrote: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. Me too, that's why I avoid doing it. Check out my tips of the week here

Re: [NOTABLE PR] First step from traditional to generic runtime

2017-03-15 Thread Andrei Alexandrescu via Digitalmars-d
On 03/02/2017 02:32 PM, Andrei Alexandrescu wrote: Worth a look: https://github.com/dlang/druntime/pull/1781. This moves comparison code away from tedious runtime-introspected routines to nice templates. -- Andrei Another notable PR in the same vein: https://github.com/dlang/druntime/pull/1792

Re: Special Code String for mixins

2017-03-15 Thread Shachar Shemesh via Digitalmars-d
On 15/03/17 15:50, Inquie wrote: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. What I usually do is use the q{} format. Vim does syntax highlighting on it: string code = q{ immutable int a = %s; }.format(something); ... mixin(

Re: Special Code String for mixins

2017-03-15 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 15 March 2017 at 13:50:28 UTC, Inquie wrote: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. Me too, that's why I avoid doing it. Check out my tips of the week here: http://arsdnet.net/this-week-in-d/sep-20.html and here: http://a

Re: Special Code String for mixins

2017-03-15 Thread Inquie via Digitalmars-d
On Wednesday, 15 March 2017 at 13:50:28 UTC, Inquie wrote: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. How bout, instead, we have a special code string similar to a multiline string that allows us to represent valid D code. The compiler can

Special Code String for mixins

2017-03-15 Thread Inquie via Digitalmars-d
I hate building code strings for string mixins as it's very ugly and seems like a complete hack. How bout, instead, we have a special code string similar to a multiline string that allows us to represent valid D code. The compiler can then verify the string after compilation to make sure it i

Re: CTFE Status 2

2017-03-15 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] String Slicing is in! The following code will now compile with newCTFE. string slice(string s, uint lwr, uint upr) { return s[lwr .. upr]; } static assert(slice("Hello World", 6, 11) == "World");

Re: The delang is using merge instead of rebase/squash

2017-03-15 Thread Seb via Digitalmars-d
On Wednesday, 15 March 2017 at 13:23:00 UTC, deadalnix wrote: On Wednesday, 15 March 2017 at 13:14:31 UTC, deadalnix wrote: This is making the history very spaghettified. Is that possible to have the bot rebase/squash commits and then pushing ? Arf I fat fingered the title, i meant the dlang

Re: Cityhash in D?

2017-03-15 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 15 March 2017 at 13:26:45 UTC, Ethan Watson wrote: https://github.com/google/cityhash Does anyone know of a D implementation of Google's Cityhash? My google-fu has failed me and I've been unable to find one. It seems pretty easy to use with dstep, isn't it?

Cityhash in D?

2017-03-15 Thread Ethan Watson via Digitalmars-d
https://github.com/google/cityhash Does anyone know of a D implementation of Google's Cityhash? My google-fu has failed me and I've been unable to find one.

Re: The delang is using merge instead of rebase/squash

2017-03-15 Thread deadalnix via Digitalmars-d
On Wednesday, 15 March 2017 at 13:14:31 UTC, deadalnix wrote: This is making the history very spaghettified. Is that possible to have the bot rebase/squash commits and then pushing ? Arf I fat fingered the title, i meant the dlang bot.

The delang is using merge instead of rebase/squash

2017-03-15 Thread deadalnix via Digitalmars-d
This is making the history very spaghettified. Is that possible to have the bot rebase/squash commits and then pushing ?

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 15 March 2017 at 09:57:52 UTC, aberba wrote: There are several options: 1. Heroku Paas with s3 2. Docker Datacenter with your own image with dlanguage/dmd image as base. 3. Or hosting yourself on AWS or linode or digitaloceon. AWS is generally safe for small team with less resour

Re: [OT] cheap hosting

2017-03-15 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 15 March 2017 at 09:02:54 UTC, Jonathan M Davis wrote: https://www.digitalocean.com/ You can run whatever you want on there quite easily. It's what I use when I want to spin up a server for something online. - Jonathan M Davis or for $2,50 on https://www.vultr.com/

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread aberba via Digitalmars-d
On Wednesday, 15 March 2017 at 08:27:23 UTC, Suliman wrote: On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? [1] https://trends.builtwith.c

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread aberba via Digitalmars-d
On Tuesday, 14 March 2017 at 21:09:23 UTC, Adam D. Ruppe wrote: On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? I've done it before, but n

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread aberba via Digitalmars-d
On Tuesday, 14 March 2017 at 20:38:37 UTC, ikod wrote: On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? [1] https://trends.builtwith.com/cd

[OT] cheap hosting

2017-03-15 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, March 15, 2017 08:27:23 Suliman via Digitalmars-d wrote: > On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: > > Amazon S3 seem like a common solution for object storage these > > days[1] but I'm seeing almost no activity in this area (stable > > native D API). Why? > > > > [1]

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread Suliman via Digitalmars-d
On Tuesday, 14 March 2017 at 20:21:44 UTC, aberba wrote: Amazon S3 seem like a common solution for object storage these days[1] but I'm seeing almost no activity in this area (stable native D API). Why? [1] https://trends.builtwith.com/cdn/Amazon-S3 How much the lowest vibed ready instance c