Generics aren't a cure-all, they merely duplicate code and change the type. Its not much better than copy-paste and replace the type names.
300 karma · joined October 25, 2018
Generics aren't a cure-all, they merely duplicate code and change the type. Its not much better than copy-paste and replace the type names.
If you really want high performance with many different types of a function, its a case of copy-paste-modifying your code.
Its a language that is straight-forward, its the antitheisis of tmtowtdi.
Kind of why drugs don't work in the same way with everyone. Too many subtle differences (blood type, chromosomes, dna, age, hormone levels, deficiencies etc.)
I try and totally avoid panics and never throw them unless its at some initial parser stage. But this is made me rethink the structure of how some of my tags operate in my interpreter / transpiler.
I tend to (for example) open a connection in one function, do something with it in another function, close it in another. I'm not writing traditional go programs, i wrap things in an api.
Correlation != Causation
Its not really news, i agree, but to a lot of people it is.
I agree that correlation is not causation in a lot of cases, but in this case its kind of true but it depends.. Raw is a lot better than cooked.
Its also the difference between real physical wellbeing from nutrients/sugars, and percieved psychological wellbeing from eating certain foods.
Apple pie might be more of a psychological wellbeing than raw apples which is more physiological, although cooking can bring out different types of nutrients in some cases.
Syntax Libraries Runtime
I picked syntax briefly, because i think its the most important part of the language.
The libraries can be written, the runtime improved but if the syntax is bad its hard to change it later.
I think rust is overly complex, and very quirky but.. It has some good ideas that i have taken and used in my own experimental languages i have developed like the error/ok branch structures.
I think Ocaml is even more quirky than rust, they are using symbols (|) to define select statements, i would to be honest rather have something more readable. Reminds me of perl a lot.
Both use "let" for defining variables that i'm not a fan of as a keyword.
I started the same thing with C++ but found that i spent too long getting libraries to work with each other without clashing (especially on windows)
I've also found java to be a terrible memory hog and require significant tuning to run stable without having long periods of garbage collection and non-responsiveness, i've not had that problem with go out of the box.
Thats the one thing about go that is great, goroutines and the (much much better) garbage collection.
Yeah, i'm a bit of a go fanboy :)
The reason they are a huge company is the way they are predatory towards their customers. Probably why sun didn't survive as well, its kind of sad that this is the way of the world.
The wildcard is cross-platform. vcpkg doesn't seem to be 100% there and has many bugs for example the folders where includes and libraries are kept changes based on platform.
The other problem is static vs dynamic linking, as well as conflicts between different combinations of cmt libs etc. it gets very messy quickly.
Its almost like you're spending more time trying to get all the libraries you want working together than actually coding.
That would make it more like 66%
I would have just made it an image with the text, from a random url.
From what i understand, it allows you to package your flutter application (android/ios framework using dart) as a standalone binary on windows/mac/linux.
Most people probably remember Google Labs, iGoogle homepage and Google Answers too.
Google Desktop was pretty popular as well.