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

Then for drones ?


I throw a 200+ persons party every year at halloween, and I concur with every points on this list.

I'll add: if you need money but don't want to ask for it upfront, you will need to have someone to ask for it individually to each person mid party.

Just having a box to collect it somewhere, or a sign with a qr code, doesn't work nearly as well.

It's annoying to do, but if your party is good people react surprisingly well to this.


> if you need money but don't want to ask for it upfront, you will need to have someone to ask for it individually to each person mid party.

If someone invited me to a party and asked for money after I arrived I would in all likelihood never speak with that person ever again.


Of course you don't tell people they have to pay mid party. This is for things like collecting donations money for next parties.

In places when you don't have a lot of money to go around, solidarity goes a long way, and nobody finds it weird to ask for help.

I understand on HN the average salary allows to pay for a lot, but it's an exception.

In France, it's common that everybody brings something for dinner, for example, even if you are invited.

If you throw a big party and then ask people if they want to help the people that did that, they are usually happy to do it.


Same with people who try to act generously but then surprisingly throw a large bill your direction. I’ve been victim to this behavior a few times and I’ve cut those people out after every offense. No surprise, these people don’t tend to have friends for long.


Everybody understands that it's an opinion, it's a social convention, no need to spell it out. Just like people saying "broccoli are bad" doesn't need to be subtitled with "it's a matter of taste" or this dress looks ugly implies that it's a subjective take on aesthetics.


Scale and cost matter. Skin in the game too.


Thid is the kind of interractions I come to HN for.


It doesn't.

uv has a script mode, a temp env mode, and a way to superimpose a temp env on top of an existing env.

See: https://www.bitecode.dev/p/uv-tricks

That's one of the selling point of the tool: you don't need a project, you don't need activate anything, you don't even need to keep code around.

Yesterday I wanted to mess around with logoru in ipython. I just ran `uvx --with loguru ipython` and I was ready to go.

Not even a code file to open. Nothing to explicitly install nor to clean up.

For a tool that is that fantastic and create such enthusiasm, I'm always surprise of how little of its feature people know about. It can do crazy stuff.


Same. But I have now a new secret weapon, this claude code prompt:

Read the doc of https://iommi.rocks/, make a demo project showing of the capability of this tool.

(I have a claude.md with more info, but that's the prompt)

Came back with a fully functional demo with everything installed and working. runserver, and a glance at the code, and I get it.

TL;DR: it's like the django admin, except you can use it in any endpoint in your side. Pretty nice.


There's an example app too: https://github.com/iommirocks/iommi/tree/master/examples

I've had mixed success with Claude. It keeps adding too much display_names to everything for example which is annoying.

In theory we could put that up, but I don't particularly want to maintain such a live example app and pay for hosting and all that, only to have it instantly crash under the load of HN :P


BTW, your "https://kodare.net/2025/08/08/documentation-that-is-never-wr..." is fantastic, I always liked the idea of docstest, only the implementation sucked.

But this is much better. Any plan on open sourcing this infra for sphinx or mkdocs?


Thanks.

I've thought about extracting it, but I think it's a lot of work unless you want to support only Django and rST which is what we're using. At least the iframe part is very specific to the web framework.


A E Van Vogt can hardly be called unheard of, the null A series is quite a cult classic. But yeah, the Space Beagle is not his most well-known work.

It always surprises me (although it shouldn't) how many underrated gems there are still in the world. And new ones are produced every day.

E.G: I still think QTMN will deserve a place as a classic sci-fi author among the great ones, for "there is no antimemetics division" alone. And yet despite a solid fan following, it has never exploded in popularity. It is 10 times better than the 3 body problems, which comparatively had stratospheric success.

In movies, "Amelie" has been a planetary success, but from the same author, the excellent "The city of the lost children" is practically unknown.

Even last month, a tv show named "Nero" came out on Netflix, and while not revolutionary, is clearly above most of the crap that regularly comes out. Yet, nobody talks about it.

Popularity is a cruel mistress.


City Of the Lost Children is an absolute classic, good point.

However, I think there’s something to be said - sci-fi people of the 70’s all knew AE Van Vogt. This list was, for me delightful, because it reminded me of books I once owned, long ago, indeed many in this list .. back when books were how you encountered these materials. Real books were how we read, back then.

The need to know things has been radically compartmentalized by the mega-computer we’ve allowed to take over our planet, meanwhile, apropos cruel mistresses ..


I think it's the default behavior, because it's cheaper and faster to produce than the real answer.

I assume the beginning of the answer is given to a cheaper, faster model, so that the slower, more expensive one can have time to think.

It keeps the conversation lively and natural for most people.

Would be interesting to test if it's true, by disabling it with a system prompt, and measure if the time-to-answer is slower for the first word.


Monkey patching an object attribute, such as a method or a function of a module, may affect 3rd party libraries code that use said object.

This solution is interesting, as it provides the patched code as if it were a new package, indendant of the existing one you have installed, like vendoring, but without the burden of it.

In case you want to be the only one seing your patch, this is great. It also makes the whole maintenance easier, as you don't have to wonder if you patch it at the right time or in the right way. MK can fail in many subtle edge cases.

Inheritance, particularly, is a great Mk pitfall I expect this method to transparently work with.


If you only want your own code to see the patch, then why not just wrap it?

I mean if you really need super strong isolation, you can always create a copy of the library object; metaprogramming, dynamic classes, etc, all make it really easy to even, say, create a duplicate class object with references to the original method implementations. Or decorated ones. Or countless other approaches.

My point isn't that I don't see problems that could be solved by this; my point is that I can't think of any problems that this solves, that wouldn't be better solved by things that don't do any innards-fiddling in what is arguably the most sharply-edged part of python: packaging and imports.

And speaking from experience... if you think patching can fail in subtle edge cases, then I've got some bad news for you re: import hooks.

At the end of the day, people who might use this library are looking for a solution to a particular problem. When documenting things, it's really important to be explicit about the pros and cons of your solution, from the perspective of someone with a particular problem, and not from the perspective of someone who's built a particular solution. If I need to drive a nail, and you're selling wrenches, I don't want to hear about all of the features of your wrenches; I want to know if your wrench can drive my nail, and why I would ever want to choose it instead of a hammer.

I can think of a lot of differently-shaped metaphorical nails that fall under the broad umbrella of "I need to change some upstream code but don't want to maintain a fork". And I can think of a whole lot of python-specific specialty hammers that can accomplish that task. But I still can't think of a signle situation where using import hooks to solve the problem is doing anything other than throwing a wrench into a very delicate gearbox. That is the explanation I would need, if I were in the market for such a solution, to evaluate modshim as a potential approach.


> I mean if you really need super strong isolation, you can always create a copy of the library object; metaprogramming, dynamic classes, etc, all make it really easy to even, say, create a duplicate class object with references to the original method implementations. Or decorated ones. Or countless other approaches.

> My point isn't that I don't see problems that could be solved by this; my point is that I can't think of any problems that this solves, that wouldn't be better solved by things that don't do any innards-fiddling in what is arguably the most sharply-edged part of python: packaging and imports.

All these examples have the dependency order wrong, and you're right on those - it's simpler to wrap them somehow. But this is doing something different, that is either much harder or outright impossible with those methods: Tweaking something internal to the module while leaving its interface alone. This is shown in both their examples where they modify the TextWrapper object but then use it through the library's wrap() function, and modify the Session object but then just use the standard get() interface to requests.


In that case I'd opt for dynamic module creation using metaprogramming instead of an import hook. And I personally would argue that grabbing the code objects from module members and re-execing them into a new module object to re-bind their globals is simpler than an AST transformation.

But regardless of the transformation methodology: the import hook itself is just a delivery mechanism for the modified code. There's nothing stopping the library from using the same transformation mechanism but accessing it with dynamic programming techniques instead of an import hook. And there's nothing you can't do that way.


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

Search: