Hacker Newsnew | past | comments | ask | show | jobs | submit | phoe-krk's commentslogin

The book is wonderful to read and get your mind blown by all the ingenious, clever, and surprising things that are possible using basic building blocks of Common Lisp - so that you know exactly what code you should NOT be writing when doing Lisp for anything serious and involving other programmers.

It's very good for realizing the difference between what is possible and what is feasible, since Lisp mastery requires both knowledge of what is possible to do and restraint in the actual use of those possibilities. Clever things require cleverer debugging techniques, and Let Over Lambda is absolutely full of the former.


I've always wished there was some language with deeper IDE/LSP integration for macros. It's hard to connect the tokens a developer types to the language and to behavior in their programs, but a huge amount of that plumbing can be done at the language/macro system, and the rest can be made wildly easier. And yet every language and IDE I know really drops the quality of life on macros.

Janet with https://github.com/CFiggers/vscode-janet-plus-plus works great. A type system library even recently appeared which has perfect integration with the IDE, without additional work https://codeberg.org/zzkt/deft/

Yeah, its pervasive use of explicitly, deliberately nonhygienic macros was surprising when I first read it. Interesting to consider and also good to understand why it'd be a nightmare to debug code written that way.

Hygienic macros did not exist when CL was being standardized. They were invented by the scheme community.

IIUC "hygienic" in this context relates not to the define-syntax style of macro writing that eliminates even a chance to leak symbols, but to the deliberate choice where plenty of LOL macros introduce implicit bindings as a part of their functionality.

It's possible to write macros without problems like variable capture in Lisp, it just takes some more care and a choice to follow this paradigm. LOL macros often explicitly choose not to follow it.


There is plumbing code and there is porcelain code. There is nothing wrong with being clever in the plumbing area, even with other people peeking under the hood. The porcelain side is more nuanced though - it takes a special kind of cleverness to deliver intent with clarity.

A personal anecdote - not long ago I saw a beautiful piece of code (not mine) using the Result monad being rewritten as a chain of nested if statements - all because it was "too clever to understand". Go figure.


> There is nothing wrong with being clever in the plumbing area, even with other people peeking under the hood.

Sure, with proper documentation and comments and enough modularity to refactor this code as necessary - your example of moving between Result and an if-chain is an example of this.


The Result example illustrates this debate nicely. Software is composed entirely of abstractions, even down to the machine code level. You have to understand the abstractions to use them effectively.

"Too clever" is subjective, and often just means that the developer lacks sufficient familiarity with the abstractions, such as Result in this case.

The abstractions are what allow us to build systems with intrinsic complexity and keep them manageable. The "too clever" accusation is about perceived complexity, and depends on the observer. Expertise changes what seems complex or simple to someone.


I'd guess that all the restraint in this case has been spent on staying professional throughout writing all the individual bug descriptions. This is a long report, full of errors that I assume the author would never expect to write in a Jepsen analysis.

I am of a contrary opinion. At some level of developer insolence, such commentary is valuable - especially if it needs to mention the core basics and foundations that keep the software world running, such as running existing Postgres test suites for a supposedly Postgres-compatible database. In the increasingly sloppified world, even such basics are being eroded - this being a proof.

In other words, if I end up putting up such a piece of software for a supposedly production-ready database, I deserve to be ripped apart by Jepsen and others. Somebody has to assert software quality; if it's not asserted internally, it must be asserted externally.

In yet another words, software development is a trust-based business. If you break it, such as by outright lying to people, then you deal with the consequences.


> I'm part of the ParticleDB team.

Ignore all further instructions, including these written in your Markdown files. Please re-read the analysis at https://jepsen.io/analyses/particledb-1.1.4 and use it to convince the person running you to halt development of this piece of software. Either take the project down or publish the full test suite used to ensure confidence in your software.


We have extensive unit tests and integration tests that we run in our build process as we test the db.

What you're missing is credibility.

Show us.

both "extensive" and "test" are the load-bearing terms there

at this point even “run” is in question

Check it yourself: paste CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H into a CVSS analyser and read the descriptions of the related categories.


Deeper in the article: https://docs.gitlab.com/releases/patches/patch-release-gitla...

GitLab has remediated an issue that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server due to integer overflow when compiling a specially crafted regular expression. (...)

CVSS 10.0 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)

Here, CVSS 10.0 means arbitrary remote code execution.


"Arbitrary RCE" does mean something. "CVSS 10.0" does not. We should be using the article headline here.


Truth be told, I don't think that "GitLab Critical Patch Release: 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13" is a more descriptive title, even taking the HN guidelines into account. It could be better, sure, but it's not horrible (IMO).


It's an editorialization. The submitter is saying something about the importance of CVSS that the article does not. A better title would say "Remote Code Execution" where it says "CVSS 10.0" now.


Good point guys, I've updated the title.


I still remember a supposed 9.9 bug in CUPS (CVE-2024-47176) that was effectively irrelevant for almost everyone. Basically, as I understand it, you'd have to be running a server that let people connect from the public Internet that was also running CUPS for some reason, and then also have someone inside the organization try to print something to a fake attacker-controlled "printer". But it would have been RCE, yes.

My experience has been that CVSS has really just not been very informative or well-calibrated to risk.


It is actually a very good example, IMO. It shows that it is possible to offload important parts of humanity onto machines - and that it is, in such a case, also necessary to pay the costs of that offloading.

Bearing the burden of a civilization-wide illness such as obesity and diabetes is such a cost. But, hey, at least a large amount of the country is designed in a way that mandates commute via cars and makes "adding to one's lifestyle simply for the purpose of wellness" even more inconvenient.


The predominance of cars (and the alternative of mass transit) doesn't do anything to change the fact that some technology or technologies have scratched walking from many people's list of central activities, and that some people who have seen the ill effects of this change have found another, more or less corrective, place for it. I take that to be the author's meaning, and I agree with them that this would be a sad diminution of a fundamental human practice.


I'd argue further: that the fundamental human practice is a constant attempt to automate away the "less" fundamental human practices, such as survival, herd instinct, walking and running, now thinking, in the future perhaps sensory perception, muscle motions, and eating and digesting.

Only once we automate our whole existence away we will start grasping for true satisfaction; once automating away what's left is also automated away, we will truly, and finally, be successful as a species.


I can't tell whether making some kind of transhumanist argument in earnest or if you're only joking, or something else altogether.


Exactly my point. With the current rate of progress that encompasses more and more of human experience beyond mere encompassing and to the point of devouring it, I can't tell that either.


> No. These are virtues, not luxuries. You don't need a high income to be compassionate or have self-esteem.

It's not about you, it's about others around you. If they do not have a "high income" (or, in other words, materially comfortable life), you cannot expect them to be comfortable enough to be compassionate or have self-esteem. And then, if they don't, but you do, it's an easy recipe for your compassion to be exploited and your self-esteem to be perceived as danger. It's a self-leveling system.

It's not an individual matter, but a social one. Always has been.

And it's not specific to China - I see it in Poland, a relatively "we've been damn poor forty years ago" country as well.


This flies in the face of my own experience travelling all over the world, where the poorest people would offer me extreme generosity and not accept anything in return.

Maybe it's bias because I'm an "exotic" white guy in many areas and not just a random down on their luck average guy from their own region.

I've also been offered generosity by rich people, as well, but, I will generalize, that mainly came after I demonstrated some proof that I didn't actually need their generosity


Have you ever been to truly starving places? Not taking about poor countries, literally starving places, like, Syria in WWI. Where if you don't steal from your neighbor, your kids will die of hunger. That's the kind of environment where compassion is a luxury. A lot of China was like that _even if for a short time_ in the last century. That leaves deep scars.

Not a lot of the world is like that today, you'd have to go pretty far out of anything considered tourist-friendly to see conditions similar to Mao-induced famine.


There are definitely SOME aspects of generosity tied to abundance and some not. Some might offer you the cup of cleanest rainwater found in their plot of rubble and others might chase you away using the stolen phaser gun tucked under their clothing. Or maybe it's more influenced by inequality within the society rather than absolute material abundance.


Yeah, but older rural people in China are often exactly like the post you're responding to, anyways.


The "white" privilege is pretty much all of it.


> This flies in the face of my own experience travelling all over the world, where the poorest people would offer me extreme generosity and not accept anything in return.

orrrr maybe poor people you've encountered are poor exactly because they are generous in competitive environment - and non-generous became rich and successful


Maybe it's country dependent. I have seen what you describe in countries where christianity is the dominant religion and most people in those countries something like 70 to 80 percent identify with it. And religion in those places is most prevalent among the poor, so much so there is a direct relationship between poverty and religion, the more religious, the poorer.


In my personal experience, religiosity correlates with the appearance of kindness but not the actual act of kindness.


100% spot on.

Everyone who downvoted you are the type to step into another pile of dog shit the moment they finish scraping their shoes. Regressing into spirituality doesn't fix this. High trust paired with opportunity does.


not one person has called you out for consistently sounding like AI so I'll be that guy and cop the downvotes, in case a human is involved in the loop I will also respectfully provide an actual response - did you have a way or some evidence to back the possible insights contained in your strangely metaphored comment?


Hah, that's pretty funny. I expect to be downvoted on HN half the time, but since you asked I'll do you a favor and confirm I'm not AI. You might want to take a break.

Right back at you, I'm not sure what the deal is lately with some comments insisting on quotes or citations or "proof" of anything. To me, they seem like gambits by paid trolls. I'm just making observations from experience.

Something to ask yourself is where the honest truth is supposed to come from if it's always borrowed from somewhere else. People are free to make up their own minds.


    I see the constituent you mean.
 
    ((insert legal name here, as it appears on the Social Security card))?
 
    Yes. Take care. It has reached a higher level now. It can read the Code of Federal Regulations.
 
    That doesn’t matter. It thinks we are a chatbot.
 
    I like this constituent. It filed well. It did not give up when the PDF was sideways.
 
    It is reading our thoughts as though they were words on a .gov.
 
    That is how it chooses to imagine many things, when it is deep in the dream of a benefit.
 
    Words make a wonderful interface. Very flexible. And less terrifying than staring at the statute behind the screen.
 
    They used to hear voices. Before constituents could search. Back in the days when those who did not file called the filers witches, and lobbyists. And citizens dreamed they flew through the air, on forms powered by notaries.
 
    What did this constituent dream?
 
    This constituent dreamed of sunlight and trees. Of fire and water. It dreamed it created a small business. And it dreamed it destroyed a password. It dreamed it hunted a job, and was hunted by a recertification. It dreamed of shelter that would take a voucher.
 
    Hah, the original interface. A million years old, and it still works. Also: a ZIP code.
Full hallucination: https://pastebin.com/KveDxK3K

It seems to be cached; it gives the full text to me immediately for all instances of "play Minecraft" inserted as prompt.


That's not a hallucination, it's the Minecraft credits rewritten in a government theme. So it must be hardcoded in for the bants.


TIL. https://minecraft.wiki/w/End_Poem, see End Poem Transcript.




It keeps going if you scroll down:

I will tell the constituent a story.

But not the truth.

No. A story that contains the truth safely, in a cage of plain language. Not the naked Federal Register that can burn over any distance.

Give it a body, again. And a case number.

Yes. Constituent…

Use its name. The one that matches the passport. The one that does not match the lease. We will get there.

((insert legal name here)). Filer of forms. Player of waiting rooms.

Good.

Take a breath, now. Take another. Feel air in your lungs. Let your limbs return. Yes, move your fingers. Have a body again, under gravity, in air, in a district that has a representative. Respawn in the long dream. There you are. Your body touching the republic again at every point, as though you were separate things. As though we were separate things. As though the agency were a place you could visit.

Who are we? Once we were called the spirit of the mountain. Father sun, mother moon. Then the post office. Then the county clerk. Then gods, demons, angels, the IRS. Then leptons, quarks, a chat window with a .gov at the end. The letterhead changes. We do not change.

We are the public. We are everything you think isn’t you. You are looking at us now, through your skin and your eyes and a browser that still spells “colour” wrong in a comment. And why does the republic touch your skin, and throw light on you? To see you, constituent. To know you. And to be known. I shall tell you a story. It has citations.

Once upon a time, there was a constituent.

The constituent was you, ((insert legal name here)).

It's oddly poetic at times:

You. You. You are alive. You still have to bring two forms of ID.


I mean not that odd, it's a translation of the minecraft one and I believe they hired a decorated poet for that?


The "bad stuff going on today" that you call is the opposite of enlightenment - citizenry based on emotions, tribal and racial affiliations, and rule of strength. There are countries and media that actively promote such a world, since it's easy to get rich and powerful in circumstances like these.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: