HackerLangs
TopNewTrendsCommentsPastAskShowJobs

cmarschner

no profile record

Submissions

Show HN: Pypersistent – Functional Data Structures for Python

pypi.org
2 points·by cmarschner·hace 6 meses·1 comments

comments

cmarschner
·el mes pasado·discuss
Not comparable - drivers and space in a city is inherently limited, while there is no limit on GPU manufacturers, datacenter probividers, or LLM companies
cmarschner
·hace 6 meses·discuss
It was written with zero human edits. All Claude Code.

The initial version (dictionary based on a Hash Array Mapped Trie) was done in 2 hours. The second version (5 data structures, including red-black-tree-based sorted map) took 46 commits over the last two weeks, done in between other things. Mostly a little prompt, enter, on to other things.

Almost 10000 lines of code, 300 tests. CI, 3 platforms, publishing to pypi.

Needless to say this would have taken me weeks a year ago.

You can try it out here: https://colab.research.google.com/drive/1LWHEmvKZ-IS2raeg0RJ...

One of the biggest relevations: Claude debugged like a human.

Implementing the red-black tree yielded a lot of segfaults. It first tried to reason about the logic, couldn't find the bug. Then tried to run debuggers and stuff. This also went nowhere. I had to tell it to add printf statement to trace state changes, and write them to a file. This made finding the bug quite easy.
cmarschner
·hace 7 meses·discuss
Since hundreds of people were involved the most likely explanation is incompetence
cmarschner
·hace 7 meses·discuss
Befuddling that this happened again. It’s not the first time

- Paul Manafort court filing (U.S., 2019) Manafort’s lawyers filed a PDF where the “redacted” parts were basically black highlighting/boxes over live text. Reporters could recover the hidden text (e.g., via copy/paste).

- TSA “Standard Operating Procedures” manual (U.S., 2009) A publicly posted TSA screening document used black rectangles that did not remove the underlying text; the concealed content could be extracted. This led to extensive discussion and an Inspector General review.

- UK Ministry of Defence submarine security document (UK, 2011) A MoD report had “redacted” sections that could be revealed by copying/pasting the “blacked out” text—because the text was still present, just visually obscured.

- Apple v. Samsung ruling (U.S., 2011) A federal judge’s opinion attempted to redact passages, but the content was still recoverable due to the way the PDF was formatted; copying text out revealed the “redacted” parts.

- Associated Press + Facebook valuation estimate in court transcript (U.S., 2009) The AP reported it could read “redacted” portions of a court transcript by cut-and-paste (classic overlay-style failure). Secondary coverage notes the mechanism explicitly.

A broader “history of failures” compilation (multiple orgs / years) The PDF Association collected multiple incidents (including several above) and describes the common failure mode: black shapes drawn over text without deleting/sanitizing the underlying content. https://pdfa.org/wp-content/uploads/2020/06/High-Security-PD...
cmarschner
·hace 7 meses·discuss
For me it‘s the opposite. I do have a good feeling what I want to achieve, but translating this into and testing program code has always been causing me outright physical pain (and in case of C++ I really hate it). I‘ve been programming since age 10. Almost 40 years. And it feels like liberation.

It brings the “what to build“ question front and center while “how to build it“ has become much, much easier and more productive
cmarschner
·hace 7 meses·discuss
Completely failed for me running the code it changed in a docker container i keep running. Claude did it flawlessly. It absolutely rocks at code reviews but ir‘s terrible in comparison generating code
cmarschner
·hace 4 años·discuss
Given that I‘ve grown up with zero people in my environment that showed behavior of ADHD I wonder how much of it is just consequence of our ever more stimulus-intensive world.

It seems most extreme in the US - the TV program there is a constant blurt of screaming to me whenever I visit it. European TV is much less intrusive, often more like US programs from the 70s.

But meanwhile a lot of the stimuli come from the cell phone, and I do think I’ve a) become addicted to it and b) I‘ve developed signs of ADHD in recent years as well.

So then the hypothesis is that things get better by adapting the environment to be more brain-friendly… like

- fewer stimuli (screens)

- less competition / anxiety-inducing work environments

- more sunlight, less time in dark interior spaces

- boredom

- sleeping hygiene

- less processed foods, and a microbiome well catered to

- nature

In other words: an environment that resembles more closely to what humans have adapted to over 100000s of years, and which we deviated from in the past 100… or 20.