HNHacker News
TopNewBestAskShowJobs

cjhanks

986 karma · joined May 14, 2015

submissionscomments
cjhanks··on Vim/Neovim Arbitrary Code Execution via Modelines
Jeez, what's with the down votes? Look at the netcat documentation, that's what the configuration option for "-e" is called.

https://ps.uci.edu/~franklin/doc/netcat.html https://stackoverflow.com/questions/15351646/how-to-re-compi...

cjhanks··on Vim/Neovim Arbitrary Code Execution via Modelines
Which OS' are compiling `nc` with `-DGAPING_SECURITY_HOLE` ?
cjhanks··on A new round of antitrust questions can’t go well for Google
Yeah... The average Google engineer is better than the average engineer. But there are plenty of competent software engineers who don't want to live in South Bay or near a Google hub. There are engineers with interests outside of Google interests.

And there are certainly business people out there with more knowledge than those in Google - see NY.

cjhanks··on Ask HN: What are the numbers everyone should know in 2019?
An of course, the nice interactive plot: https://people.eecs.berkeley.edu/~rcs/research/interactive_l...
cjhanks··on SAT to Add ‘Adversity Score’ That Rates Students’ Hardships
The hard work of your parents for you to attend a better school have nothing to do with your potential.

You were fortunate, not everybody was.

You might also consider that the great sacrifices your parents made to place you in a certain environment robbed you of an education others less academically focused learned well. And that some of those skills have value.

cjhanks··on U.S. Stepping Up Enforcement on Delinquent Student Loans
I suspect you know better than I do. 10 years ago I took a lot of the busy-work classes at GCC. And yeah, the education is not great. "Business math" and their persistent description of integrals as "the area under the curve" is infuriating. That said, STEM seems to be one of the programs where state universities are more appropriate in terms of earnings-to-cost benefit.
cjhanks··on U.S. Stepping Up Enforcement on Delinquent Student Loans
I also do not understand this. For example, Arizona community colleges (2 years) are $2,400 while Arizona state universities are $10k.

People are deciding to spend more money elsewhere. They have been convinced that to have a successful career and life they must be in a certain program at a specific university. And for those that wish to be academics or working as a part of the 1% at the cutting edge of their field - sure, it makes a lot of sense.

cjhanks··on A physics master’s degree opens doors to myriad careers
I guess my experience has been the opposite. On every software R&D team I have been on, there has been about an even mix of computer science, physics, and mathematics with a few sprinkles of data science from the biology fields. Especially by year 5 or so - who can tell the difference between a computer scientist that knows physics and a physicist who knows computer science?

The only skills a person needs to learn coding is the desire to learn coding and the persistence to do it.

cjhanks··on The Moral Order of Panera
Yeah, no kidding. A guy tried to find a way for his company to positively contribute to society and failed while absorbing losses. So he should be lambasted? What did Robin Kaiser-Schatzlein do?

Judging from his articles[1] he's a professional kvetch.

[1] https://lareviewofbooks.org/contributor/robin-kaiser-schatzl...

cjhanks··on Chinese Devs Using GitHub to Protest 996 Workweek (9am – 9pm, 6 days/week)
Are you a talented dev in China tired of 996? American and EU companies are looking for you.
cjhanks··on OpenAI LP
Nobody can front-run the field of artificial intelligence, progress is too incremental, slow, and insanely well-funded by Google, Facebook, Baidu, and Microsoft. Not to mention the source of so many improvements coming from CMU, Stanford, Berkeley, MIT, and that's just in the US.

Edit: Remove Oxford, because originally I was making a full list .. but then realized I couldn't remember which Canadian school was the AI leader.

cjhanks··on OpenAI LP
That sounds like the delusion of most start-up founders in the world.

Which one of these mission statements is Alphabet's for-profit Deepmind and which one is the "limited-profit" OpenAI?

"Our motivation in all we do is to maximise the positive and transformative impact of AI. We believe that AI should ultimately belong to the world, in order to benefit the many and not the few, and we’ll continue to research, publish and implement our work to that end."

"[Our] mission is to ensure that artificial general intelligence benefits all of humanity."

cjhanks··on Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
A state machine with context is one case I have used it for.
cjhanks··on Kite launches line-of-code completions, goes cloudless, secures $17M in funding
"Our core belief is programmers spend too much time on repetitive work like copying and pasting from StackOverflow, fixing simple errors, and writing boilerplate code."

Sounds like you will likely be introducing bugs into people's code. Or at the very least, regressing code quality towards the mean.

cjhanks··on Effects of MP3 Compression on Perceived Emotional Characteristics in Music
You know - I agree with this article. Thank you for your thoughtful response.

I understand and agree that 24bits is enough for human perception. But something else is happening in MP3 encoding. Some sort of assumptions about human perception of dynamic range that are inaccurate. I am not expert enough to know precisely where. But I generally understand compression and I am an "audiophile".

Nothing in the article stands out as false to me. But I cannot help but believe it might be missing something.

cjhanks··on Effects of MP3 Compression on Perceived Emotional Characteristics in Music
The reverberation of a single tone can be in phase or out of phase. The results is observed as a beat frequency in amplitude.. not in tonal frequency, that's what why bitrate matters.
cjhanks··on Effects of MP3 Compression on Perceived Emotional Characteristics in Music
Compressors variably quantize a frequency band based on what is considered to be imperceptible to human ears. Imagine a standup bass is sustaining a note. That has a bunch of different resonances based on; strings, the wood of the bass, and the geometry of the room. In a live setting, those material properties create interference between the source of the sound and the reflection. But they're very quiet and can reverberate on the order of seconds. So most compressors will quantize the constructive/destructive dynamic range to the same value.

In rock music this doesn't matter so much. But orchestras may even use the room geometry as an effect.

cjhanks··on Effects of MP3 Compression on Perceived Emotional Characteristics in Music
I upvoted you, but you're wrong. 24bit audio depth matters, especially in jazz and classical recordings. You notice both subharmonics and superharmonics missing. Particularly when their phase is slow in time.
cjhanks··on Effects of MP3 Compression on Perceived Emotional Characteristics in Music
There are always a few tell tale signs that audiophiles can pick out. In an analog mix, you should never expect two instruments to share a quantization... But that's what you hear with compression. The cymbal quantization is dependent on the guitar line and the tom/kick bleeds into the bass drum. The attack of the bass bleeds into the guitar, etc. If compressors had access to the raw channels, this is not so much a problem - you can keep each band stable. But they don't, they operate on the frequency domain of the entire mix.
cjhanks··on C++ : if constexpr isn't broken
I guess that's true. But I can't remember the last time I have used `#if` aside from header guards and optimization paths. So they do exist, but I almost never do this.
cjhanks··on C++ : if constexpr isn't broken
I agree with this blog writer. Allowing typedefs to cross static if boundaries would be a major change to the way I read code. Unless there's a more substantive example demonstrating why using the existing metaprogramming is insufficient, its benefits are imo outweighed by its cost.
cjhanks··on Ask HN: Is it just me or is the AMP project making everything slower?
With my crummy internet connection, it's not a better experience.

I really only care about the text on most websites, but I end up waiting for a lot of assets before I can see that. I understand why google wants to avoid having the page redraw the layout as assets arrive, that can also be annoying if done with a lot of relative formatting.

But for me, on average, the experience is worse than non-AMP sites.

cjhanks··on Single C file TLS 1.2/1.3 implementation using tomcrypt
If you are working on embedded software in an environment without robust dependency management, dropping in a file is the easiest way to add a feature. You also may want to minimize symbol leakage into a C program, a single file allows most functions and constants to become static.
cjhanks··on Would you still pick Elixir in 2019?
Yes. And in 3 years (or so) when the hype-train moves on, and all that is left is the core users. It will be a much more viable choice for development, in my opinion.

I don't think anything negative of the language or core libraries.

cjhanks··on Would you still pick Elixir in 2019?
I guess I feel like the annoying formatting is indicative of the community, immature.

Web developers seem to follow trends; Perl -> DJango|RoR -> Node.JS -> Scala -> GoLang -> Elixir -> Something. Or, something like that. To me, it's like buying a $500 pencil and expecting that you should be capable of writing a better book.

If you get in bed with that crowd, don't expect that your program and 3rd party dependencies are going to be stable in 2 years.

cjhanks··on Tensor considered harmful
DenseMatrix. Also, tensor implies something about how to interpret the data that is not usually appropriate.
cjhanks··on Ask HN: Scolded on a job interview for not namespacing
Given that your examples of using std::cout are using the wrong I/O direction, I am surprised you have "25 years experience of c++".

Perhaps, that annoyed him too. Still, yelling doesn't help much of anything.

Edit: OP changed post. Not fair to down vote....

cjhanks··on First Sednit UEFI Rootkit Unveiled [video]
Yeah, sounds like it's possible but an unreasonably high burden (imo).
cjhanks··on First Sednit UEFI Rootkit Unveiled [video]
I hope it's not too off topic. But on Linux systems with NVIDIA drivers - is it even possible/reasonable to re-enable secure boot?
cjhanks··on Comparing Pythagorean triples in C++, D, and Rust
Perhaps the terminal is linebuffered. (edit: I forgot that `!` was a character in Rust, so I mis-read your comment, oh well).
← PreviousPage 3 of 13Next →