On 6/4/2014 3:43 PM, bearophile wrote:
Nick Sabalausky:
In my experience, using heavy dynamic typing throughout a program
creates far more work (mainly debugging) than it avoids. Even in tiny
~100 line programs, I've spent large amounts of time tracking down
bugs a sane compiler would have imme
On Wednesday, 4 June 2014 at 22:13:33 UTC, Ary Borenszweig wrote:
On 6/4/14, 6:11 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 20:10:51 UTC, Ary Borenszweig
wrote:
On 6/4/14, 3:33 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig
wrote:
On 6/4/
On Wed, Jun 04, 2014 at 19:13:32 -0300, Ary Borenszweig via
Digitalmars-d-announce wrote:
> The problem comes when you need to refactor your code and swap one type
> for another. You have to change all ocurrences of that type in that
> situation for another.
That's what polymorphism and type in
On 6/4/14, 6:11 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 20:10:51 UTC, Ary Borenszweig wrote:
On 6/4/14, 3:33 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote:
On 6/4/14, 1:27 PM, Meta wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC
On Wednesday, 4 June 2014 at 21:02:21 UTC, Craig Dillabaugh wrote:
However, my primary point was that adding a string to a number
is really an 'undefined' operation. So I don't think such
automatic casting is (generally) helpful.
Yeah, I'm generally against it... but I have a weird view of
ty
On Wednesday, 4 June 2014 at 06:13:39 UTC, Andrei Alexandrescu
wrote:
Of possible interest.
http://www.reddit.com/r/programming/comments/278twt/panel_systems_programming_in_2014_and_beyond/
Andrei
Nice panel. Not much really new there, but gives an idea of what
you language designers are th
On Wednesday, 4 June 2014 at 20:10:51 UTC, Ary Borenszweig wrote:
On 6/4/14, 3:33 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig
wrote:
On 6/4/14, 1:27 PM, Meta wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei
Alexandrescu wrote:
clip
But us
On Wednesday, 4 June 2014 at 18:54:00 UTC, Andrew Edwards wrote:
On 6/4/14, 2:37 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 18:14:22 UTC, Adam D. Ruppe wrote:
On Wednesday, 4 June 2014 at 18:03:48 UTC, Ary Borenszweig
wrote:
clip
But shouldn't the '26' be '1016'?
That should
On Wednesday, 4 June 2014 at 20:10:51 UTC, Ary Borenszweig wrote:
I was actually talking about having to specify types
everywhere, like in function signatures, the fields of classes
and structs, etc.
You can still have a language that feels dynamic but is
statically typed. The compiler catche
On 6/4/14, 3:33 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote:
On 6/4/14, 1:27 PM, Meta wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexa
On Wednesday, 4 June 2014 at 19:43:53 UTC, bearophile wrote:
Nick Sabalausky:
In my experience, using heavy dynamic typing throughout a
program creates far more work (mainly debugging) than it
avoids. Even in tiny ~100 line programs, I've spent large
amounts of time tracking down bugs a sane
Nick Sabalausky:
In my experience, using heavy dynamic typing throughout a
program creates far more work (mainly debugging) than it
avoids. Even in tiny ~100 line programs, I've spent large
amounts of time tracking down bugs a sane compiler would have
immediately pointed out with a comparativ
On 6/4/2014 2:33 PM, Craig Dillabaugh wrote:
But using function templates and the like you can still get fairly
'Python-like' code in D. I find dealing with types to be one of the
areas that requires the 'least' amount of mental effort in software
development. I don't understand why people see
On 6/4/14, 2:37 PM, Craig Dillabaugh wrote:
On Wednesday, 4 June 2014 at 18:14:22 UTC, Adam D. Ruppe wrote:
On Wednesday, 4 June 2014 at 18:03:48 UTC, Ary Borenszweig wrote:
clip
void main() {
var a = 10;
var b = "20";
b += a;
b -= 4;
import std.stdio;
On Wednesday, 4 June 2014 at 18:29:49 UTC, bearophile wrote:
Haskell programmers have a very different attitude toward types.
Aye, that's more like how I prefer to do it - I like to use
separate types for virtually everything in real code.
On Wednesday, 4 June 2014 at 18:37:24 UTC, Craig Dillabaugh wrote:
But shouldn't the '26' be '1016'?
In javascript it would, but I hate that so I did something more
sane: + always coerces both operands to be numbers, then adds
them. To get concat, we use the D operator ~.
On Wednesday, 4 June 2014 at 18:14:22 UTC, Adam D. Ruppe wrote:
On Wednesday, 4 June 2014 at 18:03:48 UTC, Ary Borenszweig
wrote:
clip
void main() {
var a = 10;
var b = "20";
b += a;
b -= 4;
import std.stdio;
writeln(b);
b = [1,2,3];
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote:
On 6/4/14, 1:27 PM, Meta wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
Andrei
When that pers
On Tuesday, 3 June 2014 at 16:43:32 UTC, Andrei Alexandrescu
wrote:
https://news.ycombinator.com/newest
http://www.reddit.com/r/programming/comments/277k5c/dconf_2014_day_1_talk_2_templates_in_the_wild_a/
Andrei
I seems that both of you are quite confused between clang and
LLVM.
Adam D. Ruppe:
Of course, sometimes the type still matters,
Haskell programmers have a very different attitude toward types.
They do a kind of type-driven programming, even in small
programs. They lay down the data types (like the algebraic data
types that describe the data structures of th
On Wednesday, 4 June 2014 at 18:03:48 UTC, Ary Borenszweig wrote:
Cool! It also looks nice too.
you should check out my jsvar too
https://github.com/adamdruppe/arsd/blob/master/jsvar.d
weak typing and dynamic like javascript:
import arsd.jsvar;
void main() {
var a = 10;
var
On Wednesday, 4 June 2014 at 18:01:04 UTC, dennis luehring wrote:
Am 04.06.2014 19:57, schrieb Meta:
On Wednesday, 4 June 2014 at 17:55:15 UTC, bearophile wrote:
How many good usages of D Variant do you know?
Bye,
bearophile
It depends on what you mean by a good usage. I rarely ever use
Vari
Am 04.06.2014 19:57, schrieb Meta:
On Wednesday, 4 June 2014 at 17:55:15 UTC, bearophile wrote:
How many good usages of D Variant do you know?
Bye,
bearophile
It depends on what you mean by a good usage. I rarely ever use
Variant, but you *can* use it if you need weak and/or dynamic
typing.
On 6/4/14, 2:59 PM, Meta wrote:
On Wednesday, 4 June 2014 at 17:57:40 UTC, Ary Borenszweig wrote:
Even in function signatures?
alias var = std.variant.Variant;
auto DoStuff(var x, var y)
{
//Do stuff with x and y
}
Cool! It also looks nice too.
On 6/4/14, 2:50 PM, Meta wrote:
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote:
You still have to worry about types, though.
Yes, but you can often get away without explicitly writing types in D,
and there's always std.variant.Variant when you don't want to bother
with them.
On Wednesday, 4 June 2014 at 17:55:15 UTC, bearophile wrote:
How many good usages of D Variant do you know?
Bye,
bearophile
It depends on what you mean by a good usage. I rarely ever use
Variant, but you *can* use it if you need weak and/or dynamic
typing.
On Wednesday, 4 June 2014 at 17:57:40 UTC, Ary Borenszweig wrote:
Even in function signatures?
alias var = std.variant.Variant;
auto DoStuff(var x, var y)
{
//Do stuff with x and y
}
Meta:
and there's always std.variant.Variant when you don't want to
bother with them.
How many good usages of D Variant do you know?
Bye,
bearophile
On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote:
You still have to worry about types, though.
Yes, but you can often get away without explicitly writing types
in D, and there's always std.variant.Variant when you don't want
to bother with them.
On 6/4/14, 1:27 PM, Meta wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
Andrei
When that person made the statement about expressing his mental model in
a simple
On Tuesday, 3 June 2014 at 16:43:32 UTC, Andrei Alexandrescu
wrote:
https://news.ycombinator.com/newest
http://www.reddit.com/r/programming/comments/277k5c/dconf_2014_day_1_talk_2_templates_in_the_wild_a/
Andrei
Mirror: http://youtu.be/TlqVu9RtoeY
On 6/4/2014 4:27 AM, w0rp wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
Andrei
I never post on Reddit myself, but I noticed the guy asking about Qt ports.
Some
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
Andrei
When that person made the statement about expressing his mental
model in a simpler way that is still somewhat fast
On Tuesday, 3 June 2014 at 18:27:20 UTC, Sönke Ludwig wrote:
Lot's of smaller improvements in this release, please have a
look at the full change log. Some notable points:
- Various additions to the web framework package [1], including
compile-time localization support
- New graph based (
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
Andrei
I never post on Reddit myself, but I noticed the guy asking about
Qt ports. Someone else can tell him about my wor
Am 03.06.2014 21:05, schrieb Mattcoder:
On Tuesday, 3 June 2014 at 18:27:20 UTC, Sönke Ludwig wrote:
Lot's of smaller improvements in this release...
Awesome and think you should have spoken in DConf. :)
Matheus.
Thanks! Somehow I always manage to pile up enough work (and other
duties) to
On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote:
http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217
http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_
On 6/4/2014 2:08 AM, Andrei Alexandrescu wrote:
FWIW I'm not sure high resolution is necessary or recommended when watching me
:o). -- Andrei
I look better at low res.
On 6/4/14, 9:33 AM, Joakim wrote:
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
wtf, the "Mid Quality" video is 1280x720 resolution HD video, guess they
think every pr
On Wed, 04 Jun 2014 07:33:01 +
Joakim via Digitalmars-d-announce
wrote:
> On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
> wrote:
> > http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>
> wtf, the "Mid Quality" video is 1280x
On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
wrote:
http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
wtf, the "Mid Quality" video is 1280x720 resolution HD video,
guess they think every programmer has a super-fast internet
41 matches
Mail list logo