HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on Fyne: Native Mobile UX in Go
Same on Windows too. go get.. then you're up and running.
dana321··on Fyne: Native Mobile UX in Go
Its pretty good, it is written by the author of "Hands-On GUI Application Development in Go" which covers pretty much every gui option in goland. Its the easiest to use, just use go modules and it compiles without messing around with external dependencies.
dana321··on Ask HN: My company wants to move towards AI and blockchain. Should I stop them?
What does the company do?
dana321··on Why Google Did Android
Cloud isn't just cloud.

Google's infrastructure is a cloud, the only thing a competitor needs is the software / services to replace Google. And a lot of them are already there, being recreated.

That's why they want in, because Google & co. could easily become the next television.. Its still there, but most people don't care about it any more because of a shift in technology and the way people use the internet.

dana321··on Living without a SIM card
I first thought this might be about eSIM; the electronic SIM that doesn't require a physical SIM card.
dana321··on Ask HN: What are the underrated newsletters you like reading?
Glimpse looks great, but kinda expensive for anything useful.. Any alternatives? I might just use the Google Trends feeds
dana321··on Become a Better Developer by Reading Source Code
lmdb is one that comes off the top of my head.

But even that the main file is 11000+ lines of code.

dana321··on Become a Better Developer by Reading Source Code
Had a quick look, found this little gem, a math evaluator with precedence.

https://github.com/mirror/busybox/blob/master/shell/math.c

Some funny comments like "Think about it. * It makes sense."

dana321··on Critical Bluetooth vulnerability in Android
I knew it was an updated cpu, but what i meant was they keep it going because it is similar enough looking and probably a lot of the parts are the same like the screen and other associated chips within the device.

There is more to a phone than just the cpu.

dana321··on Skepticism after Windows 10 search failure
What i find strange is, i type in a program that is recently added and listed at the top of the start menu, and it doesn't come up in the search..

Then, i tried searching again, and it comes up, 3rd time lucky.. Doesn't make sense at all!

dana321··on Critical Bluetooth vulnerability in Android
Only because their newer iphone SE is similar enough.
dana321··on Scientists have found evidence that stress can cause hair graying
Something interesting i found.

Magnesium attenuates the release of norepinephrine on the nerve cells (as mentioned in the article, its norepinephrine that causes the greying)

https://www.ncbi.nlm.nih.gov/pubmed/15477382

Its also known that during stressful situations, including extreme exercise, magnesium is depleted and excreted in urine.

https://www.ncbi.nlm.nih.gov/books/NBK507250/

https://www.ncbi.nlm.nih.gov/pubmed/17172008

What do you think, am i on to something?

dana321··on Mint: A programming language for writing single page applications
- Mint, the Indian takeaway in Edinburgh

https://mint-takeawayonline.co.uk/

dana321··on YaCy: Decentralized Web Search
I have tried this extensively in the past around a year ago, unfortunately its written in Java and suffers performance issues with GC when you start pushing it hard, the whole system crawls and the performance is erratic.

I had to uninstall it as it was killing my 8-core 5960x server.

The results can be ok if you push it towards the sites you enjoy reading, but apart from that..

dana321··on Just because it's an Internet Draft doesn't mean anything at all (2014)
Its very easy after watching the ancient aliens season 1 pilot episode, believe me!
dana321··on Amiga Samplers: Budget dance music in 1990 [video]
Madtracker is a bit better imho. https://www.madtracker.org/about.php Has full .xm fasttracker 2 compatibility, plus a more powerful .mt2 format that supports vsti/vst and built-in effects, automation etc.

Renoise is the kitchen sink, its probably the most powerful tracker you can get, a bit overwhelming even to someone like me that spent over 10 years every day using them: https://www.renoise.com/

dana321··on You’re better off using Exceptions
Thanks for that, nice to know!
dana321··on You’re better off using Exceptions
What's exception handling actually doing internally?

Genuinely interested and i need to know.

Must be some kind of "goto catch block" internally when you throw an error. It has to stop the execution and jump somewhere, but that somewhere is set in the code where it catches the error.

If you're calling a function then that function throws an error, it has to prematurely exit to somewhere so there must be a stack of the locations of the catch blocks or something? That then unroll as you exit the try/catch blocks as well.

dana321··on New in PHP 8
Yeah, looks like an extension to bring a lot of functionality go has into the php space.
dana321··on New in PHP 8
Array map takes one or more arrays with a callback, so the arrays have to be on the end.

Array reduce has one array as a parameter, as does most of the other functions and they all have the array as the first parameter.

Its only one function, and its an inconsistency for a reason. Lets not blow it all out of proportion.

dana321··on Bjarne Stroustrup – The Essence of C++ (2014) [video]
1 hour 25 minutes in, he talks about long compile times, another interesting part if you're just dipping in.
dana321··on Bjarne Stroustrup – The Essence of C++ (2014) [video]
I've watched this a while ago, there is a nice part about his opinion on garbage collection about 40 minutes in.
dana321··on Coronavirus Forces World’s Largest Work-from-Home Experiment
Its just a case of p2p with people running servers (like bitcoint does) and differentiating between the two based on a bandwidth test.
dana321··on Coronavirus Forces World’s Largest Work-from-Home Experiment
Thats a pretty negative picture you paint there.

To me, those are fun things to solve.

The answer is to still have clients and servers, just that the servers deal with the grunt work of routing traffic and the clients just stream the data through a server.

Push vs pull, depending if you can get upnp to open a port to the client.

Skype was originally a peer to peer application, seemed pretty popular and while it still was p2p? It was written by the people who wrote Kazaa, remember that?

dana321··on New in PHP 8
I like the look of swoole, first i've heard of it.

There is also a complete application server that supports php servlets, message queue, persistence etc. that is well-supported. Its free, open source.

https://appserver.io/

A team that supports Magento, Typo etc. based in Germany wrote it.

You can use either the PHP-FPM or the more interesting is the servlets, because the data is kept in-memory - probably much in the same way as swoole functions.

Its basically enterprise Java for PHP.

dana321··on Challenging the myth of individual programmer productivity
"Keep tasks small"

Thats the key.. Break down the task into smaller chunks and work on them with tests, then bring them into the larger codebase. Once you start ping-ponging all over the place you don't stand a chance at being 10x.

"Provide a quiet work place so that programmers can focus."

Thats another great one. I get a lot done some nights because its really quiet.

Also, some programmers might be faster but they introduce a load of bugs and you end up playing ping-pong bug hunt.

I had this outsourcing company that would fix one bug, but introduce another 1 or 2 bugs. It was really frustrating.

Its like there was a lack of thought into the program flow, just hacking until it sort of works.

dana321··on What Is the Point of Universal Basic Income?
One method of paying for UBI isn't listed - "Printing Money"

(Don't say they aren't thinking about it)

dana321··on Show HN: Regex Cheatsheet
Awesome job, i did a hack bootstrapping the tokenizer to do the same thing in php, didn't release it though.
dana321··on "Within C++, there is a much smaller and cleaner language struggling to get out"
If they take the C out of C++

Call it ++

Basically get rid of everything that the legacy of C brings.

If you want those things you probably should be coding C.

Get rid of the headers .h etc. Build that from the source .pp files

Make a standard package library that works properly on all platforms.

Standardize the internal symbols.

Make templates / everything easier to use, make standard internal map and vector types.

Change auto to var.

Kinda like the way go did it.

Sorry, too late!

dana321··on Show HN: Regex Cheatsheet
One thing i've always missed from the Perl programming language is the regex operators.

You could do:

  my $var='foo foo bar and more bar foo!!!';

  if($var=~/(foo|bar)/g){  # does the variable contain foo or bar?

    print "foo! $1 removing foo..\n";

    # remove our value..

    $var=~s/$1//g;

  }
← PreviousPage 6 of 12Next →