HNHacker News
TopNewBestAskShowJobs

pwm

603 karma · joined September 11, 2013

submissionscomments
pwm··on What’s so hard about understanding consciousness?
> We do experience reality directly: our nerve endings do.

Depending on how you define "reality" we only experience a tiny subset of it. We can only see/hear/touch/smell/taste a very restricted universe, only what our "antennas" can detect. In fact I would argue that we experience close to 0% of all of reality. On top of this extremely restricted input our processing of it is imperfect which means some of what we experience has nothing to do with reality.

pwm··on Models of Programming
Why do you feel that OP is looking down on you? That's not at all what I took away from his post.
pwm··on Functors, Applicatives, and Monads in Pictures (2013)
Nope, `fmap` is indeed short for functor map. It's a historical accident in Haskell as `map` was specialised for lists (ie. `[]`) from the start and later, when mapping would be generalised to all things Functorial, it needed a new name so as to not break everything, hence `fmap`.
pwm··on World food prices hit 10-year peak – FAO
https://en.wikipedia.org/wiki/Cantillon_Effect
pwm··on Infinity Category Theory Offers a Bird’s-Eye View of Mathematics
He said "lot of" not "all".
pwm··on Vaccine experts: Covid-19 booster shots aren't needed now
Well for one it could go to desperate people in 3rd world countries? If you already provably had covid letting your now useless shot go to the ones in need is arguably the moral choice?
pwm··on Ask HN: What are your thoughts on the r/collapse community
I meant explore other corners of reddit/the internet so that you are not constantly exposed to doom and gloom that negatively affect mental wellbeing. The other commenter suggested /r/futurology or check out /r/solarpunk. In general look for places that also discusses viable solutions/actions not just problems.
pwm··on Ask HN: What are your thoughts on the r/collapse community
It is an echo-chamber of negativity/despair. If you feel like it reflects the general sentiment then it's time to explore, there is a whole big world out there.
pwm··on El Salvador adopts Bitcoin as official currency, first country to do so
I read the whitepaper around early 2011 if my memory serves right. I remember finding it rather intriguing but also quite far-fetched for the lack of a better word. A whacky thought experiment on how to reimagine money only just after the GFC. Now 10 years later that whacky thought experiment is an official tender of a country. We truly live in interesting times :)
pwm··on How mindfulness could make you selfish
100% + when one goes deep into what "self" is the meaning of "selfish" will morph from its conventional definition.
pwm··on What if a deadly heatwave hit India?
https://archive.ph/vqdmC
pwm··on Command line tools for productive programmers
I get a lot of milage out of

    alias h="history | fzy"
    alias f="fd | fzy"
pwm··on Ripgrep 13.0
I actually prefer fzy to fzf because it doesn't go fullscreen, but I think the simplest convincing example is:

    alias f = fd | fzy
pwm··on Twitter confirms Twitter Blue
> What I would enjoy would be a button to hide all the accounts that post more often than once per day.

I'm not a huge twitter user (~2-5 mins a day, read-only), but I tend to do this manually. If I notice that an account is taking up the majority of my wall space I tend to unfollow. After iterating a few times I ended up with a decently balanced wall.

pwm··on Replit now supports every programming language in Nix
Yup, Haskell has great nix support. Shameless plug if you wanna do do local (ie. non-replit) Haskell: https://github.com/pwm/nixkell
pwm··on Monads Schmonads: Functional Input Without Tears (PYFL)
If your point is that one can implement a Haskell like language in any turing complete programming language then sure, you are correct. GP's point however was that Haskell is purposefully designed to be written and thought about this way from the ground up. Ie. putStrLn "hello" is not a command that is executed verbatim when the runtime gets to its source position. It's an IO action and an IO action is just a value that can be passed around or, by virtue of IO being a Functor, mapped over, etc...

If you say that purity and referential transparency are not only reserved for Haskell then again technically sure, but the point of Haskell is that it makes these concepts the centre of its design. Instead of having to jump through hoops to write code where you can do the above you have to jump through hoops to do the opposite.

pwm··on Monads Schmonads: Functional Input Without Tears (PYFL)
A good mental model is that Haskell has expressions that are evaluated and JavaScript has statements that are executed.

  const io_actions = ["hello", "world"].map(s => console.log(s));
  io_actions[1];
vs.

  io_actions = map putStrLn ["hello", "world"]
  main = io_actions !! 1
JS will print out "hello" and "world" and the value of io_actions[0] is undefined. In Haskell, the value of io_actions !! 0 is IO "world" which is just a value you can pass around in your program. Only when the Haskell runtime evaluates your code is when it will do the effect, which is to print "world". "hello" is never printed.

Naturally you can also pattern match on IO ():

  f :: IO ()
  f = case putStrLn "hello" of
    _ -> putStrLn "world"
also only prints "world".

The IO type in Haskell is akin to IO (State World -> (State World, a)), ie. the state monad where the state threaded through the computation is the "real world". This can be demonstrated with the following:

  f :: IO ()
  f = IO $ \world -> case putStrLn "foo" of
    IO _ -> case putStrLn "bar" of
      IO g -> g world
prints "bar".
pwm··on My Favorite One Liners
Here is how I like to share logs/outputs these days:

  ps aux | nc termbin.com 9999
pwm··on GitHub blocks FLoC across all of GitHub Pages
Over time everyone will be in their very own singleton group :)
pwm··on Nix is the ultimate DevOps toolkit
Re Macbook, if you fancy check out my home-manager config: https://github.com/pwm/nix-home

The readme was/is more of a short note to myself than for users, nevertheless this is how i manage my entire home env on my mac and it works beautifully.

pwm··on GitHub, fuck your name change
Imho meaningful change: (blacklist, whitelist) -> (excludelist/denylist, allowlist)

Imho meaningless lip service: master branch -> main branch

Also imho the most insulting towards PoC and everyone else for that matter is to patronisingly assume people can't comprehend context, as OP's article points it out.

pwm··on Food Prices Are Soaring Faster Than Inflation and Incomes
I'm not an economist.

My layman understanding of inflation is that it is the measure of change of purchasing power a unit of currency has over time. I think most laymen, including myself, questions how this rather theoretical concept is actually measured in real life. Eg. I think it is a sensible expectation that if inflation was said to be 2% for 20 years then I should be able to buy a house that cost $200K 20 years ago for ~$300K now. This expectation is worlds away from reality which then prompts people to question the way inflation is measured.

I know you wrote that you don't really have the inclination anymore to educate on the topic but I for one would be grateful for any pointers how to explain the above discrepancy?

pwm··on NFTs Are a Dangerous Trap
Net positive means the benefits, ie. eliminating huge amounts of CO2 that would otherwise be released into the atmosphere, outweighs the costs, ie. your list of capex+opex. Turning gas flares into miners is both ingenious and objectively net positive.
pwm··on NFTs Are a Dangerous Trap
Everything is life uses energy. We can only minimise the harmful effects of energy production, not (yet?) eliminate it. I first and foremost want global warming to slow/stop and imho for that we need a global restriction and/or ban on harmful ways of energy production. I can't see any other way. Everything else is either a distraction or ideologically driven, eg. "crypto wastes energy" really means "I think crypto is useless hence is deserves no energy". Once everything is forced to run on renewable energy sources then we will be in a much better position regardless of crypto.
pwm··on NFTs Are a Dangerous Trap
Blockchains can't and won't enforce it. They will be forced to rely CO2-neutral renewables when fossil fuels are taxed to oblivion and/or outlawed. This also points to the absurdity of blaming energy usage of things rather than attacking the root of the issue.
pwm··on NFTs Are a Dangerous Trap
Preface: I'm not endorsing NFTs nor do I know much about them and personally I would never buy one.

> Why can't NFTs be done without a blockchain?

In the physical world it is rather involved to check wether eg. a painting is the original one and not a copy. A simple way to define original is that it came first, before any of its copies. In the digital world the blockchain acts as the canonical timeline. You or anyone else can always tell what came first.

> Why do you need to dump tons of CO2 into the atmosphere just for this purpose?

In short we don't. The author of the article conflates blockchains and PoW:

- There are blockchains that don't rely on PoW

- The ones that are currently PoW might not be PoW in the future

- The ones that stay PoW might solely use non-CO2 producing methods in the future

pwm··on NFTs Are a Dangerous Trap
Yup, this idea has already been explored, eg. here is an example of environmentally net-positive way of mining: https://www.bloomberg.com/news/articles/2019-12-06/why-bitco...
pwm··on Scientists talked to people in their lucid dreams
I didn't do any specific training nor did I plan to lucid dream, it just happened at a point in my life when I meditated a lot. The realisation, ie. that you are asleep and dreaming but aware, is rather special and you can choose to do whatever you like with it. I had some pretty wild experiences "sitting down and meditating" in my lucid dream :) Sadly these days I don't meditate much and I did not have lucid dreams for a while.
pwm··on Bitcoin Is Time
> resources to get started with running a lnd node?

I use https://github.com/rootzoll/raspiblitz, easy to assemble and install and runs silently in a corner.

> getting it connected to a larger network?

Connecting to others is simple. What's more difficult is getting inbound connections, ie. others connecting to you. Historically you asked people to connect to you but recently you have https://pool.lightning.engineering/ (integrated into Raspiblitz) with which you can buy incoming connections easily.

> do you make any money from lighting fees?

In short no. I made ~$30 from routing fees in 6 months and spent around the same on on-chain fees (opening/closing channels). It's just an experiment for me (same with bitcoin itself) to see how it all works not something i expect to generate money.

pwm··on Bitcoin Is Time
This is incorrect and highly misleading. You don't have to open and close channels like that. Instead you keep them open and do circular rebalances when your channels are imbalanced. As an experiment I've been running an lnd node for the last 6 months. During this time I've routed 1445 transactions totalling 4.68249963 BTC (~223K USD currently) and only closed a handful of channels, using single digit sat/vB as it's not urgent. Lightning transaction fees in general are negligible at today's btc price. You transact with all your peers for free while you usually pay a fraction of a cent for sending transactions anywhere in the graph. Transactions are pretty much instant.

After running it for 6 months, I could certainly criticise various aspects of lnd but none of what you have written falls into the valid criticism category.

← PreviousPage 2 of 8Next →