3 ms·
Can you trust it though? It can’t really reason - it’s just very good at guessing the right answer if there are a lot of examples. It also lies somewhat frequ
by worrycue 4y ago
Can you trust it though?
It can’t really reason - it’s just very good at guessing the right answer if there are a lot of examples.
It also lies somewhat frequently.
If we have to double check its output, it kind of defeats the purpose - at least part of it - as the “cognitive burden” is still on us.
P.S. Not sure what you mean by “lining up” Haskell types … but don’t LSPs already give us clear information about the inferred types and do so with nigh zero chance of errors.
- tasuki 4y ago> Can you trust it though? Yes of course. Libraries: I look at the libraries it suggests, see if they have documentation or GitHub activity. Lining up types: say you have a `List (Maybe a)` and require a `Maybe (List a)`. This is a simple example, of course real life is much more complicated. ChatGPT tells you. Can you trust it? Well did it make the compile error go away? (Sure, I can think of three ways to turn a `List (Maybe a)` into `Maybe (List a)`. Only one will be what I want, but it's easy to tell whether ChatGPT gave me the one I wanted.)
- lionkor 4y agoNo, you can't trust it. It will certainly write bugs, and the code will have other issues. Usually too subtle for you to see at first glance, like off-by-one errors, or uncovered edge cases.
- worrycue 4y agoI guess if you use it like Google for small nuggets of information you can easily fact check, it's fine. Although might as well just use Google directly which will send you either to Stack Overflow or Reddit where there are comments discussing the issue with back and forth fleshing it out or to a bunch of tutorial sites where you can source opinions from each site. edit: nevermind the attempt at your puzzle, my solution doesn't work.
- pbronez 4y agoMy experience has been that generative AI gives you a useful layer of abstraction above direct search. It’s like having an intern Google stuff for you, check out some promising results, and send you an email summarizing what they found. They make mistakes, but are generally ok. You wouldn’t actually have an intern do this because the delegation takes more time than doing it yourself. With GenerativeAI, it’s snappy.
- worrycue 4y agoAdds another thing that can go wrong though. It doesn't cite its sources either, does it? I have seen people ask it to explain but it's explanation can be wrong too ...
- tasuki 4y ago> Not sure what you mean by “lining up” Haskell types … but don’t LSPs already give us clear information about the inferred types and do so with nigh zero chance of errors. I don't mean type inference but turning the present type a into the required type b. LSP don't do that.
- worrycue 4y agoStill learning Haskell, don't quite get what you are saying. But I will probably figure it out someday.