News for hackers. Stuff that matters.
Re: by pleb_nz on Sunday December 25, 2022 @02:33AM (#34125203)
Half of the fun of using cli is using it with your own knowledge imo.

Using GPT3 makes it feel like I may as well use some GUI tool.

I understand gpt3 will/does save time and money but I actually like to code and to use my skills and knowledge to build and solve thingswith my own hands.

Maybe I'm an outlier here, but using some to to do it for me doesn't sound like fun.

Re: by rebuilder on Sunday December 25, 2022 @02:42AM (#34125232)
This seems like the attitude most artists have to image generators as well.
Re: by krackers on Sunday December 25, 2022 @02:43AM (#34125235)
The killer app for LLMs will finally be able to write ffmpeg invocations
Re: by pramodbiligiri on Sunday December 25, 2022 @03:43AM (#34125464)
There's at least one such command I saw out there: https://www.learngpt.com/prompts/generating-a-complex-ffmpeg...
Re: by yasyfm on Sunday December 25, 2022 @07:10AM (#34126547)
It worked for the couple basic cases I tried!!
Re: by bobmaxup on Sunday December 25, 2022 @07:57AM (#34126852)
I have seen people building small drag and drop interfaces to convert media with python, tk, and ffmpeg from prompts with a couple of sentences.
Re: by skocznymroczny on Sunday December 25, 2022 @10:12AM (#34127865)
Or enter a valid tar command on first try.
Re: by danieldk on Sunday December 25, 2022 @03:14PM (#34130779)
That and writing LaTeX or Tikz. These are the things you have to do every now and then, but don't do enough to commit them to long-term memory.
Re: by Semaphor on Sunday December 25, 2022 @02:44AM (#34125239)
I'd not like to use GPT3 (maybe GPT9 or so), but I certainly don't have fun writing commands, I do it because it's either the only or the best option, I'd bet that I'm very much in the majority there.
Re: by Shindi on Sunday December 25, 2022 @02:56AM (#34125290)
Agreed. There is quickly going to be a bigger chasm between the best devs and average/bad devs bc of LLMs.
Re: by Swizec on Sunday December 25, 2022 @03:42AM (#34125461)
Yes. The best race car drivers use an automatic transmission if that’s 0.5 seconds faster per lap.

In fact driver aids had to be actively banned in many racing series. Just to make it more fun for spectators.

Re: by pleb_nz on Sunday December 25, 2022 @04:16AM (#34125601)
And often hand crafted guys have more character, story and quality behind them and people often pay more for them. So goes both ways sometimes.
Re: by skor on Sunday December 25, 2022 @05:49AM (#34126075)
this. when a programmer cannot explain how something works and just say, “oh this part was generated” ... well, thats worthless, because there is no ownership of knowledge.
Re: by throwaway290 on Sunday December 25, 2022 @05:23AM (#34125923)
Performance with auto transmission says less about the driver but more about the tech team.

And yes, the point of these racing regulations is to make it at least optically a driver skill competition, not just who can throw more money at a pretty mundane challenge of getting from A to B the fastest. (If not for those regulations, since the track is known to the centimeter, the fastest driver would probably be the lightest one because it would be dead weight.)

Thankfully software engineering challenges are far from mundane, so the chasm will indeed grow

Re: by Swizec on Sunday December 25, 2022 @05:41AM (#34126020)
> Thankfully software engineering challenges are far from mundane, so the chasm will indeed grow

Yes, if you let AI/tooling/interns do the mundane parts, you’ll have more time for the good parts

Re: by throwaway290 on Sunday December 25, 2022 @06:38AM (#34126340)
If your bottleneck is typing speed, sure maybe...
Re: by Swizec on Sunday December 25, 2022 @06:49AM (#34126401)
That's what makes them the mundane parts.
Re: by throwaway290 on Monday December 26, 2022 @10:28AM (#34138323)
Try DRY. I find typing the furthest from performance bottleneck
Re: by dahfizz on Sunday December 25, 2022 @01:41PM (#34129812)
> If not for those regulations, since the track is known to the centimeter, the fastest driver would probably be the lightest one because it would be dead weight.

Maybe if everyone took turns setting times. But in a real race, you have to deal with traffic, figure out how to pass, etc.

Re: by throwaway290 on Monday December 26, 2022 @10:33AM (#34138374)
> Maybe if everyone took turns setting times.

Time attack is a type of race.

But I don't see how it changes the regular racing either. If you don't keep it in check the competition will shift to who can write better autopilot software, which if the only variable is "other racing cars" is pretty simple compared to real world streets.

Again, the analogy is broken. Automatic transmission, autopilot help, these things will help win the race, but creating good software is a bit different from "who can type faster".

Re: by jacquesm on Sunday December 25, 2022 @05:46AM (#34126057)
Inevitably that would lead to the driver being phased out at some point.
Re: by hcks on Sunday December 25, 2022 @09:11AM (#34127351)
This is just wishful thinking of course.

The shell itself is an outdated piece of technology that unfortunately has to be used for historical reasons. I’m glad we now see a way to work past it.

Re: by MereInterest on Sunday December 25, 2022 @09:24AM (#34127462)
What would you describe as a better tool? GUIs definitely aren’t it, as they can’t be composed together. APIs are great when they exist, but are often far too verbose for one-off tasks.

Relevant here, a GPT-powered shell throws away the repeatability and predictability that shells have. There’s nothing to say that a different random seed or a little more training data won’t change the interpretation of a task that was specified in the vagaries of natural language.

Re: by indymike on Sunday December 25, 2022 @10:24AM (#34127980)
Please point me to something better.
Re: by doix on Sunday December 25, 2022 @03:05AM (#34125316)
I have never considered using the cli fun. The reason I use it is because it provides a better experience than using a GUI in many cases.

I don't see how writing CLI commands is similar to building something with your hands. You either know what the switches are or you try running --help, looking at the man pages or search on Google. This looks like an alternative for Google.

Re: by beebmam on Sunday December 25, 2022 @04:34AM (#34125676)
Pipes make it fun. The power of UNIX and it's successors!
Re: by jacquesm on Sunday December 25, 2022 @05:43AM (#34126034)
We used to call it the 'better file manager' here.
Re: by injinj on Sunday December 25, 2022 @03:44AM (#34125475)
I can never remember things. That's why my history file has 100k lines in it.

  $ do create linux bridge
  brctl addbr <bridge_name>
  ip link set <bridge_name> up

  $ do git reverse last commit
  git reset --hard HEAD~1

  $ do gcc show optimizations
  gcc -O -Q --help=optimizers
Re: by BossingAround on Sunday December 25, 2022 @11:04AM (#34128321)
Personally, I didn't remember things because I never stopped to look at what I'm actually doing. After I made it a practice to stop and read the command at least in my mind before I execute it, that made me remember the vast majority of my commands.

Do not mistake lack of attention with poor memory; the former is very easy to fix :).

Re: by diarrhea on Sunday December 25, 2022 @04:01AM (#34125552)
I kind of agree, use the terminal a lot and am satisfied whenever I don’t need to look up a command.

However, the point of it isn’t knowing as much of it by heart as possible. That is really misguided. I use tldr a lot, and it often covers the exact case I’m after.

So a tool based on ChatGPT has the potential of replacing tools such as tldr. Anyone unwilling to use it will simply fall behind and slowly become a worse developer.

Outsourcing knowledge and capabilities (externalising aka only remembering pointers to knowledge sources over the knowledge itself) is a core pillar of human intellectual advancement, if you will. It started with printed books, and now we’re here, discussing AI tools. I’m convinced if one doesn’t incorporate them, one will increasingly fall behind until one isn’t able to keep up anymore. These tools are here to stay, and we’re just seeing the beginning (GH Copilot etc. etc.).

Re: by mellosouls on Sunday December 25, 2022 @04:53AM (#34125765)
I don't think you're an outlier, but you will become one if you don't adapt to the inevitable.

Like it or not, gpt3 has signalled a massive change in toolset power and this is just the start.

Times have changed, we move with them or we will be left behind.

Re: by throwaway290 on Sunday December 25, 2022 @05:15AM (#34125892)
As soon as opt out is implemented training data will stop to grow and we're back to skills mattering
Re: by SalmoShalazar on Sunday December 25, 2022 @05:31AM (#34125956)
These tools don’t obviate the need for skill in the domain, they are essentially excellent contextual search engines.

Having an en masse respected opt out from data collection on the internet is wishful thinking. Don’t expect that any time soon.

Re: by jacquesm on Sunday December 25, 2022 @05:44AM (#34126037)
It shouldn't even be 'opt-out' but 'opt-in' in the first place.
Re: by throwaway290 on Sunday December 25, 2022 @06:39AM (#34126346)
Actually I stand corrected, I meant opt-in.
Re: by amelius on Sunday December 25, 2022 @07:45AM (#34126761)
Prediction: China will simply ignore this law, and will become the greatest AI power.
Re: by williamcotton on Sunday December 25, 2022 @08:24AM (#34127032)
I know plenty of talented FOSS developers who won’t choose to opt out.
Re: by throwaway290 on Monday December 26, 2022 @11:02AM (#34138759)
I doubt it. A FOSS developer would never consent to feed a closed proprietary model, which some corporation then charges other people for using, with their hard work.
Re: by mlboss on Sunday December 25, 2022 @01:58PM (#34129987)
This is coming very fast. Today I used chatgpt to generate some kubernetes yaml and python code that was not able to find using google.

Once it is integrated in copilot there is no going back. We software engineers will be churning code faster and our role will be more of a code reviewer. One developer can do the work of 5.

Re: by upsidesinclude on Sunday December 25, 2022 @04:53AM (#34125768)
>build... with my own hands...

Eh, that's some abstraction there

Re: by jpalomaki on Sunday December 25, 2022 @05:54AM (#34126101)
I also enjoy mastering some tools and solving problems with them, but sometimes it gets a bit overwhelming when you are working with so many languages, libraries, and platforms.

Unfortunately, quite a portion of my search activity is hunting down the syntax for getting a certain thing done. It's not just blind copy-paste-trial-and-error activity. Quite often I just need some help in getting the syntax right or reminder of the specific command or library.

Re: by tux on Sunday December 25, 2022 @02:21PM (#34130250)
Actually by using something like GPT3 you are kind of doing copy-and-paste in a way, because you are given pre-defined set of commands without ability to modify its arguments. It looks to me like typing in terminal at random and hoping for the best results. This is especially bad for newbies, because they won't know how this commands work and what all this arguments mean. This is my two cents anyway.
Re: by yasyfm on Sunday December 25, 2022 @07:09AM (#34126545)
I'm with you most of the time... but there are some commands that refuse to stick in my brain no matter how hard I try, and I get tired of looking them up
Re: by linhns on Sunday December 25, 2022 @11:54AM (#34128720)
I believe that you should be able to do basic CLI at least, but for rarely used commands or some incredibly complex one like ffmpeg, having an AI to do it is the way to go.
Re: by sciencesama on Sunday December 25, 2022 @12:09PM (#34128854)
is there a gui tool for command line ? that would be awesome !!
Re: by tux on Sunday December 25, 2022 @02:14PM (#34130168)
I for one agree with pleb_nz, its kind of like replacing CLI with GUI. Thank you, but no thanks! To me writing custom bash script or "kill -9 $(lsof -t /dev/nvidia0)" is much better than typing "do kill the process which is locking up my GPU". Plus what if you want ot pass additional arguments to kill or lsof? Once you master CLI you'll never go back, at least that true for me. I'm actually tyring to replace more software that I use with CLI not go back to GUI. I'm even considering making terminal based websites of my projects as an option. So everyone can access them with lynx and similar.
Re: by ultrarunner on Sunday December 25, 2022 @02:21PM (#34130248)
Just like driving a manual-transmission car, part of fun is in the doing. Further, though, part of the doing makes it practical: engagement while driving is a good thing.

How, if one has no experience with the command line, can convincing errors in GPT's responses be detected? If the details of the command line are automated away, and engagement diminishes, will we arrive at a point where people are more limited because the knowledge that made the command line powerful is gone? Sure, it might make it easier to eat a sandwich in rush hour traffic, but eventually will we find ourselves cringing while dragging the brakes down a mountain because we've lost the ability to simply downshift? How often have you seen someone hesitate to do something on a computer because they don't fully understand what's going on and 'don't want to break anything'?

I think this project is awesome, and could even expand my knowledge of the CLI, but have some reservations about applying it as a categorical imperative.