HNHacker News
TopNewBestAskShowJobs

kagakuninja

497 karma · joined July 24, 2022

submissionscomments
kagakuninja··on The new science of meditation
Many schools, including Goenka downplay or ignore the risks from meditation.

Goenka is infamous in the serious meditation community, as they do not use qualified teachers in their retreats. The teaching is in the videos, the guides may not be able to help you if you start to freak out.

kagakuninja··on The new science of meditation
The human brain is far less rational than we tend to believe. Recent research indicates that we hallucinate our world: we guess what we are likely to see, based on prior experience. If wrong, our brain adjusts and reevaluates the sensory data. In some cases, we even ignore unusual experiences that do not fit into our internal model.

Senior meditators spend vast amounts of time examining their personal reality, and learn that it isn't as neat and clean as we thought. That said, some do believe in outlandish things.

Jhana and nirodha sammapati are not irrational, they have been studied by scientists during the last several years. What is irrational are the belief systems built on top of those experiences by some buddhist traditions.

Out of body experiences can be had by any person who spends enough time meditating. The teachers I work with understand that it is not a supernatural experience.

kagakuninja··on The new science of meditation
No, many of the meditation practices, such as Jhana and nirodha sammapati do not require any religious beliefs at all. Of course, the skeptic is unlikely to spend the vast amount of time needed to master such skills.
kagakuninja··on The new science of meditation
I would suggest reading the book The Mind Illuminated.
kagakuninja··on The new science of meditation
He practiced Advaita vedanta. When exploring the non-duality of self vs world, there are fundamentally 2 approaches. Advaita Vedanta denies the existence of the world, only the (true) self is real. Buddhism denies the existence of the self.
kagakuninja··on Critical hearing looms in battle over California’s last nuclear power plant
The plant is old and past its expected lifetime. As a result it will be more expensive to operate and less safe. It was planned for decommission, precisely because it is old.
kagakuninja··on Critical hearing looms in battle over California’s last nuclear power plant
The Bush administration gave out major incentives to get more power plants built, yet only a handful of projects were started. These projects ended up (like most nuclear projects) massively delayed and over budget. In the end, Westinghouse filed for bankruptcy: https://www.reuters.com/article/us-toshiba-accounting-westin...

Pro nuclear people keep acting like our lack of new nuclear power plants is due to fear or lack of vision. The reality is that corporations do not want to build them, because they are incredibly expensive and may take over a decade before any revenue is produced. Renewables are cheaper and provide fast return on investment.

kagakuninja··on Railway Oriented Programming
This isn't a binary choice. In Scala, you can use Throwable or Exception as your error type with Either:

  Either[Throwable, Option[Foobar]]
The type Try[T] is essentially Either[Throwable, T]

Either[Throwable, T], Try, as well as IO from Cats Effect give you the stack traces that you expect from conventional Java style, with the superior option of programming in the monadic / "railway" style. Try also interfaces nicely with Java libraries: val result: Try[Foobar] = Try(javaFunction).

kagakuninja··on Once hailed for decriminalizing drugs, Portugal is now having doubts
Sounds like a trip to the Tenderloin in SF. Dealers are everywhere.
kagakuninja··on A FactoryFactoryFactory in Production (2017)
Used Java 15 years before switching to Scala. Never wrote a FactoryFactoryFactory. Not sure if I've ever written a FactoryFactory, maybe once for some obscure reason.

As annoying as Java is, please don't mistake pattern over-engineering with the language. One could choose to do the same things in any OO language, like C# or C++. And as someone pointed out here, there are similar obscenities in the FP world, they are just obscured under higher-kinded types and algebras.

kagakuninja··on Aspartame sweetener to be declared possible cancer risk by WHO, say reports
I've been hearing that type of argument since the 70s, after they banned saccharine.

Let's suppose a chemical causes slow damage to the body, maybe greatly increasing your risk of cancer or alzheimers if you drink a can of diet soda per day. How could we possibly know if it is safe?

We often test chemicals on rats, but the problem is that they only live a few years. No one wants to wait 20+ years to see the results of an expensive study on longer lived mammals anyway.

The solution is we feed the rats excessive amounts of the chemical and see if it causes problems. This isn't a great way to do it, but what other option would you suggest?

kagakuninja··on Aspartame sweetener to be declared possible cancer risk by WHO, say reports
I just started brewing my own tea and coffee, unsweetened. Snack foods are a bit harder, but we are better off eating whole fruits and vegetables anyway.
kagakuninja··on Aspartame sweetener to be declared possible cancer risk by WHO, say reports
You can start here: https://www.mayoclinic.org/healthy-lifestyle/nutrition-and-h...

Diet sodas with aspartame contain a warning for this reason. Now of course, most of us do not have this condition.

But how do we know if it is safe? I decided 20+ years ago that artificial sweeteners were a crutch with no nutritional value and unknown risks, so I stopped consuming them.

kagakuninja··on Pink Floyd, 'The Wizard of Oz,' and me
I admittedly haven't given those albums a fair listen. I heard songs like Learning To Fly on the radio and wasn't impressed.
kagakuninja··on Pink Floyd, 'The Wizard of Oz,' and me
The first thing to realize is that there are 4 main phases of Pink Floyd, and can be considered different bands:

1) the Syd Barrett era. They were a psychedelic pop / experimental band, led by charismatic singer / songwriter / guitarist Syd Barrett. They had 1 album (Piper at the Gates of Dawn), and several singles. I like this era a lot. Try listening to Arnold Layne, Lucifer Sam, See Emily Play...

2) Middle period - after Syd went nuts, they brought in Dave Gilmour to replace him. Everyone tried their hand at writing songs, and it took some time to get their footing. This is a more introspective, laid back period, and when they did those sound track albums people are talking about. They were in the top 40, but not really stars yet. The culmination of this era was the movie Live at Pompeii.

3) Roger Waters era - bass player Waters wrote an entire album of songs about madness and alienation, this was Dark Side of the Moon, their most popular album, which propelled Pink Floyd to the top of the charts. Waters had developed into a genius song writer, but with each successive album, became more domineering and difficult to work with. These albums tended to be ambitious concept albums, dark and disturbing, in contrast to the laid back vibe of the previous era. The last 2 Waters albums, The Wall and Final Cut were essentially Waters solo albums, and at the end, half the band had departed.

3) Dave Gilmour era - Waters went solo, and expected the band to end, but Gilmour decided to bring back the 2 ousted members of the band, and continue as Pink Floyd. This period isn't very interesting IMO.

So my personal tastes: I find The Wall and most of the Waters-era albums kind of overpowering and negative. I prefer the Barrett stuff, as well as Live at Pompeii. YMMV...

kagakuninja··on Ask HN: Why does Apple refuse to add window snapping to macOS?
The roots of MacOS UI principles date back to the 1980s. Even the current UNIX based MacOS was created in 1999 based off of the Next OS.

Multi-finger gestures were introduced with the iPhone in 2007, and eventually made their way onto laptops. Not only is MacOS 10 / 11 not based on multi-finger gestures, you can only use gestures if you are using a laptop or an Apple touchpad. The default mode of using MacOS is mouse based.

kagakuninja··on Black holes might be defects in spacetime
I am not a physicist, but what I have read from critics (badly paraphrased):

During the hype phase of string theory, every major university wanted to get in on the game, and devoted large amounts of funding towards hiring researchers with a background in string theory. If you weren't one of those people, you were at a severe disadvantage, and might not get hired at all.

String theory hovered up tons of cash in university budgets, and majorly fucked over a lot of careers. The result of all this money has been no actual scientifically proven results despite decades of research.

kagakuninja··on The Open Buddhist University
The Pali Cannon, while orally transmitted by monks for 500 years before being written down, should not be assumed to be "the original, actual, oral teachings of the historical Buddha".

They are the closest thing we have to what the Buddha might have taught (assuming he actually existed, and like Jesus, there is no evidence outside of religious texts that Buddha did exist).

kagakuninja··on The Cathedral and the Bazaar (1999)
ESR got pretty nutty after 9/11. Or maybe he was always nutty and I wasn't paying attention.
kagakuninja··on Brian Chesky: Ability to hire from anywhere is more valuable than in-office work
I've worked at companies with beer taps in the lunch room.
kagakuninja··on Indigo: A game engine for functional programmers, in Scala
To be fair, Scala.js is a relatively new project, and I had avoided it for a while due to library compatibility issues and stability concerns. It now seems pretty freaking awesome. There is a concerted effort in the Scala community to break the dependency on the JVM, via Scala.js and Scala Native. This however requires porting the Java standard library to each platform.
kagakuninja··on JSON vs. XML with Douglas Crockford
Functional programming is the next big thing. Ideas from functional programming have gone mainstream, and are found in almost all major languages: lambdas, higher order functions, and immutability / purity. Monads have made some minor inroads (although they get bastardized by OO people, see Java and Javascript).
kagakuninja··on Methane may not warm the Earth quite as much as previously thought
The fossil fuel industry has also grossly underestimated the amount of methane leaking from wells and fracking sites.

Researchers got some things right, other things wrong. What we have seen historically is that the pessimistic estimates of scientists have matched reality better than the optimistic estimates. Scientists have actually under estimated the effects of climate change.

kagakuninja··on Housing should be affordable except for when I sell my house for $1M
The gains from selling a house are taxable. In addition, last I checked, 6% of the sale price is split between the buying and selling realtor. But the biggest factor here in California is the controversial Proposition 13. The assessed value of the property for tax purposes can only increase by 2% per year. Since real estate has appreciated in value much faster than 2%, an elderly couple like my parents are only paying about 1/10 of the normal tax rate.

The house my parents bought in 1975 is worth $4 million (according to Zillow) because it is in a prime Palo Alto location. In their case, assuming the house is actually worth $4M, they will make a tidy profit. They could buy a downsized house, but only if they move out of Palo Alto. And their tax bill would sky-rocket.

A better example might my house, which I have owned for 22 years, valued at a "mere" $1.4M. Taxes at market rate would be $12,320. Assuming I bought it in 1975, my yearly tax bill would be a mere $1,232. The first problem, small houses in the Bay Area are still expensive. But suppose I found something for $700K, my tax bill would go from $1,232 to $6,160. OK, maybe I move somewhere cheap, and get a house for $350K, I'm still probably paying more than 2x my current tax rate.

Add to that the enormous stress involved with buying a house, I'm not planning on selling, ever.

kagakuninja··on The EV Transition Is Harder Than Anyone Thinks
I bought a plug-in hybrid several years ago, Prius Prime with 25 mile battery range. It is a good transition, as I wasn't ready go go all electric at the time. My next vehicle will be an EV.

Since we are no longer commuting, we rarely need to buy gas. It is essentially an EV, that has the convenience of gas power when going on long trips.

kagakuninja··on Linux is Making Apple Great Again
Whether MAGA want to hurt millions of people, that is the result of conservative policies.

1 million+ unnecessary deaths during the pandemic. Targeting of LGBTQ people, blacks, teachers, librarians, politicians, election officials and even doctors (wtf?). Forced "detransitioning" of trans people. Banning all forms of abortion, even in the case of rape, minors and incest. Banning life-saving abortions, forcing women to carry unviable fetuses to term. And that is just today, they have more plans in store...

kagakuninja··on Ken Thompson's 75 year project: A century of popular music in a jukebox [video]
I have to deal with refusal to install apps from "untrusted developers" constantly, I can't even believe you wrote that.

For starters, the UI experience is terrible. You get a dialog telling you you can't install an app; close the dialog then you have to know to go to a certain Settings tab under Privacy & Security, and there will (hopefully) be some text that allows you to enable the app. This is a UI disaster. Maybe they do it so that non-technical users will give up in frustration.

Once MacOS decided that my official Oracle JRE was "untrusted", and I would get the bullshit dialog every time I started a Java process (note: I develop apps using the JVM). I had to google to learn some arcane CLI magic to disable the untrusted bits on my JRE files.

More recently, I couldn't get CIV 6 to run. Instead of telling you what to do, you get a "app is corrupted" dialog (maybe this was the fault of Steam). This required multiple enabling via the magic permissions tab. I mean, are Steam and Firaxis not "trusted developers".

All this pales in comparison to the pain when using my MOTU audio interface. Getting it to work was an enormous pain in the ass thanks to Apple security. And then MacOS would randomly decide to break things every 6-12 months, and getting it to work again requires discovering an arcane NVRAM reset procedure using magic key presses during reboot.

kagakuninja··on Ken Thompson's 75 year project: A century of popular music in a jukebox [video]
Been using Macs exclusively, since the iPhone came out. At some point I noticed a "do not disturb" icon displayed on the top UI bar, something that somehow got turned on after upgrading to Ventura. It took over half an hour of googling and trying random shit before I was able to turn it off. Yes, Settings is a UI disaster, even ignoring that...

Goofy shit like this randomly happens, particularly after OS upgrades. I remember some crazy hell where I couldn't finish the OS install on a new Mac, because Apple decided that Apple IDs must be email addresses, and my ancient ID was not. Required a call to customer support.

And the "untrusted developer" shit always bites me in the ass every couple months or so... It is particularly painful when using pro audio interfaces, which will just suddenly stop working every now and then. It requires a magic key-press during a reboot to clear some kind of special RAM.

kagakuninja··on JDK 20 G1/Parallel/Serial GC Changes
> And then when a dependency of one of your dependencies is broken agains the latest version

How is this any worse than Java? My most vexing dependency-hell issues have involved breaking API changes to Hamcrest matchers and Apache Http Client; more recently Jackson-databind. All of those are Java libraries, brought in via transitive dependencies, usually from Java libraries.

kagakuninja··on Ask HN: Are people still using Pascal?
I was in college in the early 80s at UCSC, the VAXen were running BSD UNIX. Many of the professors hated C, and made us use UCSD Pascal, which had uh, limitations... Like fixed size arrays and oh, the free function didn't actually free anything.
← PreviousPage 8 of 9Next →