News for hackers. Stuff that matters.

presz

Re:Nanopass Framework: Clean Compiler Creation Language on Sunday April 19, 2026 @01:16PM (#47825868)
We really need to get more designers interested in Scheme, because that logo is awful
I'm Satoshi Nakamoto. AMA.
Re:Sam Altman May Control Our Future – Can He Be Trusted? on Wednesday April 08, 2026 @10:52AM (#47691067)
Didn't he molest his sister?
Re:What I Learned After Building 3 TV Apps Coming from Mobile on Monday February 23, 2026 @09:17AM (#47122652)
This blog reads like it was written by ChatGPT.
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.
Re:Implementing the Transcendental Functions in Ivy on Saturday January 31, 2026 @12:43PM (#46838786)
You can't call it Ivy! That's an emacs package!
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.
Re:Use Your Type System on Thursday July 24, 2025 @03:08PM (#44674774)
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)
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?
Re:Mostly adequate guide to FP (in JavaScript) on Wednesday March 22, 2023 @12:19PM (#35263394)
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!

Re:Get things done with Emacs on Sunday October 02, 2022 @10:26AM (#33056125)
Most of the books in libraries are books most people haven't read, does that make every library an anti-library?
Re:How Not to Support Desktop GNU+Linux, Zoom Edition on Friday January 21, 2022 @09:30AM (#30023940)
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.
Do you have to pay for gas to post? I really don't think this can take off
Re:APL in its modern state (2020) on Thursday October 21, 2021 @11:36AM (#28946015)
he is from the future
Re:Ask HN: Is there an easy example of a Lisp pretty-printer? on Thursday September 02, 2021 @03:30PM (#28396295)
Maybe take a look at parinfer https://shaunlebron.github.io/parinfer/