HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on Generics aren't ready for Go
Well, what was the point of adding std::any in C++17?

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.

dana321··on Generics aren't ready for Go
using interface{} and reflect is good enough for the many problems of using X datatype
dana321··on Generics aren't ready for Go
interface{} is the equivalent of C++17's std::any, of which you can put anything including vector (slice) and maps.

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.

dana321··on Janet – A dynamic language and bytecode VM
No. I called mine Goliath (because it uses features of the go runtime, and is written in go)
dana321··on Skype contact lists may have been exposed (2017)
The fact they removed the "away" status is annoying enough without the app crashing randomly
dana321··on Living Alone Can Be Deadly
Cause and effect are simple to discern with one variable (like pushing a ball), with multiple variables everything becomes increasingly complicated.

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.)

dana321··on Griping about Go
I would have to re-arrange my call stack so that the read or write functions would be inside the open statement, then it would close it at the end anyway so its kind of pointless for my uses.

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.

dana321··on Griping about Go
Sorry, but for me its not a great method of releasing resources.

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.

dana321··on Griping about Go
I avoid using defer
dana321··on Living Alone Can Be Deadly
Remember the magical formula:

Correlation != Causation

dana321··on Eating more fruit and vegetables 'improves mental wellbeing'
Eating fruit and raw vegetables for me does make me feel good and brings about a feel of wellbeing. Whether thats the sugar or the other nutrients that they bring i don't know.

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.

dana321··on Oracle's Newest Audit Tactic: Focusing on Java
Its all about:

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.

dana321··on Oracle's Newest Audit Tactic: Focusing on Java
I have evaluated Rust a while ago, before i updated my C++ skills to C++17 with vcpkg / cmake and learned go using the new go modules functionality.

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.

dana321··on Oracle's Newest Audit Tactic: Focusing on Java
I do myself now use go, i've developed a scripting language on top of go which has all the great features of the go runtime but it is interpreted instead. It has a few hundred commands and will eventually have the ability to modify its own commands at runtime.

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 :)

dana321··on Oracle's Newest Audit Tactic: Focusing on Java
Its all still encumbered by patents, its not free. Its "open"
dana321··on Oracle's Newest Audit Tactic: Focusing on Java
Once Oracle bought Sun Microsystems, i became dis-interested in Java all round. I would rather use a programming language not licensed by a huge corporation.

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.

dana321··on Low-carb vs. low-fat? Both led to –12lb loss after a year, regardless of genes
Basically, if you eat less, you lose weight
dana321··on Mother of three-year-old is first person convicted of FGM in UK
Bizarre behavior all round.
dana321··on Show HN: Buckaroo – A decentralized C++ package manager
linuxbrew / homebrew does a pretty good job at downloading packages and compiling them.

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.

dana321··on Lets Deploy to Production
Thats brilliant, and so true.
dana321··on Percent of Facebook users could be fake
50%? I've seen 2 copies of my account and my name is unique.

That would make it more like 66%

dana321··on Apple Lays Off 200 Employees from Autonomous Car Unit
If you look into the failure rate of apple products, the defects in things that all other manufacturers seem to get right then you begin to build a picture of how this is going to turn out.
dana321··on Apple Lays Off 200 Employees from Autonomous Car Unit
I wouldn't trust an Apple self-driving car. If i saw one i would start running.
dana321··on Blocking website ads with a hosts file
Thats extreme!

I would have just made it an image with the text, from a random url.

dana321··on Twitter migrates data to Google Cloud
Yeah, they've failed at every attempt of making a pure social network (they bought youtube, its a kind of social network) with Microsoft buying github, it would be prudent of them to buy Twitter before someone else does.
dana321··on 25 years of coding, and I'm just beginning
Pretty cool site so far, the background noise feature is pretty soothing
dana321··on Guess the most expensive domain name
https://www.godaddy.com/garage/the-top-20-most-expensive-dom...
dana321··on A Go Custom Flutter Engine Embedder for Desktop
TL;DR - converts a mobile app written with flutter.io to desktop, including binary packaging.

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.

dana321··on UK engineers have completed the build of the novel Quantum satellite
Here was me thinking that they were about to launch the first satellite with quantum processors onboard.
dana321··on Google cans the Chromecast Audio
I think most people know of Google Wave, Orkut, Google Answers, Google Video (was turned from a service into a search), Picasa and Google Reader.

Most people probably remember Google Labs, iGoogle homepage and Google Answers too.

Google Desktop was pretty popular as well.

← PreviousPage 10 of 12Next →