Hacker Newsnew | past | comments | ask | show | jobs | submit | leonheld's commentslogin

It's all written in shell, no other dependencies. This is what so many shells that tried to "revitalize" sh missed! I'll definitely adopt this.


My experience with HackerNews would be significantly improved if I could exclude the LLM-related stuff... it's overwhelming.


I adore the

  uv add <mydependencies> --script mycoolscript.py
And then shoving

  #!/usr/bin/env -S uv run
on top so I can run Python scripts easily. It's great!


I built a Claude Project with special instructions just teaching it how to do this, which means it can output full scripts for me with inline dependencies based on a single prompt: https://simonwillison.net/2024/Dec/19/one-shot-python-tools/

Claude 4's training cutoff date is March 2025 though, I just checked and it turns out Claude Sonnet 4 can do this without needing any extra instructions:

  Python script using uv and inline script dependecies
  where I can give it a URL and it scrapes it with httpx
  and beautifulsoup and returns a CSV of all links on
  the page - their URLs and their link text
Here's the output, it did the right thing with regards to those dependencies: https://claude.ai/share/57d5c886-d5d3-4a9b-901f-27a3667a8581


Using your system instructions for uv for every LLM now since first seeing your post last year, thanks! It's insanely helpful just asking e.g. Claude to give me a python script for XYZ and just using "uv run". I also added:

  If you need to run these scripts, use "uv run script-name.py". It will automatically install the dependencies. Stdlibs don't need to be specified in the dependencies array.
since e.g. Cursor often gets confued because the dependencies are not installed and it doesn't know how to start the script. The last sentence is for when LLMs get confused and want to add "json" for example to the dependency array.


claude sonnet typically forgets about uv script syntax in my experience. I usually find myself having to paste in the docs every time. By default it wants to use uv project syntax.



Using this trick with Marimo.io notebooks in app-mode.

Instant reactive reproducible app that can be sent to others with minimal prerequisites (only uv needs to be installed).

Such a hot combo.


It's so cool. I now habitually vibe-code little scripts that I can immediately run. So much nicer than having to manage environments and dependencies:

- https://everything.intellectronica.net/p/the-little-scripter

- https://www.youtube.com/watch?v=8LB7e2tKWoI

- https://github.com/intellectronica/ez-mcp


e: I misread your example, disregard below irrelevant pattern matching of 'uv add --script' to 'uv add' in the project context!

~~That mutates the project/env in your cwd. They have a lot in their docs, but I think you’d like run --with or uv’s PEP723 support a lot more~~

https://docs.astral.sh/uv/guides/scripts/


PEP723 support is exactly what the poster is using?


Ach, missed the --script, thanks.


What's "mydependencies"? A config file?


My apologies: "mydependencies" are packages from PyPI (https://pypi.org/), as if you did "pip install ...".


Haiku/BeOS to me is simply peak computer design. This is beautiful!


It gives me so much nostalgia for certain Trillian 0.7x skins that I can't put my finger on. Skinning apps was one of the things I wanted to bring back.


I agree, it's such a beautiful OS. The icons are perfect. I wish there was a UI like this for MacOS.


We use it for testing binary embedded Linux distros where tricking the OS to think there's a display connected introduces a new variable that is not present in the user's deployment - and it's a cheap hardware solution. Buying and installing them is probably more cost-effective than having an engineer writing the `echo on > /sys/whatever` and the logic around it.


I get nomi.ai, which is a service to:

"... build a meaningful friendship, develop a passionate relationship, or learn from an insightful mentor."

Jesus Christ.


As a card-carrying member of his fan club I must mention the great, and tragically departed, Klaus Nomi:

https://www.youtube.com/results?search_query=%22klaus+nomi%2...


I've got that card in my wallet too, alongside my Leigh Bowery Fan Club Card and Nina Hagen Fan Club Card!

Let's hope lightning strikes again.

https://www.youtube.com/watch?v=tJdljxrvPqo

Here's "The Nomi Song" documentary of his amazing and tragically short life:

https://www.youtube.com/watch?v=W0PszBID3Lk

It covers the story behind his epic SNL performance with Joey Arias and David Bowie:

https://youtu.be/W0PszBID3Lk?t=2038

"So, to get ready for Saturday Night Live, he said to Bowie, 'Well so what are you doing, what's going to happen? Are you doing a staging, or are you doing costumes? What are you doing?'"

"And he said, 'Yeah, and they're making me this copy of a Tristan Tzara design from some performance art thing from the 30's.' So we look at this thing, and it's, it's beautiful."

https://lemodalogue.com/2017/07/31/histoire-dun-costume-dada...

Page Wood, Nomi's Art Director:

"I remember Pat Gibbons, who was Bowie's manager at the time. He comes up and he goes, 'Well you're going to have to have something. You're going to have some costumes.'"

"And he whips out a big wad of cash, and he goes, 'How much do you need?', and he starts peeling off bills. And Joey and Klaus look at him, and their eyes widen, and they look at each other, and they go, 'We're going to need shoes, too.'"

One of my favorite performances of all time, The Man Who Sold The World lyric "We must have died alone, a long long time ago." was especially poignant given Nomi's sad fate.

At 1:42 in this video, just after that tragic lyric, Blondie's keyboardist Jimmy Destri stares gothically up into the camera.

https://donhopkins.com/home/nomi/DavidBowieAndKlausNomi-TheM...

Then they did "TVC15":

https://www.davidbowieworld.nl/david-bowie-tvc-15/

>[TVC15] was inspired by an episode in which Iggy Pop, during a drug-fueled period at Bowie’s LA home, hallucinated and believed the television set was swallowing his girlfriend. Bowie developed a story of a holographic television, TVC 15. In the song, the narrator’s girlfriend crawls into the television and afterwards, the narrator desires to crawl in himself to find her.

https://donhopkins.com/home/nomi/DavidBowieAndKlausNomi-TVC1...

Finally right the end of the live performance of "Boys Keep Swinging", Bowie pulled one over on the censors by whipping out his puppet penis on live TV, and then grinning impishly!

https://donhopkins.com/home/nomi/DavidBowieAndKlausNomi-Boys...

The night David Bowie brought a nude puppet to SNL:

https://www.avclub.com/read-this-the-night-david-bowie-broug...


While others have expressed sentiments about YouTube and Google, let me tell you what I really hate - translated reddit posts.

They're polluting search results and it's the ultimate disrespect against multi-lingual users... it's made my life hell when trying to find localized information (for example, in Portuguese), when my computer is set to Portuguese but I'm searching in English.


Honestly, I don't even know what you're talking about – I don't have anything like that. Maybe it can be changed in the settings?


It's in the Google index, not on Reddit itself. For example: https://www.google.com/search?q=site%3Areddit.com+inurl:?tl=...

...will show you posts that have been translated into Italian, most of which were originally in English or a different language.

For example: https://www.reddit.com/r/horror/comments/1k2fotl/welcome_to_...

And of course in this case I explicitly searched for that, but the point is that if Google thinks Italian is your primary language, it will surface those results automatically, even when you might prefer the English original.

Probably this is caused by Reddit offering these pages to Google, rather than Google deciding to send you to a different URL on its own accord, but it's still annoying from an end user perspective.


What are you talking about? 25~30k is almost a year's salaries for a dev in Eastern Europe/South America.


My first-hand Eastern European experience tells me that you should refresh your expectations. €50..60k is barely within the range of acceptable for a mid-senior Rust developer. You'd have to throw in quite some perks, like 100% remote work to lure someone to work for this money.


People in Eastern Europe or South America are not on the list of people can collect.


It depends of what you consider Eastern Europe. Most of the Eastern Bloc is in the EU now.


Good point. I did not scroll to the rules.


The bounty is available to European Union countries. You’re replying to someone who is coming up with things to complain about.


If we're talking numbers, there are many, many more embedded systems than general purpose computers. And these are mostly built on ancient process nodes compared to the cutting edge we have today; the shiny octa-cores on our phones are supported by a myriad of ancilliary chips that are definitely not cutting edge.


We aren't talking numbers, though. Who cares about embedded? I mean that literally. This is computation invisible by design. If that were sufficient we wouldn't have smartphones.


In a way, and for a long time, smartphones were/are defined as embedded devices.

I still don't see how one can classify a smartphone as a general-purpose computing device, even though they have enough computing power as a laptop.


> Honestly my sense is that it's just time to rip the bandaid off and generate synthesizable hardware from Python or Rust or whatnot.

I worked a bit with VHDL and the parallelism aspect is - to me - so fundamentally different than what our sequential programming languages can express that I'm not sure I a layer of abstraction between this and that. How would that work?


You mean parallelism for simulation? Generate a simulator output from your input (in VHDL if you like) and run it in an appropriate runtime.

You don't need to run Python/whatever to simulate and you don't need (and probably don't want) your semantic constraints and checks to be expressed in python/whatever syntax. But the process of moving from a parametrized design through the inevitable cross-team-design-madness and decade-stale-design-mistake-workarounds needs to be managed in a development environment that can handle it.


I don't think this is about simulation. Python requires an additional DSL layer in order to express parallelism. I've personally no interest in learning that, or anything like that stuck on top some other language that's similarly unfit for HDL purposes.

Modern VHDL isn't too far off what we need. I'd rather see more improvements to that. But most crucially, we need tooling that actually supports the improvements and new features. We don't have that today, it's an absolute mess trying to use VHDL '19 with the industry's standard tools. We even avoid using '08 for fear of issues. I can't speak to how far off SV is.


See e.g. Migen [1], a Python HDL.

TL;DR: The hardware modules you're generating are represented as first-class objects that can be constructed from a DSL embedded within Python or explicitly from a list of primitives.

[1]: https://m-labs.hk/gateware/migen/


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

Search: