HNHacker News
TopNewBestAskShowJobs

IHLayman

461 karma · joined March 27, 2019

submissionscomments
IHLayman··on Don't De-Anonymize Scott Alexander
A petition about protecting pseudonymity... and a full name is required to sign it.
IHLayman··on After 10 years in tech isolation, I’m now outsider to things I once had mastered
Are you seriously justifying a two year prison sentence for selling gum?
IHLayman··on Stoke – A stochastic superoptimizer and program synthesizer
I know that one: 1, 2, 4, 8, 16, 31... https://oeis.org/A001591
IHLayman··on Bangkok Smoking Kid
Pointing out hypocrisy is a common ad tactic. Reminded me strongly of this old classic: https://www.youtube.com/watch?v=KUXb7do9C-w I wouldn't claim it was the cleverest.
IHLayman··on Machine translation of cortical activity to text with encoder–decoder framework
Not only that, if you don't run the trackjs script, the pdf won't load at all. Sorry but a hard pass from me. Don't track my reading.
IHLayman··on The growth of command-line options, 1979-Present
I agree, that's why I mentioned principle of least action. But you also forget the power of idioms. We would connect to a file with a file handle using something like open("file"), and then have to close it with close(handle). This got tedious (and dangerous because people would forget to close files), so people would write macros that would automatically open and close file handles, and soon languages would have the "with" idiom that would handle the context for you. And this is not the only case of an idiom causing a paradigm shift in languages.

Pejoration happens too. When is the last time you used a GOTO in code? And yet, 40 years ago, you couldn't write a BASIC program without one. And the revulsion against NULL causing a shift to Maybes and optional types to the point where the concept is reified in many languages now?

All I'm saying is that there are multiple mechanisms that are changing the languages we write code with, and that it is changing far faster than people realize.

IHLayman··on The growth of command-line options, 1979-Present
Isn't it possible that, like human languages that evolve over time for multiple reasons (https://en.wikipedia.org/wiki/Language_change) such as language contact, principle of least action, and pejoration, that computer languages also experience similar shifts? All of this grumbling about how command line options have exploded or why doesn't everyone use language X or shell Y or OS Z that has existed for forever is similar in tone to me about people who grumble about Oxford commas or starting sentences with conjunctions or (heaven forbid) using emojis?

Of course some principles of speech and syntax should stay around (as they probably exist for a good reason), but it is foolhardy to grip tightly onto any language, human or computer, thinking it will always stay the same, when it plainly won't.

IHLayman··on Burnoutindex.org
I caught that too. Good thing the test still worked with the trackers blocked.
IHLayman··on The specification for native image lazy-loading is merged into HTML standard
Well, I'm a veteran software engineer, and one of my former jobs was to implement pixels and optimize page loading specifically for these kinds of pixels on an e-commerce website. It was a particularly hard problem because if you have dozens of pixels to order the loading of, it can really slow down the loading of a webpage or email. And I was one member of a rather large team. To say that pixel tracking isn't used in the industry is disingenuous at best.
IHLayman··on Your New Medical Credit Score Could Deny You Care
It’s not just Experian... TransUnion has it too, with the same name as a matter of fact. Although it looks to be a report and not a score just yet, unless I didn’t read it correctly: https://www.transunion.com/product/patient-financial-clearan...
IHLayman··on Who Can Name the Bigger Number? (1999)
Thanks for pointing this out. He mentions in this one that he didn’t have time to get into Graham’s number, but I still think TREE(3) is worth mentioning.
IHLayman··on Who Can Name the Bigger Number? (1999)
Maybe I missed it, but it was interesting that tetration was mentioned without talking about Graham’s number g_64[0] or Kruskal’s tree theorem and TREE(3)[1], both have been quite popular huge numbers for quite a while now.

0: https://en.wikipedia.org/wiki/Graham's_number 1: https://en.wikipedia.org/wiki/Kruskal's_tree_theorem

IHLayman··on Incarcerated and Facebook
Maybe it is because the company Securus already has a monopoly on inmate communication and they don’t want Facebook to take from their pie, be it via fees or personal data: https://www.techdirt.com/articles/20180511/09405239819/priso...
IHLayman··on Facebook forcing moderators to log every second of day
I didn't realize Snow Crash's chapter on Fedland (https://soquoted.blogspot.com/2006/03/memo-from-fedland.html) would be taken as a manual. Ugh. I guess you can't say we weren't warned.
IHLayman··on Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
That's a good hack that I'll have to play with tonight. Thank you!
IHLayman··on Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
I hate to be a spoilsport, but this is a good reminder that https://en.wikipedia.org/wiki/IDN_homograph_attack is still possible in some domains and with some browsers and CLI tools, although some of the easier tricks to detect have been mitigated.
IHLayman··on Unremarkables
Blaming this on bread and circuses alone is as tone deaf as the article with regards to the problems with poverty in this nation. To be fair, there is a real limiting of opportunity as education is increasingly used as a caste delimiter. However the real issue still is financial insecurity:

* Consider that 1 in 5 people people today struggle with paying the rent and face rental insecurity (https://www.apartmentlist.com/rentonomics/rental-insecurity-...). * Before you claim that they should be buying instead of renting, also consider that you have to have a good credit rating to buy (which automatically cuts off 1/2 of the population; average credit rating is 700: https://www.cnbc.com/2017/07/10/average-fico-score-hits-an-a...) and you have to be able to put down at least 10% which varies widely in the US (https://www.zillow.com/home-values/) but would probably require at least 20,000 in savings. If you have money in savings you probably don't have rental insecurity. In fact median net worth is $200 according to the last US survey here (https://www.federalreserve.gov/publications/files/scf17.pdf), and mean net worth is _negative_. In short, the majority of people in this country can't afford to buy and they will not be in a position to buy anytime soon, if they are still worried about not getting evicted. * Almost 14% of households in the US have food insecurity (https://www.ers.usda.gov/topics/food-nutrition-assistance/fo...). That's nearly 1 in 7. So much for the "bread" part of the theory. You think any of those people can afford to invest in the stock market, create new businesses, or take on any risk that could threaten starvation of their families? Do you think they can afford to send kids to college without taking loans? * And a voice on the internet, a printing press to the least advantaged? 89% of people have a computer at home, but that means at least 10% don't. That 89% number is so high because the stats include smartphones (https://www.census.gov/content/dam/Census/library/publicatio...). Unless they go to the library to use the computer, they are not in the "public" internet discourse. And you better bet that all these categories are intersectional.

99% of serfs. Gah. There is still real poverty in this nation, people afraid of starving, people afraid of having nowhere to live, worried about underemployment, a laughable opportunity at higher education, no real way to climb up the social ladder, and it is not yet getting better. The imbalance is only being talked about because it is becoming increasingly difficult for the upper 80% who don't have these issues to perceive themselves as part of the 1%.

IHLayman··on Using Makefile(s) for Go
"For code generation and other ancillary tasks, Go includes the 'go generate' facility. This feature was created specifically to free developers from depending on external build tools. (https://blog.golang.org/generate)"

Please please please don't use go generate! While I respect your position, go generate is the worst and I hope they eventually deprecate it in future go versions. We tried go generate in some of our code and it went very badly:

* go generate is placed in a comment line. Comments should never be executable, they should be used for explanation. If I am trying to trace execution, I shouldn't be forced to scan through comments looking for side effects.

* from the go generate man page: "Within a package, generate processes the source files in a package in file name order, one at a time." You can't order your generate commands in a way you want, you have to order them using file order, or keep all of your go generate lines in the same file, which defeats the purpose of go generate.

* go generate will run every time, regardless of freshness of file. So if you need to run protoc or some other protocol buffer compiler, you have to regenerate it every single time regardless of whether or not it is needed which makes the build run way slower.

* What are the dependencies of this project? If I use go generate, I have to run some clumsy grep command to (hopefully) find all of the go generate comments in the package.

Sorry, go generate is to golang what COMEFROM is to INTERCAL. Please avoid if you can help it. If that means a shell script or heaven forbid a makefile, so be it.

IHLayman··on Using Makefile(s) for Go
I use Makefiles for Go projects all the time, but not in the way the article describes. First off, in a pre `go mod` world, if you had dependencies to check before running the build, then a Makefile was the easiest way to manage that. But even in a post `go mod` world, there are good reasons to use one that the article totally overlooks:

* Makefiles introduce a topological sort to build steps. This is the reason you use it instead of build shell scripts: it allows build steps to run in parallel, it guarantees order by dependency which is the best way to read build steps, and it makes file freshness an easy element to check for a build step, which is still needed for Go projects with multiple subpackages.

* Go projects usually have more than go files that are required in making an executable. If you run a web server and you are bundling static pages into your executable, Makefiles are the best way to handle that.

* If you are building for multiple architectures, or want to encode the git tag/branch into the executable, it is better to have that Makefile bake in the necessary options on the build step and keep it uniform across the build.

* If you write a Go file and bake that into a Docker image, I find it best to drop the image and container hashes into files so that I can get to them easily for docker exec/attach/rm/rmi commmands.

But there is one bigger reason Makefiles work for our entire team. We standardize on using Makefiles as the entrypoint for our builds. We have a polyglot environment at work so sometimes it gets confusing to figure out how to build a project. By standardizing on running 'make' we are all on the same page. Have a Javascript project to webpack? Run make and have make call yarn. Have a python wheel to construct? Run make and have make call python setup.py. You have a Java project that requires a sequence of maven commands to build? Run make and have the makefile call maven.

Is that inefficient? You bet it is. Does it make it easier to sort out what to do to build a project for the first time? Yes it does. Does it make it 100% easier for our CI/CD framework to work with multiple languages and scan for the necessary compilers and dependencies? Heck yeah.

[edited for lousy formatting]

IHLayman··on Archivists Are Trying to Make Sure LibGen Never Goes Down
Forget DRM, even future Engilsh may be incomprehensible. There is an entire field of study dedicated to finding a way to make our future voice heard, without a good plausible solution, called Nuclear Semiotics (https://en.wikipedia.org/wiki/Nuclear_semiotics).

If we can't effectively warn a future (>10,000 years) generation to stay away from something that may harm or kill them, what chance do we have of making a universally understandable archive of data?

IHLayman··on We're Surrounded by Billions of Internet-Connected Devices. Can We Trust Them?
In a related vein of your comment: "After being challenged as to whether homeowners should tell guests smart devices - such as a Google Nest speaker or Amazon Echo display - are in use before they enter the building, he concludes that the answer is indeed yes."[0]

* [0]: https://www.bbc.com/news/technology-50048144

IHLayman··on A GUI framework for C# console applications
Avoiding your mouse. TUIs can be far faster than GUIs when you don't have to take your hands off the keyboard to reach for a slow mouse.
IHLayman··on The world is sitting on a $400T financial time bomb (2017)
I'm sorry but this comment comes from a very privileged position. Let's talk reality here: a large portion of the US can't afford a 400$ expense without going into debt (https://www.cnbc.com/2019/07/20/heres-why-so-many-americans-...). The vast number of people live paycheck to paycheck; to be so surprised that the number of people living on less than 50% of their income is vanishingly small betrays a lack of knowledge of a vast majority of people.
IHLayman··on Looking Back at the Snowden Revelations
Watch this Blackhat 2017 talk and maybe it'll change your mind: https://www.youtube.com/watch?v=KrksBdWcZgQ
IHLayman··on Apple to Deprecate Scripting Languages in Future Versions of macOS
But if they don’t include Ruby in future versions of macOS or Xcode then you’ll have to install that before run big Homebrew...

That being said, this is a good thing. By pinning the interpreters to ancient versions Apple is maintaining this legacy code that is often replaced by homebrew/Macports anyway.

IHLayman··on Huntington Park’s “RoboCop” stores pedestrians’ faces, scans license plates
“If it's a robot we _should_ be equally outraged, but it's actually not possible unless the robot is _designed_ to be racist.”

https://www.theverge.com/2016/3/24/11297050/tay-microsoft-ch... only took 24 hours.

IHLayman··on Prototype: Puppeteer for Firefox
https://github.com/tridactyl/tridactyl

Vimium/cVim just doesn't match up and aren't under as aggressive development. For this keyboard-focused developer, there's not a good enough reason to be on Chrome. I know I am in the minority, but it's a point nonetheless.

IHLayman··on Almost Always Add Swap Space
Also check out glances: https://nicolargo.github.io/glances/ A good terminal display overview of processes, network, disk, and battery.
IHLayman··on Almost Always Add Swap Space
For another perspective, the Kubernetes community has had a long discussion about using swap space over the course of the last 2 1/2 years, as you can see in this feature thread: https://github.com/kubernetes/kubernetes/issues/53533 TL;dr: As of version 1.8 any system running k8s has to disable swap space or formally mark in the kubelet that you are turning the check for it off. There are good arguments on both sides of this issue, and the discussion is still continuing.
IHLayman··on Researchers listen to people who hear voices
I wonder if the “clairaudients” are also subvocalizing like they found people with schizophrenia do: https://slate.com/technology/2016/03/schizophrenia-and-subvo...
← PreviousPage 4 of 5Next →