HNHacker News
TopNewBestAskShowJobs

xyzwave

414 karma · joined February 6, 2019

submissionscomments
xyzwave··on C library for multiple-precision floating-point arithmetic with correct rounding
Try building any common OSS from source and you quickly realize there are a few libraries at the core of everything. MPFR being one, GMP, MPC and Zlib being the others that come to mind.

In fact I believe MPFR depends on GMP.

xyzwave··on Ask HN: Time for a Career Change?
As someone preparing to do exactly this, any places in South America you can recommend?
xyzwave··on Emeryville, California, and the challenge of cleaning up poisoned land
Fungi also do this.

https://usfblogs.usfca.edu/sustainability/2022/02/03/mycorem...

xyzwave··on Changing jobs during the Great Resignation
Thoreau makes a similar comment in Walden:

> … instead of studying how to make it worth men’s while to buy my baskets, I studied rather how to avoid the necessity of selling them.

https://www.goodreads.com/quotes/316215-not-long-since-a-str...

xyzwave··on Learn Awk with Emacs (2020)
Unfortunately I picked something from my day job with a bunch of proprietary data.

It was essentially a large list of pretty-printed objects with about 20 attributes each. A few of which had multi-paragraph string values.

xyzwave··on Learn Awk with Emacs (2020)
Agreed, this is one the primary principles of the Unix Philosophy [1].

I was curious how performance would be impacted, and for a large file `grep` may not be so useless.

    $ du -h /tmp/file.json  
    161M /tmp/file.json

    $ time awk -F: '/"id"/ { print $1 }' /tmp/file.json >/dev/null

    real 0m17.810s
    user 0m17.690s
    sys 0m0.083s

    $ time (grep '"id"' /tmp/file.json | awk -F: '{ print $1 }' >/dev/null)

    real 0m3.617s
    user 0m3.641s
    sys 0m0.037s
While pushing the filter into AWK is a bit easier on the eyes, it appears there is an incurred performance cost.

[1] http://www.catb.org/~esr/writings/taoup/html/ch01s06.html

xyzwave··on Learn Awk with Emacs (2020)
Somewhat tangential, but the author calls out using `grep` in conjunction with `awk`. Anytime I find myself doing this, it usually turns out that I can just throw the pattern into AWK itself.

    grep 'foo' file.txt | awk '{ print $1 }'
Becomes:

    awk '/foo/ { print $1 }' file.txt

There may be times when `grep` is preferable, but this is ubiquitous enough that it's mentioned in the "Useless Use of Cat" [1] awards.

[1] https://porkmail.org/era/unix/award

xyzwave··on Spotify deletes 70 Joe Rogan episodes
I’ve only heard him say this once or twice and it was always when he was direct quoting someone else.
xyzwave··on The story behind OS X’s Unix compliant certification
Ironically, given the thread, XNU stands for “X is not Unix”.
xyzwave··on Best practices for writing code comments
Reminds me of this quote by Alan Perlis [1].

> Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it.

1. http://www.cs.yale.edu/homes/perlis-alan/quotes.html

xyzwave··on Review of “Ask HN: Predictions for 2021?”
Somewhat of an outsider here.

What’re you referring to?

xyzwave··on Chronically lonely flies overeat and lose sleep
> I find it wholesome to be alone the greater part of the time. To be in company, even with the best, is soon wearisome and dissipating. I love to be alone.

and

> Men frequently say to me, "I should think you would feel lonesome down there, and want to be nearer to folks, rainy and snowy days and nights especially." I am tempted to reply to such,—This whole earth which we inhabit is but a point in space. How far apart, think you, dwell the two most distant inhabitants of yonder star, the breadth of whose disk cannot be appreciated by our instruments? Why should I feel lonely? is not our planet in the Milky Way? This which you put seems to me not to be the most important question. What sort of space is that which separates a man from his fellows and makes him solitary? I have found that no exertion of legs can bring two minds much nearer to one another.

Both by Thoreau in Walden.

I do wonder if interaction is a requisite to a happy life. Or if the perception of being a misfit is the true cause of these unhealthy outcomes. For those who are content to be alone, is the need for interaction still as important or can this be offset by a greater comfort with one’s self and a deeper connection to all of Nature?

xyzwave··on U.S. Senate Democrats roll out draft bill to legalize weed
This was a month ago (July 14th).
xyzwave··on Study: Global plant growth surging alongside carbon dioxide (2017)
Yes, as oceans warm, more water vapor is being released into the atmosphere. Water vapor is far more effective than CO2 at trapping heat, and is therefore driving one of global warming’s most extreme positive feedback loops [1].

1. https://www.acs.org/content/acs/en/climatescience/climatesci...

xyzwave··on The Amazon Rainforest Now Emits More Greenhouse Gases Than It Absorbs
Lot of comments here suggesting that lack of economic utility is to blame for the Amazon’s deforestation. While maybe true on an immediate basis, this overlooks the fact that 1/4 of all western medicines are derived from rainforest plants. Moreover, of the 3000 plants the US National Cancer Institute has found to be active against cancer cells, almost 3/4 come from tropical rainforests [1].

I don’t even think we can begin to quantify the losses we’re suffering as the Amazon is depleted. But I’m damn near certain the economic utility of logging and cattle ranching pale in comparison to the valuation of the drugs we’ve yet to discover in these forests.

1. http://www.earthtimes.org/encyclopaedia/environmental-issues...

xyzwave··on The Amazon Rainforest Now Emits More Greenhouse Gases Than It Absorbs
Well the Amazon is often referred to as “the world's largest medicine cabinet”, so there’s that.
xyzwave··on The Amazon Rainforest Now Emits More Greenhouse Gases Than It Absorbs
Nothing more than wood?

There are likely billions, if not trillions, of dollars worth of undiscovered pharmaceuticals in the Amazon still today.

Not that economic utility is needed to justify conservation, but nothing more than wood could not be further from the truth.

xyzwave··on Apple Introduces AirTag
I interpreted the end as “took psychedelic mushrooms and lost your keys? AirTag’s got your back”.

But maybe that’s just me.

xyzwave··on Inside the Dark, Biohacked, Heart of Silicon Valley
Article seems quick to demonize the recent trends in psychedelic medicine / intermittent fasting, but pays no credit to the science backing their resurgence (indigenous peoples have used both beneficially for centuries).

Maybe I missed the point, but seems like a shallow attempt to ostracize tech leaders with no real investigation into the potential merit of these behaviors.

xyzwave··on Ask HN: Predictions for 2021?
I do agree, but think this is not just a psychedelic renaissance but a drug-assisted psychotherapy renaissance.

As Stanislov Grof has said:

> Psychedelics, used responsibly and with proper caution, would be for psychiatry what the microscope is for biology and medicine or the telescope is for astronomy.

https://maps.org/news-letters/v21n3/v21n3-26_29.pdf

xyzwave··on Ask HN: Developers, how do you automate your email workflows?
As an Emacs user looking to do this, can you expand on the workflows you’ve built?
xyzwave··on Jobless claims, total unemployment level worse than expected
I’d have to concur.

consummation - (1) The action of making a marriage or relationship complete by having sexual intercourse. (2) The point at which something is complete or finalized.

xyzwave··on Ask HN: I'm an incoming freshman to college for a CS major, what should I know?
Such a timeless quote. I believe this is the source:

https://youtu.be/2Op3QLzMgSY

While there, SICP is not a bad way to augment a CS degree :-)

xyzwave··on Work from home is dead, long live work from anywhere
The only people for me are the mad ones...
xyzwave··on Alan Kay's answer to ‘what are some forgotten books programmers should read?’
Is this in the Bay Area by chance? I’ve been dying to find a place like this.
xyzwave··on Ask HN: The most useful Mac keyboard shortcuts?
+space to capture a single window.
xyzwave··on Ask HN: As a self-taught programmer where can I learn some CS?
MIT Structure and Interpretation of Computer Programs :-)

The opening statement:

“I'd like to welcome you to this course on computer science. Actually, that's a terrible way to start. Computer science is a terrible name for this business. First of all, it's not a science. It might be engineering or it might be art, but we'll actually see that computer so-called science actually has a lot in common with magic, and we'll see that in this course.

So it's not a science. It's also not really very much about computers. And it's not about computers in the same sense that physics is not really about particle accelerators, and biology is not really about microscopes and petri dishes. And it's not about computers in the same sense that geometry is not really about using surveying instruments

...

Now, the reason that we think computer science is about computers is pretty much the same reason that the Egyptians thought geometry was about surveying instruments. And that is, when some field is just getting started and you don't really understand it very well, it's very easy to confuse the essence of what you're doing with the tools that you use. And indeed, on some absolute scale of things, we probably know less about the essence of computer science than the ancient Egyptians really knew about geometry.”

Still prescient 30 years later...

https://ocw.mit.edu/courses/electrical-engineering-and-compu...

xyzwave··on Ask HN: What do you do with your Raspberry Pi?
Have you looked into nutrient sensing at all? I’m curious if/how others are tackling this.
xyzwave··on Up to one million species are on the verge of extinction, U.N. panel says
The context is also relevant here.

“The mass of men lead lives of quiet desperation. What is called resignation is confirmed desperation. From the desperate city you go into the desperate country, and have to console yourself with the bravery of minks and muskrats. A stereotyped but unconscious despair is concealed even under what are called the games and amusements of mankind. There is no play in them, for this comes after work. But it is a characteristic of wisdom not to do desperate things.”

xyzwave··on Mapping Motor Vehicle Collisions in New York City
Having done something similar for the Long Beach, CA area in college, one of the most interesting takeaways was the relative spatial distribution between fatal and non-fatal accidents.

Non-fatal accidents clearly clustered around high traffic areas, but fatal accidents didn’t reveal the same clustering. Instead they appeared to be uniformly distributed across the city.

I’m sure there is an explanation in this, and this was only 10 years data for a single city, but it always felt a little spooky that these accidents were equally likely to happen anywhere (though most likely later in the night).

← PreviousPage 3 of 4Next →