« first day (137 days earlier)      last day (756 days later) » 

06:11
0
Q: Create a Singleton Factory for a Class that takes parameters / arguements

rtindruFirst of all I read this on an article - which basically tells me I should not be using a singleton at all - Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise a second request for an instance but with a different parameter could be...

 
2 hours later…
07:42
@rightfold Writing it in D is probably way more interesting for you.
 
6 hours later…
user142019
13:17
@FredOverflow It's really fun!
user142019
D code looks nice.
user142019
> It wants to fly.
user142019
20:15
@FredOverflow I got hello world with variables working! :D
user142019
~/gear [ cat hello.gear                                       master ] 10:05 pm
greeting = 'Hello, world!';
puts(greeting);

~/gear [ ./gear.out hello.gear                                master ] 10:05 pm
Hello, world!
21:41
@rightfold congratz
user142019
21:55
Dankeschön!
user142019
@FredOverflow I'm watching all DConf videos.
@rightfold I was looking forward to watching them, but honestly, most of them are pretty boring.
user142019
:P
I liked Walter's keynote of course.
user142019
I'm very new to D so I may learn a lot from them.
22:05
And the rvalue reference talk was also very nice.
user142019
I'm watching Copy and Move Semantics in D right now.
That's the rvalue ref talk I meant.
I didn't understand all of it :)
user142019
:P
Mostly due to const and immutable.
user142019
Apparently a member function dup() is more idiomatic.
user142019
22:09
In Gear I wrote a copy constructor instead. :P
dup is what array provide IIRC
user142019
Yes.
> Don't be a noob, use dup!
user142019
How are lambdas in D?
user142019
I want to rewrite my parser using monads.
user142019
22:11
Because this code is extremely fugly IMO. xD
user142019
22:21
From C# to D seems very interesting.
user142019
I like both languages.
22:33
@rightfold x => x+1
user142019
Yes, but what about the type system?
Basically, they just took C#'s lambdas.
user142019
Ah.
user142019
So I can do, say, this?
9
Q: What's the new lambda syntax?

ArlenI've heard there is going to be a new syntax in DMD 2.058 for anonymous functions, but I can't find any information on it. What is the new syntax, and is the old syntax going to be deprecated?

user142019
22:34
How would you write >>= in D?
@rightfold D doesn't have higher kinds or whatever they're called.
user142019
V bind(T, U, V)(T, V delegate(U))?
I really don't know, never dabbled enough with D :)
user142019
@FredOverflow Wait, I don't need that.
user142019
I only have one specific monad.
22:39
Is D day 2 talk 6 a man or a woman?
user142019
Link?
user142019
Parser!U bind(T, U)(Parser!T, Parser!U delegate(T)) { … }
user142019
@FredOverflow Was male, is now female with male voice.
user142019
Kind of like Bill Kaulitz but with a male voice.
user142019
22:44
Renaming classes in D is a whole lot easier because constructors are all named this instead of the class name. :)
@rightfold Do you know for sure, or are you guessing?
user142019
@FredOverflow The latter.
class name < this < constructor
user142019
construct!
user142019
It should be a verb!
user142019
22:45
__init__
Why? You never call it.
user142019
Anyway, eww OOP.
Pissing on OOP is so 200x.
user142019
D's concurrency is similar to Erlang's except it's less powerful.
I like D's thread local globals by default.
user142019
22:47
The message passing looks very much alike, I like that.
Fuck the LLVM D talk has sound issues.
user142019
user142019
Maybe this one?
seems to be a slack joint problem
@rightfold wat
user142019
Well, maybe the YouTube one is broken.
22:49
...The SD version links to YouTube :D
user142019
HD
But it seemed to have been a microphone problem, the HD version won't fix that.
user142019
lol
user142019
That sucks.
user142019
Enable subtitles and turn off the sound.
22:50
Seems to be gone now.
It was just on/off for a minute or so.
user142019
Nice!
Oh, the LLVM logo was inspired by the Dragon Book? I honestly didn't know that.
user142019
I didn't know either but it makes sense. :P

« first day (137 days earlier)      last day (756 days later) »