HNHacker News
TopNewBestAskShowJobs

phoe-krk

9,382 karma · joined February 10, 2017

Lisp hacker. https://phoe.github.io

Author of "The Common Lisp Condition System", published by Apress. https://www.apress.com/us/book/9781484261330

meet.hn/city/50.0619474,19.9368564/Krakow Socials: - github.com/phoe - functional.cafe/@phoe ---

submissionscomments
phoe-krk··on VPTERNLOG: when three is 100% more than two
Useful to know. If a given problem is possible to encode as a function of three bits (eight states), then there's an efficient instruction to process it.

The naming is unfortunate, though, since TERNLOG implies ternary logic - an operation working on trits, with possible values being -1, 0, 1, instead of just 0 and 1. Instead, it's ternary in the same vein where C's

    foo ? bar : baz
takes three operands, and is therefore ternary, and it performs logical operations - hence TERN-LOG.

> In a reduction, each application of the binary operator decrements the number of values by 2−1=1, but each application of the ternary operator decrements it by 3−1=2!

Ha, there's an exclamation mark there! It's not 2, it's actually 2 factorial, which i... Oh.

phoe-krk··on All Lisp indentation schemes are ugly
You introduce four new variables. You get five lines instead of four, and four of these lines are pure cognitive overhead.
phoe-krk··on All Lisp indentation schemes are ugly
You can have the same step-by-step in Lisp via LET*. The problem outlined by the author happens when you have a function call where 1) the operator has a long name, 2) there are many arguments. The TREE-TRANSFORM-IF is such a case and you can't solve it by just "going step by step".
phoe-krk··on All Lisp indentation schemes are ugly
> Common Lisp in particular is extremely unfriendly to threading macros. Arrows imply a consistent thread-first or thread-last functions. But CL's standard lib is too inconsistent for that to work. So we're left with picking an indentation style we don't necessarily like.

Diamond arrows exist, you know.

    (-<> foo
      bar
      (baz)
      (quux 1 2 3)
      (fred 4 5 6 <>)
      (frob 7 <> 8 <> 9))
All in all, this post reads like a rant, and I realized that upon reading "now what I'm about to suggest is likely not to your taste". That style of indentation is something I use often when writing calls to long-named functions like COMPUTE-APPLICABLE-METHODS and I haven't ever thought of it being not to my taste, or even of it being ugly as the author suggests.
phoe-krk··on Bluesky is being valued at around $700M in new funding round
There are two kinds assets of financial assets, but both of them work the same way - you pay back the investors or face the consequences, i.e. the loss of control over how the company functions.

In other terms, it doesn't matter to the end user who exactly introduces the resulting enshittification - Bluesky's current leadership that doesn't want to lose control of the company, or Bluesky's future leadership that replaces the current one.

phoe-krk··on Bluesky is being valued at around $700M in new funding round
It hasn't fully delivered on that part just yet, so it's still in the "maybe it might happen" zone. The moment it happens, I'll change my mind.

In addition, every round of VC funding also requires them explaning their VCs how implementing an open protocol and decentralization is going to help them pay their investment back - I do not expect such talks to go well the moment the VCs realize that both of those make it possible for the platform to effectively resist enshittification attempts.

phoe-krk··on Cracking a 512-bit DKIM key for less than $8 in the cloud
> for me, actually cracking a real-world in-use key crosses an ethical line that makes me uncomfortable

They've contacted the company with the vulnerability and resolved it before publishing the article - search the original article for the substring "now no longer available".

Usually, you demonstrate that an online system is vulnerable by exploiting that vulnerability in good faith, documenting the research, and submitting it for review. It does not matter if you're cracking an encryption scheme, achieving custom code execution for a locked-down game console, proving that you can tamper with data in a voting machine, or proving that you can edit people's comments on a Google Meet Q&A session - the process is the same.

If you say something's vulnerable, people can shrug it off. If you say and prove something's vulnerable, the ability to shrug it off shrinks. If you say and prove something's vulnerable and that you'll publish the vulnerability - again, using the industry standard of disclosure deadlines and making the vulnerability public after 60-or-so days of attempting to contact the author - the ability to shrug it off effectively disappears.

phoe-krk··on Bluesky is being valued at around $700M in new funding round
> Bluesky is being valued at around $700M in new funding round.

Also known as:

> Bluesky takes a loan of other people's money. It'll then need to pay it back, probably by enshittifying their product in order to extract the money out of its users.

Unless Bluesky finds a source of money that is not venture capitalist funding, the above will happen.

phoe-krk··on uBlock Origin GPL code being stolen by team behind honey browser extension
One breaks the criminal law, another breaks the civil law. Both break the law.
phoe-krk··on uBlock Origin GPL code being stolen by team behind honey browser extension
> They're not stealing, they're disrespecting a license.

Breaking into someone's car and riding off isn't stealing, just disrespecting the concept of ownership.

phoe-krk··on SBCL "user-guided optimization" notice
https://github.com/search?q=lang%3A%22Common+Lisp%22+%22%28l... and https://github.com/search?q=lang%3A%22Common+Lisp%22+%22(lam... indeed gives quite a lot of results.

A (possibly stupid) question: is it possible to generalize this pattern and will it bring any kind of improvements? I'm thinking that for functions shaped like (LAMBDA () X), where X is a literal object or a lexical variable, COMPILE can keep a hash-table with the X being its weak keys and the respective compiled functions being their values. Whenever a form like (LAMBDA () X) is encountered as an argument to COMPILE, it can "intern" the function in the table (if necessary) and return it.

I have no idea if it would bring any or a lot of gains besides the cases for NIL (and maybe T) because of CONSTANTLY and closures, but it's a thought that came to my mind upon first reading this commit.

phoe-krk··on 87.4% of population experienced a decline in freedom from 2020 to 2022
Spending power is a freedom, not freedom or the freedom. It's not equal, it's a part of.
phoe-krk··on 87.4% of population experienced a decline in freedom from 2020 to 2022
If you consider inflation as a reduction of personal freedom, which is IMO quite a valid take, it becomes more interesting rather than less interesting to me.
phoe-krk··on Matt Mullenweg temporarily shuts down some Wordpress.org functions
I'm not criticizing his personal decision of taking a break. I'm criticizing the fact that he pulled wordpress.org's functionality along with him, as if those functionalities depeneded on him personally, and the way in which that break was announced - namely, by spending most of his announcement criticizing WP Engine instead of talking about breaks.
phoe-krk··on Matt Mullenweg temporarily shuts down some Wordpress.org functions
> As you may have heard, I’m legally compelled to provide free labor and services to WP Engine thanks to the success of their expensive lawyers, so in order to avoid bothering the court I will say that none of the above applies to WP Engine, so if they need to bypass any of the above please just have your high-priced attorneys talk to my high-priced attorneys and we’ll arrange access, or just reach out directly to me on Slack and I’ll fix things for you.

> I hope to find the time, energy, and money to reopen all of this sometime in the new year. Right now much of the time I would spend making WordPress better is being taken up defending against WP Engine’s legal attacks. Their attacks are against Automattic, but also me individually as the owner of WordPress.org, which means if they win I can be personally liable for millions of dollars of damages.

> If you would like to fund legal attacks against me, I would encourage you to sign up for WP Engine services, they have great plans and pricing starting at $50/mo and scaling all the way up to $2,000/mo. If not, you can use literally any other web host in the world that isn’t suing me and is offering promotions and discounts for switching away from WP Engine.

This post should be named "Holiday Breakdown" rather than "Holiday Break". In particular, one thing stood out to me:

> I hope to find the time, energy, and money to reopen all of this sometime in the new year.

He can't prevent WP Engine from getting access to Automattic services, so he acts out his revenge on the rest of the world instead?

phoe-krk··on Polyamory doesn't liberate; monogamy doesn't protect
> I wonder if the negative view of monogamy is just the immaturity of youth and those people have since grown out of that position?

There are powerful entities, including religions and country laws, that either make life easier for people pratcicing the monogamous relationship style or just outright force that style on masses of people. This force spawns resistance, and the negative view you mention is an expression of this resistance.

phoe-krk··on A visual proof that a^2 – b^2 = (a + b)(a – b)
Check the quadrant which the result ends up in.
phoe-krk··on A visual proof that a^2 – b^2 = (a + b)(a – b)
> (besides positive)

You can chart a and b on a 2D coordinate system, where they're allowed to be negative. Even positivity is not strictly required here.

phoe-krk··on Idiomatic Errors in Clojure
Also note an implementation of Common Lisp condition system in Clojure that allows you to have CL-style condition handling: https://github.com/IGJoshua/farolero/
phoe-krk··on Tokyo University Used "Tiananmen Square" Keyword to Block Chinese Admissions
I understand the second paragraph, but:

> Having a right and receiving justice are two different things.

That doesn't yet make sense to me. What good is a right if it stays theoretical, without an ability to execute that right in practice?

Or, in other words, if a person has a right but there are no ways to execute that right, how is this situation practically different from that person not having a right at all?

phoe-krk··on Tokyo University Used "Tiananmen Square" Keyword to Block Chinese Admissions
> By their very concept, they are unconditional and inalienable.

That is just the theoretical approach. The fact that someone says that human rights are unconditional and inalienable does not mean that they are so in practice.

It is the execution of those human rights, including prevention, education, and punishment, that makes them seem unconditional and inalienable. How do you execute human rights or facilitate their execution in a situation, where they are neither unconditional nor inalienable in practice?

phoe-krk··on Tokyo University Used "Tiananmen Square" Keyword to Block Chinese Admissions
> Blame isn't a zero sum game.

That actually is a very good summary of your whole post, and it clarified a little bit for me. Thanks, I'll steal that quote for later.

phoe-krk··on Tokyo University Used "Tiananmen Square" Keyword to Block Chinese Admissions
> Discrimination against Korean and Chinese nationals in Japan is, sadly, not an isolated phenomenon.

The whole article is based on two premises:

* that the Great Firewall of China blocking all instances of 六四天安門 in website text is expected and normal,

* that leveraging that behavior in any way (see Hyrum's Law) is unexpected and abnormal.

If the government seeks to filter any and all websites containing a given string, why would the Tokyo University be guilty of discrimination just by adding that string to their website? They are not the actor performing the filtering. One can argue it's the government of China discriminating against Chinese people who want to access information abroad in general.

phoe-krk··on Escape the Surveillance Web with Gemini
> Intrusive advertisements, Bloated JavaScript widgets, and Artificial Intelligence (AI) generated, Search Engine Optimized (SEO) slop suffocate our web browsing experience.

Says the article whose splash image is AI-generated slop, that reads like an intrusive advertisement, and whose source code contains links to scripts from www.googletagmanager.com.

You can't make this stuff up.

phoe-krk··on Stages of Denial (2020)
(2020)

Also see https://news.ycombinator.com/item?id=22504106

phoe-krk··on MacOS sometimes leaks traffic after system updates
The post I replied to said:

> By and large, governments are still vastly less competent than multinational corporations.

I just agreed with them. Adopring the level of competence of governments, when governments are not competent, doesn't imply an upward movement.

phoe-krk··on MacOS sometimes leaks traffic after system updates
Governments are adopting the international outreach of megacorps.

Megacorps are adopting the level of competence of governments.

I see no contradiction here.

phoe-krk··on MacOS sometimes leaks traffic after system updates
The differences between governments and megacorps are dwindling and the two are becoming much more alike one another. We already live in global technofeudalism.
phoe-krk··on Exploring Typst, a new typesetting system similar to LaTeX
If Typst aims for eventually competing with LaTeX, getting outside the bubble of "everyone uses English" is a very good step to take. And it's good to take it early, when your system architecture is still easy to change and not implicitly ossified around englishisms.

Things like "if you ever want to translate your document from English to XXX, you will also need to port it from Typst to LaTeX" tend to be dealbreakers.

phoe-krk··on Six transplant patients in Brazil contract HIV from infected organs
> AIDS is the immune deficiency-causing virus

AIDS (Acquired Immune Deficiency Syndrome) the illness, whereas a HIV infection (Human Immunodeficiency Virus) is its cause.

← PreviousPage 4 of 34Next →