HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on CO2 in the atmosphere just exceeded 415ppm for the first time in human history
Currently stands at using more than double the electricity usage of Ireland.

Its not a tiny fraction!

dana321··on CO2 in the atmosphere just exceeded 415ppm for the first time in human history
Must be all the bitcoin mining!
dana321··on IT Runs on Java 8
A third of the websites run on Wordpress, its not trendy but it works and has a huge library of plugins and themes.
dana321··on It's time to replace GIFs with AV1 video
I kind of thought it was pointless until i saw the file size difference. From 11.7 Meg to 330k is pretty good.
dana321··on PDF Is the World's Most Important File Format
https://www.youtube.com/watch?v=-cFOsAzigyQ
dana321··on HighwayHash: Fast hashing at over 10 GB/s per core in Golang
Its written in C++ and Assembly, the go library is just a wrapper
dana321··on Facebook announces next-generation Open Rack frame
The sooner this centralized model of storing data ends, the better.
dana321··on iPad Pro as Development Machine
There is a way of emulating an x86 machine on ios now

https://ish.app/

https://news.ycombinator.com/item?id=18430031

Still doesn't convince me to swap my 8 core ryzen 1700 laptop with 32gb ram and 1.5tb ssd and a RX580 for an ipad pro.

dana321··on Reasons Not to Use Apple (2018)
Recent examples of why not to use apple:

1. Their new keyboards are terrible, and are buggy. 2. Lack of headphone jack on phones. 3. Vast price increases for relatively little new features. 4. Constant upgrading of the OS which breaks half of the software you use.

dana321··on Black Hole Propulsion as Technosignature
If you think the title of this is pure porn, check out those images!
dana321··on Uber Not Criminally Liable in Death of Woman Hit by Self-Driving Car
I know its bad having a machine-controlled car killing someone, but.. it will happen and we must accept it and my guess is that it will happen far less than with human operators in the long-term.
dana321··on Why do old books smell? [video]
fousty smelling.. decomposition.. oils.. dust.. food.. thats my guess before reading.
dana321··on Stop Wasting Connections, Use HTTP Keep-Alive
We don't need http, we need a better way of distributing and caching data.
dana321··on Airbnb to Acquire HotelTonight
I feel like HotelTonight, like HotelTonight!
dana321··on We Need Chrome No More
was a joke..
dana321··on The structure of the special type of DOS files called directories (1998)
Well 3 people dislike this i find that funny
dana321··on Airbnb to Acquire HotelTonight
Haha, someone don't like this joke
dana321··on Stop Wasting Connections, Use HTTP Keep-Alive
Or better yet, use gzip and inline all images as base64 encoded. The file size is very similar to raw data, and the number of requests with associated http headers is reduced.
dana321··on 800M Email Addresses Leaked Online by Email Verification Service
Public-Private cryptography is the answer.

Forget about email addresses, the network should scale globally from the user's public key that can be stored on any number of nodes as the user id with the data.

dana321··on Scheduling in React
I would prefer that they implement it in the same way go has with channels.
dana321··on Scheduling in React
React trades simplicity of certain things such as dom manipulation, and makes it difficult to fetch external (ie noncompiled) html and include it as react dom nodes, and ad serving is pretty difficult too because most ads use document.write and this paradigm doesn't work with react, as well as single page applications and the rendering of contextual advertising requires server-side rendering too.

State management solutions like redux; nobody i know or have seen does it exactly the same, its really tricky to use and takes a long time to get the hang of.

dana321··on Scheduling in React
Responsive as in ms delay from click to action or responsive as in mobile/tablet visual scaling?
dana321··on Airbnb to Acquire HotelTonight
Like ChickenTonight, only for hotels.
dana321··on HIV Is Reported Cured in a Second Patient
Perhaps the bone marrow was from one of the rare occurences of people who are immune to HIV
dana321··on We Need Chrome No More
The new IE is the new IE.

ie. Chrome

dana321··on Billions could die if India and Pakistan engage in nuclear war
From 2017, i wonder if the comments about the nuclear arsenal are out of date now.
dana321··on The structure of the special type of DOS files called directories (1998)
"Welcome to hell."

All i needed to read :)

dana321··on Practical Go: Real-world advice for writing maintainable Go programs
My advice would be this: If you have a specific reusable component.. Make a package to contain it.

Use init() to compile any regular expressions and store them as variables within that package, so that you don't

Split out related code in a folder, remembering that the included code is done in alphabetical order - so shared functions within the same package you should alphabetically make it the first to be included.

You can register components of a larger system by using the init() function to call a function in the base package, and within the calling package (usually main) import the "plugin" using the underscore space prefix (sql database drivers use this method)

Use the new go modules system; its great. But sometimes it doesn't include the latest packages, just modify the go.mod file and anything after the package name remove it and just put master instead.

One last thing with error handling. Everybody does if err!=nil. I tend to go the opposite way, if err==nil and nest these, if err isn't nil i drop out and deal with the error. If it is ok, it will return ok.

dana321··on Generics aren't ready for Go
Ok, well i just said it, so somebody did.

There is no difference whatsoever between the same function duplicated with different types.

dana321··on Generics aren't ready for Go
We're talking about simple reflection here, pass in the value, infer the type and cast to that type.

Most people are totally confused by generics, i personally don't have a problem using them or not. At the end of the day, its just template metaprogramming.

← PreviousPage 9 of 12Next →