News for hackers. Stuff that matters.

tyler-dodge

It's the whole previous conversation prior to the top level headline containing the block.

Makes sense, I won't be changing it from the current way. I think chatgpt-shell works more idiomatically in the org way in that context so that can be an alternative for people who prefer the former variant.

chatgpt-shell in org-mode does not support chaining together multiple messages whereas org-assistant supports:

#+BEGIN_SRC ?

A

#+END_SRC

#+BEGIN_EXAMPLE

A-response

#+END_EXAMPLE

#+BEGIN_SRC ?

B

#+END_SRC

Where if you run Ctrl-c Ctrl-C on the block it sends the conversation to chatgpt:

User: A

Assistant: A-response

User: B

This enables notebook style development if you are tinkering with a prompt and want to see how the responses cascade based on further input.

Re:On calculating Fibonacci numbers in C on Monday January 28, 2013 @12:48PM (#5129571)
Wait Im confused. Wouldnt the point of using the analytic approach be that i could start at any n besides 0? Because of course if im just taking the sums from 0 to n it'd be faster to do it the tail recursive way because thats just simple addition.
Re:Advanced Vim Registers on Wednesday January 09, 2013 @02:08PM (#5032840)
My version didn't have it builtin so I use fake clip https://github.com/kana/vim-fakeclip
Re:nil, Nil, NULL, NSNull on Monday January 07, 2013 @12:32PM (#5022055)
True, although none of the other return values make that much sense with nil either.
Re:nil, Nil, NULL, NSNull on Monday January 07, 2013 @11:45AM (#5021827)
That seems like a naming decision, I think it'd make more sense to have an equals selector than a not equals selector in objective c. Plus isEqualToString: is already part of NSString
Re:Is C/C++ worth it? on Monday July 23, 2012 @10:39PM (#4284083)
Why does he use a vector for the C++ version, but an array for the java version. It seems like it'd be a lot more comparable to use an arraylist in java, (either that or just a standard array in C). Nonetheless, the having the time slowed by the call to cout has a pretty large effect as well. It seems like this was rather setup to favor the java version from the beginning
Re:The trouble with Javascript on Friday April 27, 2012 @02:43PM (#3900524)
Did he just complain that there are no compiler errors in a interpreted language?