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

Do broadcast standards and practices for TV networks in the USA not extend to advertising?

It would be very strange for them to e.g censor certain kinds of drug references in the programmes they produce and air, but then permit them in adverts, no?


There are rules. Networks have entire departments called Standards and Practices. But only because broadcasters don't pay for spectrum. Cable has laxer rules and almost none on anything streaming.

Across all of these, if any government or pseudo government body attempts to restrict advertising because of the content, they will get sued. Any advertiser making materially false claims will likewise also get sued.


> can use in their workflow as a useful tool not a magic solution.

Like what? If you can already program your game and create art for it, what is it going to be doing?

People are so obsessed with using AI stuff for the sake of it, it’s nuts


I don't use AI for the sake of it, I use it where and when it is useful. For example:

1. advanced autocomplete -- if you have or paste the structure of a JSON or other format, or a class fields, it is good at autocompleting things like serialization, case statements, or other repetitive/boilerplate code;

2. questions -- it can often be difficult to find an answer on Google/etc. (esp. if you don't know exactly what you are looking for, or if Google decides to ignore a key term such as the programming language), but can be better via an AI.

Like all tools, you need to read, check, and verify its output.


Genuine question re #1: does your text editor not already do that?

Without ai my text editor auto completes letters into existing identifiers or adds a closing brace

With ai it add several lines of code at once as soon as it thinks it recognizes a common pattern.

It’s not perfect and it can get in the way but it’s amazing when it guesses right and spits out the next 3-4 lines I would have typed


Personally I find this workflow is jarring. I get into flow typing code and then the AI autocompletes the next four lines on a tab input. Now my flow is screeching to a halt because I have to switch from flow mode to review mode to make sure it actually autocompleted what I wanted

I'm trying to think of a text editor that doesn't support customizable snippets and templates, and failing

Those two things aren’t the same at all, they’re so different it’s hard to believe you’re not being intentionally obtuse.

I mean, in the sense that customizable snippets are more flexible and can cover a wider variety of use-cases, I guess?

Text editors/IDEs have simple autocomplete and the ability to do some expansion, e.g. a for loop with placeholders to fill in. Those work and are still useful.

JetBrains also has local line-based LLM models for various languages.

With the LLM-based autocomplete it a) generally autocompletes more code at once, and b) will often pick up on patterns in the existing code. E.g. if you have a similar method, list of print/string buffer write statements, or other repetitive code in the file it will often use that as a model for the generated code.


That sure sounds like you're describing customizable snippets, which AFAIK every major editor supports?

Sitting here on the sidelines having never configured snippets or macros or any of that in any of my editors, which I could have done like 30 years ago but never bothered in all this time, doing quizzical-dog look at all these people thrilled about LLMs.

I guess they might finally get me to use those things since they take the “configuring” and “remembering shortcuts” part out, but so much of this doesn’t look new at all. Super old, actually.


In my objective opinion, almost all AI uses cases (coding or otherwise), are just because of people's extreme laziness in spending a little time setting up some "automated" workflow, be it canned templates or whatever. The non-AI approach has the added benefit of being precise!

Customizable snipping is a feature editors support (which I mentioned as they are related/similar to what the AI is doing), but is different to the AI autocomplete behaviour.

If I have a JSON structure, I can paste that into the file as a comment, e.g.:

    # {"foo": 1, "bar": "test", "baz"}
    @dataclass
    class FooBar:
        foo:
and the AI will/can autocomplete/generate that to:

    @dataclass
    class FooBar:
        foo: int
        bar: str
        baz: int
using the JSON example. Then if you type:

        def __str__(self):
the AI could then contextually generate, e.g.:

    return f'Foo(foo={self.foo}, bar={self.bar}, baz={self.baz})'
Or if you have a SQLAlchemy model:

    class Foo(Base):
        __tablename__ = 'foos'

    bar_id: Mapped[int | None] = mapped_column(ForeignKey('bars.id'), default=None)
typing `bar:` the AI can autocomplete:

    bar: Mapped[Optional['Bar']] = relationship()
picking up that you have a `Bar` class in the file. Especially if you have other similar id/object definitions in the file.

Right, it's a less-flexible paste macro you don't actually have control over. shrug

It's a DWIM button.

The JetBrains local autocomplete is hilarious but occasionally useful. I find it really hit and miss in terms of when it will decide to autocomplete and whether it will exhastively complete all elements, miss some out or get itself into a loop over several.

The out-of-the-box stuff is supposed to be kind of stupid. Are you guys really not editing your own snippets and shortcuts? Have people really been typing out "def do_something(foo, bar, baz)\n\t" manually?

I can do long division manually but I still reach for a calculator.

Do you also spend a lot of time maximising calculator utilisation in other places? Maybe trying to write letters with it or composing music with it?

Won’t you get much better results trying to maximize utilization of some sort of LLM? For many people, you’d get faster and better results trying to optimize for LLMs than for any standard word processor or music composition tool.

> but I still reach for a calculator

Does the calculator give you a slightly different answer each time, even with the same inputs?


Speaking for myself (who can program and all that), AI solves some of the tedium in my day job (building UI components). Most of that work nowadays is boilerplate.

But at the moment it's also helping me solve more complex issues with building applications - it's JS, so you can imagine how complex it can be.

I yearn for a simpler workflow to be honest, I don't want to rely on SO or LLMs to solve build issues. I want to work in Go but there's only a handful of companies using it in my country, plus my CV basically says I mainly did front-end in the past ~15 years.


"People are so obsessed with using AI stuff for the sake of it, it’s nuts".

This is a GREAT observation. Thank you!


I enjoyed the footnote on their entry, where they link to ChatGPT confidently asserting that it was impossible for such an LLM to exist

> You're about as close to writing this in 1800 characters of C as you are to launching a rocket to Mars with a paperclip and a match.


There is a lot of physiognomy/phrenology nonsense loaded into these beliefs, which ties back to other (loaded/potentially hate-linked) pseudoscience like eugenics

its literally the opposite of eugenics because looksmaxxing is about self improvment and agency. eugenics is about genetics.

"It's about bad genetics... That's why people in Indian aren't considered the best aesthetically.. These arranged marriages aren't allowing the best genes to prevail" - clavicular[1]

I'm not sure why you'd go out on a limb to defend the guy singing songs glorifying hitler. But you do you

[1] https://x.com/WyronGaines/status/1995013476289245573?s=20


They talk about things being down to 'bad genes' all the time. I don't think you're discussing this in good faith you're just sealion'ing

Why would a forum whose main purpose is self improvement and “max” ones looks, say that things come down to genes? If it were about genes, why wouldn’t they just accept it and crib about it instead of trying to get better at it?

You have absolutely no idea what this movement is about.


They are using this style of speech, because it serves their aims of recruiting young people to go fight and die in stupid conflicts like this

There is a link that says “I cannot use the app” and at the bottom of the page there is “Apply online instead” which takes you here, and you just press next:

https://apply-for-an-eta.homeoffice.gov.uk/apply/electronic-...


This is not a normal occurrence and to be honest it’s surprising that these places had no way to book online

A year or two ago I had a similar issue booking to see a Broadway show in NYC... baffling because surely a large percentage of their custom is international tourists. It must have been some kind of temporary glitch, but we had to do something else in the end.

Feel like this overlooks an obvious part of how buses work, which is that buses only stop at a stop if you press the button, or if there are people at the bus stop. The number of bus stops doesn’t actually matter even if they’re super close together - unless there are actually people waiting at all of them

I think getters and setters had more value when IDEs and refactoring tools were worse (or non-existent).

A free-for-all accessing some public field is now less of a risk because it’s trivial to find all references and change them.


Can you control the docker swarm API from within a container that is running inside of it?

I think one of the killer features of k8s is how simple it is to write clients that manipulate the cluster itself, even when they’re running from inside of it. Give them the right role etc and you’re done. You don’t even have to write something as complete as an actual controller/operator - but that’s also an option too


You can. I think there's a couple approaches - bind mount the docker socket, or expose it on localhost, and use host networking for the consuming container, or there exist various proxy projects for the socket. There may be other ways, curious if anyone else knows more.


> bind mount the docker socket

Bind-mounting /var/run/docker.sock gives 100% root access to anyone that can write it. It's a complete non-starter for any serious deployment, and we should not even consider it at any time.


Sure, but sometimes that's what you intend. Docker isn't always used for, nor is it particularly designed to be a security / sandboxing solution. If I'm running a tool as root that interacts with the docker daemon, I might choose to run it in a container still.


That's not even close to the same as a well thought out rbac system, sorry.


> Can you control the docker swarm API from within a container that is running inside of it?

The question didn't ask about RBAC, well thought out or not.


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

Search: