Conversation started Feb 3, 2016 at 13:02.
Feb 3, 2016 13:02
5 days to master c++, I know the basics of the language (loops, conditionals, OOP etc.) + WinApi. Anyone has any idea how to practice and learn FAST!
now I'm writing assembly code
Ven
Ven
@MadameElyse wat, no
Dart doesn't typecheck code
user1804599
@HackinGuy C++ is very complex and it takes a long time to learn it.
Ven
Ven
Because its vm architect say "types don't help performance"
@HackinGuy you lost already :/.
user1804599
@Ven It kinda does, but does implicit downcasts, and type errors are just warnings.
Ven
Ven
Feb 3, 2016 13:03
@MadameElyse unsound type system
user1804599
Yeah it's way too unsound.
@HackinGuy what about templates and lambdas, do you know about them?
user1804599
I mean, Scala's is also unsound, but Dart's is just ridiculous.
Ell
Ell
Type errors are just warnings? Wat :L
@HackinGuy lol
Ven
Ven
Feb 3, 2016 13:04
It's the same in Common Lisp :'(
@edition Not realy.. (a little bit using lambdas)
Ven
Ven
but that's because the CL standard doesn't mandate type checking. There's an option.
@Ven Thanks for the help ;)
Ven
Ven
@HackinGuy Learn everything about linkage, type deduction, templates, move semantics, the standard lib (ex-STL), ODR, lambdas, user-defined/implicit conversions
and you're still at the beginning
@HackinGuy well, you could contribute to projects on github written in C++.
Feb 3, 2016 13:06
@MadameElyse I am not starting from the beginning, I wrote few projects in C++. I am looking for a way to make learn more and quickly + PRACTICE
lol, this thing is cloning llvm
user1804599
@Ven I need some way to take functions of any arity, e.g. if : forall a... b... . a... bool (a... -> b...) (a... -> b...) -> b...
Ven
Ven
@MadameElyse why, don't
@edition I am not sure if I am at this level yet.. Do you have any basic project ideas?
user1804599
@Ven How else are you going to type if?
Ven
Ven
Feb 3, 2016 13:07
@MadameElyse if_then_else_ :: Bool -> t -> t -> t
@HackinGuy Don't do basic.
@HackinGuy Its your decision, choose what project interests you ;)
user1804599
@Ven bool -> t -> t -> t is a syntax error.
Ven
Ven
@MadameElyse fix it
user1804599
There are no such functions.
user1804599
Feb 3, 2016 13:07
Functions take a stack and return a stack.
Ven
Ven
forall t. bool -> t -> t -> t, that is
@Ven Ok, thanks. By the way when I mean 'master c++' I don't mean work for NASA.. I want to feel confident to build some projects that can be useful.
@edition Ok, Thanks!
@HackinGuy your welcome.
Any of you guys know about a good book that you have tried?
user1804599
@Ven A function of type a b c -> d e is a function that takes and returns a stack like this: gist.github.com/rightfold/e99a3da70675ebf5649c
Ven
Ven
Feb 3, 2016 13:09
@HackinGuy You're still gonna lose insane amount of time trying to debug stuff :\. Like interaction between implicit conversion and a constructor taking a template<class T> Ctor(T&&) to do perfect-forwarding
and your debugger will fuck up, and you'll be spending time looking at assembly before you figure it out
@MadameElyse so if is bool (-> a) (-> a) -> a ;o)
 
Conversation ended Feb 3, 2016 at 13:10.