HNHacker News
TopNewBestAskShowJobs

presz

16 karma · joined July 15, 2021

submissionscomments
presz··on Nanopass Framework: Clean Compiler Creation Language
We really need to get more designers interested in Scheme, because that logo is awful
presz··on Who is Satoshi Nakamoto? My quest to unmask Bitcoin's creator
I'm Satoshi Nakamoto. AMA.
presz··on Sam Altman may control our future – can he be trusted?
Didn't he molest his sister?
presz··on What I Learned After Building 3 TV Apps Coming from Mobile
This blog reads like it was written by ChatGPT.
presz··on Fix the iOS keyboard before the timer hits zero or I'm switching back to Android
We all yearn for the BlackBerry. I wish we got a modern one with support for the popular messaging apps (WhatsApp, Slack, etc). I know there are some smartphones out there with physical keyboards that run Android, but they feel more like a prototype than a full product.
presz··on Implementing the Transcendental Functions in Ivy
You can't call it Ivy! That's an emacs package!
presz··on Why are 38 percent of Stanford students saying they're disabled?
This is the same problem with cheating on tests and homework. By making getting a higher education degree mandatory for entry level jobs to be able to afford a normal life, people are incentiviced to get the degree, not the education. By tackling this particular case of students with fake disabilities, the universities will hurt people with real disabilities. Same thing with anti cheating measures that affect people that don't cheat. The root case of all this is making degrees mandatory on our society.
presz··on Use Your Type System
In TypeScript you can enable this by using BrandedTypes like this:

  type UserId = string & { readonly __tag: unique symbol };

In Python you can use `NewType` from the typing module:

  from typing import NewType
  from uuid import UUID

  UserId = NewType("UserId", UUID)
presz··on Notetime: Minimalistic notes where everything is timestamped
Why git though? Wouldn't it be simpler to just append the timestamp to the beginning or end of each line/paragraph, and just hide it when editing?
presz··on Mostly adequate guide to FP (in JavaScript)
This is less a guide on how to do fp in Javascript, and more of a tutorial on how to implement a pure-functional-programming language in Javascript.

Javascript can do some functional programming, but it's not Haskell or OCaml. If you try to use it like that it quickly becomes a big mess and one that is not performant at all. You want to do pure, functional programming? Then write Haskell, or Elm, or Purescript.

I'm saying this as someone that loves fp, but is trying to get rid of a considerable chunk of fp-ts on a big codebase at work.

As a wise man once said, don't fight the language. Doing this deviates from Javascript semantics. It's a hack that is not actually helping people learn fp.

Also, please, don't do monads in Javascript! Monads are a solution for pure languages to deal with effects. Javascript can just do effects as it is!

presz··on Get things done with Emacs
Most of the books in libraries are books most people haven't read, does that make every library an anti-library?
presz··on How Not to Support Desktop GNU+Linux, Zoom Edition
People still call it GNU+Linux? Modern distros have less GNU pieces on each iteration. Might as well start calling it Gnome+Linux from now on.
presz··on New programming social media platform where your posts are NFT's
Do you have to pay for gas to post? I really don't think this can take off
presz··on APL in its modern state (2020)
he is from the future
presz··on Ask HN: Is there an easy example of a Lisp pretty-printer?
Maybe take a look at parinfer https://shaunlebron.github.io/parinfer/